@htilabs/platform-common-models 0.8.13 → 0.8.14
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/README.md +44 -0
- package/dist/config/index.cjs +4 -0
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +16 -1
- package/dist/config/index.d.ts +16 -1
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/constants/index.cjs +10 -0
- 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 +10 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +505 -2
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2642 -2084
- package/dist/cvcs/index.d.ts +2642 -2084
- package/dist/cvcs/index.js +500 -2
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +582 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -7
- package/dist/index.d.ts +111 -7
- package/dist/index.js +571 -4
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/mongo/index.cjs +383 -0
- package/dist/mongo/index.cjs.map +1 -0
- package/dist/mongo/index.d.cts +221 -0
- package/dist/mongo/index.d.ts +221 -0
- package/dist/mongo/index.js +351 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/{platform-auth-BfCMuAlC.d.cts → platform-auth-AsfnIXfK.d.cts} +2 -2
- package/dist/{platform-auth-BfCMuAlC.d.ts → platform-auth-AsfnIXfK.d.ts} +2 -2
- package/dist/schemas/index.cjs +5 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +29 -25
- package/dist/schemas/index.d.ts +29 -25
- package/dist/schemas/index.js +5 -1
- 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 +10 -1
- package/src/__sot__/coreIndicators.pin.json +6 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +18 -2
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +6 -3
- package/src/__tests__/cvc-drift-gate.test.ts +14 -3
- package/src/__tests__/cvc-sot-snapshot.test.ts +13 -1
- package/src/__tests__/cvc-structural.test.ts +6 -0
- package/src/__tests__/mongo-verifier.test.ts +502 -0
- package/src/config/index.ts +8 -2
- package/src/constants/ic.ts +31 -2
- package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
- package/src/cvcs/coreIndicators.v1.0.0.json +67 -2
- package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/index.ts +18 -0
- package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
- package/src/cvcs/subjectType.v1.0.0.json +80 -0
- package/src/generated/cvc-enums.ts +76 -2
- package/src/index.ts +20 -0
- package/src/mongo/catalog.ts +65 -0
- package/src/mongo/contract.ts +157 -0
- package/src/mongo/index.ts +343 -0
- package/src/mongo/similarity.ts +133 -0
- package/src/mongo/uri.ts +53 -0
- package/src/schemas/common.ts +4 -0
- package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
package/dist/cvcs/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ __export(cvcs_exports, {
|
|
|
30
30
|
announcementAudienceScopeSot: () => announcementAudienceScope_v1_0_0_default,
|
|
31
31
|
announcementResponseTypeSot: () => announcementResponseType_v1_0_0_default,
|
|
32
32
|
assertionDomainSot: () => assertionDomain_v1_1_0_default,
|
|
33
|
+
assertionStatusSot: () => assertionStatus_v1_0_0_default,
|
|
33
34
|
basisQuickPicksSot: () => basisQuickPicks_v1_0_0_default,
|
|
34
35
|
checkInActivitySot: () => checkInActivity_v1_0_0_default,
|
|
35
36
|
checkInPhaseSot: () => checkInPhase_v1_1_0_default,
|
|
@@ -46,6 +47,7 @@ __export(cvcs_exports, {
|
|
|
46
47
|
coreFunctionsSot: () => coreFunctions_v1_0_0_default,
|
|
47
48
|
coreIndicatorsSot: () => coreIndicators_v1_0_0_default,
|
|
48
49
|
coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
|
|
50
|
+
createdBySystemSot: () => createdBySystem_v1_0_0_default,
|
|
49
51
|
daIncidentArchiveReasonSot: () => daIncidentArchiveReason_v1_0_0_default,
|
|
50
52
|
daIncidentConfidenceSot: () => daIncidentConfidence_v1_0_0_default,
|
|
51
53
|
daIncidentDayApproxSot: () => daIncidentDayApprox_v1_0_0_default,
|
|
@@ -80,6 +82,7 @@ __export(cvcs_exports, {
|
|
|
80
82
|
hmisCurrentLivingSituationSot: () => hmisCurrentLivingSituation_v1_0_0_default,
|
|
81
83
|
hmisProjectTypeSot: () => hmisProjectType_v1_0_0_default,
|
|
82
84
|
hmisRelationshipToHohSot: () => hmisRelationshipToHoh_v1_0_0_default,
|
|
85
|
+
hmisSexSot: () => hmisSex_v1_0_0_default,
|
|
83
86
|
homelessStatusSot: () => homelessStatus_v1_0_0_default,
|
|
84
87
|
hopeScaleCaptureContextSot: () => hopeScaleCaptureContext_v1_0_0_default,
|
|
85
88
|
hopeScaleResponseOptionsSot: () => hopeScaleResponseOptions_v1_0_0_default,
|
|
@@ -108,6 +111,7 @@ __export(cvcs_exports, {
|
|
|
108
111
|
milestoneTypeSot: () => milestoneType_v1_0_0_default,
|
|
109
112
|
militaryBranchSot: () => militaryBranch_v1_0_0_default,
|
|
110
113
|
militaryStatusSot: () => militaryStatus_v1_0_0_default,
|
|
114
|
+
minorAdultStatusSot: () => minorAdultStatus_v1_0_0_default,
|
|
111
115
|
nameTypeSot: () => nameType_v1_0_0_default,
|
|
112
116
|
needsAssessmentChangeTypeSot: () => needsAssessmentChangeType_v1_0_0_default,
|
|
113
117
|
needsResidentialAgainSot: () => needsResidentialAgain_v1_0_0_default,
|
|
@@ -171,6 +175,7 @@ __export(cvcs_exports, {
|
|
|
171
175
|
sourceSubtypeSot: () => sourceSubtype_v1_1_0_default,
|
|
172
176
|
sourceSystemSot: () => sourceSystem_v1_0_0_default,
|
|
173
177
|
specialNeedsDisabilitiesSot: () => specialNeedsDisabilities_v1_0_0_default,
|
|
178
|
+
subjectTypeSot: () => subjectType_v1_0_0_default,
|
|
174
179
|
substanceUseStatusSot: () => substanceUseStatus_v1_0_0_default,
|
|
175
180
|
suggestionSourceSot: () => suggestionSource_v1_0_0_default,
|
|
176
181
|
supportStrengthSot: () => supportStrength_v1_0_0_default,
|
|
@@ -26541,8 +26546,8 @@ var coreIndicators_v1_0_0_default = {
|
|
|
26541
26546
|
domain: "core_indicators",
|
|
26542
26547
|
name: "Core Indicators (CVC-136)",
|
|
26543
26548
|
version: "1.0.0",
|
|
26544
|
-
_status: "CANONICAL \u2014 re-sourced 0.
|
|
26545
|
-
_source: "htilabstech/prototype@
|
|
26549
|
+
_status: "CANONICAL \u2014 re-sourced 0.11.1 from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD 84a1b677 (213 codes; +5 vs the 0.8.13 pin a596eb9, 0 withdrawn), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`), each flagged `pendingUpstreamAdoption: true`. 215 substantive + the missingness quadruplet = 219 entries. New codes are APPENDED at 211-215 so every previously issued positional code stays stable.",
|
|
26550
|
+
_source: "htilabstech/prototype@84a1b677 data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
|
|
26546
26551
|
levels: {
|
|
26547
26552
|
"0": "Unknown or Missing",
|
|
26548
26553
|
"1": "Indicator"
|
|
@@ -29378,6 +29383,71 @@ TRA Phase 3 Batch B apply per recs doc \xA7 4.2 + Crysta Q-3 sign-off.`,
|
|
|
29378
29383
|
polarity: "increases_risk",
|
|
29379
29384
|
severity: "elevated",
|
|
29380
29385
|
isAlert: "none"
|
|
29386
|
+
},
|
|
29387
|
+
{
|
|
29388
|
+
code: "136-211-000-000-000-000-000",
|
|
29389
|
+
key: "clients_unaware_of_third_party_coordination",
|
|
29390
|
+
title: "Clients unaware they are coordinating with a third party (concealed dispatch)",
|
|
29391
|
+
selectable: true,
|
|
29392
|
+
parentCode: null,
|
|
29393
|
+
childCodes: [],
|
|
29394
|
+
definition: `LEADS TRA-7-aware captured that sex buyers reaching out to "the person" are in fact coordinating with a third party (dispatcher / manager / call service) WITHOUT knowing it \u2014 a concealed-intermediary booking pattern. Concealment of the coordinating third party from buyers is a control + facilitation marker over and above third-party coordination itself (which TRA-7 sometimes/never + TRA-7-who already capture): the operation is actively passing as the provider. Authored 2026-07-17 (TRA-VETTING, Crysta: "let's author one") for the restored production follow-up question.`,
|
|
29395
|
+
family: "mechanism_control",
|
|
29396
|
+
polarity: "increases_risk",
|
|
29397
|
+
severity: "elevated",
|
|
29398
|
+
isAlert: "none"
|
|
29399
|
+
},
|
|
29400
|
+
{
|
|
29401
|
+
code: "136-212-000-000-000-000-000",
|
|
29402
|
+
key: "depends_on_spouse_or_family_for_immigration_status",
|
|
29403
|
+
title: "Depends on spouse / family member for immigration status (tied family visa)",
|
|
29404
|
+
selectable: true,
|
|
29405
|
+
parentCode: null,
|
|
29406
|
+
childCodes: [],
|
|
29407
|
+
definition: `Indication the person's legal ability to remain in the U.S. depends on a spouse, fianc\xE9(e), or family member (family/fianc\xE9-based immigrant visa or derivative status) while their current status is a valid or overstayed visa. The family twin of depends_on_employer_for_immigration_status: a visa tied to a potentially abusive relationship is a major dependence vulnerability and a coercion lever ("stay / comply or lose your status"). Authored 2026-07-17 (TRA-VETTING open-items round, Crysta: dependence "whether it is via your husband or your employer is a MAJOR vulnerability").`,
|
|
29408
|
+
family: "mechanism_control",
|
|
29409
|
+
polarity: "depends",
|
|
29410
|
+
severity: "elevated",
|
|
29411
|
+
isAlert: "none"
|
|
29412
|
+
},
|
|
29413
|
+
{
|
|
29414
|
+
code: "136-213-000-000-000-000-000",
|
|
29415
|
+
key: "sexualized_content_in_person_performance_activity",
|
|
29416
|
+
title: "In-person sexualized performance / appearance-based activity",
|
|
29417
|
+
selectable: true,
|
|
29418
|
+
parentCode: null,
|
|
29419
|
+
childCodes: [],
|
|
29420
|
+
definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.3) that the person engages in in-person sexualized, erotic, appearance-based, or entertainment activity with sexualized expectations \u2014 stripping, dancing, posing, hostess or venue work, escort/companionship without an established sex act \u2014 sex-market-adjacent, recorded descriptively; not necessarily a sex act for value.",
|
|
29421
|
+
family: "cs_industry_context",
|
|
29422
|
+
polarity: "increases_risk",
|
|
29423
|
+
severity: "elevated",
|
|
29424
|
+
isAlert: "none"
|
|
29425
|
+
},
|
|
29426
|
+
{
|
|
29427
|
+
code: "136-214-000-000-000-000-000",
|
|
29428
|
+
key: "sexualized_content_online_performance_activity",
|
|
29429
|
+
title: "Online sexual performance / interactive sexual content activity",
|
|
29430
|
+
selectable: true,
|
|
29431
|
+
parentCode: null,
|
|
29432
|
+
childCodes: [],
|
|
29433
|
+
definition: "Canonical activity evidence (DH \xA7 II Activity 2.2.2) that the person engages in sexualized or sexually explicit activity performed, streamed, recorded, messaged, or displayed through online or digital platforms \u2014 webcamming, livestreams, paid chats, content-platform work \u2014 recorded descriptively whether or not a commercial sex act is established.",
|
|
29434
|
+
family: "cs_industry_context",
|
|
29435
|
+
polarity: "increases_risk",
|
|
29436
|
+
severity: "elevated",
|
|
29437
|
+
isAlert: "none"
|
|
29438
|
+
},
|
|
29439
|
+
{
|
|
29440
|
+
code: "136-215-000-000-000-000-000",
|
|
29441
|
+
key: "trauma_perpetrator_is_current_manager",
|
|
29442
|
+
title: "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
|
|
29443
|
+
selectable: true,
|
|
29444
|
+
parentCode: null,
|
|
29445
|
+
childCodes: [],
|
|
29446
|
+
definition: 'ENGINE-DERIVED conjunction: the same person the subject named as a trauma perpetrator (TRA-35 sexual violence / physical abuse / emotional-verbal-stalking capture) ALSO holds an operational-control edge over the subject (a TRA facilitation who-answer \u2014 posts ads / arranges dates / controls or keeps earnings / receives payments / organizes travel / holds documentation / above in the operation \u2014 or a relationship pair with a facilitator/offender role signal of their own). Two independently-captured facts joined on person identity \u2014 never an assumption (Crysta 2026-07-17: "these are two different questions"). The conjunction is the classic trauma-bonded, difficult-to-leave control situation.',
|
|
29447
|
+
family: "mechanism_control",
|
|
29448
|
+
polarity: "increases_risk",
|
|
29449
|
+
severity: "severe",
|
|
29450
|
+
isAlert: "none"
|
|
29381
29451
|
}
|
|
29382
29452
|
]
|
|
29383
29453
|
};
|
|
@@ -37067,6 +37137,434 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37067
37137
|
}
|
|
37068
37138
|
]
|
|
37069
37139
|
};
|
|
37140
|
+
|
|
37141
|
+
// src/cvcs/assertionStatus.v1.0.0.json
|
|
37142
|
+
var assertionStatus_v1_0_0_default = {
|
|
37143
|
+
domain: "assertion_status",
|
|
37144
|
+
name: "Assertion Status",
|
|
37145
|
+
version: "1.0.0",
|
|
37146
|
+
_status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - status`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `ASSERTION_STATUSES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive lifecycle states, so the missingness quadruplet is added per SOT convention.",
|
|
37147
|
+
_source: "pave-2.0/packages/domain/src/enums.ts ASSERTION_STATUSES",
|
|
37148
|
+
levels: {
|
|
37149
|
+
"0": "Unknown or Missing",
|
|
37150
|
+
"1": "Assertion lifecycle status"
|
|
37151
|
+
},
|
|
37152
|
+
entries: [
|
|
37153
|
+
{
|
|
37154
|
+
code: "985-000-000-000-000-000-000",
|
|
37155
|
+
key: "missingness_root",
|
|
37156
|
+
title: "Unknown, Redacted, or Missing",
|
|
37157
|
+
selectable: false,
|
|
37158
|
+
parentCode: null,
|
|
37159
|
+
childCodes: [
|
|
37160
|
+
"985-000-000-000-000-000-001",
|
|
37161
|
+
"985-000-000-000-000-000-002",
|
|
37162
|
+
"985-000-000-000-000-000-003"
|
|
37163
|
+
],
|
|
37164
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
37165
|
+
},
|
|
37166
|
+
{
|
|
37167
|
+
code: "985-000-000-000-000-000-001",
|
|
37168
|
+
key: "unknown",
|
|
37169
|
+
title: "Unknown",
|
|
37170
|
+
selectable: true,
|
|
37171
|
+
parentCode: "985-000-000-000-000-000-000",
|
|
37172
|
+
childCodes: [],
|
|
37173
|
+
definition: "The assertion status is unknown at time of entry (missingness sentinel)."
|
|
37174
|
+
},
|
|
37175
|
+
{
|
|
37176
|
+
code: "985-000-000-000-000-000-002",
|
|
37177
|
+
key: "anonymous",
|
|
37178
|
+
title: "Anonymous / declined to answer",
|
|
37179
|
+
selectable: true,
|
|
37180
|
+
parentCode: "985-000-000-000-000-000-000",
|
|
37181
|
+
childCodes: [],
|
|
37182
|
+
definition: "Value is intentionally withheld, declined, or redacted."
|
|
37183
|
+
},
|
|
37184
|
+
{
|
|
37185
|
+
code: "985-000-000-000-000-000-003",
|
|
37186
|
+
key: "data_not_collected",
|
|
37187
|
+
title: "Data not collected",
|
|
37188
|
+
selectable: true,
|
|
37189
|
+
parentCode: "985-000-000-000-000-000-000",
|
|
37190
|
+
childCodes: [],
|
|
37191
|
+
definition: "No attempt was made to collect the value."
|
|
37192
|
+
},
|
|
37193
|
+
{
|
|
37194
|
+
code: "985-001-000-000-000-000-000",
|
|
37195
|
+
key: "active",
|
|
37196
|
+
title: "Active",
|
|
37197
|
+
selectable: true,
|
|
37198
|
+
parentCode: null,
|
|
37199
|
+
childCodes: [],
|
|
37200
|
+
definition: 'In force \u2014 the current, non-superseded row for its spine partition. Emitting systems typically default new assertions to this status (e.g. PAVE\'s assertion factory defaults `status: "active"`).'
|
|
37201
|
+
},
|
|
37202
|
+
{
|
|
37203
|
+
code: "985-002-000-000-000-000-000",
|
|
37204
|
+
key: "superseded",
|
|
37205
|
+
title: "Superseded",
|
|
37206
|
+
selectable: true,
|
|
37207
|
+
parentCode: null,
|
|
37208
|
+
childCodes: [],
|
|
37209
|
+
definition: 'Replaced by a later assertion row in the same spine partition. When status === "superseded", `supersedes_assertion_id` is required per GLOBAL_DESIGN_RULES \xA75.5.'
|
|
37210
|
+
},
|
|
37211
|
+
{
|
|
37212
|
+
code: "985-003-000-000-000-000-000",
|
|
37213
|
+
key: "retracted",
|
|
37214
|
+
title: "Retracted",
|
|
37215
|
+
selectable: true,
|
|
37216
|
+
parentCode: null,
|
|
37217
|
+
childCodes: [],
|
|
37218
|
+
definition: "Withdrawn or invalidated without a replacement row \u2014 the claim is no longer asserted. Distinct from superseded (which points at a successor)."
|
|
37219
|
+
}
|
|
37220
|
+
]
|
|
37221
|
+
};
|
|
37222
|
+
|
|
37223
|
+
// src/cvcs/createdBySystem.v1.0.0.json
|
|
37224
|
+
var createdBySystem_v1_0_0_default = {
|
|
37225
|
+
domain: "created_by_system",
|
|
37226
|
+
name: "Created By System",
|
|
37227
|
+
version: "1.0.0",
|
|
37228
|
+
_status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - created_by_system`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `CREATED_BY_SYSTEMS` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive actor classes, so the missingness quadruplet is added per SOT convention.",
|
|
37229
|
+
_source: "pave-2.0/packages/domain/src/enums.ts CREATED_BY_SYSTEMS",
|
|
37230
|
+
levels: {
|
|
37231
|
+
"0": "Unknown or Missing",
|
|
37232
|
+
"1": "Creating actor class"
|
|
37233
|
+
},
|
|
37234
|
+
entries: [
|
|
37235
|
+
{
|
|
37236
|
+
code: "986-000-000-000-000-000-000",
|
|
37237
|
+
key: "missingness_root",
|
|
37238
|
+
title: "Unknown, Redacted, or Missing",
|
|
37239
|
+
selectable: false,
|
|
37240
|
+
parentCode: null,
|
|
37241
|
+
childCodes: [
|
|
37242
|
+
"986-000-000-000-000-000-001",
|
|
37243
|
+
"986-000-000-000-000-000-002",
|
|
37244
|
+
"986-000-000-000-000-000-003"
|
|
37245
|
+
],
|
|
37246
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
37247
|
+
},
|
|
37248
|
+
{
|
|
37249
|
+
code: "986-000-000-000-000-000-001",
|
|
37250
|
+
key: "unknown",
|
|
37251
|
+
title: "Unknown",
|
|
37252
|
+
selectable: true,
|
|
37253
|
+
parentCode: "986-000-000-000-000-000-000",
|
|
37254
|
+
childCodes: [],
|
|
37255
|
+
definition: "The creating actor class is unknown at time of entry (missingness sentinel)."
|
|
37256
|
+
},
|
|
37257
|
+
{
|
|
37258
|
+
code: "986-000-000-000-000-000-002",
|
|
37259
|
+
key: "anonymous",
|
|
37260
|
+
title: "Anonymous / declined to answer",
|
|
37261
|
+
selectable: true,
|
|
37262
|
+
parentCode: "986-000-000-000-000-000-000",
|
|
37263
|
+
childCodes: [],
|
|
37264
|
+
definition: "Value is intentionally withheld, declined, or redacted."
|
|
37265
|
+
},
|
|
37266
|
+
{
|
|
37267
|
+
code: "986-000-000-000-000-000-003",
|
|
37268
|
+
key: "data_not_collected",
|
|
37269
|
+
title: "Data not collected",
|
|
37270
|
+
selectable: true,
|
|
37271
|
+
parentCode: "986-000-000-000-000-000-000",
|
|
37272
|
+
childCodes: [],
|
|
37273
|
+
definition: "No attempt was made to collect the value."
|
|
37274
|
+
},
|
|
37275
|
+
{
|
|
37276
|
+
code: "986-001-000-000-000-000-000",
|
|
37277
|
+
key: "human",
|
|
37278
|
+
title: "Human",
|
|
37279
|
+
selectable: true,
|
|
37280
|
+
parentCode: null,
|
|
37281
|
+
childCodes: [],
|
|
37282
|
+
definition: 'A person created the assertion row directly. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `createdBySystem: "human"`).'
|
|
37283
|
+
},
|
|
37284
|
+
{
|
|
37285
|
+
code: "986-002-000-000-000-000-000",
|
|
37286
|
+
key: "integration",
|
|
37287
|
+
title: "Integration",
|
|
37288
|
+
selectable: true,
|
|
37289
|
+
parentCode: null,
|
|
37290
|
+
childCodes: [],
|
|
37291
|
+
definition: "An external-system integration created the row (cross-app ingest, imports, connected systems). Pair with source/provenance fields for the originating system."
|
|
37292
|
+
},
|
|
37293
|
+
{
|
|
37294
|
+
code: "986-003-000-000-000-000-000",
|
|
37295
|
+
key: "rules_engine",
|
|
37296
|
+
title: "Rules engine",
|
|
37297
|
+
selectable: true,
|
|
37298
|
+
parentCode: null,
|
|
37299
|
+
childCodes: [],
|
|
37300
|
+
definition: "Deterministic business logic or a rules engine created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
|
|
37301
|
+
},
|
|
37302
|
+
{
|
|
37303
|
+
code: "986-004-000-000-000-000-000",
|
|
37304
|
+
key: "model",
|
|
37305
|
+
title: "Model",
|
|
37306
|
+
selectable: true,
|
|
37307
|
+
parentCode: null,
|
|
37308
|
+
childCodes: [],
|
|
37309
|
+
definition: "An ML model or statistical scoring process created the row. `inference_type` is required when created_by_system \u2208 {rules_engine, model} per GLOBAL_DESIGN_RULES \xA75.5."
|
|
37310
|
+
}
|
|
37311
|
+
]
|
|
37312
|
+
};
|
|
37313
|
+
|
|
37314
|
+
// src/cvcs/subjectType.v1.0.0.json
|
|
37315
|
+
var subjectType_v1_0_0_default = {
|
|
37316
|
+
domain: "subject_type",
|
|
37317
|
+
name: "Subject Type",
|
|
37318
|
+
version: "1.0.0",
|
|
37319
|
+
_status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - subject_type`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `SUBJECT_TYPES` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive entity kinds, so the missingness quadruplet is added per SOT convention.",
|
|
37320
|
+
_source: "pave-2.0/packages/domain/src/enums.ts SUBJECT_TYPES",
|
|
37321
|
+
levels: {
|
|
37322
|
+
"0": "Unknown or Missing",
|
|
37323
|
+
"1": "Assertion subject type"
|
|
37324
|
+
},
|
|
37325
|
+
entries: [
|
|
37326
|
+
{
|
|
37327
|
+
code: "987-000-000-000-000-000-000",
|
|
37328
|
+
key: "missingness_root",
|
|
37329
|
+
title: "Unknown, Redacted, or Missing",
|
|
37330
|
+
selectable: false,
|
|
37331
|
+
parentCode: null,
|
|
37332
|
+
childCodes: [
|
|
37333
|
+
"987-000-000-000-000-000-001",
|
|
37334
|
+
"987-000-000-000-000-000-002",
|
|
37335
|
+
"987-000-000-000-000-000-003"
|
|
37336
|
+
],
|
|
37337
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
37338
|
+
},
|
|
37339
|
+
{
|
|
37340
|
+
code: "987-000-000-000-000-000-001",
|
|
37341
|
+
key: "unknown",
|
|
37342
|
+
title: "Unknown",
|
|
37343
|
+
selectable: true,
|
|
37344
|
+
parentCode: "987-000-000-000-000-000-000",
|
|
37345
|
+
childCodes: [],
|
|
37346
|
+
definition: "The subject type is unknown at time of entry (missingness sentinel)."
|
|
37347
|
+
},
|
|
37348
|
+
{
|
|
37349
|
+
code: "987-000-000-000-000-000-002",
|
|
37350
|
+
key: "anonymous",
|
|
37351
|
+
title: "Anonymous / declined to answer",
|
|
37352
|
+
selectable: true,
|
|
37353
|
+
parentCode: "987-000-000-000-000-000-000",
|
|
37354
|
+
childCodes: [],
|
|
37355
|
+
definition: "Value is intentionally withheld, declined, or redacted."
|
|
37356
|
+
},
|
|
37357
|
+
{
|
|
37358
|
+
code: "987-000-000-000-000-000-003",
|
|
37359
|
+
key: "data_not_collected",
|
|
37360
|
+
title: "Data not collected",
|
|
37361
|
+
selectable: true,
|
|
37362
|
+
parentCode: "987-000-000-000-000-000-000",
|
|
37363
|
+
childCodes: [],
|
|
37364
|
+
definition: "No attempt was made to collect the value."
|
|
37365
|
+
},
|
|
37366
|
+
{
|
|
37367
|
+
code: "987-001-000-000-000-000-000",
|
|
37368
|
+
key: "person",
|
|
37369
|
+
title: "Person",
|
|
37370
|
+
selectable: true,
|
|
37371
|
+
parentCode: null,
|
|
37372
|
+
childCodes: [],
|
|
37373
|
+
definition: 'The assertion is about a person; `subject_id` resolves to a person record. Emitting systems typically default to this value (e.g. PAVE\'s assertion factory defaults `subjectType: "person"`).'
|
|
37374
|
+
},
|
|
37375
|
+
{
|
|
37376
|
+
code: "987-002-000-000-000-000-000",
|
|
37377
|
+
key: "relationship",
|
|
37378
|
+
title: "Relationship",
|
|
37379
|
+
selectable: true,
|
|
37380
|
+
parentCode: null,
|
|
37381
|
+
childCodes: [],
|
|
37382
|
+
definition: "The assertion is about a relationship between people; `subject_id` resolves to a relationship record."
|
|
37383
|
+
},
|
|
37384
|
+
{
|
|
37385
|
+
code: "987-003-000-000-000-000-000",
|
|
37386
|
+
key: "case",
|
|
37387
|
+
title: "Case",
|
|
37388
|
+
selectable: true,
|
|
37389
|
+
parentCode: null,
|
|
37390
|
+
childCodes: [],
|
|
37391
|
+
definition: "The assertion is about a case; `subject_id` resolves to a case record."
|
|
37392
|
+
}
|
|
37393
|
+
]
|
|
37394
|
+
};
|
|
37395
|
+
|
|
37396
|
+
// src/cvcs/minorAdultStatus.v1.0.0.json
|
|
37397
|
+
var minorAdultStatus_v1_0_0_default = {
|
|
37398
|
+
domain: "minor_adult_status",
|
|
37399
|
+
name: "Minor / Adult Status (age band at event)",
|
|
37400
|
+
version: "1.0.0",
|
|
37401
|
+
_status: "PROVISIONAL \u2014 GDR \xA710.1 confirmed-CVC name is `core - minor_adult_status`, and the canonical index DOES number this concept (Final CVCs/CVC_INDEX.md @ a596eb9: CVC-61 `minor_adult_status`) \u2014 but the CVC-61 Notion codebook has 0 entries anywhere, and ADR-CVC-0.8.13-canonical-alignment \xA7Deliberately-NOT-authored (NARRATIVE_ONLY) deliberately declined to author at 61 to avoid manufacturing canonical drift. This vocabulary therefore parks in the provisional 900-block; RENUMBER 988 \u2192 61 when the CVC-61 Notion codebook gains substantive entries (and reconcile membership at that point). Substantive values sourced verbatim from the PAVE @pave/domain `AGE_BANDS_AT_EVENT` enum (D10 GDR \xA710.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish): PAVE's `minor` / `adult` / `indeterminate` stay substantive; PAVE's fourth member `unknown` maps to the canonical missingness `unknown` sentinel (same realignment shape as the ROLE_CONTEXTS 0.7.0 bind), so every PAVE member remains expressible. Distinct from the numeric IC constant MINOR_ADULT_STATUS in constants/ic.ts (IC layer, 1/2/99) \u2014 that is a different encoding layer, not a parallel CVC.",
|
|
37402
|
+
_source: "pave-2.0/packages/domain/src/enums.ts AGE_BANDS_AT_EVENT",
|
|
37403
|
+
levels: {
|
|
37404
|
+
"0": "Unknown or Missing",
|
|
37405
|
+
"1": "Minor / adult status at event"
|
|
37406
|
+
},
|
|
37407
|
+
entries: [
|
|
37408
|
+
{
|
|
37409
|
+
code: "988-000-000-000-000-000-000",
|
|
37410
|
+
key: "missingness_root",
|
|
37411
|
+
title: "Unknown, Redacted, or Missing",
|
|
37412
|
+
selectable: false,
|
|
37413
|
+
parentCode: null,
|
|
37414
|
+
childCodes: [
|
|
37415
|
+
"988-000-000-000-000-000-001",
|
|
37416
|
+
"988-000-000-000-000-000-002",
|
|
37417
|
+
"988-000-000-000-000-000-003"
|
|
37418
|
+
],
|
|
37419
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
37420
|
+
},
|
|
37421
|
+
{
|
|
37422
|
+
code: "988-000-000-000-000-000-001",
|
|
37423
|
+
key: "unknown",
|
|
37424
|
+
title: "Unknown",
|
|
37425
|
+
selectable: true,
|
|
37426
|
+
parentCode: "988-000-000-000-000-000-000",
|
|
37427
|
+
childCodes: [],
|
|
37428
|
+
definition: "The age band is unknown \u2014 not assessed or not recorded (missingness sentinel). Carries PAVE's `unknown` member of AGE_BANDS_AT_EVENT."
|
|
37429
|
+
},
|
|
37430
|
+
{
|
|
37431
|
+
code: "988-000-000-000-000-000-002",
|
|
37432
|
+
key: "anonymous",
|
|
37433
|
+
title: "Anonymous / declined to answer",
|
|
37434
|
+
selectable: true,
|
|
37435
|
+
parentCode: "988-000-000-000-000-000-000",
|
|
37436
|
+
childCodes: [],
|
|
37437
|
+
definition: "Value is intentionally withheld, declined, or redacted."
|
|
37438
|
+
},
|
|
37439
|
+
{
|
|
37440
|
+
code: "988-000-000-000-000-000-003",
|
|
37441
|
+
key: "data_not_collected",
|
|
37442
|
+
title: "Data not collected",
|
|
37443
|
+
selectable: true,
|
|
37444
|
+
parentCode: "988-000-000-000-000-000-000",
|
|
37445
|
+
childCodes: [],
|
|
37446
|
+
definition: "No attempt was made to collect the value."
|
|
37447
|
+
},
|
|
37448
|
+
{
|
|
37449
|
+
code: "988-001-000-000-000-000-000",
|
|
37450
|
+
key: "minor",
|
|
37451
|
+
title: "Minor (under 18)",
|
|
37452
|
+
selectable: true,
|
|
37453
|
+
parentCode: null,
|
|
37454
|
+
childCodes: [],
|
|
37455
|
+
definition: "The subject was under 18 when the asserted event occurred."
|
|
37456
|
+
},
|
|
37457
|
+
{
|
|
37458
|
+
code: "988-002-000-000-000-000-000",
|
|
37459
|
+
key: "adult",
|
|
37460
|
+
title: "Adult (18+)",
|
|
37461
|
+
selectable: true,
|
|
37462
|
+
parentCode: null,
|
|
37463
|
+
childCodes: [],
|
|
37464
|
+
definition: "The subject was 18 or older when the asserted event occurred."
|
|
37465
|
+
},
|
|
37466
|
+
{
|
|
37467
|
+
code: "988-003-000-000-000-000-000",
|
|
37468
|
+
key: "indeterminate",
|
|
37469
|
+
title: "Indeterminate",
|
|
37470
|
+
selectable: true,
|
|
37471
|
+
parentCode: null,
|
|
37472
|
+
childCodes: [],
|
|
37473
|
+
definition: "The age band cannot be determined from the available evidence \u2014 a positive determination of indeterminacy (e.g. conflicting or insufficient evidence), distinct from the `unknown` missingness sentinel (not assessed / not recorded)."
|
|
37474
|
+
}
|
|
37475
|
+
]
|
|
37476
|
+
};
|
|
37477
|
+
|
|
37478
|
+
// src/cvcs/hmisSex.v1.0.0.json
|
|
37479
|
+
var hmisSex_v1_0_0_default = {
|
|
37480
|
+
domain: "hmis_sex",
|
|
37481
|
+
name: "Core HMIS Sex",
|
|
37482
|
+
version: "1.0.0",
|
|
37483
|
+
levels: {
|
|
37484
|
+
"0": "Unknown or Missing",
|
|
37485
|
+
"1": "Sex"
|
|
37486
|
+
},
|
|
37487
|
+
entries: [
|
|
37488
|
+
{
|
|
37489
|
+
code: "067-000-000-000-000-000-000",
|
|
37490
|
+
key: "missingness_root",
|
|
37491
|
+
title: "Unknown, Redacted, or Missing",
|
|
37492
|
+
selectable: false,
|
|
37493
|
+
parentCode: null,
|
|
37494
|
+
childCodes: [
|
|
37495
|
+
"067-000-000-000-000-000-001",
|
|
37496
|
+
"067-000-000-000-000-000-002",
|
|
37497
|
+
"067-000-000-000-000-000-003",
|
|
37498
|
+
"067-000-000-000-000-000-004",
|
|
37499
|
+
"067-000-000-000-000-000-005"
|
|
37500
|
+
],
|
|
37501
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
37502
|
+
},
|
|
37503
|
+
{
|
|
37504
|
+
code: "067-000-000-000-000-000-001",
|
|
37505
|
+
key: "unknown",
|
|
37506
|
+
title: "Unknown",
|
|
37507
|
+
selectable: true,
|
|
37508
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
37509
|
+
childCodes: [],
|
|
37510
|
+
definition: "Value is unknown at time of entry."
|
|
37511
|
+
},
|
|
37512
|
+
{
|
|
37513
|
+
code: "067-000-000-000-000-000-002",
|
|
37514
|
+
key: "anonymous",
|
|
37515
|
+
title: "Anonymous",
|
|
37516
|
+
selectable: true,
|
|
37517
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
37518
|
+
childCodes: [],
|
|
37519
|
+
definition: "Value is intentionally withheld or redacted."
|
|
37520
|
+
},
|
|
37521
|
+
{
|
|
37522
|
+
code: "067-000-000-000-000-000-003",
|
|
37523
|
+
key: "data_not_collected",
|
|
37524
|
+
title: "Data not collected",
|
|
37525
|
+
selectable: true,
|
|
37526
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
37527
|
+
childCodes: [],
|
|
37528
|
+
definition: "Use this response if the staff does not ask the person to provide their sex."
|
|
37529
|
+
},
|
|
37530
|
+
{
|
|
37531
|
+
code: "067-000-000-000-000-000-004",
|
|
37532
|
+
key: "client_doesn_t_know",
|
|
37533
|
+
title: "Client doesn't know",
|
|
37534
|
+
selectable: true,
|
|
37535
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
37536
|
+
childCodes: [],
|
|
37537
|
+
definition: `"Client doesn't know" should only be selected when a person does not know their sex from among the responses.`
|
|
37538
|
+
},
|
|
37539
|
+
{
|
|
37540
|
+
code: "067-000-000-000-000-000-005",
|
|
37541
|
+
key: "client_prefers_not_to_answer",
|
|
37542
|
+
title: "Client prefers not to answer",
|
|
37543
|
+
selectable: true,
|
|
37544
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
37545
|
+
childCodes: [],
|
|
37546
|
+
definition: '"Client prefers not to answer" should only be selected when a person chooses not to identify their sex from among the responses.'
|
|
37547
|
+
},
|
|
37548
|
+
{
|
|
37549
|
+
code: "067-001-000-000-000-000-000",
|
|
37550
|
+
key: "female",
|
|
37551
|
+
title: "Female",
|
|
37552
|
+
selectable: true,
|
|
37553
|
+
parentCode: null,
|
|
37554
|
+
childCodes: [],
|
|
37555
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing eggs (ova)."
|
|
37556
|
+
},
|
|
37557
|
+
{
|
|
37558
|
+
code: "067-002-000-000-000-000-000",
|
|
37559
|
+
key: "male",
|
|
37560
|
+
title: "Male",
|
|
37561
|
+
selectable: true,
|
|
37562
|
+
parentCode: null,
|
|
37563
|
+
childCodes: [],
|
|
37564
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing sperm."
|
|
37565
|
+
}
|
|
37566
|
+
]
|
|
37567
|
+
};
|
|
37070
37568
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37071
37569
|
0 && (module.exports = {
|
|
37072
37570
|
accommodationTypeSot,
|
|
@@ -37079,6 +37577,7 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37079
37577
|
announcementAudienceScopeSot,
|
|
37080
37578
|
announcementResponseTypeSot,
|
|
37081
37579
|
assertionDomainSot,
|
|
37580
|
+
assertionStatusSot,
|
|
37082
37581
|
basisQuickPicksSot,
|
|
37083
37582
|
checkInActivitySot,
|
|
37084
37583
|
checkInPhaseSot,
|
|
@@ -37095,6 +37594,7 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37095
37594
|
coreFunctionsSot,
|
|
37096
37595
|
coreIndicatorsSot,
|
|
37097
37596
|
coreReferralOutcomeSot,
|
|
37597
|
+
createdBySystemSot,
|
|
37098
37598
|
daIncidentArchiveReasonSot,
|
|
37099
37599
|
daIncidentConfidenceSot,
|
|
37100
37600
|
daIncidentDayApproxSot,
|
|
@@ -37129,6 +37629,7 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37129
37629
|
hmisCurrentLivingSituationSot,
|
|
37130
37630
|
hmisProjectTypeSot,
|
|
37131
37631
|
hmisRelationshipToHohSot,
|
|
37632
|
+
hmisSexSot,
|
|
37132
37633
|
homelessStatusSot,
|
|
37133
37634
|
hopeScaleCaptureContextSot,
|
|
37134
37635
|
hopeScaleResponseOptionsSot,
|
|
@@ -37157,6 +37658,7 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37157
37658
|
milestoneTypeSot,
|
|
37158
37659
|
militaryBranchSot,
|
|
37159
37660
|
militaryStatusSot,
|
|
37661
|
+
minorAdultStatusSot,
|
|
37160
37662
|
nameTypeSot,
|
|
37161
37663
|
needsAssessmentChangeTypeSot,
|
|
37162
37664
|
needsResidentialAgainSot,
|
|
@@ -37220,6 +37722,7 @@ var suggestionSource_v1_0_0_default = {
|
|
|
37220
37722
|
sourceSubtypeSot,
|
|
37221
37723
|
sourceSystemSot,
|
|
37222
37724
|
specialNeedsDisabilitiesSot,
|
|
37725
|
+
subjectTypeSot,
|
|
37223
37726
|
substanceUseStatusSot,
|
|
37224
37727
|
suggestionSourceSot,
|
|
37225
37728
|
supportStrengthSot,
|