@htilabs/platform-common-models 0.4.0-beta.2 → 0.5.2-beta.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 +18 -9
- 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 +18 -9
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +461 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +529 -26
- package/dist/cvcs/index.d.ts +529 -26
- package/dist/cvcs/index.js +458 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +534 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -3
- package/dist/index.d.ts +70 -3
- package/dist/index.js +528 -9
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
- package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
- package/dist/schemas/index.cjs +16 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +16 -7
- 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 +12 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +20 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/constants/ic.ts +24 -14
- package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
- package/src/cvcs/index.ts +6 -0
- package/src/cvcs/raceEthnicity.v1.0.0.json +142 -0
- package/src/generated/cvc-enums.ts +73 -0
package/dist/index.js
CHANGED
|
@@ -885,7 +885,7 @@ var INCIDENT_INVOLVEMENT_ROLE = {
|
|
|
885
885
|
OFFENDER: "offender",
|
|
886
886
|
UNKNOWN: "unknown",
|
|
887
887
|
ANONYMOUS: "anonymous",
|
|
888
|
-
|
|
888
|
+
DATA_NOT_COLLECTED: "data_not_collected"
|
|
889
889
|
};
|
|
890
890
|
var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
|
|
891
891
|
[INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY]: "Primary Victim",
|
|
@@ -896,7 +896,7 @@ var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
|
|
|
896
896
|
[INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: "Offender",
|
|
897
897
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: "Unknown",
|
|
898
898
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: "Anonymous",
|
|
899
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
899
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
900
900
|
};
|
|
901
901
|
var THREAD_INVOLVEMENT_ROLES = [
|
|
902
902
|
INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY,
|
|
@@ -924,7 +924,7 @@ var INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE = {
|
|
|
924
924
|
[INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: PERSON_ROLES.OFFENDER,
|
|
925
925
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: PERSON_ROLES.OTHER,
|
|
926
926
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_ROLES.OTHER,
|
|
927
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
927
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: PERSON_ROLES.OTHER
|
|
928
928
|
};
|
|
929
929
|
var IC_4_AGE_TYPE = {
|
|
930
930
|
EXACT_DOB: 1,
|
|
@@ -1283,9 +1283,12 @@ var INCIDENT_PARTICIPATION_ROLE = {
|
|
|
1283
1283
|
FRIEND_OR_PEER: "friend_or_peer",
|
|
1284
1284
|
SERVICE_PROVIDER_STAFF: "service_provider_staff",
|
|
1285
1285
|
MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
|
|
1286
|
+
DATA_ENTRY: "data_entry",
|
|
1287
|
+
OTHER_INCIDENT_RESPONDER: "other_incident_responder",
|
|
1288
|
+
RESPONDING_OFFICER: "responding_officer",
|
|
1286
1289
|
UNKNOWN: "unknown",
|
|
1287
1290
|
ANONYMOUS: "anonymous",
|
|
1288
|
-
|
|
1291
|
+
DATA_NOT_COLLECTED: "data_not_collected"
|
|
1289
1292
|
};
|
|
1290
1293
|
var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
1291
1294
|
INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT,
|
|
@@ -1296,9 +1299,12 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
|
1296
1299
|
INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER,
|
|
1297
1300
|
INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
|
|
1298
1301
|
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
|
|
1302
|
+
INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
|
|
1303
|
+
INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
|
|
1304
|
+
INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
|
|
1299
1305
|
INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
|
|
1300
1306
|
INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
|
|
1301
|
-
INCIDENT_PARTICIPATION_ROLE.
|
|
1307
|
+
INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
|
|
1302
1308
|
];
|
|
1303
1309
|
var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
1304
1310
|
[INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT]: "Client / Subject-of-Record",
|
|
@@ -1309,9 +1315,12 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
|
1309
1315
|
[INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER]: "Friend or Peer",
|
|
1310
1316
|
[INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF]: "Service Provider Staff",
|
|
1311
1317
|
[INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]: "Medical Provider Staff",
|
|
1318
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
|
|
1319
|
+
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
|
|
1320
|
+
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
|
|
1312
1321
|
[INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
|
|
1313
1322
|
[INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
|
|
1314
|
-
[INCIDENT_PARTICIPATION_ROLE.
|
|
1323
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
1315
1324
|
};
|
|
1316
1325
|
var PARTICIPATION_ROLE_CATEGORIES = {
|
|
1317
1326
|
CLIENT: [INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT],
|
|
@@ -1371,10 +1380,10 @@ var INVOLVEMENT_ROLE_TO_PERSON_TYPE = {
|
|
|
1371
1380
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: null,
|
|
1372
1381
|
// Conditional — use getPersonTypeForRole()
|
|
1373
1382
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_TYPE.THIRD_PARTY,
|
|
1374
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
1383
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: null
|
|
1375
1384
|
};
|
|
1376
1385
|
function getPersonTypeForRole(role, contextPersonType) {
|
|
1377
|
-
if (role === INCIDENT_INVOLVEMENT_ROLE.
|
|
1386
|
+
if (role === INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED) {
|
|
1378
1387
|
return null;
|
|
1379
1388
|
}
|
|
1380
1389
|
if (role === INCIDENT_INVOLVEMENT_ROLE.UNKNOWN) {
|
|
@@ -1401,7 +1410,7 @@ function getDisplayCategoryForRole(role, personType) {
|
|
|
1401
1410
|
return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
|
|
1402
1411
|
case INCIDENT_INVOLVEMENT_ROLE.VICTIM_OTHER:
|
|
1403
1412
|
return PERSON_DISPLAY_CATEGORY.ELIGIBLE_FAMILY;
|
|
1404
|
-
case INCIDENT_INVOLVEMENT_ROLE.
|
|
1413
|
+
case INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED:
|
|
1405
1414
|
default:
|
|
1406
1415
|
return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
|
|
1407
1416
|
}
|
|
@@ -6786,6 +6795,55 @@ var ServiceMechanismKeys = {
|
|
|
6786
6795
|
direct_staff_contractor: "025-003-000-000-000-000-000",
|
|
6787
6796
|
financial_material_assistance: "025-004-000-000-000-000-000"
|
|
6788
6797
|
};
|
|
6798
|
+
var IncidentParticipationRoleKeys = {
|
|
6799
|
+
missingness_root: "069-000-000-000-000-000-000",
|
|
6800
|
+
unknown: "069-000-000-000-000-000-001",
|
|
6801
|
+
anonymous: "069-000-000-000-000-000-002",
|
|
6802
|
+
data_not_collected: "069-000-000-000-000-000-003",
|
|
6803
|
+
client_group: "069-001-000-000-000-000-000",
|
|
6804
|
+
client_subject: "069-001-001-000-000-000-000",
|
|
6805
|
+
caller_reporter_group: "069-002-000-000-000-000-000",
|
|
6806
|
+
caller_self: "069-002-001-000-000-000-000",
|
|
6807
|
+
caller_third_party: "069-002-002-000-000-000-000",
|
|
6808
|
+
reporter: "069-002-003-000-000-000-000",
|
|
6809
|
+
support_network_group: "069-003-000-000-000-000-000",
|
|
6810
|
+
family_member_or_guardian: "069-003-001-000-000-000-000",
|
|
6811
|
+
friend_or_peer: "069-003-002-000-000-000-000",
|
|
6812
|
+
system_professional_group: "069-004-000-000-000-000-000",
|
|
6813
|
+
service_provider_staff: "069-004-001-000-000-000-000",
|
|
6814
|
+
medical_provider_staff: "069-004-002-000-000-000-000",
|
|
6815
|
+
data_entry: "069-004-003-000-000-000-000",
|
|
6816
|
+
other_incident_responder: "069-004-004-000-000-000-000",
|
|
6817
|
+
responding_officer: "069-004-005-000-000-000-000"
|
|
6818
|
+
};
|
|
6819
|
+
var IncidentInvolvementRoleKeys = {
|
|
6820
|
+
missingness_root: "130-000-000-000-000-000-000",
|
|
6821
|
+
unknown: "130-000-000-000-000-000-001",
|
|
6822
|
+
anonymous: "130-000-000-000-000-000-002",
|
|
6823
|
+
data_not_collected: "130-000-000-000-000-000-003",
|
|
6824
|
+
victim_primary: "130-001-000-000-000-000-000",
|
|
6825
|
+
victim_secondary: "130-002-000-000-000-000-000",
|
|
6826
|
+
victim_other: "130-003-000-000-000-000-000",
|
|
6827
|
+
offender: "130-004-000-000-000-000-000",
|
|
6828
|
+
witness: "130-005-000-000-000-000-000",
|
|
6829
|
+
dependent: "130-006-000-000-000-000-000"
|
|
6830
|
+
};
|
|
6831
|
+
var RaceEthnicityKeys = {
|
|
6832
|
+
missingness_root: "076-000-000-000-000-000-000",
|
|
6833
|
+
unknown: "076-000-000-000-000-000-001",
|
|
6834
|
+
anonymous: "076-000-000-000-000-000-002",
|
|
6835
|
+
data_not_collected: "076-000-000-000-000-000-003",
|
|
6836
|
+
prefer_not_to_answer: "076-000-000-000-000-000-004",
|
|
6837
|
+
american_indian_or_alaska_native: "076-001-000-000-000-000-000",
|
|
6838
|
+
asian: "076-002-000-000-000-000-000",
|
|
6839
|
+
black_or_african_american: "076-003-000-000-000-000-000",
|
|
6840
|
+
hispanic_or_latino: "076-004-000-000-000-000-000",
|
|
6841
|
+
middle_eastern_or_north_african: "076-005-000-000-000-000-000",
|
|
6842
|
+
multiple_races: "076-006-000-000-000-000-000",
|
|
6843
|
+
native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000",
|
|
6844
|
+
other_self_described: "076-008-000-000-000-000-000",
|
|
6845
|
+
white: "076-009-000-000-000-000-000"
|
|
6846
|
+
};
|
|
6789
6847
|
|
|
6790
6848
|
// src/services/cvcRegistryService.ts
|
|
6791
6849
|
import "mongoose";
|
|
@@ -9481,6 +9539,461 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
9481
9539
|
}
|
|
9482
9540
|
]
|
|
9483
9541
|
};
|
|
9542
|
+
|
|
9543
|
+
// src/cvcs/incidentParticipationRoles.v1.0.0.json
|
|
9544
|
+
var incidentParticipationRoles_v1_0_0_default = {
|
|
9545
|
+
domain: "incident_participation_roles",
|
|
9546
|
+
name: "Core Incident Participation Roles",
|
|
9547
|
+
version: "1.0.0",
|
|
9548
|
+
levels: {
|
|
9549
|
+
"0": "Unknown or Missing",
|
|
9550
|
+
"1": "Group",
|
|
9551
|
+
"2": "Role"
|
|
9552
|
+
},
|
|
9553
|
+
entries: [
|
|
9554
|
+
{
|
|
9555
|
+
code: "069-001-000-000-000-000-000",
|
|
9556
|
+
key: "client_group",
|
|
9557
|
+
title: "Client",
|
|
9558
|
+
selectable: false,
|
|
9559
|
+
parentCode: null,
|
|
9560
|
+
childCodes: [
|
|
9561
|
+
"069-001-001-000-000-000-000"
|
|
9562
|
+
],
|
|
9563
|
+
definition: "Group of participation roles identifying the person the incident record is about."
|
|
9564
|
+
},
|
|
9565
|
+
{
|
|
9566
|
+
code: "069-001-001-000-000-000-000",
|
|
9567
|
+
key: "client_subject",
|
|
9568
|
+
title: "Client (subject)",
|
|
9569
|
+
selectable: true,
|
|
9570
|
+
parentCode: "069-001-000-000-000-000-000",
|
|
9571
|
+
childCodes: [],
|
|
9572
|
+
definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
|
|
9573
|
+
},
|
|
9574
|
+
{
|
|
9575
|
+
code: "069-002-000-000-000-000-000",
|
|
9576
|
+
key: "caller_reporter_group",
|
|
9577
|
+
title: "Caller / Reporter",
|
|
9578
|
+
selectable: false,
|
|
9579
|
+
parentCode: null,
|
|
9580
|
+
childCodes: [
|
|
9581
|
+
"069-002-001-000-000-000-000",
|
|
9582
|
+
"069-002-002-000-000-000-000",
|
|
9583
|
+
"069-002-003-000-000-000-000"
|
|
9584
|
+
],
|
|
9585
|
+
definition: "Group of participation roles identifying who contacted or reported the incident to the program."
|
|
9586
|
+
},
|
|
9587
|
+
{
|
|
9588
|
+
code: "069-002-001-000-000-000-000",
|
|
9589
|
+
key: "caller_self",
|
|
9590
|
+
title: "Caller (self)",
|
|
9591
|
+
selectable: true,
|
|
9592
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9593
|
+
childCodes: [],
|
|
9594
|
+
definition: "Caller contacting the program on their own behalf."
|
|
9595
|
+
},
|
|
9596
|
+
{
|
|
9597
|
+
code: "069-002-002-000-000-000-000",
|
|
9598
|
+
key: "caller_third_party",
|
|
9599
|
+
title: "Caller (third party)",
|
|
9600
|
+
selectable: true,
|
|
9601
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9602
|
+
childCodes: [],
|
|
9603
|
+
definition: "Caller contacting the program on behalf of someone else."
|
|
9604
|
+
},
|
|
9605
|
+
{
|
|
9606
|
+
code: "069-002-003-000-000-000-000",
|
|
9607
|
+
key: "reporter",
|
|
9608
|
+
title: "Reporter",
|
|
9609
|
+
selectable: true,
|
|
9610
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9611
|
+
childCodes: [],
|
|
9612
|
+
definition: "Participant who filed a formal report about the incident."
|
|
9613
|
+
},
|
|
9614
|
+
{
|
|
9615
|
+
code: "069-003-000-000-000-000-000",
|
|
9616
|
+
key: "support_network_group",
|
|
9617
|
+
title: "Support network",
|
|
9618
|
+
selectable: false,
|
|
9619
|
+
parentCode: null,
|
|
9620
|
+
childCodes: [
|
|
9621
|
+
"069-003-001-000-000-000-000",
|
|
9622
|
+
"069-003-002-000-000-000-000"
|
|
9623
|
+
],
|
|
9624
|
+
definition: "Group of participation roles identifying people from the client's personal support network."
|
|
9625
|
+
},
|
|
9626
|
+
{
|
|
9627
|
+
code: "069-003-001-000-000-000-000",
|
|
9628
|
+
key: "family_member_or_guardian",
|
|
9629
|
+
title: "Family member or guardian",
|
|
9630
|
+
selectable: true,
|
|
9631
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
9632
|
+
childCodes: [],
|
|
9633
|
+
definition: "Family member or legal guardian of the client."
|
|
9634
|
+
},
|
|
9635
|
+
{
|
|
9636
|
+
code: "069-003-002-000-000-000-000",
|
|
9637
|
+
key: "friend_or_peer",
|
|
9638
|
+
title: "Friend or peer",
|
|
9639
|
+
selectable: true,
|
|
9640
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
9641
|
+
childCodes: [],
|
|
9642
|
+
definition: "Friend or peer in the client's support network."
|
|
9643
|
+
},
|
|
9644
|
+
{
|
|
9645
|
+
code: "069-004-000-000-000-000-000",
|
|
9646
|
+
key: "system_professional_group",
|
|
9647
|
+
title: "System / professional participants",
|
|
9648
|
+
selectable: false,
|
|
9649
|
+
parentCode: null,
|
|
9650
|
+
childCodes: [
|
|
9651
|
+
"069-004-001-000-000-000-000",
|
|
9652
|
+
"069-004-002-000-000-000-000",
|
|
9653
|
+
"069-004-003-000-000-000-000",
|
|
9654
|
+
"069-004-004-000-000-000-000",
|
|
9655
|
+
"069-004-005-000-000-000-000"
|
|
9656
|
+
],
|
|
9657
|
+
definition: "Group of participation roles identifying system-side professionals involved in the incident."
|
|
9658
|
+
},
|
|
9659
|
+
{
|
|
9660
|
+
code: "069-004-001-000-000-000-000",
|
|
9661
|
+
key: "service_provider_staff",
|
|
9662
|
+
title: "Service provider staff",
|
|
9663
|
+
selectable: true,
|
|
9664
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
9665
|
+
childCodes: [],
|
|
9666
|
+
definition: "Staff of a service provider program or agency involved in the incident."
|
|
9667
|
+
},
|
|
9668
|
+
{
|
|
9669
|
+
code: "069-004-002-000-000-000-000",
|
|
9670
|
+
key: "medical_provider_staff",
|
|
9671
|
+
title: "Medical provider staff",
|
|
9672
|
+
selectable: true,
|
|
9673
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
9674
|
+
childCodes: [],
|
|
9675
|
+
definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
|
|
9676
|
+
},
|
|
9677
|
+
{
|
|
9678
|
+
code: "069-004-003-000-000-000-000",
|
|
9679
|
+
key: "data_entry",
|
|
9680
|
+
title: "Data Entry / Editor",
|
|
9681
|
+
selectable: true,
|
|
9682
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
9683
|
+
childCodes: [],
|
|
9684
|
+
definition: "A participant performing data entry or record editing for the incident \u2014 typically program staff entering or updating the record rather than participating substantively in the incident response."
|
|
9685
|
+
},
|
|
9686
|
+
{
|
|
9687
|
+
code: "069-004-004-000-000-000-000",
|
|
9688
|
+
key: "other_incident_responder",
|
|
9689
|
+
title: "VSP or Other Incident Responder",
|
|
9690
|
+
selectable: true,
|
|
9691
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
9692
|
+
childCodes: [],
|
|
9693
|
+
definition: "A participant acting as a Victim Service Provider (VSP) or other non-law-enforcement responder present at the incident (e.g., crisis advocate on scene)."
|
|
9694
|
+
},
|
|
9695
|
+
{
|
|
9696
|
+
code: "069-004-005-000-000-000-000",
|
|
9697
|
+
key: "responding_officer",
|
|
9698
|
+
title: "LE Responding Officer",
|
|
9699
|
+
selectable: true,
|
|
9700
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
9701
|
+
childCodes: [],
|
|
9702
|
+
definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
|
|
9703
|
+
},
|
|
9704
|
+
{
|
|
9705
|
+
code: "069-000-000-000-000-000-000",
|
|
9706
|
+
key: "missingness_root",
|
|
9707
|
+
title: "Unknown, Redacted, or Missing",
|
|
9708
|
+
selectable: false,
|
|
9709
|
+
parentCode: null,
|
|
9710
|
+
childCodes: [
|
|
9711
|
+
"069-000-000-000-000-000-001",
|
|
9712
|
+
"069-000-000-000-000-000-002",
|
|
9713
|
+
"069-000-000-000-000-000-003"
|
|
9714
|
+
],
|
|
9715
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
9716
|
+
},
|
|
9717
|
+
{
|
|
9718
|
+
code: "069-000-000-000-000-000-001",
|
|
9719
|
+
key: "unknown",
|
|
9720
|
+
title: "Unknown",
|
|
9721
|
+
selectable: true,
|
|
9722
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
9723
|
+
childCodes: [],
|
|
9724
|
+
definition: "Value is unknown at time of entry."
|
|
9725
|
+
},
|
|
9726
|
+
{
|
|
9727
|
+
code: "069-000-000-000-000-000-002",
|
|
9728
|
+
key: "anonymous",
|
|
9729
|
+
title: "Anonymous",
|
|
9730
|
+
selectable: true,
|
|
9731
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
9732
|
+
childCodes: [],
|
|
9733
|
+
definition: "Value is intentionally withheld or redacted."
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
code: "069-000-000-000-000-000-003",
|
|
9737
|
+
key: "data_not_collected",
|
|
9738
|
+
title: "Data not collected",
|
|
9739
|
+
selectable: true,
|
|
9740
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
9741
|
+
childCodes: [],
|
|
9742
|
+
definition: "No attempt was made to collect the value."
|
|
9743
|
+
}
|
|
9744
|
+
]
|
|
9745
|
+
};
|
|
9746
|
+
|
|
9747
|
+
// src/cvcs/incidentInvolvementRoles.v1.0.0.json
|
|
9748
|
+
var incidentInvolvementRoles_v1_0_0_default = {
|
|
9749
|
+
domain: "incident_involvement_roles",
|
|
9750
|
+
name: "Core Incident Involvement Role",
|
|
9751
|
+
version: "1.0.0",
|
|
9752
|
+
levels: {
|
|
9753
|
+
"0": "Unknown or Missing",
|
|
9754
|
+
"1": "Involvement Role"
|
|
9755
|
+
},
|
|
9756
|
+
entries: [
|
|
9757
|
+
{
|
|
9758
|
+
code: "130-001-000-000-000-000-000",
|
|
9759
|
+
key: "victim_primary",
|
|
9760
|
+
title: "Victim (primary)",
|
|
9761
|
+
selectable: true,
|
|
9762
|
+
parentCode: null,
|
|
9763
|
+
childCodes: [],
|
|
9764
|
+
definition: "The primary victim/survivor for the incident framing."
|
|
9765
|
+
},
|
|
9766
|
+
{
|
|
9767
|
+
code: "130-002-000-000-000-000-000",
|
|
9768
|
+
key: "victim_secondary",
|
|
9769
|
+
title: "Victim (secondary)",
|
|
9770
|
+
selectable: true,
|
|
9771
|
+
parentCode: null,
|
|
9772
|
+
childCodes: [],
|
|
9773
|
+
definition: "A secondary victim harmed in the incident context."
|
|
9774
|
+
},
|
|
9775
|
+
{
|
|
9776
|
+
code: "130-003-000-000-000-000-000",
|
|
9777
|
+
key: "victim_other",
|
|
9778
|
+
title: "Victim (other)",
|
|
9779
|
+
selectable: true,
|
|
9780
|
+
parentCode: null,
|
|
9781
|
+
childCodes: [],
|
|
9782
|
+
definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
|
|
9783
|
+
},
|
|
9784
|
+
{
|
|
9785
|
+
code: "130-004-000-000-000-000-000",
|
|
9786
|
+
key: "offender",
|
|
9787
|
+
title: "Offender",
|
|
9788
|
+
selectable: true,
|
|
9789
|
+
parentCode: null,
|
|
9790
|
+
childCodes: [],
|
|
9791
|
+
definition: "The person who caused harm."
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
code: "130-005-000-000-000-000-000",
|
|
9795
|
+
key: "witness",
|
|
9796
|
+
title: "Witness",
|
|
9797
|
+
selectable: true,
|
|
9798
|
+
parentCode: null,
|
|
9799
|
+
childCodes: [],
|
|
9800
|
+
definition: "A person who witnessed relevant events."
|
|
9801
|
+
},
|
|
9802
|
+
{
|
|
9803
|
+
code: "130-006-000-000-000-000-000",
|
|
9804
|
+
key: "dependent",
|
|
9805
|
+
title: "Dependent",
|
|
9806
|
+
selectable: true,
|
|
9807
|
+
parentCode: null,
|
|
9808
|
+
childCodes: [],
|
|
9809
|
+
definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
|
|
9810
|
+
},
|
|
9811
|
+
{
|
|
9812
|
+
code: "130-000-000-000-000-000-000",
|
|
9813
|
+
key: "missingness_root",
|
|
9814
|
+
title: "Unknown, Redacted, or Missing",
|
|
9815
|
+
selectable: false,
|
|
9816
|
+
parentCode: null,
|
|
9817
|
+
childCodes: [
|
|
9818
|
+
"130-000-000-000-000-000-001",
|
|
9819
|
+
"130-000-000-000-000-000-002",
|
|
9820
|
+
"130-000-000-000-000-000-003"
|
|
9821
|
+
],
|
|
9822
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
9823
|
+
},
|
|
9824
|
+
{
|
|
9825
|
+
code: "130-000-000-000-000-000-001",
|
|
9826
|
+
key: "unknown",
|
|
9827
|
+
title: "Unknown",
|
|
9828
|
+
selectable: true,
|
|
9829
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
9830
|
+
childCodes: [],
|
|
9831
|
+
definition: "Value is unknown at time of entry."
|
|
9832
|
+
},
|
|
9833
|
+
{
|
|
9834
|
+
code: "130-000-000-000-000-000-002",
|
|
9835
|
+
key: "anonymous",
|
|
9836
|
+
title: "Anonymous",
|
|
9837
|
+
selectable: true,
|
|
9838
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
9839
|
+
childCodes: [],
|
|
9840
|
+
definition: "Value is intentionally withheld or redacted."
|
|
9841
|
+
},
|
|
9842
|
+
{
|
|
9843
|
+
code: "130-000-000-000-000-000-003",
|
|
9844
|
+
key: "data_not_collected",
|
|
9845
|
+
title: "Data not collected",
|
|
9846
|
+
selectable: true,
|
|
9847
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
9848
|
+
childCodes: [],
|
|
9849
|
+
definition: "No attempt was made to collect the value."
|
|
9850
|
+
}
|
|
9851
|
+
]
|
|
9852
|
+
};
|
|
9853
|
+
|
|
9854
|
+
// src/cvcs/raceEthnicity.v1.0.0.json
|
|
9855
|
+
var raceEthnicity_v1_0_0_default = {
|
|
9856
|
+
domain: "race_ethnicity",
|
|
9857
|
+
name: "Core Race/Ethnicity",
|
|
9858
|
+
version: "1.0.0",
|
|
9859
|
+
levels: {
|
|
9860
|
+
"0": "Unknown or Missing",
|
|
9861
|
+
"1": "Category"
|
|
9862
|
+
},
|
|
9863
|
+
entries: [
|
|
9864
|
+
{
|
|
9865
|
+
code: "076-000-000-000-000-000-000",
|
|
9866
|
+
key: "missingness_root",
|
|
9867
|
+
title: "Unknown, Redacted, or Missing",
|
|
9868
|
+
selectable: false,
|
|
9869
|
+
parentCode: null,
|
|
9870
|
+
childCodes: [
|
|
9871
|
+
"076-000-000-000-000-000-001",
|
|
9872
|
+
"076-000-000-000-000-000-002",
|
|
9873
|
+
"076-000-000-000-000-000-003",
|
|
9874
|
+
"076-000-000-000-000-000-004"
|
|
9875
|
+
],
|
|
9876
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
9877
|
+
},
|
|
9878
|
+
{
|
|
9879
|
+
code: "076-000-000-000-000-000-001",
|
|
9880
|
+
key: "unknown",
|
|
9881
|
+
title: "Unknown",
|
|
9882
|
+
selectable: true,
|
|
9883
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9884
|
+
childCodes: [],
|
|
9885
|
+
definition: "Value is unknown at time of entry."
|
|
9886
|
+
},
|
|
9887
|
+
{
|
|
9888
|
+
code: "076-000-000-000-000-000-002",
|
|
9889
|
+
key: "anonymous",
|
|
9890
|
+
title: "Anonymous",
|
|
9891
|
+
selectable: true,
|
|
9892
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9893
|
+
childCodes: [],
|
|
9894
|
+
definition: "Value is intentionally withheld or redacted."
|
|
9895
|
+
},
|
|
9896
|
+
{
|
|
9897
|
+
code: "076-000-000-000-000-000-003",
|
|
9898
|
+
key: "data_not_collected",
|
|
9899
|
+
title: "Data not collected",
|
|
9900
|
+
selectable: true,
|
|
9901
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9902
|
+
childCodes: [],
|
|
9903
|
+
definition: "No attempt was made to collect the value."
|
|
9904
|
+
},
|
|
9905
|
+
{
|
|
9906
|
+
code: "076-000-000-000-000-000-004",
|
|
9907
|
+
key: "prefer_not_to_answer",
|
|
9908
|
+
title: "Client prefers not to answer",
|
|
9909
|
+
selectable: true,
|
|
9910
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9911
|
+
childCodes: [],
|
|
9912
|
+
definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
|
|
9913
|
+
},
|
|
9914
|
+
{
|
|
9915
|
+
code: "076-001-000-000-000-000-000",
|
|
9916
|
+
key: "american_indian_or_alaska_native",
|
|
9917
|
+
title: "American Indian or Alaska Native",
|
|
9918
|
+
selectable: true,
|
|
9919
|
+
parentCode: null,
|
|
9920
|
+
childCodes: [],
|
|
9921
|
+
definition: "Individuals with origins in any of the original peoples of North, Central, and South America, including, for example, Navajo Nation, Blackfeet Tribe of the Blackfeet Indian Reservation of Montana, Native Village of Barrow Inupiat Traditional Government, Nome Eskimo Community, Aztec, and Maya."
|
|
9922
|
+
},
|
|
9923
|
+
{
|
|
9924
|
+
code: "076-002-000-000-000-000-000",
|
|
9925
|
+
key: "asian",
|
|
9926
|
+
title: "Asian",
|
|
9927
|
+
selectable: true,
|
|
9928
|
+
parentCode: null,
|
|
9929
|
+
childCodes: [],
|
|
9930
|
+
definition: "Individuals with origins in any of the original peoples of Central or East Asia, Southeast Asia, or South Asia, including, for example, Chinese, Asian Indian, Filipino, Vietnamese, Korean, and Japanese."
|
|
9931
|
+
},
|
|
9932
|
+
{
|
|
9933
|
+
code: "076-003-000-000-000-000-000",
|
|
9934
|
+
key: "black_or_african_american",
|
|
9935
|
+
title: "Black or African American",
|
|
9936
|
+
selectable: true,
|
|
9937
|
+
parentCode: null,
|
|
9938
|
+
childCodes: [],
|
|
9939
|
+
definition: "Individuals with origins in any of the Black racial groups of Africa, including, for example, African American, Jamaican, Haitian, Nigerian, Ethiopian, and Somali."
|
|
9940
|
+
},
|
|
9941
|
+
{
|
|
9942
|
+
code: "076-004-000-000-000-000-000",
|
|
9943
|
+
key: "hispanic_or_latino",
|
|
9944
|
+
title: "Hispanic or Latino",
|
|
9945
|
+
selectable: true,
|
|
9946
|
+
parentCode: null,
|
|
9947
|
+
childCodes: [],
|
|
9948
|
+
definition: "Includes individuals of Mexican, Puerto Rican, Salvadoran, Cuban, Dominican, Guatemalan, and other Central or South American or Spanish culture or origin."
|
|
9949
|
+
},
|
|
9950
|
+
{
|
|
9951
|
+
code: "076-005-000-000-000-000-000",
|
|
9952
|
+
key: "middle_eastern_or_north_african",
|
|
9953
|
+
title: "Middle Eastern or North African",
|
|
9954
|
+
selectable: true,
|
|
9955
|
+
parentCode: null,
|
|
9956
|
+
childCodes: [],
|
|
9957
|
+
definition: "Individuals with origins in any of the original peoples of the Middle East or North Africa, including, for example, Lebanese, Iranian, Egyptian, Syrian, Iraqi, and Israeli."
|
|
9958
|
+
},
|
|
9959
|
+
{
|
|
9960
|
+
code: "076-006-000-000-000-000-000",
|
|
9961
|
+
key: "multiple_races",
|
|
9962
|
+
title: "Multiple Races [multiple were selected]",
|
|
9963
|
+
selectable: true,
|
|
9964
|
+
parentCode: null,
|
|
9965
|
+
childCodes: [],
|
|
9966
|
+
definition: "Indicates that an individual identifies with more than one racial and/or ethnic category."
|
|
9967
|
+
},
|
|
9968
|
+
{
|
|
9969
|
+
code: "076-007-000-000-000-000-000",
|
|
9970
|
+
key: "native_hawaiian_or_pacific_islander",
|
|
9971
|
+
title: "Native Hawaiian or Pacific Islander",
|
|
9972
|
+
selectable: true,
|
|
9973
|
+
parentCode: null,
|
|
9974
|
+
childCodes: [],
|
|
9975
|
+
definition: "Individuals with origins in any of the original peoples of Hawaii, Guam, Samoa, or other Pacific Islands, including, for example, Native Hawaiian, Samoan, Chamorro, Tongan, Fijian, and Marshallese."
|
|
9976
|
+
},
|
|
9977
|
+
{
|
|
9978
|
+
code: "076-008-000-000-000-000-000",
|
|
9979
|
+
key: "other_self_described",
|
|
9980
|
+
title: "Other - [trigger an optional write in]",
|
|
9981
|
+
selectable: true,
|
|
9982
|
+
parentCode: null,
|
|
9983
|
+
childCodes: [],
|
|
9984
|
+
definition: "Allows for additional self-described race or ethnicity information not adequately represented by the listed categories."
|
|
9985
|
+
},
|
|
9986
|
+
{
|
|
9987
|
+
code: "076-009-000-000-000-000-000",
|
|
9988
|
+
key: "white",
|
|
9989
|
+
title: "White",
|
|
9990
|
+
selectable: true,
|
|
9991
|
+
parentCode: null,
|
|
9992
|
+
childCodes: [],
|
|
9993
|
+
definition: "Individuals with origins in any of the original peoples of Europe, including, for example, English, German, Irish, Italian, Polish, and Scottish."
|
|
9994
|
+
}
|
|
9995
|
+
]
|
|
9996
|
+
};
|
|
9484
9997
|
export {
|
|
9485
9998
|
ACCOMMODATION_LABELS,
|
|
9486
9999
|
ACCOMMODATION_OPTIONS,
|
|
@@ -9718,6 +10231,8 @@ export {
|
|
|
9718
10231
|
INTERACTION_TYPES,
|
|
9719
10232
|
INTERACTION_TYPE_LABELS,
|
|
9720
10233
|
INVOLVEMENT_ROLE_TO_PERSON_TYPE,
|
|
10234
|
+
IncidentInvolvementRoleKeys,
|
|
10235
|
+
IncidentParticipationRoleKeys,
|
|
9721
10236
|
MINOR_ADULT_STATUS,
|
|
9722
10237
|
MINOR_ADULT_STATUS_LABELS,
|
|
9723
10238
|
PARTICIPATION_ROLE_CATEGORIES,
|
|
@@ -9749,6 +10264,7 @@ export {
|
|
|
9749
10264
|
ROLE_LEVEL,
|
|
9750
10265
|
ROLE_LEVEL_LABELS,
|
|
9751
10266
|
ROLE_LEVEL_VALUES,
|
|
10267
|
+
RaceEthnicityKeys,
|
|
9752
10268
|
SESSION_STATES,
|
|
9753
10269
|
SESSION_STATE_LABELS,
|
|
9754
10270
|
SHARE_VIEW,
|
|
@@ -9807,6 +10323,8 @@ export {
|
|
|
9807
10323
|
getPersonTypeForRole,
|
|
9808
10324
|
getRelationshipCategory,
|
|
9809
10325
|
guidanceSchema,
|
|
10326
|
+
incidentInvolvementRoles_v1_0_0_default as incidentInvolvementRolesSot,
|
|
10327
|
+
incidentParticipationRoles_v1_0_0_default as incidentParticipationRolesSot,
|
|
9810
10328
|
isIC56Missingness,
|
|
9811
10329
|
isIC56ValidChannel,
|
|
9812
10330
|
isLgbtqOrientation,
|
|
@@ -9825,6 +10343,7 @@ export {
|
|
|
9825
10343
|
questionModel_exports as questionModel,
|
|
9826
10344
|
questionSchemaDefinition,
|
|
9827
10345
|
questionSchemaOptions,
|
|
10346
|
+
raceEthnicity_v1_0_0_default as raceEthnicitySot,
|
|
9828
10347
|
resolveRegistryWithInheritance,
|
|
9829
10348
|
scoringConditionSchema,
|
|
9830
10349
|
scoringRecommendationSchema,
|