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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +38 -0
  2. package/dist/constants/index.cjs +0 -140
  3. package/dist/constants/index.cjs.map +1 -1
  4. package/dist/constants/index.d.cts +146 -5
  5. package/dist/constants/index.d.ts +146 -5
  6. package/dist/constants/index.js +0 -128
  7. package/dist/constants/index.js.map +1 -1
  8. package/dist/{platform-role-AHv1l5Og.d.cts → cvcEntry-wqktWfzE.d.cts} +231 -37
  9. package/dist/{platform-role-AHv1l5Og.d.ts → cvcEntry-wqktWfzE.d.ts} +231 -37
  10. package/dist/cvcs/index.cjs +2184 -0
  11. package/dist/cvcs/index.cjs.map +1 -0
  12. package/dist/cvcs/index.d.cts +2384 -0
  13. package/dist/cvcs/index.d.ts +2384 -0
  14. package/dist/cvcs/index.js +2154 -0
  15. package/dist/cvcs/index.js.map +1 -0
  16. package/dist/index--NCIPluF.d.cts +378 -0
  17. package/dist/index-CFOrHA8l.d.ts +378 -0
  18. package/dist/index.cjs +2962 -140
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +217 -3
  21. package/dist/index.d.ts +217 -3
  22. package/dist/index.js +2934 -128
  23. package/dist/index.js.map +1 -1
  24. package/dist/models/index.cjs +211 -0
  25. package/dist/models/index.cjs.map +1 -1
  26. package/dist/models/index.d.cts +3 -292
  27. package/dist/models/index.d.ts +3 -292
  28. package/dist/models/index.js +209 -0
  29. package/dist/models/index.js.map +1 -1
  30. package/dist/{platform-auth-DHSJP7XP.d.cts → platform-auth-C-G2qeGM.d.cts} +1 -36
  31. package/dist/{platform-auth-DHSJP7XP.d.ts → platform-auth-C-G2qeGM.d.ts} +1 -36
  32. package/dist/schemas/index.cjs +195 -116
  33. package/dist/schemas/index.cjs.map +1 -1
  34. package/dist/schemas/index.d.cts +11 -11
  35. package/dist/schemas/index.d.ts +11 -11
  36. package/dist/schemas/index.js +189 -116
  37. package/dist/schemas/index.js.map +1 -1
  38. package/dist/services/index.cjs +1442 -0
  39. package/dist/services/index.cjs.map +1 -0
  40. package/dist/services/index.d.cts +305 -0
  41. package/dist/services/index.d.ts +305 -0
  42. package/dist/services/index.js +1417 -0
  43. package/dist/services/index.js.map +1 -0
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/dist/validation/index.cjs +261 -0
  47. package/dist/validation/index.cjs.map +1 -0
  48. package/dist/validation/index.d.cts +251 -0
  49. package/dist/validation/index.d.ts +251 -0
  50. package/dist/validation/index.js +228 -0
  51. package/dist/validation/index.js.map +1 -0
  52. package/package.json +36 -12
  53. package/src/__tests__/__snapshots__/cvc-sot.snap +22 -0
  54. package/src/__tests__/cvc-sot-snapshot.test.ts +184 -0
  55. package/src/__tests__/cvc-structural.test.ts +130 -0
  56. package/src/constants/ic.ts +0 -154
  57. package/src/constants/service-catalog.ts +146 -4
  58. package/src/cvcs/index.ts +31 -0
  59. package/src/cvcs/missingness.v1.0.0.json +50 -0
  60. package/src/cvcs/serviceCategories.v1.0.0.json +1947 -0
  61. package/src/cvcs/serviceMechanisms.v1.0.0.json +47 -0
  62. package/src/cvcs/serviceStates.v1.0.0.json +106 -0
  63. package/src/generated/cvc-enums.ts +215 -0
  64. package/src/index.ts +61 -1
  65. package/src/models/cvcEntryModel.ts +32 -0
  66. package/src/models/cvcRegistryModel.ts +35 -0
  67. package/src/models/index.ts +8 -0
  68. package/src/schemas/cvcEntry.ts +158 -0
  69. package/src/schemas/cvcRegistry.ts +149 -0
  70. package/src/schemas/index.ts +16 -0
  71. package/src/services/__tests__/cvcRegistryService.test.ts +614 -0
  72. package/src/services/cvcRegistryService.ts +729 -0
  73. package/src/services/index.ts +21 -0
  74. package/src/validation/cvc.ts +414 -0
  75. package/src/validation/index.ts +15 -0
package/dist/index.js CHANGED
@@ -1050,16 +1050,6 @@ function isTransgenderGenderIdentity(value) {
1050
1050
  if (!value) return false;
1051
1051
  return CVC_17_TRANSGENDER_VALUES.includes(value);
1052
1052
  }
1053
- var CVC_17_VALUES = [
1054
- CVC_17_CORE_GENDER_IDENTITY.MALE,
1055
- CVC_17_CORE_GENDER_IDENTITY.FEMALE,
1056
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER,
1057
- CVC_17_CORE_GENDER_IDENTITY.NON_BINARY,
1058
- CVC_17_CORE_GENDER_IDENTITY.OTHER,
1059
- CVC_17_CORE_GENDER_IDENTITY.UNKNOWN,
1060
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_FTM,
1061
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_MTF
1062
- ];
1063
1053
  var IC_24_RACE = {
1064
1054
  AMERICAN_INDIAN_ALASKA_NATIVE: 1,
1065
1055
  ASIAN: 2,
@@ -3976,112 +3966,6 @@ var CVC_67_SELECTABLE_VALUES = [
3976
3966
  var CVC_67_MISSINGNESS_VALUES = [
3977
3967
  CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
3978
3968
  ];
3979
- var CVC_67_VALUES = [
3980
- CVC_67_HMIS_SEX.MALE,
3981
- CVC_67_HMIS_SEX.FEMALE,
3982
- CVC_67_HMIS_SEX.CLIENT_PREFERS_NOT_TO_ANSWER,
3983
- CVC_67_HMIS_SEX.CLIENT_DOESNT_KNOW,
3984
- CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
3985
- ];
3986
- var CVC_137_RECENCY_BAND = {
3987
- // Primary recency values
3988
- WITHIN_3_MONTHS: "W3M",
3989
- MONTHS_3_TO_6: "M3_6",
3990
- MONTHS_6_TO_12: "M6_12",
3991
- ONE_YEAR_OR_MORE: "Y1P",
3992
- LESS_THAN_3_YEARS: "YLT3",
3993
- YEARS_3_TO_10: "Y3_10",
3994
- TEN_PLUS_YEARS: "Y10P",
3995
- // Missingness values
3996
- UNKNOWN: "UNK",
3997
- DATA_NOT_COLLECTED: "DNC",
3998
- ANONYMOUS: "ANON",
3999
- PREFERS_NOT_TO_ANSWER: "PNA"
4000
- };
4001
- var CVC_137_LABELS = {
4002
- [CVC_137_RECENCY_BAND.WITHIN_3_MONTHS]: "Within past 3 months",
4003
- [CVC_137_RECENCY_BAND.MONTHS_3_TO_6]: "3-6 months ago",
4004
- [CVC_137_RECENCY_BAND.MONTHS_6_TO_12]: "6-12 months ago",
4005
- [CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE]: "One year or more",
4006
- [CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS]: "Less than 3 years ago",
4007
- [CVC_137_RECENCY_BAND.YEARS_3_TO_10]: "3-10 years ago",
4008
- [CVC_137_RECENCY_BAND.TEN_PLUS_YEARS]: "10+ years ago",
4009
- [CVC_137_RECENCY_BAND.UNKNOWN]: "Unknown",
4010
- [CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED]: "Data not collected",
4011
- [CVC_137_RECENCY_BAND.ANONYMOUS]: "Anonymous",
4012
- [CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER]: "Client prefers not to answer"
4013
- };
4014
- var CVC_137_VALUES = [
4015
- CVC_137_RECENCY_BAND.WITHIN_3_MONTHS,
4016
- CVC_137_RECENCY_BAND.MONTHS_3_TO_6,
4017
- CVC_137_RECENCY_BAND.MONTHS_6_TO_12,
4018
- CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE,
4019
- CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS,
4020
- CVC_137_RECENCY_BAND.YEARS_3_TO_10,
4021
- CVC_137_RECENCY_BAND.TEN_PLUS_YEARS,
4022
- CVC_137_RECENCY_BAND.UNKNOWN,
4023
- CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED,
4024
- CVC_137_RECENCY_BAND.ANONYMOUS,
4025
- CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER
4026
- ];
4027
- var CVC_137_SELECTABLE_VALUES = [
4028
- CVC_137_RECENCY_BAND.WITHIN_3_MONTHS,
4029
- CVC_137_RECENCY_BAND.MONTHS_3_TO_6,
4030
- CVC_137_RECENCY_BAND.MONTHS_6_TO_12,
4031
- CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE,
4032
- CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS,
4033
- CVC_137_RECENCY_BAND.YEARS_3_TO_10,
4034
- CVC_137_RECENCY_BAND.TEN_PLUS_YEARS
4035
- ];
4036
- var CVC_137_MISSINGNESS_VALUES = [
4037
- CVC_137_RECENCY_BAND.UNKNOWN,
4038
- CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED,
4039
- CVC_137_RECENCY_BAND.ANONYMOUS,
4040
- CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER
4041
- ];
4042
- var CVC_197_JUVENILE_JUSTICE_EPISODE = {
4043
- DIVERSION_PROGRAM: "diversion_program",
4044
- PROBATION_SUPERVISION: "probation_supervision",
4045
- PENDING_ADJUDICATION: "pending_adjudication",
4046
- DETENTION_STAY: "detention_stay",
4047
- RESIDENTIAL_JJ_PLACEMENT: "residential_jj_placement",
4048
- // Missingness values
4049
- DATA_NOT_COLLECTED: "DNC",
4050
- UNKNOWN: "UNK",
4051
- ANONYMOUS: "ANON"
4052
- };
4053
- var CVC_197_LABELS = {
4054
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM]: "Diversion program",
4055
- [CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION]: "Probation supervision",
4056
- [CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION]: "Pending adjudication",
4057
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY]: "Detention stay",
4058
- [CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT]: "Residential JJ placement",
4059
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED]: "Data not collected",
4060
- [CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN]: "Unknown",
4061
- [CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS]: "Anonymous"
4062
- };
4063
- var CVC_197_VALUES = [
4064
- CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM,
4065
- CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION,
4066
- CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION,
4067
- CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY,
4068
- CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT,
4069
- CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED,
4070
- CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN,
4071
- CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS
4072
- ];
4073
- var CVC_197_SELECTABLE_VALUES = [
4074
- CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM,
4075
- CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION,
4076
- CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION,
4077
- CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY,
4078
- CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT
4079
- ];
4080
- var CVC_197_MISSINGNESS_VALUES = [
4081
- CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED,
4082
- CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN,
4083
- CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS
4084
- ];
4085
3969
 
4086
3970
  // src/constants/service-catalog.json
