@htilabs/platform-common-models 0.12.3 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cvcs/index.cjs +750 -148
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1019 -408
- package/dist/cvcs/index.d.ts +1019 -408
- package/dist/cvcs/index.js +750 -148
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +18 -16
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +21 -19
- package/dist/enums/index.d.ts +21 -19
- package/dist/enums/index.js +18 -16
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +768 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +768 -164
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
- package/src/__tests__/core-information-scope-invariant.test.ts +85 -3
- package/src/__tests__/cvc-sot-snapshot.test.ts +11 -7
- package/src/__tests__/cvc-structural.test.ts +1 -1
- package/src/__tests__/location-type-routing-invariant.test.ts +202 -0
- package/src/__tests__/victim-abuse-types-canon.test.ts +301 -0
- package/src/cvcs/coreInformationScope.v1.0.0.json +23 -6
- package/src/cvcs/index.ts +4 -1
- package/src/cvcs/locationType.v1.0.0.json +131 -16
- package/src/cvcs/victimAbuseTypes.v1.1.0.json +744 -0
- package/src/generated/cvc-enums.ts +21 -19
- package/src/cvcs/victimAbuseTypes.v1.0.0.json +0 -276
package/dist/enums/index.d.cts
CHANGED
|
@@ -1266,7 +1266,7 @@ declare const EmploymentStatusKeys: {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;
|
|
1268
1268
|
/**
|
|
1269
|
-
* Key → positional code map for the `location_type` CVC domain.
|
|
1269
|
+
* Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.
|
|
1270
1270
|
*
|
|
1271
1271
|
* Domain: `location_type` · Version: 1.0.0 · Entries: 17
|
|
1272
1272
|
*/
|
|
@@ -3202,38 +3202,39 @@ type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;
|
|
|
3202
3202
|
/**
|
|
3203
3203
|
* Key → positional code map for the `victim_abuse_types` CVC domain.
|
|
3204
3204
|
*
|
|
3205
|
-
* Domain: `victim_abuse_types` · Version: 1.
|
|
3205
|
+
* Domain: `victim_abuse_types` · Version: 1.1.0 · Entries: 30
|
|
3206
3206
|
*/
|
|
3207
3207
|
declare const VictimAbuseTypesKeys: {
|
|
3208
|
-
readonly missingness_root: "073-000-000-000-000-000-000";
|
|
3209
|
-
readonly unknown: "073-000-000-000-000-000-001";
|
|
3210
|
-
readonly anonymous: "073-000-000-000-000-000-002";
|
|
3211
|
-
readonly data_not_collected: "073-000-000-000-000-000-003";
|
|
3212
|
-
readonly adult_physical_assault: "073-001-000-000-000-000-000";
|
|
3213
|
-
readonly adult_sexual_assault: "073-002-000-000-000-000-000";
|
|
3214
3208
|
readonly arson: "073-003-000-000-000-000-000";
|
|
3215
3209
|
readonly bullying: "073-004-000-000-000-000-000";
|
|
3216
3210
|
readonly burglary: "073-005-000-000-000-000-000";
|
|
3217
|
-
readonly child_physical_abuse_or_neglect: "073-006-000-000-000-000-000";
|
|
3218
3211
|
readonly child_pornography: "073-007-000-000-000-000-000";
|
|
3219
|
-
readonly
|
|
3220
|
-
readonly
|
|
3221
|
-
readonly
|
|
3222
|
-
readonly elder_abuse: "073-011-000-000-000-000-000";
|
|
3212
|
+
readonly domestic_family_violence: "073-009-000-000-000-000-000";
|
|
3213
|
+
readonly dui_dwi_incident: "073-010-000-000-000-000-000";
|
|
3214
|
+
readonly elder_abuse_or_neglect: "073-011-000-000-000-000-000";
|
|
3223
3215
|
readonly gang_violence: "073-012-000-000-000-000-000";
|
|
3224
3216
|
readonly hate_crime: "073-013-000-000-000-000-000";
|
|
3225
3217
|
readonly homicide: "073-014-000-000-000-000-000";
|
|
3226
|
-
readonly
|
|
3218
|
+
readonly identity_theft_fraud_financial_crime: "073-015-000-000-000-000-000";
|
|
3227
3219
|
readonly kidnapping_custodial: "073-016-000-000-000-000-000";
|
|
3228
3220
|
readonly kidnapping_noncustodial: "073-017-000-000-000-000-000";
|
|
3229
3221
|
readonly mass_violence: "073-018-000-000-000-000-000";
|
|
3230
|
-
readonly
|
|
3231
|
-
readonly
|
|
3222
|
+
readonly other_voca_ovc: "073-019-000-000-000-000-000";
|
|
3223
|
+
readonly other_vehicular_victimization: "073-020-000-000-000-000-000";
|
|
3232
3224
|
readonly robbery: "073-021-000-000-000-000-000";
|
|
3233
3225
|
readonly stalking_harassment: "073-022-000-000-000-000-000";
|
|
3234
|
-
readonly
|
|
3226
|
+
readonly survivor_of_homicide_victim: "073-023-000-000-000-000-000";
|
|
3235
3227
|
readonly teen_dating_victimization: "073-024-000-000-000-000-000";
|
|
3236
3228
|
readonly terrorism: "073-025-000-000-000-000-000";
|
|
3229
|
+
readonly sexual_abuse_assault: "073-026-000-000-000-000-000";
|
|
3230
|
+
readonly physical_abuse_or_neglect: "073-027-000-000-000-000-000";
|
|
3231
|
+
readonly physical_assault: "073-028-000-000-000-000-000";
|
|
3232
|
+
readonly commercial_sexual_exploitation_minor: "073-029-000-000-000-000-000";
|
|
3233
|
+
readonly sexual_exploitation: "073-030-000-000-000-000-000";
|
|
3234
|
+
readonly labor_exploitation: "073-031-000-000-000-000-000";
|
|
3235
|
+
readonly female_genital_mutilation_cutting: "073-032-000-000-000-000-000";
|
|
3236
|
+
readonly forced_marriage: "073-033-000-000-000-000-000";
|
|
3237
|
+
readonly cyber_crimes: "073-034-000-000-000-000-000";
|
|
3237
3238
|
};
|
|
3238
3239
|
type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
|
|
3239
3240
|
/**
|
|
@@ -3788,9 +3789,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3788
3789
|
};
|
|
3789
3790
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3790
3791
|
/**
|
|
3791
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3792
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
|
|
3792
3793
|
*
|
|
3793
|
-
* Domain: `core_information_scope` · Version: 1.0.0 · Entries:
|
|
3794
|
+
* Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
|
|
3794
3795
|
*/
|
|
3795
3796
|
declare const CoreInformationScopeKeys: {
|
|
3796
3797
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3825,6 +3826,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3825
3826
|
readonly contact_info: "236-003-001-000-000-000-000";
|
|
3826
3827
|
readonly safe_locations: "236-003-002-000-000-000-000";
|
|
3827
3828
|
readonly priorities_safety: "236-003-003-000-000-000-000";
|
|
3829
|
+
readonly encounter_location: "236-003-004-000-000-000-000";
|
|
3828
3830
|
readonly services: "236-004-000-000-000-000-000";
|
|
3829
3831
|
readonly contact_history: "236-004-001-000-000-000-000";
|
|
3830
3832
|
readonly service_history: "236-004-002-000-000-000-000";
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -1266,7 +1266,7 @@ declare const EmploymentStatusKeys: {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;
|
|
1268
1268
|
/**
|
|
1269
|
-
* Key → positional code map for the `location_type` CVC domain.
|
|
1269
|
+
* Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.
|
|
1270
1270
|
*
|
|
1271
1271
|
* Domain: `location_type` · Version: 1.0.0 · Entries: 17
|
|
1272
1272
|
*/
|
|
@@ -3202,38 +3202,39 @@ type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;
|
|
|
3202
3202
|
/**
|
|
3203
3203
|
* Key → positional code map for the `victim_abuse_types` CVC domain.
|
|
3204
3204
|
*
|
|
3205
|
-
* Domain: `victim_abuse_types` · Version: 1.
|
|
3205
|
+
* Domain: `victim_abuse_types` · Version: 1.1.0 · Entries: 30
|
|
3206
3206
|
*/
|
|
3207
3207
|
declare const VictimAbuseTypesKeys: {
|
|
3208
|
-
readonly missingness_root: "073-000-000-000-000-000-000";
|
|
3209
|
-
readonly unknown: "073-000-000-000-000-000-001";
|
|
3210
|
-
readonly anonymous: "073-000-000-000-000-000-002";
|
|
3211
|
-
readonly data_not_collected: "073-000-000-000-000-000-003";
|
|
3212
|
-
readonly adult_physical_assault: "073-001-000-000-000-000-000";
|
|
3213
|
-
readonly adult_sexual_assault: "073-002-000-000-000-000-000";
|
|
3214
3208
|
readonly arson: "073-003-000-000-000-000-000";
|
|
3215
3209
|
readonly bullying: "073-004-000-000-000-000-000";
|
|
3216
3210
|
readonly burglary: "073-005-000-000-000-000-000";
|
|
3217
|
-
readonly child_physical_abuse_or_neglect: "073-006-000-000-000-000-000";
|
|
3218
3211
|
readonly child_pornography: "073-007-000-000-000-000-000";
|
|
3219
|
-
readonly
|
|
3220
|
-
readonly
|
|
3221
|
-
readonly
|
|
3222
|
-
readonly elder_abuse: "073-011-000-000-000-000-000";
|
|
3212
|
+
readonly domestic_family_violence: "073-009-000-000-000-000-000";
|
|
3213
|
+
readonly dui_dwi_incident: "073-010-000-000-000-000-000";
|
|
3214
|
+
readonly elder_abuse_or_neglect: "073-011-000-000-000-000-000";
|
|
3223
3215
|
readonly gang_violence: "073-012-000-000-000-000-000";
|
|
3224
3216
|
readonly hate_crime: "073-013-000-000-000-000-000";
|
|
3225
3217
|
readonly homicide: "073-014-000-000-000-000-000";
|
|
3226
|
-
readonly
|
|
3218
|
+
readonly identity_theft_fraud_financial_crime: "073-015-000-000-000-000-000";
|
|
3227
3219
|
readonly kidnapping_custodial: "073-016-000-000-000-000-000";
|
|
3228
3220
|
readonly kidnapping_noncustodial: "073-017-000-000-000-000-000";
|
|
3229
3221
|
readonly mass_violence: "073-018-000-000-000-000-000";
|
|
3230
|
-
readonly
|
|
3231
|
-
readonly
|
|
3222
|
+
readonly other_voca_ovc: "073-019-000-000-000-000-000";
|
|
3223
|
+
readonly other_vehicular_victimization: "073-020-000-000-000-000-000";
|
|
3232
3224
|
readonly robbery: "073-021-000-000-000-000-000";
|
|
3233
3225
|
readonly stalking_harassment: "073-022-000-000-000-000-000";
|
|
3234
|
-
readonly
|
|
3226
|
+
readonly survivor_of_homicide_victim: "073-023-000-000-000-000-000";
|
|
3235
3227
|
readonly teen_dating_victimization: "073-024-000-000-000-000-000";
|
|
3236
3228
|
readonly terrorism: "073-025-000-000-000-000-000";
|
|
3229
|
+
readonly sexual_abuse_assault: "073-026-000-000-000-000-000";
|
|
3230
|
+
readonly physical_abuse_or_neglect: "073-027-000-000-000-000-000";
|
|
3231
|
+
readonly physical_assault: "073-028-000-000-000-000-000";
|
|
3232
|
+
readonly commercial_sexual_exploitation_minor: "073-029-000-000-000-000-000";
|
|
3233
|
+
readonly sexual_exploitation: "073-030-000-000-000-000-000";
|
|
3234
|
+
readonly labor_exploitation: "073-031-000-000-000-000-000";
|
|
3235
|
+
readonly female_genital_mutilation_cutting: "073-032-000-000-000-000-000";
|
|
3236
|
+
readonly forced_marriage: "073-033-000-000-000-000-000";
|
|
3237
|
+
readonly cyber_crimes: "073-034-000-000-000-000-000";
|
|
3237
3238
|
};
|
|
3238
3239
|
type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
|
|
3239
3240
|
/**
|
|
@@ -3788,9 +3789,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3788
3789
|
};
|
|
3789
3790
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3790
3791
|
/**
|
|
3791
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3792
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
|
|
3792
3793
|
*
|
|
3793
|
-
* Domain: `core_information_scope` · Version: 1.0.0 · Entries:
|
|
3794
|
+
* Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
|
|
3794
3795
|
*/
|
|
3795
3796
|
declare const CoreInformationScopeKeys: {
|
|
3796
3797
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3825,6 +3826,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3825
3826
|
readonly contact_info: "236-003-001-000-000-000-000";
|
|
3826
3827
|
readonly safe_locations: "236-003-002-000-000-000-000";
|
|
3827
3828
|
readonly priorities_safety: "236-003-003-000-000-000-000";
|
|
3829
|
+
readonly encounter_location: "236-003-004-000-000-000-000";
|
|
3828
3830
|
readonly services: "236-004-000-000-000-000-000";
|
|
3829
3831
|
readonly contact_history: "236-004-001-000-000-000-000";
|
|
3830
3832
|
readonly service_history: "236-004-002-000-000-000-000";
|
package/dist/enums/index.js
CHANGED
|
@@ -2441,35 +2441,36 @@ var HmisRelationshipToHohKeys = {
|
|
|
2441
2441
|
non_relation_member: "129-005-000-000-000-000-000"
|
|
2442
2442
|
};
|
|
2443
2443
|
var VictimAbuseTypesKeys = {
|
|
2444
|
-
missingness_root: "073-000-000-000-000-000-000",
|
|
2445
|
-
unknown: "073-000-000-000-000-000-001",
|
|
2446
|
-
anonymous: "073-000-000-000-000-000-002",
|
|
2447
|
-
data_not_collected: "073-000-000-000-000-000-003",
|
|
2448
|
-
adult_physical_assault: "073-001-000-000-000-000-000",
|
|
2449
|
-
adult_sexual_assault: "073-002-000-000-000-000-000",
|
|
2450
2444
|
arson: "073-003-000-000-000-000-000",
|
|
2451
2445
|
bullying: "073-004-000-000-000-000-000",
|
|
2452
2446
|
burglary: "073-005-000-000-000-000-000",
|
|
2453
|
-
child_physical_abuse_or_neglect: "073-006-000-000-000-000-000",
|
|
2454
2447
|
child_pornography: "073-007-000-000-000-000-000",
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
elder_abuse: "073-011-000-000-000-000-000",
|
|
2448
|
+
domestic_family_violence: "073-009-000-000-000-000-000",
|
|
2449
|
+
dui_dwi_incident: "073-010-000-000-000-000-000",
|
|
2450
|
+
elder_abuse_or_neglect: "073-011-000-000-000-000-000",
|
|
2459
2451
|
gang_violence: "073-012-000-000-000-000-000",
|
|
2460
2452
|
hate_crime: "073-013-000-000-000-000-000",
|
|
2461
2453
|
homicide: "073-014-000-000-000-000-000",
|
|
2462
|
-
|
|
2454
|
+
identity_theft_fraud_financial_crime: "073-015-000-000-000-000-000",
|
|
2463
2455
|
kidnapping_custodial: "073-016-000-000-000-000-000",
|
|
2464
2456
|
kidnapping_noncustodial: "073-017-000-000-000-000-000",
|
|
2465
2457
|
mass_violence: "073-018-000-000-000-000-000",
|
|
2466
|
-
|
|
2467
|
-
|
|
2458
|
+
other_voca_ovc: "073-019-000-000-000-000-000",
|
|
2459
|
+
other_vehicular_victimization: "073-020-000-000-000-000-000",
|
|
2468
2460
|
robbery: "073-021-000-000-000-000-000",
|
|
2469
2461
|
stalking_harassment: "073-022-000-000-000-000-000",
|
|
2470
|
-
|
|
2462
|
+
survivor_of_homicide_victim: "073-023-000-000-000-000-000",
|
|
2471
2463
|
teen_dating_victimization: "073-024-000-000-000-000-000",
|
|
2472
|
-
terrorism: "073-025-000-000-000-000-000"
|
|
2464
|
+
terrorism: "073-025-000-000-000-000-000",
|
|
2465
|
+
sexual_abuse_assault: "073-026-000-000-000-000-000",
|
|
2466
|
+
physical_abuse_or_neglect: "073-027-000-000-000-000-000",
|
|
2467
|
+
physical_assault: "073-028-000-000-000-000-000",
|
|
2468
|
+
commercial_sexual_exploitation_minor: "073-029-000-000-000-000-000",
|
|
2469
|
+
sexual_exploitation: "073-030-000-000-000-000-000",
|
|
2470
|
+
labor_exploitation: "073-031-000-000-000-000-000",
|
|
2471
|
+
female_genital_mutilation_cutting: "073-032-000-000-000-000-000",
|
|
2472
|
+
forced_marriage: "073-033-000-000-000-000-000",
|
|
2473
|
+
cyber_crimes: "073-034-000-000-000-000-000"
|
|
2473
2474
|
};
|
|
2474
2475
|
var HtTypeKeys = {
|
|
2475
2476
|
missingness_root: "072-000-000-000-000-000-000",
|
|
@@ -2923,6 +2924,7 @@ var CoreInformationScopeKeys = {
|
|
|
2923
2924
|
contact_info: "236-003-001-000-000-000-000",
|
|
2924
2925
|
safe_locations: "236-003-002-000-000-000-000",
|
|
2925
2926
|
priorities_safety: "236-003-003-000-000-000-000",
|
|
2927
|
+
encounter_location: "236-003-004-000-000-000-000",
|
|
2926
2928
|
services: "236-004-000-000-000-000-000",
|
|
2927
2929
|
contact_history: "236-004-001-000-000-000-000",
|
|
2928
2930
|
service_history: "236-004-002-000-000-000-000",
|