@htilabs/platform-common-models 0.8.0 → 0.8.3
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.
- package/dist/constants/index.cjs +28 -5
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +27 -5
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +1173 -1
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2486 -1194
- package/dist/cvcs/index.d.ts +2486 -1194
- package/dist/cvcs/index.js +1165 -1
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +1348 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +182 -6
- package/dist/index.d.ts +182 -6
- package/dist/index.js +1331 -9
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-7dL99tZh.d.cts → platform-auth-BdnJUisw.d.cts} +16 -3
- package/dist/{platform-auth-7dL99tZh.d.ts → platform-auth-BdnJUisw.d.ts} +16 -3
- package/dist/schemas/index.cjs +25 -4
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +25 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +38 -6
- package/src/__tests__/cvc-sot-snapshot.test.ts +45 -7
- package/src/__tests__/cvc-structural.test.ts +9 -0
- package/src/constants/ic.ts +31 -3
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +9 -0
- package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +114 -0
- package/src/cvcs/htType.v1.0.0.json +78 -0
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +9 -0
- package/src/cvcs/index.ts +16 -0
- package/src/cvcs/livingSituation.v1.0.0.json +213 -0
- package/src/cvcs/recencyBand.v1.0.0.json +105 -0
- package/src/cvcs/relationshipConcern.v1.0.0.json +114 -0
- package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
- package/src/cvcs/serviceStates.v1.0.0.json +23 -1
- package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
- package/src/generated/cvc-enums.ts +195 -3
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cE as DataQualityValue, cM as FormStatusValue, cN as FormTypeValue, cP as IC13Category, cR as IC13Value, cS as IC22Value, cT as IC23Value, cU as IC24Value, cV as IC25Value, cW as IC49ReferralOutcomeValue, cX as IC49ReferralVerificationValue, cY as IC49Value, cZ as IC4Value, c$ as IC56Value, d0 as IC57Value, d2 as IC58Value, d3 as IC59Value, d4 as IC5Value,
|
|
1
|
+
import { eh as PlatformToolValue, cO as FunctionStatusValue, eE as RoleLevelValue, eP as ShareViewValue, ed as PermissionStateValue } from '../platform-auth-BdnJUisw.cjs';
|
|
2
|
+
export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cE as DataQualityValue, cM as FormStatusValue, cN as FormTypeValue, cP as IC13Category, cR as IC13Value, cS as IC22Value, cT as IC23Value, cU as IC24Value, cV as IC25Value, cW as IC49ReferralOutcomeValue, cX as IC49ReferralVerificationValue, cY as IC49Value, cZ as IC4Value, c$ as IC56Value, d0 as IC57Value, d2 as IC58Value, d3 as IC59Value, d4 as IC5Value, dV as IncidentInvolvementRoleValue, dW as IncidentParticipationRoleValue, dX as InteractionTypeValue, d_ as MinorAdultStatusValue, ee as PersonDisplayCategoryValue, ef as PersonRoleValue, eg as PersonTypeValue, en as QuestionFormatValue, eo as QuickStartTemplateId, eA as RecordStateValue, eC as RelationshipConcernValue, eD as RelationshipDynamicValue, eO as SessionStateValue, eQ as SubmissionStateValue, eU as UserStatusValue } from '../platform-auth-BdnJUisw.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @htilabs/platform-common-models — Platform Authorization Types
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cE as DataQualityValue, cM as FormStatusValue, cN as FormTypeValue, cP as IC13Category, cR as IC13Value, cS as IC22Value, cT as IC23Value, cU as IC24Value, cV as IC25Value, cW as IC49ReferralOutcomeValue, cX as IC49ReferralVerificationValue, cY as IC49Value, cZ as IC4Value, c$ as IC56Value, d0 as IC57Value, d2 as IC58Value, d3 as IC59Value, d4 as IC5Value,
|
|
1
|
+
import { eh as PlatformToolValue, cO as FunctionStatusValue, eE as RoleLevelValue, eP as ShareViewValue, ed as PermissionStateValue } from '../platform-auth-BdnJUisw.js';
|
|
2
|
+
export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cE as DataQualityValue, cM as FormStatusValue, cN as FormTypeValue, cP as IC13Category, cR as IC13Value, cS as IC22Value, cT as IC23Value, cU as IC24Value, cV as IC25Value, cW as IC49ReferralOutcomeValue, cX as IC49ReferralVerificationValue, cY as IC49Value, cZ as IC4Value, c$ as IC56Value, d0 as IC57Value, d2 as IC58Value, d3 as IC59Value, d4 as IC5Value, dV as IncidentInvolvementRoleValue, dW as IncidentParticipationRoleValue, dX as InteractionTypeValue, d_ as MinorAdultStatusValue, ee as PersonDisplayCategoryValue, ef as PersonRoleValue, eg as PersonTypeValue, en as QuestionFormatValue, eo as QuickStartTemplateId, eA as RecordStateValue, eC as RelationshipConcernValue, eD as RelationshipDynamicValue, eO as SessionStateValue, eQ as SubmissionStateValue, eU as UserStatusValue } from '../platform-auth-BdnJUisw.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @htilabs/platform-common-models — Platform Authorization Types
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"hash": "d50072fd907c64496508282036790f320d659ce4756bd48ad25487442e8997af"
|
|
8
8
|
},
|
|
9
9
|
"service_states": {
|
|
10
|
-
"count":
|
|
11
|
-
"hash": "
|
|
10
|
+
"count": 17,
|
|
11
|
+
"hash": "5dd12b9fecae79f0edc3d8ceba435d3d6ea2a9acddfea0ae4751b8eb3530d85e"
|
|
12
12
|
},
|
|
13
13
|
"service_categories": {
|
|
14
14
|
"count": 151,
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"hash": "8aae59799013ec2d66f0477b44e1b3d556d00a6b908b5d0e0117e4e9a41ce5aa"
|
|
92
92
|
},
|
|
93
93
|
"highest_education_level_completed": {
|
|
94
|
-
"count":
|
|
95
|
-
"hash": "
|
|
94
|
+
"count": 13,
|
|
95
|
+
"hash": "44913932f5ae942b8512f89b3f354aad83c1d0e99e9d3f848dda49fb5cfb50f0"
|
|
96
96
|
},
|
|
97
97
|
"preferred_contact_method": {
|
|
98
98
|
"count": 4,
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
"hash": "f78d52bf1960fb88e12cefb895a3defbdba971abda49618216460ae330f4addb"
|
|
164
164
|
},
|
|
165
165
|
"income_benefits_sources": {
|
|
166
|
-
"count":
|
|
167
|
-
"hash": "
|
|
166
|
+
"count": 39,
|
|
167
|
+
"hash": "e5995e3f865bfa0de1a89ba348c180e39195810aa4cbf2395e3177f9a4d56d05"
|
|
168
168
|
},
|
|
169
169
|
"enrollment_application_status": {
|
|
170
170
|
"count": 12,
|
|
@@ -477,6 +477,38 @@
|
|
|
477
477
|
"visa_type": {
|
|
478
478
|
"count": 40,
|
|
479
479
|
"hash": "df39913ea5401d187ba4b91b3f9b5d7c40811c8bbe4bdf4ae97ae2175a3cecc5"
|
|
480
|
+
},
|
|
481
|
+
"living_situation": {
|
|
482
|
+
"count": 22,
|
|
483
|
+
"hash": "a2cf23d69fd349c4091a3a7d0f3af7ea786a78b8fd3f7b34db97abbfa5adbc0b"
|
|
484
|
+
},
|
|
485
|
+
"service_audience": {
|
|
486
|
+
"count": 9,
|
|
487
|
+
"hash": "24e54f5cea374c1b7b743db491a8504c3c43f1c3a2e1cd6077fca65474e70682"
|
|
488
|
+
},
|
|
489
|
+
"hmis_relationship_to_hoh": {
|
|
490
|
+
"count": 9,
|
|
491
|
+
"hash": "93b7a0f327edbc77553c7ebee01f3ac59e1fe9b939cc930588d88704efd8274f"
|
|
492
|
+
},
|
|
493
|
+
"victim_abuse_types": {
|
|
494
|
+
"count": 29,
|
|
495
|
+
"hash": "03ce0a04e8a2ea49b39aaa45a7b11a2a9feb457637c6c6620a46fcb83e041442"
|
|
496
|
+
},
|
|
497
|
+
"ht_type": {
|
|
498
|
+
"count": 7,
|
|
499
|
+
"hash": "06791c74cc85afdf167e4222b0d0b87a765d449ab936efe1412429d4e2765370"
|
|
500
|
+
},
|
|
501
|
+
"relationship_concern": {
|
|
502
|
+
"count": 11,
|
|
503
|
+
"hash": "03e18352e1ffb13a4e9b63e1f4043923f1da7e0153649db6940d0bb2653917d8"
|
|
504
|
+
},
|
|
505
|
+
"recency_band": {
|
|
506
|
+
"count": 10,
|
|
507
|
+
"hash": "b215354a1492256e7b235bcfcf96988227105458b0eb9e49bbea42386b5d4e3c"
|
|
508
|
+
},
|
|
509
|
+
"housing_subsidy_types": {
|
|
510
|
+
"count": 11,
|
|
511
|
+
"hash": "79fdaa8ff5c9eed6131e9aa81449dd0ee674031c09e4ba5b56da122e8cba8272"
|
|
480
512
|
}
|
|
481
513
|
}
|
|
482
514
|
}
|
|
@@ -61,8 +61,10 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
61
61
|
// Spec §8.3 — "Entries: 4" + 4 missingness = 8
|
|
62
62
|
{ file: "serviceMechanisms.v1.0.0.json", domain: "service_mechanisms", expectedCount: 8 },
|
|
63
63
|
// Spec §8.2 — "Entries: 10" + 4 missingness = 14; +1 (`unable_other_reason`
|
|
64
|
-
// additive per Thread Phase-0 SOT Block D) = 15
|
|
65
|
-
|
|
64
|
+
// additive per Thread Phase-0 SOT Block D) = 15; +2 PROVISIONAL attempt-reason
|
|
65
|
+
// buckets (`unable_to_provide_service_fit`, `unable_to_provide_access_barrier`)
|
|
66
|
+
// for the Thread th-epqet.3 7-bucket lifecycle = 17.
|
|
67
|
+
{ file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 17 },
|
|
66
68
|
// Spec §8.1 — "Entries: 147" + 4 missingness = 151
|
|
67
69
|
{ file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
|
|
68
70
|
// CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
|
|
@@ -225,12 +227,13 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
225
227
|
domain: "contact_safety_status",
|
|
226
228
|
expectedCount: 6,
|
|
227
229
|
},
|
|
228
|
-
// CVC-180 — 7 flat Level-1 Census/ACS attainment entries + 1
|
|
229
|
-
//
|
|
230
|
+
// CVC-180 — 7 flat Level-1 Census/ACS attainment entries + 1 additive
|
|
231
|
+
// `trade_vocational` non-degree credential leaf (180-008) + 1 missingness
|
|
232
|
+
// root + 4 canonical missingness children (includes PNA) = 13.
|
|
230
233
|
{
|
|
231
234
|
file: "highestEducationLevelCompleted.v1.0.0.json",
|
|
232
235
|
domain: "highest_education_level_completed",
|
|
233
|
-
expectedCount:
|
|
236
|
+
expectedCount: 13,
|
|
234
237
|
},
|
|
235
238
|
// CVC-185 — 4 flat preferred-contact-method entries. No missingness entries
|
|
236
239
|
// (variant 0 per Notion: absence encodes "no preference") = 4.
|
|
@@ -363,11 +366,12 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
363
366
|
domain: "referral_entity_category",
|
|
364
367
|
expectedCount: 43,
|
|
365
368
|
},
|
|
366
|
-
// CVC-171 — 5 L1 type groups + 28 L2 source codes +
|
|
369
|
+
// CVC-171 — 5 L1 type groups + 28 L2 source codes + 1 additive L1
|
|
370
|
+
// `victim_compensation` group leaf (171-006) + 5 missingness = 39.
|
|
367
371
|
{
|
|
368
372
|
file: "incomeBenefitsSources.v1.0.0.json",
|
|
369
373
|
domain: "income_benefits_sources",
|
|
370
|
-
expectedCount:
|
|
374
|
+
expectedCount: 39,
|
|
371
375
|
},
|
|
372
376
|
// CVC-175 — 8 flat Level-1 enrollment lifecycle statuses + 1 missingness
|
|
373
377
|
// root + 3 canonical missingness children = 12.
|
|
@@ -543,6 +547,40 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
543
547
|
{ file: "threadType.v1.0.0.json", domain: "thread_type", expectedCount: 9 },
|
|
544
548
|
{ file: "verificationStatus.v1.0.0.json", domain: "verification_status", expectedCount: 7 },
|
|
545
549
|
{ file: "visaType.v1.0.0.json", domain: "visa_type", expectedCount: 40 },
|
|
550
|
+
// ─── Net-new additive domains (CVC author missing-domains batch) ───
|
|
551
|
+
// CVC-192 living_situation — 18 HMIS living-situation values + 1
|
|
552
|
+
// missingness root + 3 canonical missingness children = 22.
|
|
553
|
+
{ file: "livingSituation.v1.0.0.json", domain: "living_situation", expectedCount: 22 },
|
|
554
|
+
// CVC-45 service_audience — 5 audience values (primary_victim,
|
|
555
|
+
// eligible_family_member, third_party, offender, personnel) + 1
|
|
556
|
+
// missingness root + 3 canonical missingness children = 9.
|
|
557
|
+
{ file: "serviceAudience.v1.0.0.json", domain: "service_audience", expectedCount: 9 },
|
|
558
|
+
// CVC-129 hmis_relationship_to_hoh — 5 HMIS 3.15 relationship codes + 1
|
|
559
|
+
// missingness root + 3 canonical missingness children = 9. Entries carry
|
|
560
|
+
// an `hmisCode` passthrough field (HMIS numerics 1/2/3/4/5/99).
|
|
561
|
+
{ file: "hmisRelationshipToHoh.v1.0.0.json", domain: "hmis_relationship_to_hoh", expectedCount: 9 },
|
|
562
|
+
// CVC-73 victim_abuse_types — 25 non-HT VOCA abuse types + 1 missingness
|
|
563
|
+
// root + 3 canonical missingness children = 29.
|
|
564
|
+
{ file: "victimAbuseTypes.v1.0.0.json", domain: "victim_abuse_types", expectedCount: 29 },
|
|
565
|
+
// CVC-72 ht_type — 3 substantive trafficking types (sex, labor,
|
|
566
|
+
// sex_and_labor; `none` dropped per Notion 4-code set) + 1 missingness
|
|
567
|
+
// root + 3 canonical missingness children = 7.
|
|
568
|
+
{ file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 7 },
|
|
569
|
+
// PROVISIONAL CVC-231 relationship_concern — 7 TRA relationship-concern
|
|
570
|
+
// codes + 1 missingness root + 3 canonical missingness children = 11.
|
|
571
|
+
// CVC number is PROVISIONAL pending codebook-session ratification.
|
|
572
|
+
{ file: "relationshipConcern.v1.0.0.json", domain: "relationship_concern", expectedCount: 11 },
|
|
573
|
+
// PROVISIONAL CVC-232 recency_band — 6 time-window bands (within_3_months,
|
|
574
|
+
// months_3_to_6, months_6_to_12, one_year_or_more, years_3_to_10,
|
|
575
|
+
// ten_plus_years) + 1 missingness root + 3 canonical missingness children = 10.
|
|
576
|
+
// CVC number is PROVISIONAL pending codebook-session ratification.
|
|
577
|
+
{ file: "recencyBand.v1.0.0.json", domain: "recency_band", expectedCount: 10 },
|
|
578
|
+
// PROVISIONAL CVC-233 housing_subsidy_types — 7 HMIS-aligned subsidy types
|
|
579
|
+
// (housing_choice_voucher, public_housing, project_based_rental_assistance,
|
|
580
|
+
// permanent_supportive_housing, rapid_rehousing_assistance,
|
|
581
|
+
// other_housing_subsidy, no_subsidy) + 1 missingness root + 3 canonical
|
|
582
|
+
// missingness children = 11. CVC number is PROVISIONAL pending ratification.
|
|
583
|
+
{ file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 11 },
|
|
546
584
|
] as const;
|
|
547
585
|
|
|
548
586
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
@@ -168,6 +168,15 @@ const SOT_FILES: readonly SotFile[] = [
|
|
|
168
168
|
{ file: "threadType.v1.0.0.json", expectedDomain: "thread_type" },
|
|
169
169
|
{ file: "verificationStatus.v1.0.0.json", expectedDomain: "verification_status" },
|
|
170
170
|
{ file: "visaType.v1.0.0.json", expectedDomain: "visa_type" },
|
|
171
|
+
// ─── Net-new additive domains (CVC author missing-domains batch) ───
|
|
172
|
+
{ file: "livingSituation.v1.0.0.json", expectedDomain: "living_situation" },
|
|
173
|
+
{ file: "serviceAudience.v1.0.0.json", expectedDomain: "service_audience" },
|
|
174
|
+
{ file: "hmisRelationshipToHoh.v1.0.0.json", expectedDomain: "hmis_relationship_to_hoh" },
|
|
175
|
+
{ file: "victimAbuseTypes.v1.0.0.json", expectedDomain: "victim_abuse_types" },
|
|
176
|
+
{ file: "htType.v1.0.0.json", expectedDomain: "ht_type" },
|
|
177
|
+
{ file: "relationshipConcern.v1.0.0.json", expectedDomain: "relationship_concern" },
|
|
178
|
+
{ file: "recencyBand.v1.0.0.json", expectedDomain: "recency_band" },
|
|
179
|
+
{ file: "housingSubsidyTypes.v1.0.0.json", expectedDomain: "housing_subsidy_types" },
|
|
171
180
|
] as const;
|
|
172
181
|
|
|
173
182
|
function loadSot(file: string): unknown {
|
package/src/constants/ic.ts
CHANGED
|
@@ -701,13 +701,27 @@ export const IC_56_SERVICE_DELIVERY_CHANNEL = {
|
|
|
701
701
|
PHONE: 3,
|
|
702
702
|
EMAIL_TEXT_CHAT: 4,
|
|
703
703
|
VIRTUAL: 5,
|
|
704
|
+
// PROVISIONAL — group delivery channels surfaced by the Thread canonical
|
|
705
|
+
// "How was the service delivered?" picker. Authored ahead of codebook /
|
|
706
|
+
// Notion ratification; flagged provisional pending SOT sign-off.
|
|
707
|
+
GROUP_IN_PERSON: 6,
|
|
708
|
+
GROUP_REMOTE: 7,
|
|
704
709
|
} as const;
|
|
705
710
|
|
|
706
711
|
export type IC56Value =
|
|
707
712
|
(typeof IC_56_SERVICE_DELIVERY_CHANNEL)[keyof typeof IC_56_SERVICE_DELIVERY_CHANNEL];
|
|
708
713
|
|
|
709
|
-
/** Level 1 values only (excludes missingness codes). */
|
|
710
|
-
export type IC56ChannelValue = 1 | 2 | 3 | 4 | 5;
|
|
714
|
+
/** Level 1 values only (excludes missingness codes). 6/7 are PROVISIONAL. */
|
|
715
|
+
export type IC56ChannelValue = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* PROVISIONAL IC-56 channel values pending codebook ratification.
|
|
719
|
+
* Consumers may gate on this set to surface a "draft" affordance.
|
|
720
|
+
*/
|
|
721
|
+
export const IC_56_PROVISIONAL_CHANNELS: ReadonlySet<number> = new Set([
|
|
722
|
+
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
723
|
+
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
|
|
724
|
+
]);
|
|
711
725
|
|
|
712
726
|
export const IC_56_LABELS: Record<IC56Value, string> = {
|
|
713
727
|
[IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
|
|
@@ -718,6 +732,8 @@ export const IC_56_LABELS: Record<IC56Value, string> = {
|
|
|
718
732
|
[IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
|
|
719
733
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
|
|
720
734
|
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual",
|
|
735
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
|
|
736
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)",
|
|
721
737
|
};
|
|
722
738
|
|
|
723
739
|
export const IC_56_DESCRIPTIONS: Record<IC56Value, string> = {
|
|
@@ -734,6 +750,10 @@ export const IC_56_DESCRIPTIONS: Record<IC56Value, string> = {
|
|
|
734
750
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]:
|
|
735
751
|
"Email, text message, or chat",
|
|
736
752
|
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call",
|
|
753
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]:
|
|
754
|
+
"Group session delivered in person (support group, class, workshop)",
|
|
755
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]:
|
|
756
|
+
"Group session delivered remotely (virtual support group, webinar)",
|
|
737
757
|
};
|
|
738
758
|
|
|
739
759
|
/**
|
|
@@ -751,7 +771,7 @@ export function isIC56Missingness(code: number): boolean {
|
|
|
751
771
|
* @returns True if the code represents an actual delivery channel
|
|
752
772
|
*/
|
|
753
773
|
export function isIC56ValidChannel(code: number): code is IC56ChannelValue {
|
|
754
|
-
return code >= 1 && code <=
|
|
774
|
+
return code >= 1 && code <= 7;
|
|
755
775
|
}
|
|
756
776
|
|
|
757
777
|
/** Options array for dropdown/radio components (Level 1 only). */
|
|
@@ -776,6 +796,14 @@ export const IC_56_OPTIONS = [
|
|
|
776
796
|
value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
|
|
777
797
|
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL],
|
|
778
798
|
},
|
|
799
|
+
{
|
|
800
|
+
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
801
|
+
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON],
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
|
|
805
|
+
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE],
|
|
806
|
+
},
|
|
779
807
|
] as const;
|
|
780
808
|
|
|
781
809
|
// ─── IC-57: Service Audience / Beneficiary ──────────────────────────
|
|
@@ -70,6 +70,15 @@
|
|
|
70
70
|
"childCodes": [],
|
|
71
71
|
"definition": "Completed a master's, doctoral, or professional degree (MA, MS, MBA, JD, MD, PhD, or equivalent). Aligns with Census/ACS 'Graduate or professional degree'."
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"code": "180-008-000-000-000-000-000",
|
|
75
|
+
"key": "trade_vocational",
|
|
76
|
+
"title": "Trade or vocational credential",
|
|
77
|
+
"selectable": true,
|
|
78
|
+
"parentCode": null,
|
|
79
|
+
"childCodes": [],
|
|
80
|
+
"definition": "Completed a trade, vocational, or technical credential (apprenticeship, licensure, or postsecondary non-degree award) rather than an academic degree."
|
|
81
|
+
},
|
|
73
82
|
{
|
|
74
83
|
"code": "180-000-000-000-000-000-000",
|
|
75
84
|
"key": "missingness_root",
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "hmis_relationship_to_hoh",
|
|
3
|
+
"name": "Core HMIS Relationship to Head of Household",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Relationship to head of household"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "129-000-000-000-000-000-000",
|
|
12
|
+
"key": "missingness_root",
|
|
13
|
+
"title": "Unknown, Redacted, or Missing",
|
|
14
|
+
"selectable": false,
|
|
15
|
+
"parentCode": null,
|
|
16
|
+
"childCodes": [
|
|
17
|
+
"129-000-000-000-000-000-001",
|
|
18
|
+
"129-000-000-000-000-000-002",
|
|
19
|
+
"129-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "129-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown / data not collected",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "129-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "Missingness sentinel per HMIS 3.15 (HMIS code 99 is the canonical 'Data not collected'). Used when the relationship-to-anchor does not carry a usable mapping signal or the question has not been asked.",
|
|
31
|
+
"hmisCode": 99
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"code": "129-000-000-000-000-000-002",
|
|
35
|
+
"key": "anonymous",
|
|
36
|
+
"title": "Anonymous / declined to answer",
|
|
37
|
+
"selectable": true,
|
|
38
|
+
"parentCode": "129-000-000-000-000-000-000",
|
|
39
|
+
"childCodes": [],
|
|
40
|
+
"definition": "The relationship to the head of household may be withheld by preference or due to redaction; identity is anonymous or redacted.",
|
|
41
|
+
"hmisCode": null
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "129-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "129-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the relationship to the head of household.",
|
|
51
|
+
"hmisCode": 99
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"code": "129-001-000-000-000-000-000",
|
|
55
|
+
"key": "self_hoh",
|
|
56
|
+
"title": "Self - head of household",
|
|
57
|
+
"selectable": true,
|
|
58
|
+
"parentCode": null,
|
|
59
|
+
"childCodes": [],
|
|
60
|
+
"definition": "The person IS the head of household. Canonical 'self' code for HMIS reporting; every household has exactly one HoH per HMIS 3.15.",
|
|
61
|
+
"hmisCode": 1
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"code": "129-002-000-000-000-000-000",
|
|
65
|
+
"key": "child_of_hoh",
|
|
66
|
+
"title": "Head of household's child",
|
|
67
|
+
"selectable": true,
|
|
68
|
+
"parentCode": null,
|
|
69
|
+
"childCodes": [],
|
|
70
|
+
"definition": "Member is a biological / adopted / step / foster / kinship child of the head of household. HMIS treats all child relationships as the same code.",
|
|
71
|
+
"hmisCode": 2
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"code": "129-003-000-000-000-000-000",
|
|
75
|
+
"key": "spouse_or_partner_of_hoh",
|
|
76
|
+
"title": "Head of household's spouse or partner",
|
|
77
|
+
"selectable": true,
|
|
78
|
+
"parentCode": null,
|
|
79
|
+
"childCodes": [],
|
|
80
|
+
"definition": "Member is the spouse or romantic partner of the head of household. HMIS 3.15 'partner' explicitly covers unmarried domestic partners.",
|
|
81
|
+
"hmisCode": 3
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"code": "129-004-000-000-000-000-000",
|
|
85
|
+
"key": "other_relative_of_hoh",
|
|
86
|
+
"title": "Head of household's other relation",
|
|
87
|
+
"selectable": true,
|
|
88
|
+
"parentCode": null,
|
|
89
|
+
"childCodes": [],
|
|
90
|
+
"definition": "Member is a family relation OTHER than spouse/partner or child (e.g., parent, sibling, grandparent, aunt/uncle, cousin, in-law). HMIS 3.15 collapses all non-spouse / non-child family ties into this single code.",
|
|
91
|
+
"hmisCode": 4
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"code": "129-005-000-000-000-000-000",
|
|
95
|
+
"key": "non_relation_member",
|
|
96
|
+
"title": "Other: non-relation member",
|
|
97
|
+
"selectable": true,
|
|
98
|
+
"parentCode": null,
|
|
99
|
+
"childCodes": [],
|
|
100
|
+
"definition": "Member shares the household but is not a family relation (e.g., roommate, housemate, friend, live-in caregiver, au pair, boarder).",
|
|
101
|
+
"hmisCode": 5
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "housing_subsidy_types",
|
|
3
|
+
"name": "Core Housing Subsidy Types (PROVISIONAL CVC-233 — pending codebook ratification)",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Housing subsidy type"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "233-000-000-000-000-000-000",
|
|
12
|
+
"key": "missingness_root",
|
|
13
|
+
"title": "Unknown, Redacted, or Missing",
|
|
14
|
+
"selectable": false,
|
|
15
|
+
"parentCode": null,
|
|
16
|
+
"childCodes": [
|
|
17
|
+
"233-000-000-000-000-000-001",
|
|
18
|
+
"233-000-000-000-000-000-002",
|
|
19
|
+
"233-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "233-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown / not captured",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "233-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "The housing subsidy type is unknown or cannot be determined from the available information."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "233-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous / declined to answer",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "233-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "The housing subsidy type may be withheld by preference or due to redaction; identity is anonymous or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "233-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "233-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "No attempt was made to collect the housing subsidy type."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "233-001-000-000-000-000-000",
|
|
52
|
+
"key": "housing_choice_voucher",
|
|
53
|
+
"title": "Housing Choice Voucher (Section 8 HCV)",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "Tenant-based rental assistance through the HUD Housing Choice Voucher program (Section 8 HCV), which subsidizes rent in private-market units chosen by the tenant."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "233-002-000-000-000-000-000",
|
|
61
|
+
"key": "public_housing",
|
|
62
|
+
"title": "Public housing",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Residence in a public housing unit owned and operated by a public housing authority (PHA), with rent set as a subsidized share of household income."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "233-003-000-000-000-000-000",
|
|
70
|
+
"key": "project_based_rental_assistance",
|
|
71
|
+
"title": "Project-based rental assistance",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "Rental assistance tied to a specific housing development or unit (e.g. project-based Section 8, project-based vouchers, or other site-based subsidy) rather than to the tenant."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"code": "233-004-000-000-000-000-000",
|
|
79
|
+
"key": "permanent_supportive_housing",
|
|
80
|
+
"title": "Permanent supportive housing (PSH)",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "Permanent housing that pairs a long-term rental subsidy with voluntary supportive services for people with disabilities or chronic homelessness (HUD CoC PSH)."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "233-005-000-000-000-000-000",
|
|
88
|
+
"key": "rapid_rehousing_assistance",
|
|
89
|
+
"title": "Rapid re-housing assistance",
|
|
90
|
+
"selectable": true,
|
|
91
|
+
"parentCode": null,
|
|
92
|
+
"childCodes": [],
|
|
93
|
+
"definition": "Time-limited rental assistance and housing-stabilization services to help a household quickly exit homelessness into permanent housing (HUD CoC/ESG rapid re-housing)."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"code": "233-006-000-000-000-000-000",
|
|
97
|
+
"key": "other_housing_subsidy",
|
|
98
|
+
"title": "Other housing subsidy",
|
|
99
|
+
"selectable": true,
|
|
100
|
+
"parentCode": null,
|
|
101
|
+
"childCodes": [],
|
|
102
|
+
"definition": "A housing subsidy or rental-assistance program not covered by the other codes (e.g. state or local subsidy, HOME TBRA, or other program). Record program name and free-text detail alongside this code to preserve analytic value."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code": "233-007-000-000-000-000-000",
|
|
106
|
+
"key": "no_subsidy",
|
|
107
|
+
"title": "No housing subsidy",
|
|
108
|
+
"selectable": true,
|
|
109
|
+
"parentCode": null,
|
|
110
|
+
"childCodes": [],
|
|
111
|
+
"definition": "The household receives no housing subsidy or rental assistance (housing costs are paid in full without a subsidy)."
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "ht_type",
|
|
3
|
+
"name": "Core Human Trafficking Type",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Trafficking type"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "072-000-000-000-000-000-000",
|
|
12
|
+
"key": "missingness_root",
|
|
13
|
+
"title": "Unknown, Redacted, or Missing",
|
|
14
|
+
"selectable": false,
|
|
15
|
+
"parentCode": null,
|
|
16
|
+
"childCodes": [
|
|
17
|
+
"072-000-000-000-000-000-001",
|
|
18
|
+
"072-000-000-000-000-000-002",
|
|
19
|
+
"072-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "072-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "072-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "The trafficking type is unknown or cannot be determined from the available information."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "072-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous / declined to answer",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "072-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "The trafficking type may be withheld by preference or due to redaction; identity is anonymous or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "072-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "072-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "No attempt was made to collect the trafficking type."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "072-001-000-000-000-000-000",
|
|
52
|
+
"key": "sex",
|
|
53
|
+
"title": "Sex Trafficking",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "Sex trafficking victimization. Commercial sex acts induced by force, fraud, or coercion, or involving a minor, as asserted by the source at their stated confidence level."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "072-002-000-000-000-000-000",
|
|
61
|
+
"key": "labor",
|
|
62
|
+
"title": "Labor Trafficking",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Labor trafficking victimization. Forced labor or services obtained through force, fraud, or coercion, as asserted by the source at their stated confidence level."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "072-003-000-000-000-000-000",
|
|
70
|
+
"key": "sex_and_labor",
|
|
71
|
+
"title": "Sex and Labor Trafficking",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "Both sex trafficking and labor trafficking are asserted to apply, either concurrently or across the relevant time window. Use when credible assertions exist for both sex and labor trafficking for the same subject / time context."
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -387,6 +387,15 @@
|
|
|
387
387
|
"parentCode": "171-005-000-000-000-000-000",
|
|
388
388
|
"childCodes": [],
|
|
389
389
|
"definition": "Income received as a stipend, scholarship refund, training allowance, or other education-related payment that can function as income for living expenses. Funder-specific exclusions may apply (e.g., SSVF)."
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"code": "171-006-000-000-000-000-000",
|
|
393
|
+
"key": "victim_compensation",
|
|
394
|
+
"title": "Crime victim compensation",
|
|
395
|
+
"selectable": true,
|
|
396
|
+
"parentCode": null,
|
|
397
|
+
"childCodes": [],
|
|
398
|
+
"definition": "Income or benefits from a state or federal crime-victim compensation program (e.g. VOCA-funded victim compensation)."
|
|
390
399
|
}
|
|
391
400
|
]
|
|
392
401
|
}
|
package/src/cvcs/index.ts
CHANGED
|
@@ -138,6 +138,14 @@ import threadTypeSot from "./threadType.v1.0.0.json" with { type: "json" };
|
|
|
138
138
|
import signatureTypeSot from "./signatureType.v1.0.0.json" with { type: "json" };
|
|
139
139
|
import verificationStatusSot from "./verificationStatus.v1.0.0.json" with { type: "json" };
|
|
140
140
|
import visaTypeSot from "./visaType.v1.0.0.json" with { type: "json" };
|
|
141
|
+
import livingSituationSot from "./livingSituation.v1.0.0.json" with { type: "json" };
|
|
142
|
+
import serviceAudienceSot from "./serviceAudience.v1.0.0.json" with { type: "json" };
|
|
143
|
+
import hmisRelationshipToHohSot from "./hmisRelationshipToHoh.v1.0.0.json" with { type: "json" };
|
|
144
|
+
import victimAbuseTypesSot from "./victimAbuseTypes.v1.0.0.json" with { type: "json" };
|
|
145
|
+
import htTypeSot from "./htType.v1.0.0.json" with { type: "json" };
|
|
146
|
+
import relationshipConcernSot from "./relationshipConcern.v1.0.0.json" with { type: "json" };
|
|
147
|
+
import recencyBandSot from "./recencyBand.v1.0.0.json" with { type: "json" };
|
|
148
|
+
import housingSubsidyTypesSot from "./housingSubsidyTypes.v1.0.0.json" with { type: "json" };
|
|
141
149
|
|
|
142
150
|
export {
|
|
143
151
|
serviceCategoriesSot,
|
|
@@ -259,4 +267,12 @@ export {
|
|
|
259
267
|
signatureTypeSot,
|
|
260
268
|
verificationStatusSot,
|
|
261
269
|
visaTypeSot,
|
|
270
|
+
livingSituationSot,
|
|
271
|
+
serviceAudienceSot,
|
|
272
|
+
hmisRelationshipToHohSot,
|
|
273
|
+
victimAbuseTypesSot,
|
|
274
|
+
htTypeSot,
|
|
275
|
+
relationshipConcernSot,
|
|
276
|
+
recencyBandSot,
|
|
277
|
+
housingSubsidyTypesSot,
|
|
262
278
|
};
|