4087
3971
  var service_catalog_default = {
@@ -6446,6 +6330,189 @@ function buildPlatformRoleSchema() {
6446
6330
  }
6447
6331
  var _platformRoleSchema = buildPlatformRoleSchema();
6448
6332
 
6333
+ // src/schemas/cvcRegistry.ts
6334
+ import { Schema as Schema8 } from "mongoose";
6335
+ var cvcRegistrySchemaDefinition = {
6336
+ // Versioning — semantic version of this registry bundle
6337
+ version: {
6338
+ type: String,
6339
+ required: true,
6340
+ match: /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/
6341
+ },
6342
+ // Human-readable name (e.g. "PAVE production registry")
6343
+ name: {
6344
+ type: String,
6345
+ required: true
6346
+ },
6347
+ // Scope keys. `null` widens scope: a null `application` means platform-wide;
6348
+ // a null `agencyId` means all agencies within `application`.
6349
+ application: {
6350
+ type: String,
6351
+ default: null
6352
+ },
6353
+ agencyId: {
6354
+ type: Schema8.Types.ObjectId,
6355
+ default: null
6356
+ },
6357
+ // Lifecycle
6358
+ status: {
6359
+ type: String,
6360
+ required: true,
6361
+ enum: ["draft", "active", "deprecated"],
6362
+ default: "draft",
6363
+ index: true
6364
+ },
6365
+ dateActivated: {
6366
+ type: Date
6367
+ },
6368
+ dateDeactivated: {
6369
+ type: Date
6370
+ },
6371
+ // Pinned domain versions: { service_categories: "1.0.0", ... }
6372
+ // Stored as a Map<string, string> so individual domains can be added or
6373
+ // bumped without re-validating the whole document shape.
6374
+ cvcVersions: {
6375
+ type: Map,
6376
+ of: String,
6377
+ required: true,
6378
+ default: () => /* @__PURE__ */ new Map()
6379
+ },
6380
+ // Selective inclusion/exclusion lists. Both contain CVC entry codes
6381
+ // (positional 7-segment, e.g. "01-02-00-00-00-00-00"). The runtime
6382
+ // applies excludes after includes when resolving the effective set.
6383
+ excludedEntries: {
6384
+ type: [String],
6385
+ default: []
6386
+ },
6387
+ includedEntries: {
6388
+ type: [String],
6389
+ default: []
6390
+ },
6391
+ // Inheritance pointer — when set, this registry inherits cvcVersions /
6392
+ // include / exclude lists from its base before applying its own overrides.
6393
+ // Indexed below so a base-version bump can find every dependent registry.
6394
+ basedOn: {
6395
+ type: Schema8.Types.ObjectId,
6396
+ default: null
6397
+ }
6398
+ };
6399
+ var cvcRegistrySchemaOptions = {
6400
+ timestamps: true,
6401
+ collection: "cvc_registries"
6402
+ };
6403
+ function buildCvcRegistrySchema() {
6404
+ const schema = new Schema8(
6405
+ cvcRegistrySchemaDefinition,
6406
+ cvcRegistrySchemaOptions
6407
+ );
6408
+ schema.index(
6409
+ { application: 1, agencyId: 1, version: 1 },
6410
+ { unique: true }
6411
+ );
6412
+ schema.index(
6413
+ { application: 1, agencyId: 1, status: 1 },
6414
+ {
6415
+ unique: true,
6416
+ partialFilterExpression: { status: "active" }
6417
+ }
6418
+ );
6419
+ schema.index({ basedOn: 1 });
6420
+ return schema;
6421
+ }
6422
+ var _cvcRegistrySchema = buildCvcRegistrySchema();
6423
+
6424
+ // src/schemas/cvcEntry.ts
6425
+ import { Schema as Schema9 } from "mongoose";
6426
+ var CVC_CODE_PATTERN = /^\d{2}(-\d{2}){6}$/;
6427
+ var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
6428
+ var cvcEntrySchemaDefinition = {
6429
+ // Compound identity: (domain, version, code) uniquely identifies an entry.
6430
+ // `domain` is the SOT family (e.g. "service_categories"); `version` is the
6431
+ // semantic version of the SOT JSON file the entry was loaded from.
6432
+ domain: {
6433
+ type: String,
6434
+ required: true
6435
+ },
6436
+ version: {
6437
+ type: String,
6438
+ required: true
6439
+ },
6440
+ code: {
6441
+ type: String,
6442
+ required: true,
6443
+ match: CVC_CODE_PATTERN
6444
+ },
6445
+ // Stable machine key for cross-CVC references (e.g. `relevantMechanisms`
6446
+ // in service_categories points at service_mechanisms entries by `key`).
6447
+ key: {
6448
+ type: String,
6449
+ required: true,
6450
+ match: CVC_KEY_PATTERN
6451
+ },
6452
+ // Display fields
6453
+ title: {
6454
+ type: String,
6455
+ required: true
6456
+ },
6457
+ // `selectable` distinguishes leaf entries (selectable) from structural
6458
+ // grouping rows (not selectable). Required because the seed CLI must
6459
+ // populate it explicitly — there is no sane default.
6460
+ selectable: {
6461
+ type: Boolean,
6462
+ required: true
6463
+ },
6464
+ // Tree structure. `parentCode` is `null` for root rows; `childCodes` is
6465
+ // empty for leaves. We give `parentCode` a `default: null` (rather than
6466
+ // marking it required) because Mongoose's `required` validator rejects
6467
+ // `null` outright — the default ensures the field is always present on
6468
+ // disk while still allowing the documented `string | null` shape. The
6469
+ // `match` validator is skipped by Mongoose when the value is null.
6470
+ parentCode: {
6471
+ type: String,
6472
+ default: null,
6473
+ match: CVC_CODE_PATTERN
6474
+ },
6475
+ childCodes: {
6476
+ type: [String],
6477
+ required: true,
6478
+ default: []
6479
+ },
6480
+ // Long-form definition. Same `default: null` treatment as `parentCode`
6481
+ // above — every row reaches disk with `definition` set to either a
6482
+ // string or an explicit null.
6483
+ definition: {
6484
+ type: String,
6485
+ default: null
6486
+ },
6487
+ // Domain-specific extension bag. Used for fields that only apply to a
6488
+ // particular CVC family — e.g. `relevantMechanisms` on service_categories
6489
+ // entries (a cross-CVC reference into service_mechanisms by key).
6490
+ meta: {
6491
+ type: Schema9.Types.Mixed
6492
+ }
6493
+ };
6494
+ var cvcEntrySchemaOptions = {
6495
+ timestamps: true,
6496
+ collection: "cvc_entities",
6497
+ // `parentCode` defaults to null but Mongoose strips required-with-default
6498
+ // null assignments unless we keep minimize off.
6499
+ minimize: false
6500
+ };
6501
+ function buildCvcEntrySchema() {
6502
+ const schema = new Schema9(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
6503
+ schema.index(
6504
+ { domain: 1, version: 1, code: 1 },
6505
+ { unique: true }
6506
+ );
6507
+ schema.index(
6508
+ { domain: 1, version: 1, key: 1 },
6509
+ { unique: true }
6510
+ );
6511
+ schema.index({ domain: 1, version: 1, parentCode: 1 });
6512
+ return schema;
6513
+ }
6514
+ var _cvcEntrySchema = buildCvcEntrySchema();
6515
+
6449
6516
  // src/models/formModel.ts
6450
6517
  var formModel_exports = {};
6451
6518
  __export(formModel_exports, {
@@ -6506,6 +6573,26 @@ function compileModel6(connection, schema = buildPlatformRoleSchema()) {
6506
6573
  return connection.model("PlatformRole", schema);
6507
6574
  }
6508
6575
 
6576
+ // src/models/cvcRegistryModel.ts
6577
+ var cvcRegistryModel_exports = {};
6578
+ __export(cvcRegistryModel_exports, {
6579
+ buildSchema: () => buildCvcRegistrySchema,
6580
+ compileModel: () => compileModel7
6581
+ });
6582
+ function compileModel7(connection, schema = buildCvcRegistrySchema()) {
6583
+ return connection.models?.CvcRegistry ?? connection.model("CvcRegistry", schema);
6584
+ }
6585
+
6586
+ // src/models/cvcEntryModel.ts
6587
+ var cvcEntryModel_exports = {};
6588
+ __export(cvcEntryModel_exports, {
6589
+ buildSchema: () => buildCvcEntrySchema,
6590
+ compileModel: () => compileModel8
6591
+ });
6592
+ function compileModel8(connection, schema = buildCvcEntrySchema()) {
6593
+ return connection.models?.CvcEntry ?? connection.model("CvcEntry", schema);
6594
+ }
6595
+
6509
6596
  // src/models/index.ts
6510
6597
  function createPlatformModels(connection) {
6511
6598
  return {
@@ -6517,6 +6604,2709 @@ function createPlatformModels(connection) {
6517
6604
  PlatformRoleModel: compileModel6(connection)
6518
6605
  };
6519
6606
  }
6607
+
6608
+ // src/generated/cvc-enums.ts
6609
+ var ServiceCategoryKeys = {
6610
+ social_support_community_engagement: "01-02-00-00-00-00-00",
6611
+ cultural_needs_support: "01-02-01-00-00-00-00",
6612
+ gift_holiday_resources: "01-02-02-00-00-00-00",
6613
+ peer_facilitated_supportive_group: "01-02-03-00-00-00-00",
6614
+ community_service_learning: "01-02-04-00-00-00-00",
6615
+ survivor_support_psychoeducation: "01-02-05-00-00-00-00",
6616
+ financial_and_employment: "01-03-00-00-00-00-00",
6617
+ financial_support: "01-03-01-00-00-00-00",
6618
+ emergency_financial_assistance: "01-03-01-01-00-00-00",
6619
+ employment_support: "01-03-02-00-00-00-00",
6620
+ supported_employment: "01-03-02-01-00-00-00",
6621
+ employment_assistance_job_search: "01-03-02-02-00-00-00",
6622
+ job_vocation_training: "01-03-02-03-00-00-00",
6623
+ healthcare: "01-04-00-00-00-00-00",
6624
+ medical: "01-04-01-00-00-00-00",
6625
+ emergency_medical_care: "01-04-01-01-00-00-00",
6626
+ forensic_exam_interview: "01-04-01-02-00-00-00",
6627
+ dv_exam: "01-04-01-02-01-00-00",
6628
+ sane_exam: "01-04-01-02-02-00-00",
6629
+ std_testing: "01-04-01-02-03-00-00",
6630
+ specialized_assessments: "01-04-01-02-04-00-00",
6631
+ counseling_evaluation_assessment: "01-04-01-02-04-01-00",
6632
+ stalking_assessment: "01-04-01-02-04-02-00",
6633
+ danger_assessment: "01-04-01-02-04-03-00",
6634
+ indepth_assessment: "01-04-01-02-04-04-00",
6635
+ outpatient_medical: "01-04-01-03-00-00-00",
6636
+ dental: "01-04-01-03-01-00-00",
6637
+ vision: "01-04-01-03-02-00-00",
6638
+ tattoo_removal: "01-04-01-03-03-00-00",
6639
+ pet_medical: "01-04-01-03-04-00-00",
6640
+ pregnancy_care: "01-04-01-04-00-00-00",
6641
+ prenatal_care: "01-04-01-04-01-00-00",
6642
+ postnatal_care_client: "01-04-01-04-02-00-00",
6643
+ postnatal_care_newborn: "01-04-01-04-03-00-00",
6644
+ emotional_support_mental_health: "01-04-02-00-00-00-00",
6645
+ individual_counseling: "01-04-02-01-00-00-00",
6646
+ group_counseling: "01-04-02-02-00-00-00",
6647
+ family_counseling: "01-04-02-03-00-00-00",
6648
+ counseling_treatment_planning: "01-04-02-04-00-00-00",
6649
+ counseling_treatment_plan_review: "01-04-02-05-00-00-00",
6650
+ behavioral_occupational_support: "01-04-02-06-00-00-00",
6651
+ substance_abuse_treatment: "01-04-02-06-01-00-00",
6652
+ coping_strategy_support: "01-04-02-06-02-00-00",
6653
+ other_therapy: "01-04-02-07-00-00-00",
6654
+ housing_services: "01-05-00-00-00-00-00",
6655
+ emergency_shelter: "01-05-01-00-00-00-00",
6656
+ day_shelter_dropin: "01-05-01-01-00-00-00",
6657
+ host_homes_safe_homes: "01-05-01-02-00-00-00",
6658
+ congregate_shelter_bednight: "01-05-01-03-00-00-00",
6659
+ emergency_hotel_motel: "01-05-01-04-00-00-00",
6660
+ night_by_night_shelter: "01-05-01-05-00-00-00",
6661
+ transitional_housing: "01-05-02-00-00-00-00",
6662
+ housing_renovation_modification: "01-05-03-00-00-00-00",
6663
+ household_setup_goods: "01-05-03-01-00-00-00",
6664
+ housing_navigation_placement: "01-05-04-00-00-00-00",
6665
+ housing_financial_assistance: "01-05-04-01-00-00-00",
6666
+ rental_payment_assistance: "01-05-04-01-01-00-00",
6667
+ security_deposit_allowance: "01-05-04-01-01-01-00",
6668
+ utility_assistance: "01-05-04-01-01-02-00",
6669
+ relocation_moving_assistance: "01-05-04-02-00-00-00",
6670
+ housing_stabilization_eviction_prevention: "01-05-05-00-00-00-00",
6671
+ tenant_based_scattered_site: "01-05-06-00-00-00-00",
6672
+ legal_services: "01-06-00-00-00-00-00",
6673
+ immigration_relief: "01-06-01-00-00-00-00",
6674
+ repatriation: "01-06-01-01-00-00-00",
6675
+ family_law: "01-06-02-00-00-00-00",
6676
+ criminal_support: "01-06-03-00-00-00-00",
6677
+ victim_impact_statement: "01-06-03-01-00-00-00",
6678
+ perpetrator_accountability: "01-06-03-02-00-00-00",
6679
+ victim_compensation: "01-06-03-03-00-00-00",
6680
+ victims_rights_representation: "01-06-03-04-00-00-00",
6681
+ criminal_record_relief: "01-06-03-05-00-00-00",
6682
+ civil_support: "01-06-04-00-00-00-00",
6683
+ protection_restraining_orders: "01-06-04-01-00-00-00",
6684
+ public_benefits_law: "01-06-04-02-00-00-00",
6685
+ emergency_safety_assistance: "01-06-05-00-00-00-00",
6686
+ basic_needs: "01-07-00-00-00-00-00",
6687
+ clothing_shoes_accessories: "01-07-01-00-00-00-00",
6688
+ elder_assistance: "01-07-01-01-00-00-00",
6689
+ food: "01-07-02-00-00-00-00",
6690
+ over_the_counter_medications: "01-07-03-00-00-00-00",
6691
+ immediate_safety_planning: "01-07-04-00-00-00-00",
6692
+ emergency_crisis_safety_support: "01-07-04-01-00-00-00",
6693
+ hygiene_items_personal_care: "01-07-05-00-00-00-00",
6694
+ communications_connectivity: "01-07-06-00-00-00-00",
6695
+ interpreter_services: "01-07-07-00-00-00-00",
6696
+ informal_education_life_skills: "01-08-00-00-00-00-00",
6697
+ basic_life_skills_self_care: "01-08-01-00-00-00-00",
6698
+ accessibility_disability_support: "01-08-02-00-00-00-00",
6699
+ parenting_education: "01-08-03-00-00-00-00",
6700
+ learning_language_classes: "01-08-04-00-00-00-00",
6701
+ transportation: "01-09-00-00-00-00-00",
6702
+ transportation_assistance_direct: "01-09-01-00-00-00-00",
6703
+ transportation_direct_emergency: "01-09-01-01-00-00-00",
6704
+ taxi_rideshare_voucher: "01-09-02-00-00-00-00",
6705
+ taxi_rideshare_emergency: "01-09-02-01-00-00-00",
6706
+ bus_fare_pass: "01-09-03-00-00-00-00",
6707
+ bus_fare_pass_emergency: "01-09-03-01-00-00-00",
6708
+ gift_card_gas_card: "01-09-04-00-00-00-00",
6709
+ gift_card_gas_card_emergency: "01-09-04-01-00-00-00",
6710
+ airline_tickets: "01-09-05-00-00-00-00",
6711
+ airline_tickets_emergency: "01-09-05-01-00-00-00",
6712
+ dependents: "01-10-00-00-00-00-00",
6713
+ pet_care: "01-10-01-00-00-00-00",
6714
+ child_care: "01-10-02-00-00-00-00",
6715
+ childrens_activities: "01-10-02-01-00-00-00",
6716
+ children_youth_baby_supplies: "01-10-02-01-01-00-00",
6717
+ case_coordination: "01-11-00-00-00-00-00",
6718
+ advocacy: "01-11-01-00-00-00-00",
6719
+ medical_advocacy: "01-11-01-01-00-00-00",
6720
+ advocacy_emergency_medical: "01-11-01-01-01-00-00",
6721
+ advocacy_forensic_exam: "01-11-01-01-02-00-00",
6722
+ court_advocacy: "01-11-01-02-00-00-00",
6723
+ crime_scene_clean_up: "01-11-01-02-01-00-00",
6724
+ family_reunification: "01-11-01-02-02-00-00",
6725
+ law_enforcement_interview_support: "01-11-01-02-03-00-00",
6726
+ prosecution_interview_advocacy: "01-11-01-02-04-00-00",
6727
+ immigration_advocacy_support: "01-11-01-02-05-00-00",
6728
+ documentation_records_retrieval: "01-11-01-03-00-00-00",
6729
+ obtaining_insurance: "01-11-01-03-01-00-00",
6730
+ drivers_car_insurance: "01-11-01-03-01-01-00",
6731
+ medical_insurance: "01-11-01-03-01-02-00",
6732
+ obtaining_drivers_license: "01-11-01-03-02-00-00",
6733
+ faith_resource: "01-11-01-04-00-00-00",
6734
+ banking_notary: "01-11-01-05-00-00-00",
6735
+ income_benefits_navigation: "01-11-01-06-00-00-00",
6736
+ government_services_special_programs: "01-11-01-06-01-00-00",
6737
+ intervention_employer_creditor_academic: "01-11-01-07-00-00-00",
6738
+ formal_education_academic_support: "01-11-01-07-01-00-00",
6739
+ adult_school_ged: "01-11-01-07-01-01-00",
6740
+ child_school_enrollment: "01-11-01-07-01-02-00",
6741
+ intake: "01-11-02-00-00-00-00",
6742
+ screening: "01-11-02-01-00-00-00",
6743
+ housing_eligibility_determination: "01-11-02-01-01-00-00",
6744
+ coordinated_entry: "01-11-02-01-01-01-00",
6745
+ behavioral_issues_screen: "01-11-02-01-02-00-00",
6746
+ initial_screen: "01-11-02-01-03-00-00",
6747
+ needs_assessment: "01-11-02-01-04-00-00",
6748
+ tvap: "01-11-02-01-05-00-00",
6749
+ case_management_supportive_services: "01-11-03-00-00-00-00",
6750
+ intra_agency_provider_coordination: "01-11-03-01-00-00-00",
6751
+ inter_agency_consultation: "01-11-03-02-00-00-00",
6752
+ service_plan: "01-11-03-03-00-00-00",
6753
+ hope_scale_and_plan: "01-11-03-03-01-00-00",
6754
+ post_exit_plan: "01-11-03-04-00-00-00",
6755
+ advanced_directives: "01-11-03-05-00-00-00",
6756
+ other_services: "01-12-00-00-00-00-00"
6757
+ };
6758
+ var ServiceStateKeys = {
6759
+ need_identified: "02-01-00-00-00-00-00",
6760
+ offered: "02-02-00-00-00-00-00",
6761
+ scheduled_in_progress: "02-03-00-00-00-00-00",
6762
+ delivered: "02-04-00-00-00-00-00",
6763
+ completed: "02-05-00-00-00-00-00",
6764
+ declined_by_client: "02-06-00-00-00-00-00",
6765
+ unable_to_provide: "02-07-00-00-00-00-00",
6766
+ unable_to_provide_eligibility: "02-07-01-00-00-00-00",
6767
+ unable_to_provide_capacity: "02-07-02-00-00-00-00",
6768
+ unable_to_provide_resources: "02-07-03-00-00-00-00"
6769
+ };
6770
+ var ServiceMechanismKeys = {
6771
+ support_via_referral: "03-01-00-00-00-00-00",
6772
+ informational_support: "03-02-00-00-00-00-00",
6773
+ direct_staff_contractor: "03-03-00-00-00-00-00",
6774
+ financial_material_assistance: "03-04-00-00-00-00-00"
6775
+ };
6776
+ var MissingnessKeys = {
6777
+ missingness_root: "00-00-00-00-00-00-00",
6778
+ unknown: "00-00-00-00-00-00-01",
6779
+ anonymous: "00-00-00-00-00-00-02",
6780
+ data_not_collected: "00-00-00-00-00-00-03"
6781
+ };
6782
+
6783
+ // src/services/cvcRegistryService.ts
6784
+ import "mongoose";
6785
+ function cvcVersionsToRecord(versions) {
6786
+ if (!versions) return {};
6787
+ if (versions instanceof Map) {
6788
+ return Object.fromEntries(versions.entries());
6789
+ }
6790
+ return { ...versions };
6791
+ }
6792
+ function cascadeExclusions(excludedCodes, entries) {
6793
+ const result = new Set(excludedCodes);
6794
+ const childMap = /* @__PURE__ */ new Map();
6795
+ for (const entry of entries) {
6796
+ if (entry.parentCode) {
6797
+ const siblings = childMap.get(entry.parentCode);
6798
+ if (siblings) {
6799
+ siblings.push(entry.code);
6800
+ } else {
6801
+ childMap.set(entry.parentCode, [entry.code]);
6802
+ }
6803
+ }
6804
+ }
6805
+ const queue = [...excludedCodes];
6806
+ while (queue.length > 0) {
6807
+ const code = queue.shift();
6808
+ const children = childMap.get(code);
6809
+ if (!children) continue;
6810
+ for (const childCode of children) {
6811
+ if (!result.has(childCode)) {
6812
+ result.add(childCode);
6813
+ queue.push(childCode);
6814
+ }
6815
+ }
6816
+ }
6817
+ return result;
6818
+ }
6819
+ function applyEntryOverrides(excludedEntries, includedEntries, entries) {
6820
+ const excluded = new Set(excludedEntries ?? []);
6821
+ const included = new Set(includedEntries ?? []);
6822
+ const hasExclusions = excluded.size > 0;
6823
+ const hasInclusions = included.size > 0;
6824
+ if (!hasExclusions && !hasInclusions) {
6825
+ return [...entries];
6826
+ }
6827
+ if (!hasExclusions && hasInclusions) {
6828
+ return entries.filter((entry) => included.has(entry.code));
6829
+ }
6830
+ const cascadedExclusions = cascadeExclusions(excluded, entries);
6831
+ return entries.filter((entry) => {
6832
+ if (included.has(entry.code)) return true;
6833
+ if (cascadedExclusions.has(entry.code)) return false;
6834
+ return true;
6835
+ });
6836
+ }
6837
+ async function resolveRegistryWithInheritance(registry, loadRegistry, loadEntries) {
6838
+ const childVersions = cvcVersionsToRecord(registry.cvcVersions);
6839
+ let mergedVersions = { ...childVersions };
6840
+ if (registry.basedOn) {
6841
+ const base = await loadRegistry(registry.basedOn);
6842
+ if (!base) {
6843
+ throw new Error(
6844
+ `CvcRegistryService: basedOn registry not found: ${registry.basedOn.toString()}`
6845
+ );
6846
+ }
6847
+ mergedVersions = {
6848
+ ...cvcVersionsToRecord(base.cvcVersions),
6849
+ ...childVersions
6850
+ };
6851
+ }
6852
+ const pool = [];
6853
+ for (const [domain, version] of Object.entries(mergedVersions)) {
6854
+ const domainEntries = await loadEntries(domain, version);
6855
+ pool.push(...domainEntries);
6856
+ }
6857
+ const entries = applyEntryOverrides(
6858
+ registry.excludedEntries,
6859
+ registry.includedEntries,
6860
+ pool
6861
+ );
6862
+ return { mergedVersions, entries };
6863
+ }
6864
+ function scopeFilter(scope) {
6865
+ return {
6866
+ application: scope.application ?? null,
6867
+ agencyId: scope.agencyId ?? null
6868
+ };
6869
+ }
6870
+ function cacheKeyFor(registryId) {
6871
+ return registryId.toString();
6872
+ }
6873
+ var CvcRegistryService = class {
6874
+ registryModel;
6875
+ entryModel;
6876
+ scopeFallback;
6877
+ /**
6878
+ * Cached resolved entry set per registry id. The value is the full
6879
+ * post-override entry list — domain filtering is done on read so the
6880
+ * cache stays domain-agnostic. Cleared on activate/deprecate of any
6881
+ * registry that overlaps the cached scope.
6882
+ */
6883
+ resolvedCache = /* @__PURE__ */ new Map();
6884
+ /**
6885
+ * @param connection - Mongoose connection that owns `cvc_registries` and `cvc_entries`
6886
+ * @param options - Optional behavior toggles (see {@link CvcRegistryServiceOptions})
6887
+ */
6888
+ constructor(connection, options = {}) {
6889
+ this.registryModel = cvcRegistryModel_exports.compileModel(
6890
+ connection
6891
+ );
6892
+ this.entryModel = cvcEntryModel_exports.compileModel(
6893
+ connection
6894
+ );
6895
+ this.scopeFallback = options.scopeFallback ?? true;
6896
+ }
6897
+ // ──────────────────────────────────────────────────────────────────────────
6898
+ // Registry lifecycle
6899
+ // ──────────────────────────────────────────────────────────────────────────
6900
+ /**
6901
+ * Find the active registry for a scope, walking the fallback chain
6902
+ * (agency-specific → app-specific → platform-default) when enabled. Returns
6903
+ * `null` if no active registry exists at any level of the chain.
6904
+ */
6905
+ async getActiveRegistry(scope) {
6906
+ const candidates = [scope];
6907
+ if (this.scopeFallback) {
6908
+ if (scope.agencyId != null && scope.application != null) {
6909
+ candidates.push({ application: scope.application, agencyId: null });
6910
+ }
6911
+ if (scope.application != null) {
6912
+ candidates.push({ application: null, agencyId: null });
6913
+ }
6914
+ }
6915
+ for (const candidate of candidates) {
6916
+ const found = await this.registryModel.findOne({ ...scopeFilter(candidate), status: "active" }).lean().exec();
6917
+ if (found) return found;
6918
+ }
6919
+ return null;
6920
+ }
6921
+ /**
6922
+ * Look up a registry by its `(scope, version)` tuple. The scope must be
6923
+ * exact — there is no fallback chain here, since version pins are scope-
6924
+ * specific by definition.
6925
+ */
6926
+ async getRegistry(scope, version) {
6927
+ return this.registryModel.findOne({ ...scopeFilter(scope), version }).lean().exec();
6928
+ }
6929
+ /**
6930
+ * List every registry version for an exact scope, regardless of status.
6931
+ * Sorted by version so callers get a deterministic ordering for change
6932
+ * logs / version pickers. The version field is a semver string, so the
6933
+ * sort is lexicographic — good enough for the typical 1.0.0 / 1.1.0 case.
6934
+ */
6935
+ async listVersions(scope) {
6936
+ return this.registryModel.find(scopeFilter(scope)).sort({ version: 1 }).lean().exec();
6937
+ }
6938
+ /**
6939
+ * Promote a draft registry to `active`. Atomically demotes the previous
6940
+ * active registry in the same scope to `deprecated` so the
6941
+ * one-active-per-scope invariant holds even under concurrent activations
6942
+ * (the partial unique index on `cvc_registries` enforces this at the DB
6943
+ * layer; we mirror it here for clarity).
6944
+ *
6945
+ * @throws Error if the target registry doesn't exist or isn't in `draft`
6946
+ */
6947
+ async activate(registryId) {
6948
+ const target = await this.registryModel.findById(registryId).lean().exec();
6949
+ if (!target) {
6950
+ throw new Error(
6951
+ `CvcRegistryService.activate: registry not found: ${registryId.toString()}`
6952
+ );
6953
+ }
6954
+ if (target.status !== "draft") {
6955
+ throw new Error(
6956
+ `CvcRegistryService.activate: registry ${registryId.toString()} is '${target.status}', expected 'draft'`
6957
+ );
6958
+ }
6959
+ const now = /* @__PURE__ */ new Date();
6960
+ await this.registryModel.updateOne(
6961
+ {
6962
+ application: target.application ?? null,
6963
+ agencyId: target.agencyId ?? null,
6964
+ status: "active"
6965
+ },
6966
+ { $set: { status: "deprecated", dateDeactivated: now } }
6967
+ ).exec();
6968
+ const activated = await this.registryModel.findByIdAndUpdate(
6969
+ registryId,
6970
+ { $set: { status: "active", dateActivated: now } },
6971
+ { new: true }
6972
+ ).lean().exec();
6973
+ if (!activated) {
6974
+ throw new Error(
6975
+ `CvcRegistryService.activate: registry vanished mid-update: ${registryId.toString()}`
6976
+ );
6977
+ }
6978
+ this.resolvedCache.clear();
6979
+ return activated;
6980
+ }
6981
+ /**
6982
+ * Demote an active registry to `deprecated`. Idempotent only in the sense
6983
+ * that calling it twice on the same registry will fail the second time —
6984
+ * we don't allow re-deprecating something that's already deprecated, so
6985
+ * the lifecycle stays a strict state machine.
6986
+ *
6987
+ * @throws Error if the target registry doesn't exist or isn't `active`
6988
+ */
6989
+ async deprecate(registryId) {
6990
+ const target = await this.registryModel.findById(registryId).lean().exec();
6991
+ if (!target) {
6992
+ throw new Error(
6993
+ `CvcRegistryService.deprecate: registry not found: ${registryId.toString()}`
6994
+ );
6995
+ }
6996
+ if (target.status !== "active") {
6997
+ throw new Error(
6998
+ `CvcRegistryService.deprecate: registry ${registryId.toString()} is '${target.status}', expected 'active'`
6999
+ );
7000
+ }
7001
+ const updated = await this.registryModel.findByIdAndUpdate(
7002
+ registryId,
7003
+ { $set: { status: "deprecated", dateDeactivated: /* @__PURE__ */ new Date() } },
7004
+ { new: true }
7005
+ ).lean().exec();
7006
+ if (!updated) {
7007
+ throw new Error(
7008
+ `CvcRegistryService.deprecate: registry vanished mid-update: ${registryId.toString()}`
7009
+ );
7010
+ }
7011
+ this.resolvedCache.clear();
7012
+ return updated;
7013
+ }
7014
+ // ──────────────────────────────────────────────────────────────────────────
7015
+ // Entry resolution (core — all convenience methods funnel through here)
7016
+ // ──────────────────────────────────────────────────────────────────────────
7017
+ /**
7018
+ * Resolve a registry into its effective entry list, applying inheritance
7019
+ * and overrides. Results are memoised by registry id; the cache is
7020
+ * invalidated on `activate()` / `deprecate()`.
7021
+ */
7022
+ async resolveEntries(registryId) {
7023
+ const cacheKey = cacheKeyFor(registryId);
7024
+ const cached = this.resolvedCache.get(cacheKey);
7025
+ if (cached) return cached;
7026
+ const registry = await this.registryModel.findById(registryId).lean().exec();
7027
+ if (!registry) {
7028
+ throw new Error(
7029
+ `CvcRegistryService.resolveEntries: registry not found: ${registryId.toString()}`
7030
+ );
7031
+ }
7032
+ const { entries } = await resolveRegistryWithInheritance(
7033
+ registry,
7034
+ (id) => this.registryModel.findById(id).lean().exec(),
7035
+ (domain, version) => this.entryModel.find({ domain, version }).lean().exec()
7036
+ );
7037
+ this.resolvedCache.set(cacheKey, entries);
7038
+ return entries;
7039
+ }
7040
+ /**
7041
+ * Same as {@link resolveEntries} but filtered to a single CVC domain.
7042
+ * Filtering is done on the cached set so repeated calls for different
7043
+ * domains share the same underlying load.
7044
+ */
7045
+ async resolveEntriesForDomain(registryId, domain) {
7046
+ const all = await this.resolveEntries(registryId);
7047
+ return all.filter((entry) => entry.domain === domain);
7048
+ }
7049
+ // ──────────────────────────────────────────────────────────────────────────
7050
+ // Entry lookups (convenience — resolve through the active registry)
7051
+ // ──────────────────────────────────────────────────────────────────────────
7052
+ /**
7053
+ * Find an entry by its 7-segment positional code within the active
7054
+ * registry for `scope`. Returns `null` if no active registry exists or
7055
+ * the code isn't present in the resolved entry set.
7056
+ */
7057
+ async getEntryByCode(scope, code) {
7058
+ const registry = await this.getActiveRegistry(scope);
7059
+ if (!registry) return null;
7060
+ const entries = await this.resolveEntries(registry._id);
7061
+ return entries.find((entry) => entry.code === code) ?? null;
7062
+ }
7063
+ /**
7064
+ * Find an entry by its stable machine key within a specific domain in the
7065
+ * active registry. Keys are unique per `(domain, version)` so the lookup
7066
+ * always returns at most one entry.
7067
+ */
7068
+ async getEntryByKey(scope, domain, key) {
7069
+ const registry = await this.getActiveRegistry(scope);
7070
+ if (!registry) return null;
7071
+ const entries = await this.resolveEntriesForDomain(registry._id, domain);
7072
+ return entries.find((entry) => entry.key === key) ?? null;
7073
+ }
7074
+ /**
7075
+ * Get every resolved entry for a given domain in the active registry.
7076
+ */
7077
+ async getEntries(scope, domain) {
7078
+ const registry = await this.getActiveRegistry(scope);
7079
+ if (!registry) return [];
7080
+ return this.resolveEntriesForDomain(registry._id, domain);
7081
+ }
7082
+ /**
7083
+ * Get only the selectable (leaf) entries for a domain — useful for form
7084
+ * dropdowns where structural grouping rows must be hidden.
7085
+ */
7086
+ async getSelectableEntries(scope, domain) {
7087
+ const entries = await this.getEntries(scope, domain);
7088
+ return entries.filter((entry) => entry.selectable);
7089
+ }
7090
+ /**
7091
+ * Get the direct children of a parent code within the active registry.
7092
+ * Returns `[]` for leaves and for codes not present in the resolved set.
7093
+ */
7094
+ async getChildren(scope, code) {
7095
+ const registry = await this.getActiveRegistry(scope);
7096
+ if (!registry) return [];
7097
+ const entries = await this.resolveEntries(registry._id);
7098
+ return entries.filter((entry) => entry.parentCode === code);
7099
+ }
7100
+ /**
7101
+ * Walk the parent chain from `code` up to the tree root, returning the
7102
+ * ancestors in **root → entry** order (the entry itself is not included).
7103
+ * Stops early if a parent code references an entry that isn't present in
7104
+ * the resolved set — that's a corrupt-tree signal but we'd rather return
7105
+ * a partial chain than throw inside a UI breadcrumb call.
7106
+ */
7107
+ async getAncestors(scope, code) {
7108
+ const registry = await this.getActiveRegistry(scope);
7109
+ if (!registry) return [];
7110
+ const entries = await this.resolveEntries(registry._id);
7111
+ const byCode = new Map(entries.map((entry) => [entry.code, entry]));
7112
+ const chain = [];
7113
+ let current = byCode.get(code);
7114
+ const seen = /* @__PURE__ */ new Set();
7115
+ while (current?.parentCode && !seen.has(current.parentCode)) {
7116
+ seen.add(current.parentCode);
7117
+ const parent = byCode.get(current.parentCode);
7118
+ if (!parent) break;
7119
+ chain.push(parent);
7120
+ current = parent;
7121
+ }
7122
+ return chain.reverse();
7123
+ }
7124
+ // ──────────────────────────────────────────────────────────────────────────
7125
+ // Test seam: cache introspection
7126
+ // ──────────────────────────────────────────────────────────────────────────
7127
+ /**
7128
+ * Test-only accessor for the resolved-entry cache. Exposed so service
7129
+ * tests can assert that `activate()` / `deprecate()` actually flush the
7130
+ * cache, and so consumers diagnosing stale-data bugs can dump the live
7131
+ * keyset. Not part of the locked spec API surface — treat as internal.
7132
+ */
7133
+ get __cacheKeysForTests() {
7134
+ return [...this.resolvedCache.keys()];
7135
+ }
7136
+ };
7137
+
7138
+ // src/validation/cvc.ts
7139
+ import { z } from "zod";
7140
+ var CvcCodeSchema = z.string().regex(/^\d{2}(-\d{2}){6}$/);
7141
+ var CvcKeySchema = z.string().regex(/^[a-z][a-z0-9_]*$/);
7142
+ var CvcEntrySchema = z.object({
7143
+ code: CvcCodeSchema,
7144
+ key: CvcKeySchema,
7145
+ title: z.string().min(1),
7146
+ selectable: z.boolean(),
7147
+ parentCode: CvcCodeSchema.nullable(),
7148
+ childCodes: z.array(CvcCodeSchema),
7149
+ definition: z.string().nullable()
7150
+ }).passthrough();
7151
+ var ServiceCategoryEntrySchema = CvcEntrySchema.extend({
7152
+ relevantMechanisms: z.array(CvcKeySchema).nullable()
7153
+ });
7154
+ var CvcEnvelopeSchema = z.object({
7155
+ domain: z.string().min(1),
7156
+ name: z.string().min(1),
7157
+ version: z.string().min(1),
7158
+ missingness: z.array(z.string()).optional(),
7159
+ levels: z.record(z.string(), z.string()),
7160
+ entries: z.array(CvcEntrySchema)
7161
+ });
7162
+
7163
+ // src/cvcs/serviceCategories.v1.0.0.json
7164
+ var serviceCategories_v1_0_0_default = {
7165
+ domain: "service_categories",
7166
+ name: "Core Victim Service Categories",
7167
+ version: "1.0.0",
7168
+ missingness: ["all"],
7169
+ levels: {
7170
+ "1": "Service Topics",
7171
+ "2": "Primary Service",
7172
+ "3": "Sub-Category",
7173
+ "4": "Sub-Sub Category",
7174
+ "5": "Sub-Sub-Sub Category"
7175
+ },
7176
+ entries: [
7177
+ {
7178
+ code: "01-02-00-00-00-00-00",
7179
+ key: "social_support_community_engagement",
7180
+ title: "Social Support & Community Engagement Services",
7181
+ selectable: false,
7182
+ parentCode: null,
7183
+ childCodes: [
7184
+ "01-02-01-00-00-00-00",
7185
+ "01-02-02-00-00-00-00",
7186
+ "01-02-03-00-00-00-00",
7187
+ "01-02-04-00-00-00-00",
7188
+ "01-02-05-00-00-00-00"
7189
+ ],
7190
+ definition: "Services and activities that foster social connection, emotional support, cultural belonging, and positive community engagement for survivors.",
7191
+ relevantMechanisms: null
7192
+ },
7193
+ {
7194
+ code: "01-02-01-00-00-00-00",
7195
+ key: "cultural_needs_support",
7196
+ title: "Cultural needs support",
7197
+ selectable: true,
7198
+ parentCode: "01-02-00-00-00-00-00",
7199
+ childCodes: [],
7200
+ definition: "Support that helps survivors maintain cultural identity, traditions, or practices.",
7201
+ relevantMechanisms: [
7202
+ "direct_staff_contractor",
7203
+ "financial_material_assistance",
7204
+ "support_via_referral",
7205
+ "informational_support"
7206
+ ]
7207
+ },
7208
+ {
7209
+ code: "01-02-02-00-00-00-00",
7210
+ key: "gift_holiday_resources",
7211
+ title: "Gift/Holiday Resources Support",
7212
+ selectable: true,
7213
+ parentCode: "01-02-00-00-00-00-00",
7214
+ childCodes: [],
7215
+ definition: "Support that helps survivors observe holidays or celebrations that promote belonging and well-being.",
7216
+ relevantMechanisms: [
7217
+ "direct_staff_contractor",
7218
+ "financial_material_assistance",
7219
+ "support_via_referral",
7220
+ "informational_support"
7221
+ ]
7222
+ },
7223
+ {
7224
+ code: "01-02-03-00-00-00-00",
7225
+ key: "peer_facilitated_supportive_group",
7226
+ title: "Peer/facilitated supportive group",
7227
+ selectable: true,
7228
+ parentCode: "01-02-00-00-00-00-00",
7229
+ childCodes: [],
7230
+ definition: "Interactive group sessions for adult/child victims/survivors that may be topic oriented and educational.",
7231
+ relevantMechanisms: [
7232
+ "direct_staff_contractor",
7233
+ "support_via_referral",
7234
+ "informational_support"
7235
+ ]
7236
+ },
7237
+ {
7238
+ code: "01-02-04-00-00-00-00",
7239
+ key: "community_service_learning",
7240
+ title: "Community service learning",
7241
+ selectable: true,
7242
+ parentCode: "01-02-00-00-00-00-00",
7243
+ childCodes: [],
7244
+ definition: "The opportunity to participate in structured community service or program-required service hours.",
7245
+ relevantMechanisms: [
7246
+ "direct_staff_contractor",
7247
+ "financial_material_assistance",
7248
+ "support_via_referral",
7249
+ "informational_support"
7250
+ ]
7251
+ },
7252
+ {
7253
+ code: "01-02-05-00-00-00-00",
7254
+ key: "survivor_support_psychoeducation",
7255
+ title: "Survivor Support Psychoeducation",
7256
+ selectable: true,
7257
+ parentCode: "01-02-00-00-00-00-00",
7258
+ childCodes: [],
7259
+ definition: "Supportive services provided to a survivor and/or their social support system to help them understand trafficking and address challenges.",
7260
+ relevantMechanisms: null
7261
+ },
7262
+ {
7263
+ code: "01-03-00-00-00-00-00",
7264
+ key: "financial_and_employment",
7265
+ title: "Financial and Employment",
7266
+ selectable: false,
7267
+ parentCode: null,
7268
+ childCodes: ["01-03-01-00-00-00-00", "01-03-02-00-00-00-00"],
7269
+ definition: "Services, resources, and supports that address a survivor's financial stability and employment pathways.",
7270
+ relevantMechanisms: [
7271
+ "direct_staff_contractor",
7272
+ "financial_material_assistance",
7273
+ "support_via_referral",
7274
+ "informational_support"
7275
+ ]
7276
+ },
7277
+ {
7278
+ code: "01-03-01-00-00-00-00",
7279
+ key: "financial_support",
7280
+ title: "Financial Support (Budgeting & Financial Capability)",
7281
+ selectable: true,
7282
+ parentCode: "01-03-00-00-00-00-00",
7283
+ childCodes: ["01-03-01-01-00-00-00"],
7284
+ definition: "Support focused on improving a survivor's financial stability through financial coaching/education.",
7285
+ relevantMechanisms: [
7286
+ "direct_staff_contractor",
7287
+ "financial_material_assistance",
7288
+ "support_via_referral",
7289
+ "informational_support"
7290
+ ]
7291
+ },
7292
+ {
7293
+ code: "01-03-01-01-00-00-00",
7294
+ key: "emergency_financial_assistance",
7295
+ title: "Emergency financial assistance",
7296
+ selectable: true,
7297
+ parentCode: "01-03-01-00-00-00-00",
7298
+ childCodes: [],
7299
+ definition: "Direct financial support provided to address an immediate, time-sensitive financial barrier to safety or stability.",
7300
+ relevantMechanisms: [
7301
+ "financial_material_assistance",
7302
+ "support_via_referral"
7303
+ ]
7304
+ },
7305
+ {
7306
+ code: "01-03-02-00-00-00-00",
7307
+ key: "employment_support",
7308
+ title: "Employment Support",
7309
+ selectable: true,
7310
+ parentCode: "01-03-00-00-00-00-00",
7311
+ childCodes: [
7312
+ "01-03-02-01-00-00-00",
7313
+ "01-03-02-02-00-00-00",
7314
+ "01-03-02-03-00-00-00"
7315
+ ],
7316
+ definition: "Support that helps survivors obtain, retain, or improve employment.",
7317
+ relevantMechanisms: [
7318
+ "direct_staff_contractor",
7319
+ "financial_material_assistance",
7320
+ "support_via_referral",
7321
+ "informational_support"
7322
+ ]
7323
+ },
7324
+ {
7325
+ code: "01-03-02-01-00-00-00",
7326
+ key: "supported_employment",
7327
+ title: "Supported Employment (e.g., paid employment, internship)",
7328
+ selectable: true,
7329
+ parentCode: "01-03-02-00-00-00-00",
7330
+ childCodes: [],
7331
+ definition: "Program-supported placement into paid employment, internship, or subsidized employment.",
7332
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
7333
+ },
7334
+ {
7335
+ code: "01-03-02-02-00-00-00",
7336
+ key: "employment_assistance_job_search",
7337
+ title: "Employment Assistance / Job Search & Readiness",
7338
+ selectable: true,
7339
+ parentCode: "01-03-02-00-00-00-00",
7340
+ childCodes: [],
7341
+ definition: "Hands-on assistance to help survivors seek and secure employment.",
7342
+ relevantMechanisms: [
7343
+ "direct_staff_contractor",
7344
+ "financial_material_assistance",
7345
+ "support_via_referral",
7346
+ "informational_support"
7347
+ ]
7348
+ },
7349
+ {
7350
+ code: "01-03-02-03-00-00-00",
7351
+ key: "job_vocation_training",
7352
+ title: "Job/Vocation Training",
7353
+ selectable: true,
7354
+ parentCode: "01-03-02-00-00-00-00",
7355
+ childCodes: [],
7356
+ definition: "Structured workforce preparation through job readiness programming and/or vocational training.",
7357
+ relevantMechanisms: [
7358
+ "direct_staff_contractor",
7359
+ "informational_support",
7360
+ "financial_material_assistance",
7361
+ "support_via_referral"
7362
+ ]
7363
+ },
7364
+ {
7365
+ code: "01-04-00-00-00-00-00",
7366
+ key: "healthcare",
7367
+ title: "Healthcare",
7368
+ selectable: false,
7369
+ parentCode: null,
7370
+ childCodes: ["01-04-01-00-00-00-00", "01-04-02-00-00-00-00"],
7371
+ definition: "Services provided to address a survivor's physical, mental, and emotional health needs through medical, behavioral health, or related health services.",
7372
+ relevantMechanisms: null
7373
+ },
7374
+ {
7375
+ code: "01-04-01-00-00-00-00",
7376
+ key: "medical",
7377
+ title: "Medical",
7378
+ selectable: true,
7379
+ parentCode: "01-04-00-00-00-00-00",
7380
+ childCodes: [
7381
+ "01-04-01-01-00-00-00",
7382
+ "01-04-01-02-00-00-00",
7383
+ "01-04-01-03-00-00-00",
7384
+ "01-04-01-04-00-00-00"
7385
+ ],
7386
+ definition: "Clinical services provided by licensed healthcare professionals to address a survivor's physical health needs.",
7387
+ relevantMechanisms: [
7388
+ "direct_staff_contractor",
7389
+ "financial_material_assistance",
7390
+ "support_via_referral",
7391
+ "informational_support"
7392
+ ]
7393
+ },
7394
+ {
7395
+ code: "01-04-01-01-00-00-00",
7396
+ key: "emergency_medical_care",
7397
+ title: "Emergency Medical Care",
7398
+ selectable: true,
7399
+ parentCode: "01-04-01-00-00-00-00",
7400
+ childCodes: [],
7401
+ definition: "Services related to emergency medical care for overall health (including vision and dental).",
7402
+ relevantMechanisms: [
7403
+ "direct_staff_contractor",
7404
+ "financial_material_assistance",
7405
+ "support_via_referral",
7406
+ "informational_support"
7407
+ ]
7408
+ },
7409
+ {
7410
+ code: "01-04-01-02-00-00-00",
7411
+ key: "forensic_exam_interview",
7412
+ title: "Performance of medical or non-medical forensic exam or interview",
7413
+ selectable: true,
7414
+ parentCode: "01-04-01-00-00-00-00",
7415
+ childCodes: [
7416
+ "01-04-01-02-01-00-00",
7417
+ "01-04-01-02-02-00-00",
7418
+ "01-04-01-02-03-00-00",
7419
+ "01-04-01-02-04-00-00"
7420
+ ],
7421
+ definition: "Conducting/performing a forensic exam/interview/medical evidence collection consistent with jurisdiction requirements.",
7422
+ relevantMechanisms: [
7423
+ "direct_staff_contractor",
7424
+ "financial_material_assistance",
7425
+ "support_via_referral",
7426
+ "informational_support"
7427
+ ]
7428
+ },
7429
+ {
7430
+ code: "01-04-01-02-01-00-00",
7431
+ key: "dv_exam",
7432
+ title: "DV Exam",
7433
+ selectable: true,
7434
+ parentCode: "01-04-01-02-00-00-00",
7435
+ childCodes: [],
7436
+ definition: null,
7437
+ relevantMechanisms: [
7438
+ "direct_staff_contractor",
7439
+ "financial_material_assistance",
7440
+ "support_via_referral",
7441
+ "informational_support"
7442
+ ]
7443
+ },
7444
+ {
7445
+ code: "01-04-01-02-02-00-00",
7446
+ key: "sane_exam",
7447
+ title: "SANE Exam",
7448
+ selectable: true,
7449
+ parentCode: "01-04-01-02-00-00-00",
7450
+ childCodes: [],
7451
+ definition: null,
7452
+ relevantMechanisms: [
7453
+ "direct_staff_contractor",
7454
+ "financial_material_assistance",
7455
+ "support_via_referral",
7456
+ "informational_support"
7457
+ ]
7458
+ },
7459
+ {
7460
+ code: "01-04-01-02-03-00-00",
7461
+ key: "std_testing",
7462
+ title: "STD Testing",
7463
+ selectable: true,
7464
+ parentCode: "01-04-01-02-00-00-00",
7465
+ childCodes: [],
7466
+ definition: null,
7467
+ relevantMechanisms: [
7468
+ "direct_staff_contractor",
7469
+ "financial_material_assistance",
7470
+ "support_via_referral",
7471
+ "informational_support"
7472
+ ]
7473
+ },
7474
+ {
7475
+ code: "01-04-01-02-04-00-00",
7476
+ key: "specialized_assessments",
7477
+ title: "Specialized Assessments",
7478
+ selectable: true,
7479
+ parentCode: "01-04-01-02-00-00-00",
7480
+ childCodes: [
7481
+ "01-04-01-02-04-01-00",
7482
+ "01-04-01-02-04-02-00",
7483
+ "01-04-01-02-04-03-00",
7484
+ "01-04-01-02-04-04-00"
7485
+ ],
7486
+ definition: "Assessment means an appropriate course of assistance based on a face-to-face formal screening (must be performed by a clinician).",
7487
+ relevantMechanisms: [
7488
+ "direct_staff_contractor",
7489
+ "support_via_referral",
7490
+ "informational_support"
7491
+ ]
7492
+ },
7493
+ {
7494
+ code: "01-04-01-02-04-01-00",
7495
+ key: "counseling_evaluation_assessment",
7496
+ title: "Counseling Evaluation and Assessment",
7497
+ selectable: true,
7498
+ parentCode: "01-04-01-02-04-00-00",
7499
+ childCodes: [],
7500
+ definition: null,
7501
+ relevantMechanisms: null
7502
+ },
7503
+ {
7504
+ code: "01-04-01-02-04-02-00",
7505
+ key: "stalking_assessment",
7506
+ title: "Stalking Assessment",
7507
+ selectable: true,
7508
+ parentCode: "01-04-01-02-04-00-00",
7509
+ childCodes: [],
7510
+ definition: null,
7511
+ relevantMechanisms: null
7512
+ },
7513
+ {
7514
+ code: "01-04-01-02-04-03-00",
7515
+ key: "danger_assessment",
7516
+ title: "Danger Assessment",
7517
+ selectable: true,
7518
+ parentCode: "01-04-01-02-04-00-00",
7519
+ childCodes: [],
7520
+ definition: null,
7521
+ relevantMechanisms: null
7522
+ },
7523
+ {
7524
+ code: "01-04-01-02-04-04-00",
7525
+ key: "indepth_assessment",
7526
+ title: "In-depth Assessment",
7527
+ selectable: true,
7528
+ parentCode: "01-04-01-02-04-00-00",
7529
+ childCodes: [],
7530
+ definition: null,
7531
+ relevantMechanisms: null
7532
+ },
7533
+ {
7534
+ code: "01-04-01-03-00-00-00",
7535
+ key: "outpatient_medical",
7536
+ title: "Outpatient Medical (Medication Assistance; Long-Term, Non-Therapeutic Medical Care)",
7537
+ selectable: true,
7538
+ parentCode: "01-04-01-00-00-00-00",
7539
+ childCodes: [
7540
+ "01-04-01-03-01-00-00",
7541
+ "01-04-01-03-02-00-00",
7542
+ "01-04-01-03-03-00-00",
7543
+ "01-04-01-03-04-00-00"
7544
+ ],
7545
+ definition: "Services provided by a licensed health provider including overall physical health.",
7546
+ relevantMechanisms: [
7547
+ "direct_staff_contractor",
7548
+ "financial_material_assistance",
7549
+ "support_via_referral",
7550
+ "informational_support"
7551
+ ]
7552
+ },
7553
+ {
7554
+ code: "01-04-01-03-01-00-00",
7555
+ key: "dental",
7556
+ title: "Dental",
7557
+ selectable: true,
7558
+ parentCode: "01-04-01-03-00-00-00",
7559
+ childCodes: [],
7560
+ definition: null,
7561
+ relevantMechanisms: [
7562
+ "direct_staff_contractor",
7563
+ "financial_material_assistance",
7564
+ "support_via_referral",
7565
+ "informational_support"
7566
+ ]
7567
+ },
7568
+ {
7569
+ code: "01-04-01-03-02-00-00",
7570
+ key: "vision",
7571
+ title: "Vision",
7572
+ selectable: true,
7573
+ parentCode: "01-04-01-03-00-00-00",
7574
+ childCodes: [],
7575
+ definition: null,
7576
+ relevantMechanisms: [
7577
+ "direct_staff_contractor",
7578
+ "financial_material_assistance",
7579
+ "support_via_referral",
7580
+ "informational_support"
7581
+ ]
7582
+ },
7583
+ {
7584
+ code: "01-04-01-03-03-00-00",
7585
+ key: "tattoo_removal",
7586
+ title: "Tattoo Removal",
7587
+ selectable: true,
7588
+ parentCode: "01-04-01-03-00-00-00",
7589
+ childCodes: [],
7590
+ definition: null,
7591
+ relevantMechanisms: [
7592
+ "direct_staff_contractor",
7593
+ "financial_material_assistance",
7594
+ "support_via_referral",
7595
+ "informational_support"
7596
+ ]
7597
+ },
7598
+ {
7599
+ code: "01-04-01-03-04-00-00",
7600
+ key: "pet_medical",
7601
+ title: "Pet Medical",
7602
+ selectable: true,
7603
+ parentCode: "01-04-01-03-00-00-00",
7604
+ childCodes: [],
7605
+ definition: null,
7606
+ relevantMechanisms: [
7607
+ "direct_staff_contractor",
7608
+ "financial_material_assistance",
7609
+ "support_via_referral",
7610
+ "informational_support"
7611
+ ]
7612
+ },
7613
+ {
7614
+ code: "01-04-01-04-00-00-00",
7615
+ key: "pregnancy_care",
7616
+ title: "Pregnancy Care",
7617
+ selectable: true,
7618
+ parentCode: "01-04-01-00-00-00-00",
7619
+ childCodes: [
7620
+ "01-04-01-04-01-00-00",
7621
+ "01-04-01-04-02-00-00",
7622
+ "01-04-01-04-03-00-00"
7623
+ ],
7624
+ definition: "Medical services provided to support health during pregnancy, childbirth, and the post-partum period.",
7625
+ relevantMechanisms: null
7626
+ },
7627
+ {
7628
+ code: "01-04-01-04-01-00-00",
7629
+ key: "prenatal_care",
7630
+ title: "Prenatal Care",
7631
+ selectable: true,
7632
+ parentCode: "01-04-01-04-00-00-00",
7633
+ childCodes: [],
7634
+ definition: "Medical care provided during pregnancy to monitor maternal and fetal health.",
7635
+ relevantMechanisms: [
7636
+ "direct_staff_contractor",
7637
+ "financial_material_assistance",
7638
+ "support_via_referral",
7639
+ "informational_support"
7640
+ ]
7641
+ },
7642
+ {
7643
+ code: "01-04-01-04-02-00-00",
7644
+ key: "postnatal_care_client",
7645
+ title: "Post-natal care for clients post-birth",
7646
+ selectable: true,
7647
+ parentCode: "01-04-01-04-00-00-00",
7648
+ childCodes: [],
7649
+ definition: "Medical services provided to a client after childbirth.",
7650
+ relevantMechanisms: [
7651
+ "direct_staff_contractor",
7652
+ "financial_material_assistance",
7653
+ "support_via_referral",
7654
+ "informational_support"
7655
+ ]
7656
+ },
7657
+ {
7658
+ code: "01-04-01-04-03-00-00",
7659
+ key: "postnatal_care_newborn",
7660
+ title: "Post-natal care for newborn care (exams / immunizations)",
7661
+ selectable: true,
7662
+ parentCode: "01-04-01-04-00-00-00",
7663
+ childCodes: [],
7664
+ definition: "Medical services provided to newborns following birth.",
7665
+ relevantMechanisms: [
7666
+ "direct_staff_contractor",
7667
+ "financial_material_assistance",
7668
+ "support_via_referral",
7669
+ "informational_support"
7670
+ ]
7671
+ },
7672
+ {
7673
+ code: "01-04-02-00-00-00-00",
7674
+ key: "emotional_support_mental_health",
7675
+ title: "Emotional Support, Mental Health, & Safety",
7676
+ selectable: true,
7677
+ parentCode: "01-04-00-00-00-00-00",
7678
+ childCodes: [
7679
+ "01-04-02-01-00-00-00",
7680
+ "01-04-02-02-00-00-00",
7681
+ "01-04-02-03-00-00-00",
7682
+ "01-04-02-04-00-00-00",
7683
+ "01-04-02-05-00-00-00",
7684
+ "01-04-02-06-00-00-00",
7685
+ "01-04-02-07-00-00-00"
7686
+ ],
7687
+ definition: "Evaluate and assess the victim/survivor's current situation. Provide appropriate therapy services.",
7688
+ relevantMechanisms: [
7689
+ "direct_staff_contractor",
7690
+ "financial_material_assistance",
7691
+ "support_via_referral",
7692
+ "informational_support"
7693
+ ]
7694
+ },
7695
+ {
7696
+ code: "01-04-02-01-00-00-00",
7697
+ key: "individual_counseling",
7698
+ title: "Individual Counseling (licensed behavioral health professional)",
7699
+ selectable: true,
7700
+ parentCode: "01-04-02-00-00-00-00",
7701
+ childCodes: [],
7702
+ definition: "A face-to-face therapeutic session with one-on-one interaction between a licensed professional and an individual.",
7703
+ relevantMechanisms: [
7704
+ "direct_staff_contractor",
7705
+ "financial_material_assistance",
7706
+ "support_via_referral",
7707
+ "informational_support"
7708
+ ]
7709
+ },
7710
+ {
7711
+ code: "01-04-02-02-00-00-00",
7712
+ key: "group_counseling",
7713
+ title: "Group Counseling (licensed behavioral health professional)",
7714
+ selectable: true,
7715
+ parentCode: "01-04-02-00-00-00-00",
7716
+ childCodes: [],
7717
+ definition: "A face-to-face therapeutic session with a group of adult/child victims/survivors.",
7718
+ relevantMechanisms: [
7719
+ "direct_staff_contractor",
7720
+ "support_via_referral",
7721
+ "informational_support"
7722
+ ]
7723
+ },
7724
+ {
7725
+ code: "01-04-02-03-00-00-00",
7726
+ key: "family_counseling",
7727
+ title: "Family Counseling",
7728
+ selectable: true,
7729
+ parentCode: "01-04-02-00-00-00-00",
7730
+ childCodes: [],
7731
+ definition: "Therapeutic services provided to a family or family unit by a licensed behavioral health professional.",
7732
+ relevantMechanisms: [
7733
+ "direct_staff_contractor",
7734
+ "financial_material_assistance",
7735
+ "support_via_referral",
7736
+ "informational_support"
7737
+ ]
7738
+ },
7739
+ {
7740
+ code: "01-04-02-04-00-00-00",
7741
+ key: "counseling_treatment_planning",
7742
+ title: "Counseling Treatment Planning",
7743
+ selectable: true,
7744
+ parentCode: "01-04-02-00-00-00-00",
7745
+ childCodes: [],
7746
+ definition: "The process of developing a written plan based on assessments that identify abuse issues necessitating treatment.",
7747
+ relevantMechanisms: [
7748
+ "direct_staff_contractor",
7749
+ "financial_material_assistance",
7750
+ "support_via_referral",
7751
+ "informational_support"
7752
+ ]
7753
+ },
7754
+ {
7755
+ code: "01-04-02-05-00-00-00",
7756
+ key: "counseling_treatment_plan_review",
7757
+ title: "Counseling Treatment Plan Review",
7758
+ selectable: true,
7759
+ parentCode: "01-04-02-00-00-00-00",
7760
+ childCodes: [],
7761
+ definition: "The evaluation or updating of the treatment plan based on documented progress.",
7762
+ relevantMechanisms: [
7763
+ "direct_staff_contractor",
7764
+ "financial_material_assistance",
7765
+ "support_via_referral",
7766
+ "informational_support"
7767
+ ]
7768
+ },
7769
+ {
7770
+ code: "01-04-02-06-00-00-00",
7771
+ key: "behavioral_occupational_support",
7772
+ title: "Behavioral, Occupational, & Support",
7773
+ selectable: true,
7774
+ parentCode: "01-04-02-00-00-00-00",
7775
+ childCodes: ["01-04-02-06-01-00-00", "01-04-02-06-02-00-00"],
7776
+ definition: "Clinical or therapeutic services that support a survivor's mental, emotional, or functional well-being.",
7777
+ relevantMechanisms: [
7778
+ "direct_staff_contractor",
7779
+ "financial_material_assistance",
7780
+ "support_via_referral",
7781
+ "informational_support"
7782
+ ]
7783
+ },
7784
+ {
7785
+ code: "01-04-02-06-01-00-00",
7786
+ key: "substance_abuse_treatment",
7787
+ title: "Substance Abuse Treatment",
7788
+ selectable: true,
7789
+ parentCode: "01-04-02-06-00-00-00",
7790
+ childCodes: [],
7791
+ definition: "Assessment and treatment of diagnosable substance abuse and dependence disorders by qualified professionals.",
7792
+ relevantMechanisms: [
7793
+ "direct_staff_contractor",
7794
+ "financial_material_assistance",
7795
+ "support_via_referral",
7796
+ "informational_support"
7797
+ ]
7798
+ },
7799
+ {
7800
+ code: "01-04-02-06-02-00-00",
7801
+ key: "coping_strategy_support",
7802
+ title: "Coping strategy support",
7803
+ selectable: true,
7804
+ parentCode: "01-04-02-06-00-00-00",
7805
+ childCodes: [],
7806
+ definition: "Therapeutic support focused on helping survivors develop and strengthen healthy coping skills.",
7807
+ relevantMechanisms: [
7808
+ "direct_staff_contractor",
7809
+ "financial_material_assistance",
7810
+ "support_via_referral",
7811
+ "informational_support"
7812
+ ]
7813
+ },
7814
+ {
7815
+ code: "01-04-02-07-00-00-00",
7816
+ key: "other_therapy",
7817
+ title: "Other Therapy",
7818
+ selectable: true,
7819
+ parentCode: "01-04-02-00-00-00-00",
7820
+ childCodes: [],
7821
+ definition: "Any other form of therapeutic support, including traditional, cultural, or alternative healing.",
7822
+ relevantMechanisms: [
7823
+ "direct_staff_contractor",
7824
+ "financial_material_assistance",
7825
+ "support_via_referral",
7826
+ "informational_support"
7827
+ ]
7828
+ },
7829
+ {
7830
+ code: "01-05-00-00-00-00-00",
7831
+ key: "housing_services",
7832
+ title: "Housing Services",
7833
+ selectable: false,
7834
+ parentCode: null,
7835
+ childCodes: [
7836
+ "01-05-01-00-00-00-00",
7837
+ "01-05-02-00-00-00-00",
7838
+ "01-05-03-00-00-00-00",
7839
+ "01-05-04-00-00-00-00",
7840
+ "01-05-05-00-00-00-00",
7841
+ "01-05-06-00-00-00-00"
7842
+ ],
7843
+ definition: "Services, resources, and supports that address a survivor's immediate shelter needs, longer-term housing access/placement, housing stability/eviction prevention, and safe habitability.",
7844
+ relevantMechanisms: null
7845
+ },
7846
+ {
7847
+ code: "01-05-01-00-00-00-00",
7848
+ key: "emergency_shelter",
7849
+ title: "Emergency Shelter & Immediate Safety Housing",
7850
+ selectable: true,
7851
+ parentCode: "01-05-00-00-00-00-00",
7852
+ childCodes: [
7853
+ "01-05-01-01-00-00-00",
7854
+ "01-05-01-02-00-00-00",
7855
+ "01-05-01-03-00-00-00",
7856
+ "01-05-01-04-00-00-00",
7857
+ "01-05-01-05-00-00-00"
7858
+ ],
7859
+ definition: "Immediate, short-term shelter or safe temporary housing provided to remove a survivor from danger.",
7860
+ relevantMechanisms: [
7861
+ "financial_material_assistance",
7862
+ "support_via_referral",
7863
+ "direct_staff_contractor",
7864
+ "informational_support"
7865
+ ]
7866
+ },
7867
+ {
7868
+ code: "01-05-01-01-00-00-00",
7869
+ key: "day_shelter_dropin",
7870
+ title: "Day Shelter / Drop-In",
7871
+ selectable: true,
7872
+ parentCode: "01-05-01-00-00-00-00",
7873
+ childCodes: [],
7874
+ definition: "A daytime-only shelter/safe space (no overnight lodging).",
7875
+ relevantMechanisms: [
7876
+ "financial_material_assistance",
7877
+ "support_via_referral"
7878
+ ]
7879
+ },
7880
+ {
7881
+ code: "01-05-01-02-00-00-00",
7882
+ key: "host_homes_safe_homes",
7883
+ title: "Host Homes / Safe Homes (Private Dwellings)",
7884
+ selectable: true,
7885
+ parentCode: "01-05-01-00-00-00-00",
7886
+ childCodes: [],
7887
+ definition: "Private dwellings used for temporary housing of survivors to ensure safety.",
7888
+ relevantMechanisms: ["support_via_referral", "informational_support"]
7889
+ },
7890
+ {
7891
+ code: "01-05-01-03-00-00-00",
7892
+ key: "congregate_shelter_bednight",
7893
+ title: "Congregate Emergency Shelter Bednight",
7894
+ selectable: true,
7895
+ parentCode: "01-05-01-00-00-00-00",
7896
+ childCodes: [],
7897
+ definition: "Overnight emergency shelter placement through congregate shelter bed(s).",
7898
+ relevantMechanisms: [
7899
+ "direct_staff_contractor",
7900
+ "support_via_referral",
7901
+ "financial_material_assistance"
7902
+ ]
7903
+ },
7904
+ {
7905
+ code: "01-05-01-04-00-00-00",
7906
+ key: "emergency_hotel_motel",
7907
+ title: "Emergency Hotel/Motel Placement",
7908
+ selectable: true,
7909
+ parentCode: "01-05-01-00-00-00-00",
7910
+ childCodes: [],
7911
+ definition: "Overnight emergency shelter placement through hotel/motel placement/voucher.",
7912
+ relevantMechanisms: ["financial_material_assistance"]
7913
+ },
7914
+ {
7915
+ code: "01-05-01-05-00-00-00",
7916
+ key: "night_by_night_shelter",
7917
+ title: "Night by Night Shelter",
7918
+ selectable: true,
7919
+ parentCode: "01-05-01-00-00-00-00",
7920
+ childCodes: [],
7921
+ definition: "Emergency shelter type used by high-volume shelters where clients spend a night as needed on an irregular basis.",
7922
+ relevantMechanisms: null
7923
+ },
7924
+ {
7925
+ code: "01-05-02-00-00-00-00",
7926
+ key: "transitional_housing",
7927
+ title: "Transitional & Longer-Term Temporary Housing",
7928
+ selectable: true,
7929
+ parentCode: "01-05-00-00-00-00-00",
7930
+ childCodes: [],
7931
+ definition: "Temporary housing programs (generally 6-24 months) with supportive services.",
7932
+ relevantMechanisms: [
7933
+ "support_via_referral",
7934
+ "financial_material_assistance",
7935
+ "direct_staff_contractor",
7936
+ "informational_support"
7937
+ ]
7938
+ },
7939
+ {
7940
+ code: "01-05-03-00-00-00-00",
7941
+ key: "housing_renovation_modification",
7942
+ title: "Housing Renovation / Modification",
7943
+ selectable: true,
7944
+ parentCode: "01-05-00-00-00-00-00",
7945
+ childCodes: ["01-05-03-01-00-00-00"],
7946
+ definition: "Minor home repairs, safety improvements, or accessibility modifications.",
7947
+ relevantMechanisms: [
7948
+ "direct_staff_contractor",
7949
+ "financial_material_assistance",
7950
+ "support_via_referral",
7951
+ "informational_support"
7952
+ ]
7953
+ },
7954
+ {
7955
+ code: "01-05-03-01-00-00-00",
7956
+ key: "household_setup_goods",
7957
+ title: "Household Setup & Housing-Related Goods & Supplies Assistance",
7958
+ selectable: true,
7959
+ parentCode: "01-05-03-00-00-00-00",
7960
+ childCodes: [],
7961
+ definition: "Provision of household goods or equipment needed to establish or maintain safe, functional housing.",
7962
+ relevantMechanisms: [
7963
+ "financial_material_assistance",
7964
+ "support_via_referral"
7965
+ ]
7966
+ },
7967
+ {
7968
+ code: "01-05-04-00-00-00-00",
7969
+ key: "housing_navigation_placement",
7970
+ title: "Housing Navigation & Placement (Permanent Housing Access)",
7971
+ selectable: true,
7972
+ parentCode: "01-05-00-00-00-00-00",
7973
+ childCodes: ["01-05-04-01-00-00-00", "01-05-04-02-00-00-00"],
7974
+ definition: "Support that helps survivors obtain permanent housing.",
7975
+ relevantMechanisms: [
7976
+ "direct_staff_contractor",
7977
+ "financial_material_assistance",
7978
+ "support_via_referral",
7979
+ "informational_support"
7980
+ ]
7981
+ },
7982
+ {
7983
+ code: "01-05-04-01-00-00-00",
7984
+ key: "housing_financial_assistance",
7985
+ title: "Housing Financial Assistance",
7986
+ selectable: true,
7987
+ parentCode: "01-05-04-00-00-00-00",
7988
+ childCodes: ["01-05-04-01-01-00-00"],
7989
+ definition: "Direct financial support to cover housing-related costs.",
7990
+ relevantMechanisms: [
7991
+ "financial_material_assistance",
7992
+ "support_via_referral"
7993
+ ]
7994
+ },
7995
+ {
7996
+ code: "01-05-04-01-01-00-00",
7997
+ key: "rental_payment_assistance",
7998
+ title: "Rental Payment Assistance",
7999
+ selectable: true,
8000
+ parentCode: "01-05-04-01-00-00-00",
8001
+ childCodes: ["01-05-04-01-01-01-00", "01-05-04-01-01-02-00"],
8002
+ definition: "Direct payment or subsidy for rent or rent arrears.",
8003
+ relevantMechanisms: [
8004
+ "financial_material_assistance",
8005
+ "support_via_referral"
8006
+ ]
8007
+ },
8008
+ {
8009
+ code: "01-05-04-01-01-01-00",
8010
+ key: "security_deposit_allowance",
8011
+ title: "Security Deposit Allowance",
8012
+ selectable: true,
8013
+ parentCode: "01-05-04-01-01-00-00",
8014
+ childCodes: [],
8015
+ definition: "Direct payment for a security deposit required to obtain housing.",
8016
+ relevantMechanisms: [
8017
+ "financial_material_assistance",
8018
+ "support_via_referral"
8019
+ ]
8020
+ },
8021
+ {
8022
+ code: "01-05-04-01-01-02-00",
8023
+ key: "utility_assistance",
8024
+ title: "Utility Assistance",
8025
+ selectable: true,
8026
+ parentCode: "01-05-04-01-01-00-00",
8027
+ childCodes: [],
8028
+ definition: "Direct payment for utility costs to obtain or maintain housing.",
8029
+ relevantMechanisms: [
8030
+ "financial_material_assistance",
8031
+ "support_via_referral"
8032
+ ]
8033
+ },
8034
+ {
8035
+ code: "01-05-04-02-00-00-00",
8036
+ key: "relocation_moving_assistance",
8037
+ title: "Relocation & Moving Assistance",
8038
+ selectable: true,
8039
+ parentCode: "01-05-04-00-00-00-00",
8040
+ childCodes: [],
8041
+ definition: "Support that enables a survivor to relocate and complete a move to safer/more stable housing.",
8042
+ relevantMechanisms: [
8043
+ "direct_staff_contractor",
8044
+ "financial_material_assistance",
8045
+ "support_via_referral"
8046
+ ]
8047
+ },
8048
+ {
8049
+ code: "01-05-05-00-00-00-00",
8050
+ key: "housing_stabilization_eviction_prevention",
8051
+ title: "Housing Stabilization & Eviction Prevention",
8052
+ selectable: true,
8053
+ parentCode: "01-05-00-00-00-00-00",
8054
+ childCodes: [],
8055
+ definition: "Services aimed at helping survivors remain safely housed and prevent homelessness.",
8056
+ relevantMechanisms: [
8057
+ "direct_staff_contractor",
8058
+ "financial_material_assistance",
8059
+ "support_via_referral",
8060
+ "informational_support"
8061
+ ]
8062
+ },
8063
+ {
8064
+ code: "01-05-06-00-00-00-00",
8065
+ key: "tenant_based_scattered_site",
8066
+ title: "Tenant-based scattered site",
8067
+ selectable: true,
8068
+ parentCode: "01-05-00-00-00-00-00",
8069
+ childCodes: [],
8070
+ definition: "Clients have leases in residences not owned or managed by the project/VSP agency.",
8071
+ relevantMechanisms: null
8072
+ },
8073
+ {
8074
+ code: "01-06-00-00-00-00-00",
8075
+ key: "legal_services",
8076
+ title: "Legal Services",
8077
+ selectable: false,
8078
+ parentCode: null,
8079
+ childCodes: [
8080
+ "01-06-01-00-00-00-00",
8081
+ "01-06-02-00-00-00-00",
8082
+ "01-06-03-00-00-00-00",
8083
+ "01-06-04-00-00-00-00",
8084
+ "01-06-05-00-00-00-00"
8085
+ ],
8086
+ definition: "Legal assistance and representation provided to support survivors in understanding, asserting, and protecting their legal rights.",
8087
+ relevantMechanisms: null
8088
+ },
8089
+ {
8090
+ code: "01-06-01-00-00-00-00",
8091
+ key: "immigration_relief",
8092
+ title: "Immigration Relief",
8093
+ selectable: true,
8094
+ parentCode: "01-06-00-00-00-00-00",
8095
+ childCodes: ["01-06-01-01-00-00-00"],
8096
+ definition: "Immigration assistance (e.g., special visas, continued presence applications).",
8097
+ relevantMechanisms: [
8098
+ "direct_staff_contractor",
8099
+ "financial_material_assistance",
8100
+ "support_via_referral",
8101
+ "informational_support"
8102
+ ]
8103
+ },
8104
+ {
8105
+ code: "01-06-01-01-00-00-00",
8106
+ key: "repatriation",
8107
+ title: "Repatriation",
8108
+ selectable: true,
8109
+ parentCode: "01-06-01-00-00-00-00",
8110
+ childCodes: [],
8111
+ definition: "Services/activities related to the client's intention to return to their country of citizenship.",
8112
+ relevantMechanisms: null
8113
+ },
8114
+ {
8115
+ code: "01-06-02-00-00-00-00",
8116
+ key: "family_law",
8117
+ title: "Family law",
8118
+ selectable: true,
8119
+ parentCode: "01-06-00-00-00-00-00",
8120
+ childCodes: [],
8121
+ definition: "Assisting with custody/visitation/support and other family law issues.",
8122
+ relevantMechanisms: [
8123
+ "direct_staff_contractor",
8124
+ "financial_material_assistance",
8125
+ "support_via_referral",
8126
+ "informational_support"
8127
+ ]
8128
+ },
8129
+ {
8130
+ code: "01-06-03-00-00-00-00",
8131
+ key: "criminal_support",
8132
+ title: "Criminal support",
8133
+ selectable: true,
8134
+ parentCode: "01-06-00-00-00-00-00",
8135
+ childCodes: [
8136
+ "01-06-03-01-00-00-00",
8137
+ "01-06-03-02-00-00-00",
8138
+ "01-06-03-03-00-00-00",
8139
+ "01-06-03-04-00-00-00",
8140
+ "01-06-03-05-00-00-00"
8141
+ ],
8142
+ definition: "Notifying victims about hearings, defendant release, case status, and related criminal justice support.",
8143
+ relevantMechanisms: null
8144
+ },
8145
+ {
8146
+ code: "01-06-03-01-00-00-00",
8147
+ key: "victim_impact_statement",
8148
+ title: "Victim Impact Statement Assistance",
8149
+ selectable: true,
8150
+ parentCode: "01-06-03-00-00-00-00",
8151
+ childCodes: [],
8152
+ definition: "Assisting the victim with preparing/submitting an impact statement.",
8153
+ relevantMechanisms: null
8154
+ },
8155
+ {
8156
+ code: "01-06-03-02-00-00-00",
8157
+ key: "perpetrator_accountability",
8158
+ title: "Perpetrator Accountability | Batterer's Intervention Program",
8159
+ selectable: true,
8160
+ parentCode: "01-06-03-00-00-00-00",
8161
+ childCodes: [],
8162
+ definition: "Providing the client/survivor with information on perpetrator accountability programs.",
8163
+ relevantMechanisms: null
8164
+ },
8165
+ {
8166
+ code: "01-06-03-03-00-00-00",
8167
+ key: "victim_compensation",
8168
+ title: "Victim Compensation (Restitution)",
8169
+ selectable: true,
8170
+ parentCode: "01-06-03-00-00-00-00",
8171
+ childCodes: [],
8172
+ definition: "Assisting victims in requesting restitution.",
8173
+ relevantMechanisms: null
8174
+ },
8175
+ {
8176
+ code: "01-06-03-04-00-00-00",
8177
+ key: "victims_rights_representation",
8178
+ title: "Victim's Rights Representation",
8179
+ selectable: true,
8180
+ parentCode: "01-06-03-00-00-00-00",
8181
+ childCodes: [],
8182
+ definition: "Informing victims about victim-rights frameworks, compensation programs, and notification systems.",
8183
+ relevantMechanisms: null
8184
+ },
8185
+ {
8186
+ code: "01-06-03-05-00-00-00",
8187
+ key: "criminal_record_relief",
8188
+ title: "Criminal Record Relief",
8189
+ selectable: true,
8190
+ parentCode: "01-06-03-00-00-00-00",
8191
+ childCodes: [],
8192
+ definition: "Assistance addressing criminal record history resulting from the trafficking situation.",
8193
+ relevantMechanisms: null
8194
+ },
8195
+ {
8196
+ code: "01-06-04-00-00-00-00",
8197
+ key: "civil_support",
8198
+ title: "Civil Support",
8199
+ selectable: true,
8200
+ parentCode: "01-06-00-00-00-00-00",
8201
+ childCodes: ["01-06-04-01-00-00-00", "01-06-04-02-00-00-00"],
8202
+ definition: "Legal assistance for non-criminal legal issues affecting a survivor's rights, safety, or stability.",
8203
+ relevantMechanisms: null
8204
+ },
8205
+ {
8206
+ code: "01-06-04-01-00-00-00",
8207
+ key: "protection_restraining_orders",
8208
+ title: "Protection or Restraining Orders",
8209
+ selectable: true,
8210
+ parentCode: "01-06-04-00-00-00-00",
8211
+ childCodes: [],
8212
+ definition: "Advising/assisting in obtaining orders and related follow-up hearings.",
8213
+ relevantMechanisms: null
8214
+ },
8215
+ {
8216
+ code: "01-06-04-02-00-00-00",
8217
+ key: "public_benefits_law",
8218
+ title: "Public Benefits Law",
8219
+ selectable: true,
8220
+ parentCode: "01-06-04-00-00-00-00",
8221
+ childCodes: [],
8222
+ definition: "Services to address social-service needs by informing clients of available benefits.",
8223
+ relevantMechanisms: null
8224
+ },
8225
+ {
8226
+ code: "01-06-05-00-00-00-00",
8227
+ key: "emergency_safety_assistance",
8228
+ title: "Emergency Safety Assistance",
8229
+ selectable: true,
8230
+ parentCode: "01-06-00-00-00-00-00",
8231
+ childCodes: [],
8232
+ definition: "Legal assistance that does not fit another subcategory.",
8233
+ relevantMechanisms: null
8234
+ },
8235
+ {
8236
+ code: "01-07-00-00-00-00-00",
8237
+ key: "basic_needs",
8238
+ title: "Basic Needs",
8239
+ selectable: false,
8240
+ parentCode: null,
8241
+ childCodes: [
8242
+ "01-07-01-00-00-00-00",
8243
+ "01-07-02-00-00-00-00",
8244
+ "01-07-03-00-00-00-00",
8245
+ "01-07-04-00-00-00-00",
8246
+ "01-07-05-00-00-00-00",
8247
+ "01-07-06-00-00-00-00",
8248
+ "01-07-07-00-00-00-00"
8249
+ ],
8250
+ definition: "Core supports provided to meet a survivor's essential daily living requirements.",
8251
+ relevantMechanisms: null
8252
+ },
8253
+ {
8254
+ code: "01-07-01-00-00-00-00",
8255
+ key: "clothing_shoes_accessories",
8256
+ title: "Clothing / Shoes / Accessories / Suitcases",
8257
+ selectable: true,
8258
+ parentCode: "01-07-00-00-00-00-00",
8259
+ childCodes: ["01-07-01-01-00-00-00"],
8260
+ definition: "Essential clothing and personal items provided to support basic comfort, dignity, and immediate needs.",
8261
+ relevantMechanisms: [
8262
+ "financial_material_assistance",
8263
+ "support_via_referral"
8264
+ ]
8265
+ },
8266
+ {
8267
+ code: "01-07-01-01-00-00-00",
8268
+ key: "elder_assistance",
8269
+ title: "Elder Assistance",
8270
+ selectable: true,
8271
+ parentCode: "01-07-01-00-00-00-00",
8272
+ childCodes: [],
8273
+ definition: null,
8274
+ relevantMechanisms: null
8275
+ },
8276
+ {
8277
+ code: "01-07-02-00-00-00-00",
8278
+ key: "food",
8279
+ title: "Food",
8280
+ selectable: true,
8281
+ parentCode: "01-07-00-00-00-00-00",
8282
+ childCodes: [],
8283
+ definition: "Provision of food, meals, or related basic items to meet a survivor's immediate nutritional needs.",
8284
+ relevantMechanisms: [
8285
+ "financial_material_assistance",
8286
+ "support_via_referral"
8287
+ ]
8288
+ },
8289
+ {
8290
+ code: "01-07-03-00-00-00-00",
8291
+ key: "over_the_counter_medications",
8292
+ title: "Over the Counter Medications",
8293
+ selectable: true,
8294
+ parentCode: "01-07-00-00-00-00-00",
8295
+ childCodes: [],
8296
+ definition: "Non-prescription medications provided to address common, immediate health needs.",
8297
+ relevantMechanisms: [
8298
+ "financial_material_assistance",
8299
+ "support_via_referral"
8300
+ ]
8301
+ },
8302
+ {
8303
+ code: "01-07-04-00-00-00-00",
8304
+ key: "immediate_safety_planning",
8305
+ title: "Immediate Safety/Safety Planning",
8306
+ selectable: true,
8307
+ parentCode: "01-07-00-00-00-00-00",
8308
+ childCodes: ["01-07-04-01-00-00-00"],
8309
+ definition: "A collaborative process of working with the survivor to develop or update practical safety tools and strategies.",
8310
+ relevantMechanisms: [
8311
+ "direct_staff_contractor",
8312
+ "support_via_referral",
8313
+ "informational_support"
8314
+ ]
8315
+ },
8316
+ {
8317
+ code: "01-07-04-01-00-00-00",
8318
+ key: "emergency_crisis_safety_support",
8319
+ title: "Emergency/Crisis & Safety Support (Non-Clinical)",
8320
+ selectable: true,
8321
+ parentCode: "01-07-04-00-00-00-00",
8322
+ childCodes: [],
8323
+ definition: "Services based upon a problem-solving model to provide information and referrals that assist a DV/SA or stalking victim/survivor in crisis.",
8324
+ relevantMechanisms: [
8325
+ "direct_staff_contractor",
8326
+ "support_via_referral",
8327
+ "informational_support"
8328
+ ]
8329
+ },
8330
+ {
8331
+ code: "01-07-05-00-00-00-00",
8332
+ key: "hygiene_items_personal_care",
8333
+ title: "Hygiene Items, Self-Care Resources, Toiletry, Personal Care",
8334
+ selectable: true,
8335
+ parentCode: "01-07-00-00-00-00-00",
8336
+ childCodes: [],
8337
+ definition: "Provision of basic hygiene and personal care items needed to support cleanliness, health, comfort, and dignity.",
8338
+ relevantMechanisms: [
8339
+ "financial_material_assistance",
8340
+ "support_via_referral"
8341
+ ]
8342
+ },
8343
+ {
8344
+ code: "01-07-06-00-00-00-00",
8345
+ key: "communications_connectivity",
8346
+ title: "Communications / Connectivity",
8347
+ selectable: true,
8348
+ parentCode: "01-07-00-00-00-00-00",
8349
+ childCodes: [],
8350
+ definition: "Support to ensure a survivor can communicate via access to phones, minutes, data, internet, devices, or related tools.",
8351
+ relevantMechanisms: [
8352
+ "financial_material_assistance",
8353
+ "support_via_referral"
8354
+ ]
8355
+ },
8356
+ {
8357
+ code: "01-07-07-00-00-00-00",
8358
+ key: "interpreter_services",
8359
+ title: "Interpreter Services",
8360
+ selectable: true,
8361
+ parentCode: "01-07-00-00-00-00-00",
8362
+ childCodes: [],
8363
+ definition: "Providing communication supports for victims with limited English proficiency or communication-related disabilities.",
8364
+ relevantMechanisms: null
8365
+ },
8366
+ {
8367
+ code: "01-08-00-00-00-00-00",
8368
+ key: "informal_education_life_skills",
8369
+ title: "Informal Education & Life Skills",
8370
+ selectable: false,
8371
+ parentCode: null,
8372
+ childCodes: [
8373
+ "01-08-01-00-00-00-00",
8374
+ "01-08-02-00-00-00-00",
8375
+ "01-08-03-00-00-00-00",
8376
+ "01-08-04-00-00-00-00"
8377
+ ],
8378
+ definition: "Services that support a survivor in accessing or succeeding in formal education and/or building practical life skills.",
8379
+ relevantMechanisms: [
8380
+ "direct_staff_contractor",
8381
+ "financial_material_assistance",
8382
+ "informational_support"
8383
+ ]
8384
+ },
8385
+ {
8386
+ code: "01-08-01-00-00-00-00",
8387
+ key: "basic_life_skills_self_care",
8388
+ title: "Basic Life Skills & Self-Care",
8389
+ selectable: true,
8390
+ parentCode: "01-08-00-00-00-00-00",
8391
+ childCodes: [],
8392
+ definition: "Non-clinical supports that build survivors' day-to-day functioning and independence skills.",
8393
+ relevantMechanisms: [
8394
+ "direct_staff_contractor",
8395
+ "financial_material_assistance",
8396
+ "informational_support"
8397
+ ]
8398
+ },
8399
+ {
8400
+ code: "01-08-02-00-00-00-00",
8401
+ key: "accessibility_disability_support",
8402
+ title: "Accessibility & Disability Independence Support",
8403
+ selectable: true,
8404
+ parentCode: "01-08-00-00-00-00-00",
8405
+ childCodes: [],
8406
+ definition: "Non-clinical support that helps a survivor obtain or use accessibility accommodations and disability-related resources.",
8407
+ relevantMechanisms: [
8408
+ "direct_staff_contractor",
8409
+ "financial_material_assistance",
8410
+ "informational_support"
8411
+ ]
8412
+ },
8413
+ {
8414
+ code: "01-08-03-00-00-00-00",
8415
+ key: "parenting_education",
8416
+ title: "Parenting Education & Family Skill-Building",
8417
+ selectable: true,
8418
+ parentCode: "01-08-00-00-00-00-00",
8419
+ childCodes: [],
8420
+ definition: "Structured parenting education or coaching intended to build parenting knowledge and skills (non-therapeutic).",
8421
+ relevantMechanisms: [
8422
+ "direct_staff_contractor",
8423
+ "financial_material_assistance",
8424
+ "informational_support",
8425
+ "support_via_referral"
8426
+ ]
8427
+ },
8428
+ {
8429
+ code: "01-08-04-00-00-00-00",
8430
+ key: "learning_language_classes",
8431
+ title: "Learning Language Classes",
8432
+ selectable: true,
8433
+ parentCode: "01-08-00-00-00-00-00",
8434
+ childCodes: [],
8435
+ definition: "Supporting survivors in learning language skills foundational to navigating their environment.",
8436
+ relevantMechanisms: null
8437
+ },
8438
+ {
8439
+ code: "01-09-00-00-00-00-00",
8440
+ key: "transportation",
8441
+ title: "Transportation",
8442
+ selectable: false,
8443
+ parentCode: null,
8444
+ childCodes: [
8445
+ "01-09-01-00-00-00-00",
8446
+ "01-09-02-00-00-00-00",
8447
+ "01-09-03-00-00-00-00",
8448
+ "01-09-04-00-00-00-00",
8449
+ "01-09-05-00-00-00-00"
8450
+ ],
8451
+ definition: "Services, resources, and supports that enable survivors to travel to access services or safety.",
8452
+ relevantMechanisms: [
8453
+ "direct_staff_contractor",
8454
+ "financial_material_assistance",
8455
+ "support_via_referral"
8456
+ ]
8457
+ },
8458
+ {
8459
+ code: "01-09-01-00-00-00-00",
8460
+ key: "transportation_assistance_direct",
8461
+ title: "Transportation Assistance (Direct from agency)",
8462
+ selectable: true,
8463
+ parentCode: "01-09-00-00-00-00-00",
8464
+ childCodes: ["01-09-01-01-00-00-00"],
8465
+ definition: "Transportation provided directly by staff/agency, including mileage-based transport.",
8466
+ relevantMechanisms: null
8467
+ },
8468
+ {
8469
+ code: "01-09-01-01-00-00-00",
8470
+ key: "transportation_direct_emergency",
8471
+ title: "Transportation direct from agency (Emergency Status)",
8472
+ selectable: true,
8473
+ parentCode: "01-09-01-00-00-00-00",
8474
+ childCodes: [],
8475
+ definition: null,
8476
+ relevantMechanisms: null
8477
+ },
8478
+ {
8479
+ code: "01-09-02-00-00-00-00",
8480
+ key: "taxi_rideshare_voucher",
8481
+ title: "Taxi / RideShare Voucher",
8482
+ selectable: true,
8483
+ parentCode: "01-09-00-00-00-00-00",
8484
+ childCodes: ["01-09-02-01-00-00-00"],
8485
+ definition: "Provision of taxi/rideshare rides via voucher, account credit, or direct booking.",
8486
+ relevantMechanisms: ["financial_material_assistance"]
8487
+ },
8488
+ {
8489
+ code: "01-09-02-01-00-00-00",
8490
+ key: "taxi_rideshare_emergency",
8491
+ title: "Taxi / RideShare Voucher (Emergency Status)",
8492
+ selectable: true,
8493
+ parentCode: "01-09-02-00-00-00-00",
8494
+ childCodes: [],
8495
+ definition: null,
8496
+ relevantMechanisms: null
8497
+ },
8498
+ {
8499
+ code: "01-09-03-00-00-00-00",
8500
+ key: "bus_fare_pass",
8501
+ title: "Bus Fare / Pass",
8502
+ selectable: true,
8503
+ parentCode: "01-09-00-00-00-00-00",
8504
+ childCodes: ["01-09-03-01-00-00-00"],
8505
+ definition: "Provision of bus tickets, transit passes, transit cards, or tokens.",
8506
+ relevantMechanisms: ["financial_material_assistance"]
8507
+ },
8508
+ {
8509
+ code: "01-09-03-01-00-00-00",
8510
+ key: "bus_fare_pass_emergency",
8511
+ title: "Bus Fare / Pass (Emergency Status)",
8512
+ selectable: true,
8513
+ parentCode: "01-09-03-00-00-00-00",
8514
+ childCodes: [],
8515
+ definition: null,
8516
+ relevantMechanisms: null
8517
+ },
8518
+ {
8519
+ code: "01-09-04-00-00-00-00",
8520
+ key: "gift_card_gas_card",
8521
+ title: "Gift Card / Gas Card",
8522
+ selectable: true,
8523
+ parentCode: "01-09-00-00-00-00-00",
8524
+ childCodes: ["01-09-04-01-00-00-00"],
8525
+ definition: "Provision of fuel support via gas cards or equivalent fuel purchase support.",
8526
+ relevantMechanisms: ["financial_material_assistance"]
8527
+ },
8528
+ {
8529
+ code: "01-09-04-01-00-00-00",
8530
+ key: "gift_card_gas_card_emergency",
8531
+ title: "Gift Card / Gas Card (Emergency Status)",
8532
+ selectable: true,
8533
+ parentCode: "01-09-04-00-00-00-00",
8534
+ childCodes: [],
8535
+ definition: null,
8536
+ relevantMechanisms: null
8537
+ },
8538
+ {
8539
+ code: "01-09-05-00-00-00-00",
8540
+ key: "airline_tickets",
8541
+ title: "Airline tickets",
8542
+ selectable: true,
8543
+ parentCode: "01-09-00-00-00-00-00",
8544
+ childCodes: ["01-09-05-01-00-00-00"],
8545
+ definition: "Purchase/provision of commercial air travel to access safety, housing, or critical services.",
8546
+ relevantMechanisms: [
8547
+ "direct_staff_contractor",
8548
+ "financial_material_assistance"
8549
+ ]
8550
+ },
8551
+ {
8552
+ code: "01-09-05-01-00-00-00",
8553
+ key: "airline_tickets_emergency",
8554
+ title: "Airline tickets (Emergency Status)",
8555
+ selectable: true,
8556
+ parentCode: "01-09-05-00-00-00-00",
8557
+ childCodes: [],
8558
+ definition: null,
8559
+ relevantMechanisms: null
8560
+ },
8561
+ {
8562
+ code: "01-10-00-00-00-00-00",
8563
+ key: "dependents",
8564
+ title: "Dependents",
8565
+ selectable: false,
8566
+ parentCode: null,
8567
+ childCodes: ["01-10-01-00-00-00-00", "01-10-02-00-00-00-00"],
8568
+ definition: "Services, resources, and supports that help a survivor access or maintain services by ensuring safe, appropriate care or structured supervision for children/dependents.",
8569
+ relevantMechanisms: [
8570
+ "direct_staff_contractor",
8571
+ "financial_material_assistance",
8572
+ "support_via_referral",
8573
+ "informational_support"
8574
+ ]
8575
+ },
8576
+ {
8577
+ code: "01-10-01-00-00-00-00",
8578
+ key: "pet_care",
8579
+ title: "Pet care",
8580
+ selectable: true,
8581
+ parentCode: "01-10-00-00-00-00-00",
8582
+ childCodes: [],
8583
+ definition: "Assistance caring/housing or providing basic needs for pets of clients/client households.",
8584
+ relevantMechanisms: null
8585
+ },
8586
+ {
8587
+ code: "01-10-02-00-00-00-00",
8588
+ key: "child_care",
8589
+ title: "Child care",
8590
+ selectable: true,
8591
+ parentCode: "01-10-00-00-00-00-00",
8592
+ childCodes: ["01-10-02-01-00-00-00"],
8593
+ definition: "Direct provision of care/supervision for a survivor's child/dependent or support that secures such care.",
8594
+ relevantMechanisms: [
8595
+ "direct_staff_contractor",
8596
+ "financial_material_assistance",
8597
+ "support_via_referral",
8598
+ "informational_support"
8599
+ ]
8600
+ },
8601
+ {
8602
+ code: "01-10-02-01-00-00-00",
8603
+ key: "childrens_activities",
8604
+ title: "Children's activities",
8605
+ selectable: true,
8606
+ parentCode: "01-10-02-00-00-00-00",
8607
+ childCodes: ["01-10-02-01-01-00-00"],
8608
+ definition: "Supervised, non-clinical activities provided to children/dependents that support safety, stabilization, engagement, or caregiver service access.",
8609
+ relevantMechanisms: [
8610
+ "direct_staff_contractor",
8611
+ "financial_material_assistance"
8612
+ ]
8613
+ },
8614
+ {
8615
+ code: "01-10-02-01-01-00-00",
8616
+ key: "children_youth_baby_supplies",
8617
+ title: "Children / youth / baby supplies",
8618
+ selectable: true,
8619
+ parentCode: "01-10-02-01-00-00-00",
8620
+ childCodes: [],
8621
+ definition: "Provision of materials that are specific to children/babies.",
8622
+ relevantMechanisms: [
8623
+ "financial_material_assistance",
8624
+ "support_via_referral"
8625
+ ]
8626
+ },
8627
+ {
8628
+ code: "01-11-00-00-00-00-00",
8629
+ key: "case_coordination",
8630
+ title: "Case Coordination",
8631
+ selectable: false,
8632
+ parentCode: null,
8633
+ childCodes: [
8634
+ "01-11-01-00-00-00-00",
8635
+ "01-11-02-00-00-00-00",
8636
+ "01-11-03-00-00-00-00"
8637
+ ],
8638
+ definition: "Ongoing support + coordination to help survivor cope/overcome effects, through a service plan, skills-building, and linking to resources.",
8639
+ relevantMechanisms: null
8640
+ },
8641
+ {
8642
+ code: "01-11-01-00-00-00-00",
8643
+ key: "advocacy",
8644
+ title: "Advocacy",
8645
+ selectable: true,
8646
+ parentCode: "01-11-00-00-00-00-00",
8647
+ childCodes: [
8648
+ "01-11-01-01-00-00-00",
8649
+ "01-11-01-02-00-00-00",
8650
+ "01-11-01-03-00-00-00",
8651
+ "01-11-01-04-00-00-00",
8652
+ "01-11-01-05-00-00-00",
8653
+ "01-11-01-06-00-00-00",
8654
+ "01-11-01-07-00-00-00"
8655
+ ],
8656
+ definition: "Assistance within external systems to reduce barriers, increase access, and support survivor self-reliance.",
8657
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
8658
+ },
8659
+ {
8660
+ code: "01-11-01-01-00-00-00",
8661
+ key: "medical_advocacy",
8662
+ title: "Medical Advocacy (Victim Advocacy Accompany for Medical)",
8663
+ selectable: true,
8664
+ parentCode: "01-11-01-00-00-00-00",
8665
+ childCodes: ["01-11-01-01-01-00-00", "01-11-01-01-02-00-00"],
8666
+ definition: "Includes: Victim Advocacy/Accompaniment to Emergency Medical Care and to Medical Forensic Exam.",
8667
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
8668
+ },
8669
+ {
8670
+ code: "01-11-01-01-01-00-00",
8671
+ key: "advocacy_emergency_medical",
8672
+ title: "Victim Advocacy/Accompaniment to Emergency Medical Care",
8673
+ selectable: true,
8674
+ parentCode: "01-11-01-01-00-00-00",
8675
+ childCodes: [],
8676
+ definition: "Coordinating and/or helping a victim obtain emergency medical care, including emotional and/or physical support.",
8677
+ relevantMechanisms: null
8678
+ },
8679
+ {
8680
+ code: "01-11-01-01-02-00-00",
8681
+ key: "advocacy_forensic_exam",
8682
+ title: "Victim Advocacy/Accompaniment to Medical Forensic Exam",
8683
+ selectable: true,
8684
+ parentCode: "01-11-01-01-00-00-00",
8685
+ childCodes: [],
8686
+ definition: "Coordinating and/or helping a victim obtain a forensic interview or medical forensic exam.",
8687
+ relevantMechanisms: null
8688
+ },
8689
+ {
8690
+ code: "01-11-01-02-00-00-00",
8691
+ key: "court_advocacy",
8692
+ title: "Court Advocacy (Victim Advocacy Accompany for Legal)",
8693
+ selectable: true,
8694
+ parentCode: "01-11-01-00-00-00-00",
8695
+ childCodes: [
8696
+ "01-11-01-02-01-00-00",
8697
+ "01-11-01-02-02-00-00",
8698
+ "01-11-01-02-03-00-00",
8699
+ "01-11-01-02-04-00-00",
8700
+ "01-11-01-02-05-00-00"
8701
+ ],
8702
+ definition: "Advocacy where the system = civil/criminal legal system.",
8703
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
8704
+ },
8705
+ {
8706
+ code: "01-11-01-02-01-00-00",
8707
+ key: "crime_scene_clean_up",
8708
+ title: "Crime Scene Clean Up",
8709
+ selectable: true,
8710
+ parentCode: "01-11-01-02-00-00-00",
8711
+ childCodes: [],
8712
+ definition: "Expenses related to cleaning a crime scene.",
8713
+ relevantMechanisms: null
8714
+ },
8715
+ {
8716
+ code: "01-11-01-02-02-00-00",
8717
+ key: "family_reunification",
8718
+ title: "Family Reunification",
8719
+ selectable: true,
8720
+ parentCode: "01-11-01-02-00-00-00",
8721
+ childCodes: [],
8722
+ definition: "Activities/services supporting reunification with family members in the U.S.",
8723
+ relevantMechanisms: null
8724
+ },
8725
+ {
8726
+ code: "01-11-01-02-03-00-00",
8727
+ key: "law_enforcement_interview_support",
8728
+ title: "Law Enforcement Interview Support",
8729
+ selectable: true,
8730
+ parentCode: "01-11-01-02-00-00-00",
8731
+ childCodes: [],
8732
+ definition: "Emotional support and/or physical accompaniment during law enforcement interviews.",
8733
+ relevantMechanisms: null
8734
+ },
8735
+ {
8736
+ code: "01-11-01-02-04-00-00",
8737
+ key: "prosecution_interview_advocacy",
8738
+ title: "Prosecution interview advocacy/accompaniment",
8739
+ selectable: true,
8740
+ parentCode: "01-11-01-02-00-00-00",
8741
+ childCodes: [],
8742
+ definition: "Emotional support and/or physical accompaniment during interviews with prosecutors.",
8743
+ relevantMechanisms: null
8744
+ },
8745
+ {
8746
+ code: "01-11-01-02-05-00-00",
8747
+ key: "immigration_advocacy_support",
8748
+ title: "Immigration Advocacy Support",
8749
+ selectable: true,
8750
+ parentCode: "01-11-01-02-00-00-00",
8751
+ childCodes: [],
8752
+ definition: "Assisting refugee/immigrant/nonimmigrant victims with immigration issues.",
8753
+ relevantMechanisms: null
8754
+ },
8755
+ {
8756
+ code: "01-11-01-03-00-00-00",
8757
+ key: "documentation_records_retrieval",
8758
+ title: "Documentation & Records Retrieval (Survivor Documents / Records Assistance)",
8759
+ selectable: true,
8760
+ parentCode: "01-11-01-00-00-00-00",
8761
+ childCodes: ["01-11-01-03-01-00-00", "01-11-01-03-02-00-00"],
8762
+ definition: "Support provided to help a survivor obtain, replace, organize, certify, or submit essential documents and records.",
8763
+ relevantMechanisms: [
8764
+ "direct_staff_contractor",
8765
+ "informational_support",
8766
+ "financial_material_assistance"
8767
+ ]
8768
+ },
8769
+ {
8770
+ code: "01-11-01-03-01-00-00",
8771
+ key: "obtaining_insurance",
8772
+ title: "Obtaining Insurance",
8773
+ selectable: true,
8774
+ parentCode: "01-11-01-03-00-00-00",
8775
+ childCodes: ["01-11-01-03-01-01-00", "01-11-01-03-01-02-00"],
8776
+ definition: "Assistance provided to help a survivor understand, apply for, or access insurance coverage.",
8777
+ relevantMechanisms: null
8778
+ },
8779
+ {
8780
+ code: "01-11-01-03-01-01-00",
8781
+ key: "drivers_car_insurance",
8782
+ title: "Driver's/Car Insurance",
8783
+ selectable: true,
8784
+ parentCode: "01-11-01-03-01-00-00",
8785
+ childCodes: [],
8786
+ definition: "Support to help a survivor obtain or reinstate auto insurance coverage.",
8787
+ relevantMechanisms: null
8788
+ },
8789
+ {
8790
+ code: "01-11-01-03-01-02-00",
8791
+ key: "medical_insurance",
8792
+ title: "Medical Insurance",
8793
+ selectable: true,
8794
+ parentCode: "01-11-01-03-01-00-00",
8795
+ childCodes: [],
8796
+ definition: "Support to help a survivor apply for, enroll in, or maintain medical insurance coverage.",
8797
+ relevantMechanisms: null
8798
+ },
8799
+ {
8800
+ code: "01-11-01-03-02-00-00",
8801
+ key: "obtaining_drivers_license",
8802
+ title: "Obtaining Driver's License",
8803
+ selectable: true,
8804
+ parentCode: "01-11-01-03-00-00-00",
8805
+ childCodes: [],
8806
+ definition: "Advocacy and practical assistance to help a survivor obtain, replace, or reinstate a driver's license.",
8807
+ relevantMechanisms: [
8808
+ "direct_staff_contractor",
8809
+ "financial_material_assistance",
8810
+ "informational_support"
8811
+ ]
8812
+ },
8813
+ {
8814
+ code: "01-11-01-04-00-00-00",
8815
+ key: "faith_resource",
8816
+ title: "Faith Resource (church/religious leader; faith resource)",
8817
+ selectable: true,
8818
+ parentCode: "01-11-01-00-00-00-00",
8819
+ childCodes: [],
8820
+ definition: "Connection to faith-based or spiritual resources at the survivor's request.",
8821
+ relevantMechanisms: [
8822
+ "direct_staff_contractor",
8823
+ "financial_material_assistance",
8824
+ "support_via_referral",
8825
+ "informational_support"
8826
+ ]
8827
+ },
8828
+ {
8829
+ code: "01-11-01-05-00-00-00",
8830
+ key: "banking_notary",
8831
+ title: "Banking/Notary",
8832
+ selectable: true,
8833
+ parentCode: "01-11-01-00-00-00-00",
8834
+ childCodes: [],
8835
+ definition: "Assistance to help survivors access basic financial or administrative services.",
8836
+ relevantMechanisms: null
8837
+ },
8838
+ {
8839
+ code: "01-11-01-06-00-00-00",
8840
+ key: "income_benefits_navigation",
8841
+ title: "Income / Benefits Navigation (Non-legal)",
8842
+ selectable: true,
8843
+ parentCode: "01-11-01-00-00-00-00",
8844
+ childCodes: ["01-11-01-06-01-00-00"],
8845
+ definition: "Non-legal support to help survivors identify, apply for, and navigate income supports or public benefits.",
8846
+ relevantMechanisms: [
8847
+ "direct_staff_contractor",
8848
+ "financial_material_assistance",
8849
+ "support_via_referral",
8850
+ "informational_support"
8851
+ ]
8852
+ },
8853
+ {
8854
+ code: "01-11-01-06-01-00-00",
8855
+ key: "government_services_special_programs",
8856
+ title: "Government Services/Systems or Special Programs (EBT/WIC)",
8857
+ selectable: true,
8858
+ parentCode: "01-11-01-06-00-00-00",
8859
+ childCodes: [],
8860
+ definition: "Helping the victim access needed services, accompanying to social services appointments.",
8861
+ relevantMechanisms: null
8862
+ },
8863
+ {
8864
+ code: "01-11-01-07-00-00-00",
8865
+ key: "intervention_employer_creditor_academic",
8866
+ title: "Intervention with Employer, Creditor, or Academic Institution",
8867
+ selectable: true,
8868
+ parentCode: "01-11-01-00-00-00-00",
8869
+ childCodes: ["01-11-01-07-01-00-00"],
8870
+ definition: "Advocating with non-criminal-justice entities on the victim's behalf.",
8871
+ relevantMechanisms: null
8872
+ },
8873
+ {
8874
+ code: "01-11-01-07-01-00-00",
8875
+ key: "formal_education_academic_support",
8876
+ title: "Formal Education & Academic Support",
8877
+ selectable: true,
8878
+ parentCode: "01-11-01-07-00-00-00",
8879
+ childCodes: ["01-11-01-07-01-01-00", "01-11-01-07-01-02-00"],
8880
+ definition: "Support that helps a survivor and/or dependents enroll in, remain engaged in, or complete formal education.",
8881
+ relevantMechanisms: [
8882
+ "direct_staff_contractor",
8883
+ "financial_material_assistance",
8884
+ "informational_support"
8885
+ ]
8886
+ },
8887
+ {
8888
+ code: "01-11-01-07-01-01-00",
8889
+ key: "adult_school_ged",
8890
+ title: "Adult School / GED / Enrollment / Educational Support",
8891
+ selectable: true,
8892
+ parentCode: "01-11-01-07-01-00-00",
8893
+ childCodes: [],
8894
+ definition: "Education supports primarily focused on adult survivors' formal education.",
8895
+ relevantMechanisms: [
8896
+ "direct_staff_contractor",
8897
+ "financial_material_assistance",
8898
+ "informational_support"
8899
+ ]
8900
+ },
8901
+ {
8902
+ code: "01-11-01-07-01-02-00",
8903
+ key: "child_school_enrollment",
8904
+ title: "Child School Enrollment / Educational Support",
8905
+ selectable: true,
8906
+ parentCode: "01-11-01-07-01-00-00",
8907
+ childCodes: [],
8908
+ definition: "Education supports focused on a child/dependent's school access and participation.",
8909
+ relevantMechanisms: [
8910
+ "direct_staff_contractor",
8911
+ "financial_material_assistance",
8912
+ "informational_support"
8913
+ ]
8914
+ },
8915
+ {
8916
+ code: "01-11-02-00-00-00-00",
8917
+ key: "intake",
8918
+ title: "Intake",
8919
+ selectable: true,
8920
+ parentCode: "01-11-00-00-00-00-00",
8921
+ childCodes: ["01-11-02-01-00-00-00"],
8922
+ definition: "An interaction intended to discover what has happened, determine the crisis, assess dangerousness indicators, do safety planning, and establish immediate needs.",
8923
+ relevantMechanisms: [
8924
+ "direct_staff_contractor",
8925
+ "support_via_referral",
8926
+ "informational_support"
8927
+ ]
8928
+ },
8929
+ {
8930
+ code: "01-11-02-01-00-00-00",
8931
+ key: "screening",
8932
+ title: "Screening (can be ongoing)",
8933
+ selectable: true,
8934
+ parentCode: "01-11-02-00-00-00-00",
8935
+ childCodes: [
8936
+ "01-11-02-01-01-00-00",
8937
+ "01-11-02-01-02-00-00",
8938
+ "01-11-02-01-03-00-00",
8939
+ "01-11-02-01-04-00-00",
8940
+ "01-11-02-01-05-00-00"
8941
+ ],
8942
+ definition: "The process of determining the nature and extent of an individual's problem in order to establish service needs.",
8943
+ relevantMechanisms: [
8944
+ "direct_staff_contractor",
8945
+ "support_via_referral",
8946
+ "informational_support"
8947
+ ]
8948
+ },
8949
+ {
8950
+ code: "01-11-02-01-01-00-00",
8951
+ key: "housing_eligibility_determination",
8952
+ title: "Housing Eligibility Determination",
8953
+ selectable: true,
8954
+ parentCode: "01-11-02-01-00-00-00",
8955
+ childCodes: ["01-11-02-01-01-01-00"],
8956
+ definition: "The process of collecting and reviewing information to determine a survivor's eligibility for housing programs.",
8957
+ relevantMechanisms: null
8958
+ },
8959
+ {
8960
+ code: "01-11-02-01-01-01-00",
8961
+ key: "coordinated_entry",
8962
+ title: "Coordinated Entry",
8963
+ selectable: true,
8964
+ parentCode: "01-11-02-01-01-00-00",
8965
+ childCodes: [],
8966
+ definition: "A project that administers the CoC's centralized or coordinated process for assessment and referral.",
8967
+ relevantMechanisms: null
8968
+ },
8969
+ {
8970
+ code: "01-11-02-01-02-00-00",
8971
+ key: "behavioral_issues_screen",
8972
+ title: "Behavioral Issues Screen",
8973
+ selectable: true,
8974
+ parentCode: "01-11-02-01-00-00-00",
8975
+ childCodes: [],
8976
+ definition: "A brief, non-diagnostic screening used to identify potential behavioral or mental health concerns.",
8977
+ relevantMechanisms: null
8978
+ },
8979
+ {
8980
+ code: "01-11-02-01-03-00-00",
8981
+ key: "initial_screen",
8982
+ title: "Initial Screen",
8983
+ selectable: true,
8984
+ parentCode: "01-11-02-01-00-00-00",
8985
+ childCodes: [],
8986
+ definition: "A first-point screening conducted at intake to gather basic information about a survivor's situation.",
8987
+ relevantMechanisms: null
8988
+ },
8989
+ {
8990
+ code: "01-11-02-01-04-00-00",
8991
+ key: "needs_assessment",
8992
+ title: "Needs Assessment",
8993
+ selectable: true,
8994
+ parentCode: "01-11-02-01-00-00-00",
8995
+ childCodes: [],
8996
+ definition: "A structured process used to identify and document a survivor's short- and longer-term needs.",
8997
+ relevantMechanisms: null
8998
+ },
8999
+ {
9000
+ code: "01-11-02-01-05-00-00",
9001
+ key: "tvap",
9002
+ title: "TVAP",
9003
+ selectable: true,
9004
+ parentCode: "01-11-02-01-00-00-00",
9005
+ childCodes: [],
9006
+ definition: "Screening for Federal Financial Assistance program for Foreign National survivors of human trafficking.",
9007
+ relevantMechanisms: null
9008
+ },
9009
+ {
9010
+ code: "01-11-03-00-00-00-00",
9011
+ key: "case_management_supportive_services",
9012
+ title: "Case Management / Supportive Services",
9013
+ selectable: true,
9014
+ parentCode: "01-11-00-00-00-00-00",
9015
+ childCodes: [
9016
+ "01-11-03-01-00-00-00",
9017
+ "01-11-03-02-00-00-00",
9018
+ "01-11-03-03-00-00-00",
9019
+ "01-11-03-04-00-00-00",
9020
+ "01-11-03-05-00-00-00"
9021
+ ],
9022
+ definition: "Work within the VSP sector to promote structured, ongoing relationship to set goals, develop/review/update a service plan, and coordinate.",
9023
+ relevantMechanisms: [
9024
+ "direct_staff_contractor",
9025
+ "support_via_referral",
9026
+ "informational_support"
9027
+ ]
9028
+ },
9029
+ {
9030
+ code: "01-11-03-01-00-00-00",
9031
+ key: "intra_agency_provider_coordination",
9032
+ title: "Intra-agency Provider Coordination | Intervention Team Meeting",
9033
+ selectable: true,
9034
+ parentCode: "01-11-03-00-00-00-00",
9035
+ childCodes: [],
9036
+ definition: "A formal, structured meeting among staff from the same agency to evaluate a survivor's progress.",
9037
+ relevantMechanisms: ["direct_staff_contractor"]
9038
+ },
9039
+ {
9040
+ code: "01-11-03-02-00-00-00",
9041
+ key: "inter_agency_consultation",
9042
+ title: "Inter-agency/Consultation",
9043
+ selectable: true,
9044
+ parentCode: "01-11-03-00-00-00-00",
9045
+ childCodes: [],
9046
+ definition: "A formal, structured interaction between staff and unrelated agencies to problem-solve and/or enhance services.",
9047
+ relevantMechanisms: ["direct_staff_contractor"]
9048
+ },
9049
+ {
9050
+ code: "01-11-03-03-00-00-00",
9051
+ key: "service_plan",
9052
+ title: "Service Plan",
9053
+ selectable: true,
9054
+ parentCode: "01-11-03-00-00-00-00",
9055
+ childCodes: ["01-11-03-03-01-00-00"],
9056
+ definition: "A documented, survivor-centered plan developed collaboratively to outline goals, priorities, services, and action steps.",
9057
+ relevantMechanisms: null
9058
+ },
9059
+ {
9060
+ code: "01-11-03-03-01-00-00",
9061
+ key: "hope_scale_and_plan",
9062
+ title: "Hope Scale and Plan",
9063
+ selectable: true,
9064
+ parentCode: "01-11-03-03-00-00-00",
9065
+ childCodes: [],
9066
+ definition: "A structured tool or process used to assess a survivor's sense of hope, readiness, or progress.",
9067
+ relevantMechanisms: null
9068
+ },
9069
+ {
9070
+ code: "01-11-03-04-00-00-00",
9071
+ key: "post_exit_plan",
9072
+ title: "Post-exit Plan",
9073
+ selectable: true,
9074
+ parentCode: "01-11-03-00-00-00-00",
9075
+ childCodes: [],
9076
+ definition: "A plan developed prior to the conclusion of services that outlines ongoing supports and next steps.",
9077
+ relevantMechanisms: null
9078
+ },
9079
+ {
9080
+ code: "01-11-03-05-00-00-00",
9081
+ key: "advanced_directives",
9082
+ title: "Advanced Directives/Post-mortem wishes",
9083
+ selectable: true,
9084
+ parentCode: "01-11-03-00-00-00-00",
9085
+ childCodes: [],
9086
+ definition: "Support to help a survivor document preferences regarding medical decision-making, end-of-life care, and post-mortem wishes.",
9087
+ relevantMechanisms: null
9088
+ },
9089
+ {
9090
+ code: "01-12-00-00-00-00-00",
9091
+ key: "other_services",
9092
+ title: "Other Services",
9093
+ selectable: false,
9094
+ parentCode: null,
9095
+ childCodes: [],
9096
+ definition: "Does not fit any other category; acts as write-in.",
9097
+ relevantMechanisms: null
9098
+ }
9099
+ ]
9100
+ };
9101
+
9102
+ // src/cvcs/serviceStates.v1.0.0.json
9103
+ var serviceStates_v1_0_0_default = {
9104
+ domain: "service_states",
9105
+ name: "Core Service State",
9106
+ version: "1.0.0",
9107
+ missingness: ["all"],
9108
+ levels: {
9109
+ "1": "Primary State",
9110
+ "2": "Sub-State"
9111
+ },
9112
+ entries: [
9113
+ {
9114
+ code: "02-01-00-00-00-00-00",
9115
+ key: "need_identified",
9116
+ title: "Need identified",
9117
+ selectable: true,
9118
+ parentCode: null,
9119
+ childCodes: [],
9120
+ definition: "A service need was identified/recorded; no commitment to deliver has been made yet."
9121
+ },
9122
+ {
9123
+ code: "02-02-00-00-00-00-00",
9124
+ key: "offered",
9125
+ title: "Offered",
9126
+ selectable: true,
9127
+ parentCode: null,
9128
+ childCodes: [],
9129
+ definition: "A service option was offered, but not yet delivered."
9130
+ },
9131
+ {
9132
+ code: "02-03-00-00-00-00-00",
9133
+ key: "scheduled_in_progress",
9134
+ title: "Scheduled / in progress",
9135
+ selectable: true,
9136
+ parentCode: null,
9137
+ childCodes: [],
9138
+ definition: "Service is scheduled or actively underway as a multi-step process."
9139
+ },
9140
+ {
9141
+ code: "02-04-00-00-00-00-00",
9142
+ key: "delivered",
9143
+ title: "Delivered",
9144
+ selectable: true,
9145
+ parentCode: null,
9146
+ childCodes: [],
9147
+ definition: "A unit of service was delivered/provided or confirmed received."
9148
+ },
9149
+ {
9150
+ code: "02-05-00-00-00-00-00",
9151
+ key: "completed",
9152
+ title: "Completed",
9153
+ selectable: true,
9154
+ parentCode: null,
9155
+ childCodes: [],
9156
+ definition: "Service episode/plan is finished and closed."
9157
+ },
9158
+ {
9159
+ code: "02-06-00-00-00-00-00",
9160
+ key: "declined_by_client",
9161
+ title: "Declined by client",
9162
+ selectable: true,
9163
+ parentCode: null,
9164
+ childCodes: [],
9165
+ definition: "Client declined the offered service."
9166
+ },
9167
+ {
9168
+ code: "02-07-00-00-00-00-00",
9169
+ key: "unable_to_provide",
9170
+ title: "Unable to provide",
9171
+ selectable: true,
9172
+ parentCode: null,
9173
+ childCodes: [
9174
+ "02-07-01-00-00-00-00",
9175
+ "02-07-02-00-00-00-00",
9176
+ "02-07-03-00-00-00-00"
9177
+ ],
9178
+ definition: "Program could not provide the service."
9179
+ },
9180
+ {
9181
+ code: "02-07-01-00-00-00-00",
9182
+ key: "unable_to_provide_eligibility",
9183
+ title: "Unable due to eligibility",
9184
+ selectable: true,
9185
+ parentCode: "02-07-00-00-00-00-00",
9186
+ childCodes: [],
9187
+ definition: "Client did not have eligibility for the Service."
9188
+ },
9189
+ {
9190
+ code: "02-07-02-00-00-00-00",
9191
+ key: "unable_to_provide_capacity",
9192
+ title: "Unable due to capacity",
9193
+ selectable: true,
9194
+ parentCode: "02-07-00-00-00-00-00",
9195
+ childCodes: [],
9196
+ definition: "Program did not have capacity to provide the Service."
9197
+ },
9198
+ {
9199
+ code: "02-07-03-00-00-00-00",
9200
+ key: "unable_to_provide_resources",
9201
+ title: "Unable due to resource",
9202
+ selectable: true,
9203
+ parentCode: "02-07-00-00-00-00-00",
9204
+ childCodes: [],
9205
+ definition: "Program did not have sufficient resources to provide the Service."
9206
+ }
9207
+ ]
9208
+ };
9209
+
9210
+ // src/cvcs/serviceMechanisms.v1.0.0.json
9211
+ var serviceMechanisms_v1_0_0_default = {
9212
+ domain: "service_mechanisms",
9213
+ name: "Core Service Mechanisms",
9214
+ version: "1.0.0",
9215
+ missingness: ["all"],
9216
+ levels: {
9217
+ "1": "Service Mechanism"
9218
+ },
9219
+ entries: [
9220
+ {
9221
+ code: "03-01-00-00-00-00-00",
9222
+ key: "support_via_referral",
9223
+ title: "Support via Referral",
9224
+ selectable: true,
9225
+ parentCode: null,
9226
+ childCodes: [],
9227
+ definition: "Connecting the client to an external provider or resource, and documenting the referral action and follow-up if applicable."
9228
+ },
9229
+ {
9230
+ code: "03-02-00-00-00-00-00",
9231
+ key: "informational_support",
9232
+ title: "Informational Support",
9233
+ selectable: true,
9234
+ parentCode: null,
9235
+ childCodes: [],
9236
+ definition: "Education, informational materials, guidance, navigation, instructions, or resource lists where the primary delivery is information."
9237
+ },
9238
+ {
9239
+ code: "03-03-00-00-00-00-00",
9240
+ key: "direct_staff_contractor",
9241
+ title: "Direct Staff/Contractor Service",
9242
+ selectable: true,
9243
+ parentCode: null,
9244
+ childCodes: [],
9245
+ definition: "Support delivered via personnel time and effort (advocacy, case management, counseling/clinician services, accompaniment, coordination, etc.)."
9246
+ },
9247
+ {
9248
+ code: "03-04-00-00-00-00-00",
9249
+ key: "financial_material_assistance",
9250
+ title: "Financial/Material Assistance",
9251
+ selectable: true,
9252
+ parentCode: null,
9253
+ childCodes: [],
9254
+ definition: "Cash, vouchers, goods, payments, or anything with monetary value transferred or provided on behalf of the client."
9255
+ }
9256
+ ]
9257
+ };
9258
+
9259
+ // src/cvcs/missingness.v1.0.0.json
9260
+ var missingness_v1_0_0_default = {
9261
+ domain: "missingness",
9262
+ name: "Universal Missingness Values",
9263
+ version: "1.0.0",
9264
+ levels: {
9265
+ "0": "Unknown or Missing"
9266
+ },
9267
+ entries: [
9268
+ {
9269
+ code: "00-00-00-00-00-00-00",
9270
+ key: "missingness_root",
9271
+ title: "Unknown, Redacted, or Missing",
9272
+ selectable: false,
9273
+ parentCode: null,
9274
+ childCodes: [
9275
+ "00-00-00-00-00-00-01",
9276
+ "00-00-00-00-00-00-02",
9277
+ "00-00-00-00-00-00-03"
9278
+ ],
9279
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9280
+ },
9281
+ {
9282
+ code: "00-00-00-00-00-00-01",
9283
+ key: "unknown",
9284
+ title: "Unknown",
9285
+ selectable: true,
9286
+ parentCode: "00-00-00-00-00-00-00",
9287
+ childCodes: [],
9288
+ definition: "Value is unknown at time of entry."
9289
+ },
9290
+ {
9291
+ code: "00-00-00-00-00-00-02",
9292
+ key: "anonymous",
9293
+ title: "Anonymous",
9294
+ selectable: true,
9295
+ parentCode: "00-00-00-00-00-00-00",
9296
+ childCodes: [],
9297
+ definition: "Value is intentionally withheld or redacted."
9298
+ },
9299
+ {
9300
+ code: "00-00-00-00-00-00-03",
9301
+ key: "data_not_collected",
9302
+ title: "Data not collected",
9303
+ selectable: true,
9304
+ parentCode: "00-00-00-00-00-00-00",
9305
+ childCodes: [],
9306
+ definition: "No attempt was made to collect the value."
9307
+ }
9308
+ ]
9309
+ };
6520
9310
  export {
6521
9311
  ACCOMMODATION_LABELS,
6522
9312
  ACCOMMODATION_OPTIONS,
@@ -6560,11 +9350,6 @@ export {
6560
9350
  CVC_136_OPTIONS,
6561
9351
  CVC_136_TYPE_TO_CATEGORY,
6562
9352
  CVC_136_VALUES,
6563
- CVC_137_LABELS,
6564
- CVC_137_MISSINGNESS_VALUES,
6565
- CVC_137_RECENCY_BAND,
6566
- CVC_137_SELECTABLE_VALUES,
6567
- CVC_137_VALUES,
6568
9353
  CVC_145_CATEGORY,
6569
9354
  CVC_145_CATEGORY_LABELS,
6570
9355
  CVC_145_CATEGORY_ORDER,
@@ -6644,7 +9429,6 @@ export {
6644
9429
  CVC_17_LEVEL_1_OPTIONS,
6645
9430
  CVC_17_LEVEL_2_TRANSGENDER_OPTIONS,
6646
9431
  CVC_17_TRANSGENDER_VALUES,
6647
- CVC_17_VALUES,
6648
9432
  CVC_180_EDUCATION_LEVEL,
6649
9433
  CVC_180_LABELS,
6650
9434
  CVC_180_ORDINAL,
@@ -6654,11 +9438,6 @@ export {
6654
9438
  CVC_196_CHILD_WELFARE_EPISODE_TYPE,
6655
9439
  CVC_196_LABELS,
6656
9440
  CVC_196_VALUES,
6657
- CVC_197_JUVENILE_JUSTICE_EPISODE,
6658
- CVC_197_LABELS,
6659
- CVC_197_MISSINGNESS_VALUES,
6660
- CVC_197_SELECTABLE_VALUES,
6661
- CVC_197_VALUES,
6662
9441
  CVC_1_LABELS,
6663
9442
  CVC_1_NAME_TYPE,
6664
9443
  CVC_1_STRUCTURED_NAME_TYPES,
@@ -6668,7 +9447,6 @@ export {
6668
9447
  CVC_67_LABELS,
6669
9448
  CVC_67_MISSINGNESS_VALUES,
6670
9449
  CVC_67_SELECTABLE_VALUES,
6671
- CVC_67_VALUES,
6672
9450
  CVC_72_HT_TYPE,
6673
9451
  CVC_72_LABELS,
6674
9452
  CVC_72_VALUES,
@@ -6693,6 +9471,11 @@ export {
6693
9471
  CVC_99_ENGLISH_PROFICIENCY,
6694
9472
  CVC_99_LABELS,
6695
9473
  CVC_99_VALUES,
9474
+ CvcCodeSchema,
9475
+ CvcEntrySchema,
9476
+ CvcEnvelopeSchema,
9477
+ CvcKeySchema,
9478
+ CvcRegistryService,
6696
9479
  DATA_QUALITY,
6697
9480
  DATA_QUALITY_DESCRIPTIONS,
6698
9481
  DATA_QUALITY_LABELS,
@@ -6763,6 +9546,7 @@ export {
6763
9546
  INVOLVEMENT_ROLE_TO_PERSON_TYPE,
6764
9547
  MINOR_ADULT_STATUS,
6765
9548
  MINOR_ADULT_STATUS_LABELS,
9549
+ MissingnessKeys,
6766
9550
  PARTICIPATION_ROLE_CATEGORIES,
6767
9551
  PERMISSION_STATE,
6768
9552
  PERMISSION_STATE_DISPLAY,
@@ -6799,20 +9583,37 @@ export {
6799
9583
  SHARE_VIEW_VALUES,
6800
9584
  SUBMISSION_STATES,
6801
9585
  SUBMISSION_STATE_LABELS,
9586
+ ServiceCategoryEntrySchema,
9587
+ ServiceCategoryKeys,
9588
+ ServiceMechanismKeys,
9589
+ ServiceStateKeys,
6802
9590
  THREAD_INVOLVEMENT_ROLES,
6803
9591
  USER_STATUS,
6804
9592
  USER_STATUS_LABELS,
6805
9593
  VALID_INTERACTION_TYPES,
6806
9594
  VALID_RECORD_STATES,
6807
9595
  addressSchema,
9596
+ applyEntryOverrides,
9597
+ buildCvcEntrySchema,
9598
+ buildCvcRegistrySchema,
6808
9599
  buildFormSchema,
6809
9600
  buildPlatformFunctionSchema,
6810
9601
  buildPlatformRoleSchema,
6811
9602
  buildQuestionSchema,
6812
9603
  buildScoringRuleSchema,
6813
9604
  buildSectionSchema,
9605
+ cascadeExclusions,
6814
9606
  choiceSchema,
9607
+ compileModel8 as compileCvcEntryModel,
9608
+ compileModel7 as compileCvcRegistryModel,
6815
9609
  createPlatformModels,
9610
+ cvcEntryModel_exports as cvcEntryModel,
9611
+ cvcEntrySchemaDefinition,
9612
+ cvcEntrySchemaOptions,
9613
+ cvcRegistryModel_exports as cvcRegistryModel,
9614
+ cvcRegistrySchemaDefinition,
9615
+ cvcRegistrySchemaOptions,
9616
+ cvcVersionsToRecord,
6816
9617
  demographicsSchema,
6817
9618
  deriveAgeBinFromAge,
6818
9619
  emailSchema,
@@ -6840,6 +9641,7 @@ export {
6840
9641
  isStructuredNameType,
6841
9642
  isTransgenderGenderIdentity,
6842
9643
  layoutSchema,
9644
+ missingness_v1_0_0_default as missingnessSot,
6843
9645
  personNameSchema,
6844
9646
  phoneSchema,
6845
9647
  platformFunctionModel_exports as platformFunctionModel,
@@ -6851,6 +9653,7 @@ export {
6851
9653
  questionModel_exports as questionModel,
6852
9654
  questionSchemaDefinition,
6853
9655
  questionSchemaOptions,
9656
+ resolveRegistryWithInheritance,
6854
9657
  scoringConditionSchema,
6855
9658
  scoringRecommendationSchema,
6856
9659
  scoringRuleModel_exports as scoringRuleModel,
@@ -6861,6 +9664,9 @@ export {
6861
9664
  sectionQuestionRefSchema,
6862
9665
  sectionSchemaDefinition,
6863
9666
  sectionSchemaOptions,
9667
+ serviceCategories_v1_0_0_default as serviceCategoriesSot,
9668
+ serviceMechanisms_v1_0_0_default as serviceMechanismsSot,
9669
+ serviceStates_v1_0_0_default as serviceStatesSot,
6864
9670
  sortRelationshipsByPriority,
6865
9671
  visibilityRuleSchema
6866
9672
  };