@htilabs/platform-common-models 0.8.5 → 0.8.6
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 +9 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +10 -0
- package/dist/cvcs/index.d.ts +10 -0
- package/dist/cvcs/index.js +9 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +4 -4
- package/src/cvcs/htType.v1.0.0.json +9 -0
- package/src/generated/cvc-enums.ts +2 -1
package/package.json
CHANGED
|
@@ -495,8 +495,8 @@
|
|
|
495
495
|
"hash": "03ce0a04e8a2ea49b39aaa45a7b11a2a9feb457637c6c6620a46fcb83e041442"
|
|
496
496
|
},
|
|
497
497
|
"ht_type": {
|
|
498
|
-
"count":
|
|
499
|
-
"hash": "
|
|
498
|
+
"count": 8,
|
|
499
|
+
"hash": "689c23880771fae764d0927f5872e250e0f6173eef0c162a192c477b6f638458"
|
|
500
500
|
},
|
|
501
501
|
"relationship_concern": {
|
|
502
502
|
"count": 11,
|
|
@@ -564,10 +564,10 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
564
564
|
// CVC-73 victim_abuse_types — 25 non-HT VOCA abuse types + 1 missingness
|
|
565
565
|
// root + 3 canonical missingness children = 29.
|
|
566
566
|
{ file: "victimAbuseTypes.v1.0.0.json", domain: "victim_abuse_types", expectedCount: 29 },
|
|
567
|
-
// CVC-72 ht_type —
|
|
568
|
-
//
|
|
569
|
-
// root + 3 canonical missingness children =
|
|
570
|
-
{ file: "htType.v1.0.0.json", domain: "ht_type", expectedCount:
|
|
567
|
+
// CVC-72 ht_type — 4 substantive types (sex, labor, sex_and_labor, none;
|
|
568
|
+
// `none` = negative determination, canonical per Crysta directive 2026-05-27)
|
|
569
|
+
// + 1 missingness root + 3 canonical missingness children = 8.
|
|
570
|
+
{ file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 8 },
|
|
571
571
|
// PROVISIONAL CVC-231 relationship_concern — 7 TRA relationship-concern
|
|
572
572
|
// codes + 1 missingness root + 3 canonical missingness children = 11.
|
|
573
573
|
// CVC number is PROVISIONAL pending codebook-session ratification.
|
|
@@ -73,6 +73,15 @@
|
|
|
73
73
|
"parentCode": null,
|
|
74
74
|
"childCodes": [],
|
|
75
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
|
+
"code": "072-004-000-000-000-000-000",
|
|
79
|
+
"key": "none",
|
|
80
|
+
"title": "None",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "No trafficking type asserted — an explicit NEGATIVE determination rather than a trafficking type. The picker surfaces `none` alongside the substantive codes (sex / labor / sex_and_labor) so an advocate can assert 'this person is not a trafficking victim of any specific type.' Pair with victim_status_family = no_indication when the negative determination spans the victim assertion. Canonical per Crysta directive 2026-05-27 (core_ht_type.yaml), which overrides the 2026-04-26 bundle's prior 'remove None from canonical' recommendation."
|
|
76
85
|
}
|
|
77
86
|
]
|
|
78
87
|
}
|
|
@@ -3424,7 +3424,7 @@ export type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
|
|
|
3424
3424
|
/**
|
|
3425
3425
|
* Key → positional code map for the `ht_type` CVC domain.
|
|
3426
3426
|
*
|
|
3427
|
-
* Domain: `ht_type` · Version: 1.0.0 · Entries:
|
|
3427
|
+
* Domain: `ht_type` · Version: 1.0.0 · Entries: 8
|
|
3428
3428
|
*/
|
|
3429
3429
|
export const HtTypeKeys = {
|
|
3430
3430
|
missingness_root: "072-000-000-000-000-000-000",
|
|
@@ -3434,6 +3434,7 @@ export const HtTypeKeys = {
|
|
|
3434
3434
|
sex: "072-001-000-000-000-000-000",
|
|
3435
3435
|
labor: "072-002-000-000-000-000-000",
|
|
3436
3436
|
sex_and_labor: "072-003-000-000-000-000-000",
|
|
3437
|
+
none: "072-004-000-000-000-000-000",
|
|
3437
3438
|
} as const;
|
|
3438
3439
|
|
|
3439
3440
|
export type HtTypeKey = keyof typeof HtTypeKeys;
|