@htilabs/platform-common-models 0.13.0 → 0.14.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/constants/index.cjs +106 -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 +98 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-0BIB9sen.d.cts} +36 -36
- package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-0BIB9sen.d.ts} +36 -36
- package/dist/cvcs/index.cjs +562 -120
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +589 -121
- package/dist/cvcs/index.d.ts +589 -121
- package/dist/cvcs/index.js +562 -120
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +22 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +29 -9
- package/dist/enums/index.d.ts +29 -9
- package/dist/enums/index.js +22 -2
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-4DiJrn7y.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-qreOzXYS.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +690 -122
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +682 -122
- 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/{platform-auth-Dv5fu0Fh.d.cts → platform-auth-CrF5U_JH.d.cts} +113 -3
- package/dist/{platform-auth-Dv5fu0Fh.d.ts → platform-auth-CrF5U_JH.d.ts} +113 -3
- package/dist/schemas/index.cjs +296 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/dist/schemas/index.js +296 -0
- 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 +26 -27
- package/src/__sot__/coreIndicatorFields.ts +4 -4
- package/src/__sot__/coreIndicators.pin.json +62 -2
- package/src/__sot__/scoringEmits.pin.json +9 -4
- package/src/__tests__/__snapshots__/cvc-sot.snap +11 -11
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
- package/src/__tests__/cvc-drift-gate.test.ts +165 -32
- package/src/__tests__/cvc-sot-snapshot.test.ts +21 -12
- package/src/__tests__/cvc-structural.test.ts +8 -8
- package/src/__tests__/incident-participation-roles-canon.test.ts +424 -0
- package/src/__tests__/referral-entity-category-canon.test.ts +383 -0
- package/src/constants/ic.ts +321 -3
- package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
- package/src/cvcs/{highestEducationLevelCompleted.v1.0.0.json → highestEducationLevelCompleted.v1.1.0.json} +1 -1
- package/src/cvcs/incidentParticipationRoles.v1.1.0.json +433 -0
- package/src/cvcs/{incomeBenefitsSources.v1.0.0.json → incomeBenefitsSources.v1.1.0.json} +1 -1
- package/src/cvcs/index.ts +8 -8
- package/src/cvcs/{referralEntityCategory.v1.0.0.json → referralEntityCategory.v1.1.0.json} +192 -54
- package/src/cvcs/{serviceStates.v1.0.0.json → serviceStates.v1.1.0.json} +1 -1
- package/src/cvcs/{sourceSubtype.v1.1.0.json → sourceSubtype.v1.2.0.json} +1 -1
- package/src/cvcs/{verificationMethod.v1.0.0.json → verificationMethod.v1.1.0.json} +1 -1
- package/src/generated/cvc-enums.ts +29 -9
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +0 -212
package/dist/constants/index.cjs
CHANGED
|
@@ -22,6 +22,8 @@ var constants_exports = {};
|
|
|
22
22
|
__export(constants_exports, {
|
|
23
23
|
ACCOMMODATION_LABELS: () => ACCOMMODATION_LABELS,
|
|
24
24
|
ACCOMMODATION_OPTIONS: () => ACCOMMODATION_OPTIONS,
|
|
25
|
+
ACTIVE_CVC_136_CORE_INDICATOR_VALUES: () => ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
|
|
26
|
+
ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES: () => ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
25
27
|
AGE_BIN_REPORTING: () => AGE_BIN_REPORTING,
|
|
26
28
|
AGE_BIN_REPORTING_IS_MINOR: () => AGE_BIN_REPORTING_IS_MINOR,
|
|
27
29
|
AGE_BIN_REPORTING_LABELS: () => AGE_BIN_REPORTING_LABELS,
|
|
@@ -58,6 +60,7 @@ __export(constants_exports, {
|
|
|
58
60
|
CVC_136_ALERT_INDICATOR: () => CVC_136_ALERT_INDICATOR,
|
|
59
61
|
CVC_136_CATEGORY_LABELS: () => CVC_136_CATEGORY_LABELS,
|
|
60
62
|
CVC_136_CORE_INDICATOR_LABELS: () => CVC_136_CORE_INDICATOR_LABELS,
|
|
63
|
+
CVC_136_CORE_INDICATOR_SUPERSEDED_BY: () => CVC_136_CORE_INDICATOR_SUPERSEDED_BY,
|
|
61
64
|
CVC_136_CORE_INDICATOR_VALUES: () => CVC_136_CORE_INDICATOR_VALUES,
|
|
62
65
|
CVC_136_INDICATOR_CATEGORY: () => CVC_136_INDICATOR_CATEGORY,
|
|
63
66
|
CVC_136_LABELS: () => CVC_136_LABELS,
|
|
@@ -239,6 +242,7 @@ __export(constants_exports, {
|
|
|
239
242
|
INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE: () => INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE,
|
|
240
243
|
INCIDENT_PARTICIPATION_ROLE: () => INCIDENT_PARTICIPATION_ROLE,
|
|
241
244
|
INCIDENT_PARTICIPATION_ROLE_LABELS: () => INCIDENT_PARTICIPATION_ROLE_LABELS,
|
|
245
|
+
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY: () => INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
242
246
|
INCIDENT_PARTICIPATION_ROLE_VALUES: () => INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
243
247
|
INTERACTION_TYPES: () => INTERACTION_TYPES,
|
|
244
248
|
INTERACTION_TYPE_LABELS: () => INTERACTION_TYPE_LABELS,
|
|
@@ -286,6 +290,8 @@ __export(constants_exports, {
|
|
|
286
290
|
USER_STATUS_LABELS: () => USER_STATUS_LABELS,
|
|
287
291
|
VALID_INTERACTION_TYPES: () => VALID_INTERACTION_TYPES,
|
|
288
292
|
VALID_RECORD_STATES: () => VALID_RECORD_STATES,
|
|
293
|
+
canonicalCoreIndicator: () => canonicalCoreIndicator,
|
|
294
|
+
canonicalIncidentParticipationRole: () => canonicalIncidentParticipationRole,
|
|
289
295
|
deriveAgeBinFromAge: () => deriveAgeBinFromAge,
|
|
290
296
|
getDisplayCategoryForRole: () => getDisplayCategoryForRole,
|
|
291
297
|
getIC48AncestorCategories: () => getIC48AncestorCategories,
|
|
@@ -299,6 +305,8 @@ __export(constants_exports, {
|
|
|
299
305
|
getIC48TopicForCategory: () => getIC48TopicForCategory,
|
|
300
306
|
getPersonTypeForRole: () => getPersonTypeForRole,
|
|
301
307
|
getRelationshipCategory: () => getRelationshipCategory,
|
|
308
|
+
isDeprecatedCoreIndicator: () => isDeprecatedCoreIndicator,
|
|
309
|
+
isDeprecatedIncidentParticipationRole: () => isDeprecatedIncidentParticipationRole,
|
|
302
310
|
isIC56Missingness: () => isIC56Missingness,
|
|
303
311
|
isIC56ValidChannel: () => isIC56ValidChannel,
|
|
304
312
|
isLgbtqOrientation: () => isLgbtqOrientation,
|
|
@@ -1670,12 +1678,32 @@ var INCIDENT_PARTICIPATION_ROLE = {
|
|
|
1670
1678
|
REPORTER: "reporter",
|
|
1671
1679
|
FAMILY_MEMBER_OR_GUARDIAN: "family_member_or_guardian",
|
|
1672
1680
|
FRIEND_OR_PEER: "friend_or_peer",
|
|
1681
|
+
/** @deprecated Superseded by `VSP_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
|
|
1673
1682
|
SERVICE_PROVIDER_STAFF: "service_provider_staff",
|
|
1683
|
+
/** @deprecated Superseded by `HEALTHCARE_PROVIDER_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
|
|
1674
1684
|
MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
|
|
1685
|
+
/** @deprecated Superseded by `DATA_ENTRY_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
|
|
1675
1686
|
DATA_ENTRY: "data_entry",
|
|
1687
|
+
/** @deprecated Superseded by `OTHER_RESPONSE_PERSONNEL` (canon CVC-69, 2026-08-13). Read-only. */
|
|
1676
1688
|
OTHER_INCIDENT_RESPONDER: "other_incident_responder",
|
|
1689
|
+
/** @deprecated Superseded by `LAW_ENFORCEMENT_PERSONNEL` (canon CVC-69, 2026-08-13). Read-only. */
|
|
1677
1690
|
RESPONDING_OFFICER: "responding_officer",
|
|
1678
1691
|
LEGAL_PROFESSIONAL: "legal_professional",
|
|
1692
|
+
// Canon CVC-69 v1.0 — the five renamed codes + task_force.
|
|
1693
|
+
VSP_STAFF: "vsp_staff",
|
|
1694
|
+
HEALTHCARE_PROVIDER_STAFF: "healthcare_provider_staff",
|
|
1695
|
+
LAW_ENFORCEMENT_PERSONNEL: "law_enforcement_personnel",
|
|
1696
|
+
OTHER_RESPONSE_PERSONNEL: "other_response_personnel",
|
|
1697
|
+
DATA_ENTRY_STAFF: "data_entry_staff",
|
|
1698
|
+
TASK_FORCE: "task_force",
|
|
1699
|
+
// Canon Level-2 sub-items (LEADS investigative wing). A sub-item implies its
|
|
1700
|
+
// parent: the first four sit under LAW_ENFORCEMENT_PERSONNEL, PROSECUTOR
|
|
1701
|
+
// under LEGAL_PROFESSIONAL.
|
|
1702
|
+
LEAD_INVESTIGATOR: "lead_investigator",
|
|
1703
|
+
INVESTIGATOR: "investigator",
|
|
1704
|
+
ANALYST: "analyst",
|
|
1705
|
+
LE_OFFICER: "le_officer",
|
|
1706
|
+
PROSECUTOR: "prosecutor",
|
|
1679
1707
|
UNKNOWN: "unknown",
|
|
1680
1708
|
ANONYMOUS: "anonymous",
|
|
1681
1709
|
DATA_NOT_COLLECTED: "data_not_collected"
|
|
@@ -1693,6 +1721,17 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
|
1693
1721
|
INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
|
|
1694
1722
|
INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
|
|
1695
1723
|
INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
|
|
1724
|
+
INCIDENT_PARTICIPATION_ROLE.VSP_STAFF,
|
|
1725
|
+
INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF,
|
|
1726
|
+
INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL,
|
|
1727
|
+
INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL,
|
|
1728
|
+
INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF,
|
|
1729
|
+
INCIDENT_PARTICIPATION_ROLE.TASK_FORCE,
|
|
1730
|
+
INCIDENT_PARTICIPATION_ROLE.LEAD_INVESTIGATOR,
|
|
1731
|
+
INCIDENT_PARTICIPATION_ROLE.INVESTIGATOR,
|
|
1732
|
+
INCIDENT_PARTICIPATION_ROLE.ANALYST,
|
|
1733
|
+
INCIDENT_PARTICIPATION_ROLE.LE_OFFICER,
|
|
1734
|
+
INCIDENT_PARTICIPATION_ROLE.PROSECUTOR,
|
|
1696
1735
|
INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
|
|
1697
1736
|
INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
|
|
1698
1737
|
INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
|
|
@@ -1710,6 +1749,19 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
|
1710
1749
|
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
|
|
1711
1750
|
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
|
|
1712
1751
|
[INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
|
|
1752
|
+
// Added in v1.1.0: the canon codebook `Acceptable name`, verbatim.
|
|
1753
|
+
[INCIDENT_PARTICIPATION_ROLE.VSP_STAFF]: "Victim Service provider staff",
|
|
1754
|
+
[INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF]: "Healthcare provider staff",
|
|
1755
|
+
[INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL]: "Law enforcement personnel",
|
|
1756
|
+
[INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL]: "Other Response Personnel",
|
|
1757
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF]: "Data Entry / Editor",
|
|
1758
|
+
[INCIDENT_PARTICIPATION_ROLE.TASK_FORCE]: "Task Force Partner",
|
|
1759
|
+
[INCIDENT_PARTICIPATION_ROLE.LEAD_INVESTIGATOR]: "Lead Investigator",
|
|
1760
|
+
[INCIDENT_PARTICIPATION_ROLE.INVESTIGATOR]: "Investigator / Detective",
|
|
1761
|
+
[INCIDENT_PARTICIPATION_ROLE.ANALYST]: "Analyst",
|
|
1762
|
+
[INCIDENT_PARTICIPATION_ROLE.LE_OFFICER]: "LE Officer",
|
|
1763
|
+
[INCIDENT_PARTICIPATION_ROLE.PROSECUTOR]: "Prosecutor",
|
|
1764
|
+
// Level 0, as 0.13.0 shipped them (canon: Unknown / Anonymous / Data not collected).
|
|
1713
1765
|
[INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
|
|
1714
1766
|
[INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
|
|
1715
1767
|
[INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
@@ -1736,6 +1788,27 @@ var CALLER_IS_VICTIM_ROLES = [
|
|
|
1736
1788
|
INCIDENT_PARTICIPATION_ROLE.CALLER_SELF,
|
|
1737
1789
|
INCIDENT_PARTICIPATION_ROLE.REPORTER
|
|
1738
1790
|
];
|
|
1791
|
+
var INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY = {
|
|
1792
|
+
[INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF]: INCIDENT_PARTICIPATION_ROLE.VSP_STAFF,
|
|
1793
|
+
[INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]: INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF,
|
|
1794
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF,
|
|
1795
|
+
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL,
|
|
1796
|
+
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL
|
|
1797
|
+
};
|
|
1798
|
+
function isDeprecatedIncidentParticipationRole(role) {
|
|
1799
|
+
return typeof role === "string" && Object.prototype.hasOwnProperty.call(
|
|
1800
|
+
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
1801
|
+
role
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
function canonicalIncidentParticipationRole(role) {
|
|
1805
|
+
return isDeprecatedIncidentParticipationRole(role) ? INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY[role] : role;
|
|
1806
|
+
}
|
|
1807
|
+
var ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES = Object.freeze(
|
|
1808
|
+
INCIDENT_PARTICIPATION_ROLE_VALUES.filter(
|
|
1809
|
+
(role) => !isDeprecatedIncidentParticipationRole(role)
|
|
1810
|
+
)
|
|
1811
|
+
);
|
|
1739
1812
|
var PERSON_DISPLAY_CATEGORY = {
|
|
1740
1813
|
PRIMARY_VICTIM: "primary_victim",
|
|
1741
1814
|
ELIGIBLE_FAMILY: "eligible_family",
|
|
@@ -4249,7 +4322,9 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4249
4322
|
"denied_basic_needs",
|
|
4250
4323
|
"depends_on_employer_for_immigration_status",
|
|
4251
4324
|
"depends_on_spouse_or_family_for_immigration_status",
|
|
4325
|
+
"disclosed_fear_at_intake",
|
|
4252
4326
|
"does_not_control_finances_or_earnings",
|
|
4327
|
+
"does_not_control_housing",
|
|
4253
4328
|
"does_not_control_identity_documents",
|
|
4254
4329
|
"elevated_lethality_risk_signal",
|
|
4255
4330
|
"employer_keeps_pay_or_pays_less_than_expected",
|
|
@@ -4311,6 +4386,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4311
4386
|
"new_to_commercial_sex_industry",
|
|
4312
4387
|
"non_consensual_photography_or_recording",
|
|
4313
4388
|
"not_in_control_of_immigration_documentation",
|
|
4389
|
+
"oppressive_home_life",
|
|
4314
4390
|
"other_instability_or_vulnerability_factors",
|
|
4315
4391
|
"owes_money_and_cannot_pay_off",
|
|
4316
4392
|
"paid_or_owes_fee_to_arrange_travel_to_us",
|
|
@@ -4330,6 +4406,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4330
4406
|
"promise_of_work_different_than_current_work",
|
|
4331
4407
|
"received_things_of_value_while_missing_from_care",
|
|
4332
4408
|
"recent_le_engagement",
|
|
4409
|
+
"recent_separation",
|
|
4333
4410
|
"recruited_by_third_party_into_cs_industry",
|
|
4334
4411
|
"regular_alcohol_use",
|
|
4335
4412
|
"relies_on_temporary_resources_for_basic_needs",
|
|
@@ -4377,6 +4454,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4377
4454
|
"suicidal_ideation_history",
|
|
4378
4455
|
"suicidal_ideation_recent",
|
|
4379
4456
|
"suicide_attempt_history",
|
|
4457
|
+
"survival_sex",
|
|
4380
4458
|
"third_party_advertises_or_posts_for_person",
|
|
4381
4459
|
"third_party_arranged_commercial_sex_acts",
|
|
4382
4460
|
"threats_by_employer_or_partner",
|
|
@@ -4392,6 +4470,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4392
4470
|
"trauma_perpetrator_is_current_manager",
|
|
4393
4471
|
"travel_organized_by_third_party",
|
|
4394
4472
|
"tricked_or_pressured_into_unwanted_acts",
|
|
4473
|
+
"unable_to_speak_freely",
|
|
4395
4474
|
"under_18_advertised_age",
|
|
4396
4475
|
"under_18_appears_underage",
|
|
4397
4476
|
"under_18_known_age",
|
|
@@ -4467,7 +4546,9 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4467
4546
|
"denied_basic_needs": "Denied basic needs (food, water, sleep, medical care)",
|
|
4468
4547
|
"depends_on_employer_for_immigration_status": "Depends on employer for immigration status (tied visa / living with employer)",
|
|
4469
4548
|
"depends_on_spouse_or_family_for_immigration_status": "Depends on spouse / family member for immigration status (tied family visa)",
|
|
4549
|
+
"disclosed_fear_at_intake": "Disclosed fear of a specific person",
|
|
4470
4550
|
"does_not_control_finances_or_earnings": "Limited independence: does not control finances or earnings",
|
|
4551
|
+
"does_not_control_housing": "Limited independence: does not control where they live",
|
|
4471
4552
|
"does_not_control_identity_documents": "Limited independence: does not control identity documents",
|
|
4472
4553
|
"elevated_lethality_risk_signal": "Elevated lethality risk",
|
|
4473
4554
|
"employer_keeps_pay_or_pays_less_than_expected": "Employer keeps portion of pay or pays less than expected",
|
|
@@ -4529,6 +4610,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4529
4610
|
"new_to_commercial_sex_industry": "New to commercial sex industry (recent entry / early experience)",
|
|
4530
4611
|
"non_consensual_photography_or_recording": "Non-consensual photography or recording",
|
|
4531
4612
|
"not_in_control_of_immigration_documentation": "Not in control of immigration documentation",
|
|
4613
|
+
"oppressive_home_life": "Oppressive, unsafe, or unstable home life",
|
|
4532
4614
|
"other_instability_or_vulnerability_factors": "Other instability/vulnerability factors (general)",
|
|
4533
4615
|
"owes_money_and_cannot_pay_off": "Unusual work circumstances: owes money and cannot pay it off (debt pressure)",
|
|
4534
4616
|
"paid_or_owes_fee_to_arrange_travel_to_us": "Paid or owes fee to arrange travel to U.S. (migration debt)",
|
|
@@ -4548,6 +4630,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4548
4630
|
"promise_of_work_different_than_current_work": "Promise of work differed from current work (migration deception)",
|
|
4549
4631
|
"received_things_of_value_while_missing_from_care": "Received money, drugs, or other things of value from someone while missing from care (youth)",
|
|
4550
4632
|
"recent_le_engagement": "Recent law enforcement engagement",
|
|
4633
|
+
"recent_separation": "Recent separation from abusive partner",
|
|
4551
4634
|
"recruited_by_third_party_into_cs_industry": "Recruited by another person/entity into commercial sex industry",
|
|
4552
4635
|
"regular_alcohol_use": "Regular alcohol use",
|
|
4553
4636
|
"relies_on_temporary_resources_for_basic_needs": "Does not consistently meet basic needs / relies on temporary resources",
|
|
@@ -4595,6 +4678,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4595
4678
|
"suicidal_ideation_history": "Suicidal ideation (past)",
|
|
4596
4679
|
"suicidal_ideation_recent": "Suicidal ideation (recent)",
|
|
4597
4680
|
"suicide_attempt_history": "Past suicide attempt disclosed",
|
|
4681
|
+
"survival_sex": "Survival sex (sex exchanged to meet basic needs)",
|
|
4598
4682
|
"third_party_advertises_or_posts_for_person": "Third party posts or manages the person's commercial-sex ads",
|
|
4599
4683
|
"third_party_arranged_commercial_sex_acts": "Someone else arranged commercial sex acts (posting, scheduling, managing)",
|
|
4600
4684
|
"threats_by_employer_or_partner": "Threats by employer/partner (general)",
|
|
@@ -4610,6 +4694,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4610
4694
|
"trauma_perpetrator_is_current_manager": "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
|
|
4611
4695
|
"travel_organized_by_third_party": "Travel organized by a third party (sex provider does not control own movement)",
|
|
4612
4696
|
"tricked_or_pressured_into_unwanted_acts": "Tricked or pressured into unwanted acts or activities (generic coercion)",
|
|
4697
|
+
"unable_to_speak_freely": "Unable to speak freely",
|
|
4613
4698
|
"under_18_advertised_age": "Under 18 (ad-derived / advertised age)",
|
|
4614
4699
|
"under_18_appears_underage": "Under 18 (appears underage; investigator assessment)",
|
|
4615
4700
|
"under_18_known_age": "Under 18 (known age)",
|
|
@@ -4629,6 +4714,19 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4629
4714
|
"works_for_little_or_no_pay": "Works for little or no pay",
|
|
4630
4715
|
"youth_watched_filmed_or_photographed_sexually_explicit": "Watched, filmed, or photographed in sexually explicit manner (youth)"
|
|
4631
4716
|
};
|
|
4717
|
+
var CVC_136_CORE_INDICATOR_SUPERSEDED_BY = {
|
|
4718
|
+
coercive_debt_pressure_youth: "coercive_debt_pressure",
|
|
4719
|
+
debt_terms_deceptive_youth: "debt_terms_deceptive"
|
|
4720
|
+
};
|
|
4721
|
+
function isDeprecatedCoreIndicator(code) {
|
|
4722
|
+
return typeof code === "string" && Object.prototype.hasOwnProperty.call(CVC_136_CORE_INDICATOR_SUPERSEDED_BY, code);
|
|
4723
|
+
}
|
|
4724
|
+
function canonicalCoreIndicator(code) {
|
|
4725
|
+
return isDeprecatedCoreIndicator(code) ? CVC_136_CORE_INDICATOR_SUPERSEDED_BY[code] : code;
|
|
4726
|
+
}
|
|
4727
|
+
var ACTIVE_CVC_136_CORE_INDICATOR_VALUES = CVC_136_CORE_INDICATOR_VALUES.filter(
|
|
4728
|
+
(v) => !isDeprecatedCoreIndicator(v)
|
|
4729
|
+
);
|
|
4632
4730
|
var CVC_67_HMIS_SEX = {
|
|
4633
4731
|
MALE: "male",
|
|
4634
4732
|
FEMALE: "female",
|
|
@@ -6238,6 +6336,8 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6238
6336
|
0 && (module.exports = {
|
|
6239
6337
|
ACCOMMODATION_LABELS,
|
|
6240
6338
|
ACCOMMODATION_OPTIONS,
|
|
6339
|
+
ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
|
|
6340
|
+
ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
6241
6341
|
AGE_BIN_REPORTING,
|
|
6242
6342
|
AGE_BIN_REPORTING_IS_MINOR,
|
|
6243
6343
|
AGE_BIN_REPORTING_LABELS,
|
|
@@ -6274,6 +6374,7 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6274
6374
|
CVC_136_ALERT_INDICATOR,
|
|
6275
6375
|
CVC_136_CATEGORY_LABELS,
|
|
6276
6376
|
CVC_136_CORE_INDICATOR_LABELS,
|
|
6377
|
+
CVC_136_CORE_INDICATOR_SUPERSEDED_BY,
|
|
6277
6378
|
CVC_136_CORE_INDICATOR_VALUES,
|
|
6278
6379
|
CVC_136_INDICATOR_CATEGORY,
|
|
6279
6380
|
CVC_136_LABELS,
|
|
@@ -6455,6 +6556,7 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6455
6556
|
INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE,
|
|
6456
6557
|
INCIDENT_PARTICIPATION_ROLE,
|
|
6457
6558
|
INCIDENT_PARTICIPATION_ROLE_LABELS,
|
|
6559
|
+
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
6458
6560
|
INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
6459
6561
|
INTERACTION_TYPES,
|
|
6460
6562
|
INTERACTION_TYPE_LABELS,
|
|
@@ -6502,6 +6604,8 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6502
6604
|
USER_STATUS_LABELS,
|
|
6503
6605
|
VALID_INTERACTION_TYPES,
|
|
6504
6606
|
VALID_RECORD_STATES,
|
|
6607
|
+
canonicalCoreIndicator,
|
|
6608
|
+
canonicalIncidentParticipationRole,
|
|
6505
6609
|
deriveAgeBinFromAge,
|
|
6506
6610
|
getDisplayCategoryForRole,
|
|
6507
6611
|
getIC48AncestorCategories,
|
|
@@ -6515,6 +6619,8 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6515
6619
|
getIC48TopicForCategory,
|
|
6516
6620
|
getPersonTypeForRole,
|
|
6517
6621
|
getRelationshipCategory,
|
|
6622
|
+
isDeprecatedCoreIndicator,
|
|
6623
|
+
isDeprecatedIncidentParticipationRole,
|
|
6518
6624
|
isIC56Missingness,
|
|
6519
6625
|
isIC56ValidChannel,
|
|
6520
6626
|
isLgbtqOrientation,
|