@htilabs/platform-common-models 0.4.0-beta.1 → 0.5.1-beta.2
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 +316 -1
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +368 -26
- package/dist/cvcs/index.d.ts +368 -26
- package/dist/cvcs/index.js +314 -1
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +373 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.js +369 -12
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +2 -2
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/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/services/index.cjs +2 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +10 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +13 -1
- package/src/__tests__/cvc-structural.test.ts +1 -1
- 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 +4 -0
- package/src/cvcs/serviceStates.v1.0.0.json +1 -1
- package/src/generated/cvc-enums.ts +51 -2
- package/src/models/cvcEntryModel.ts +1 -1
- package/src/models/cvcRegistryModel.ts +1 -1
- package/src/validation/cvc.ts +6 -3
package/dist/index.cjs
CHANGED
|
@@ -256,6 +256,8 @@ __export(src_exports, {
|
|
|
256
256
|
INTERACTION_TYPES: () => INTERACTION_TYPES,
|
|
257
257
|
INTERACTION_TYPE_LABELS: () => INTERACTION_TYPE_LABELS,
|
|
258
258
|
INVOLVEMENT_ROLE_TO_PERSON_TYPE: () => INVOLVEMENT_ROLE_TO_PERSON_TYPE,
|
|
259
|
+
IncidentInvolvementRoleKeys: () => IncidentInvolvementRoleKeys,
|
|
260
|
+
IncidentParticipationRoleKeys: () => IncidentParticipationRoleKeys,
|
|
259
261
|
MINOR_ADULT_STATUS: () => MINOR_ADULT_STATUS,
|
|
260
262
|
MINOR_ADULT_STATUS_LABELS: () => MINOR_ADULT_STATUS_LABELS,
|
|
261
263
|
PARTICIPATION_ROLE_CATEGORIES: () => PARTICIPATION_ROLE_CATEGORIES,
|
|
@@ -345,6 +347,8 @@ __export(src_exports, {
|
|
|
345
347
|
getPersonTypeForRole: () => getPersonTypeForRole,
|
|
346
348
|
getRelationshipCategory: () => getRelationshipCategory,
|
|
347
349
|
guidanceSchema: () => guidanceSchema,
|
|
350
|
+
incidentInvolvementRolesSot: () => incidentInvolvementRoles_v1_0_0_default,
|
|
351
|
+
incidentParticipationRolesSot: () => incidentParticipationRoles_v1_0_0_default,
|
|
348
352
|
isIC56Missingness: () => isIC56Missingness,
|
|
349
353
|
isIC56ValidChannel: () => isIC56ValidChannel,
|
|
350
354
|
isLgbtqOrientation: () => isLgbtqOrientation,
|
|
@@ -1263,7 +1267,7 @@ var INCIDENT_INVOLVEMENT_ROLE = {
|
|
|
1263
1267
|
OFFENDER: "offender",
|
|
1264
1268
|
UNKNOWN: "unknown",
|
|
1265
1269
|
ANONYMOUS: "anonymous",
|
|
1266
|
-
|
|
1270
|
+
DATA_NOT_COLLECTED: "data_not_collected"
|
|
1267
1271
|
};
|
|
1268
1272
|
var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
|
|
1269
1273
|
[INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY]: "Primary Victim",
|
|
@@ -1274,7 +1278,7 @@ var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
|
|
|
1274
1278
|
[INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: "Offender",
|
|
1275
1279
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: "Unknown",
|
|
1276
1280
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: "Anonymous",
|
|
1277
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
1281
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
1278
1282
|
};
|
|
1279
1283
|
var THREAD_INVOLVEMENT_ROLES = [
|
|
1280
1284
|
INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY,
|
|
@@ -1302,7 +1306,7 @@ var INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE = {
|
|
|
1302
1306
|
[INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: PERSON_ROLES.OFFENDER,
|
|
1303
1307
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: PERSON_ROLES.OTHER,
|
|
1304
1308
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_ROLES.OTHER,
|
|
1305
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
1309
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: PERSON_ROLES.OTHER
|
|
1306
1310
|
};
|
|
1307
1311
|
var IC_4_AGE_TYPE = {
|
|
1308
1312
|
EXACT_DOB: 1,
|
|
@@ -1661,9 +1665,12 @@ var INCIDENT_PARTICIPATION_ROLE = {
|
|
|
1661
1665
|
FRIEND_OR_PEER: "friend_or_peer",
|
|
1662
1666
|
SERVICE_PROVIDER_STAFF: "service_provider_staff",
|
|
1663
1667
|
MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
|
|
1668
|
+
DATA_ENTRY: "data_entry",
|
|
1669
|
+
OTHER_INCIDENT_RESPONDER: "other_incident_responder",
|
|
1670
|
+
RESPONDING_OFFICER: "responding_officer",
|
|
1664
1671
|
UNKNOWN: "unknown",
|
|
1665
1672
|
ANONYMOUS: "anonymous",
|
|
1666
|
-
|
|
1673
|
+
DATA_NOT_COLLECTED: "data_not_collected"
|
|
1667
1674
|
};
|
|
1668
1675
|
var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
1669
1676
|
INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT,
|
|
@@ -1674,9 +1681,12 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
|
1674
1681
|
INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER,
|
|
1675
1682
|
INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
|
|
1676
1683
|
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
|
|
1684
|
+
INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
|
|
1685
|
+
INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
|
|
1686
|
+
INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
|
|
1677
1687
|
INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
|
|
1678
1688
|
INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
|
|
1679
|
-
INCIDENT_PARTICIPATION_ROLE.
|
|
1689
|
+
INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
|
|
1680
1690
|
];
|
|
1681
1691
|
var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
1682
1692
|
[INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT]: "Client / Subject-of-Record",
|
|
@@ -1687,9 +1697,12 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
|
1687
1697
|
[INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER]: "Friend or Peer",
|
|
1688
1698
|
[INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF]: "Service Provider Staff",
|
|
1689
1699
|
[INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]: "Medical Provider Staff",
|
|
1700
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
|
|
1701
|
+
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
|
|
1702
|
+
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
|
|
1690
1703
|
[INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
|
|
1691
1704
|
[INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
|
|
1692
|
-
[INCIDENT_PARTICIPATION_ROLE.
|
|
1705
|
+
[INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
1693
1706
|
};
|
|
1694
1707
|
var PARTICIPATION_ROLE_CATEGORIES = {
|
|
1695
1708
|
CLIENT: [INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT],
|
|
@@ -1749,10 +1762,10 @@ var INVOLVEMENT_ROLE_TO_PERSON_TYPE = {
|
|
|
1749
1762
|
[INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: null,
|
|
1750
1763
|
// Conditional — use getPersonTypeForRole()
|
|
1751
1764
|
[INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_TYPE.THIRD_PARTY,
|
|
1752
|
-
[INCIDENT_INVOLVEMENT_ROLE.
|
|
1765
|
+
[INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: null
|
|
1753
1766
|
};
|
|
1754
1767
|
function getPersonTypeForRole(role, contextPersonType) {
|
|
1755
|
-
if (role === INCIDENT_INVOLVEMENT_ROLE.
|
|
1768
|
+
if (role === INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED) {
|
|
1756
1769
|
return null;
|
|
1757
1770
|
}
|
|
1758
1771
|
if (role === INCIDENT_INVOLVEMENT_ROLE.UNKNOWN) {
|
|
@@ -1779,7 +1792,7 @@ function getDisplayCategoryForRole(role, personType) {
|
|
|
1779
1792
|
return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
|
|
1780
1793
|
case INCIDENT_INVOLVEMENT_ROLE.VICTIM_OTHER:
|
|
1781
1794
|
return PERSON_DISPLAY_CATEGORY.ELIGIBLE_FAMILY;
|
|
1782
|
-
case INCIDENT_INVOLVEMENT_ROLE.
|
|
1795
|
+
case INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED:
|
|
1783
1796
|
default:
|
|
1784
1797
|
return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
|
|
1785
1798
|
}
|
|
@@ -6959,7 +6972,7 @@ __export(cvcRegistryModel_exports, {
|
|
|
6959
6972
|
compileModel: () => compileModel7
|
|
6960
6973
|
});
|
|
6961
6974
|
function compileModel7(connection, schema = buildCvcRegistrySchema()) {
|
|
6962
|
-
return connection.models
|
|
6975
|
+
return connection.models?.CvcRegistry ?? connection.model("CvcRegistry", schema);
|
|
6963
6976
|
}
|
|
6964
6977
|
|
|
6965
6978
|
// src/models/cvcEntryModel.ts
|
|
@@ -6969,7 +6982,7 @@ __export(cvcEntryModel_exports, {
|
|
|
6969
6982
|
compileModel: () => compileModel8
|
|
6970
6983
|
});
|
|
6971
6984
|
function compileModel8(connection, schema = buildCvcEntrySchema()) {
|
|
6972
|
-
return connection.models
|
|
6985
|
+
return connection.models?.CvcEntry ?? connection.model("CvcEntry", schema);
|
|
6973
6986
|
}
|
|
6974
6987
|
|
|
6975
6988
|
// src/models/index.ts
|
|
@@ -7164,6 +7177,39 @@ var ServiceMechanismKeys = {
|
|
|
7164
7177
|
direct_staff_contractor: "025-003-000-000-000-000-000",
|
|
7165
7178
|
financial_material_assistance: "025-004-000-000-000-000-000"
|
|
7166
7179
|
};
|
|
7180
|
+
var IncidentParticipationRoleKeys = {
|
|
7181
|
+
missingness_root: "069-000-000-000-000-000-000",
|
|
7182
|
+
unknown: "069-000-000-000-000-000-001",
|
|
7183
|
+
anonymous: "069-000-000-000-000-000-002",
|
|
7184
|
+
data_not_collected: "069-000-000-000-000-000-003",
|
|
7185
|
+
client_group: "069-001-000-000-000-000-000",
|
|
7186
|
+
client_subject: "069-001-001-000-000-000-000",
|
|
7187
|
+
caller_reporter_group: "069-002-000-000-000-000-000",
|
|
7188
|
+
caller_self: "069-002-001-000-000-000-000",
|
|
7189
|
+
caller_third_party: "069-002-002-000-000-000-000",
|
|
7190
|
+
reporter: "069-002-003-000-000-000-000",
|
|
7191
|
+
support_network_group: "069-003-000-000-000-000-000",
|
|
7192
|
+
family_member_or_guardian: "069-003-001-000-000-000-000",
|
|
7193
|
+
friend_or_peer: "069-003-002-000-000-000-000",
|
|
7194
|
+
system_professional_group: "069-004-000-000-000-000-000",
|
|
7195
|
+
service_provider_staff: "069-004-001-000-000-000-000",
|
|
7196
|
+
medical_provider_staff: "069-004-002-000-000-000-000",
|
|
7197
|
+
data_entry: "069-004-003-000-000-000-000",
|
|
7198
|
+
other_incident_responder: "069-004-004-000-000-000-000",
|
|
7199
|
+
responding_officer: "069-004-005-000-000-000-000"
|
|
7200
|
+
};
|
|
7201
|
+
var IncidentInvolvementRoleKeys = {
|
|
7202
|
+
missingness_root: "130-000-000-000-000-000-000",
|
|
7203
|
+
unknown: "130-000-000-000-000-000-001",
|
|
7204
|
+
anonymous: "130-000-000-000-000-000-002",
|
|
7205
|
+
data_not_collected: "130-000-000-000-000-000-003",
|
|
7206
|
+
victim_primary: "130-001-000-000-000-000-000",
|
|
7207
|
+
victim_secondary: "130-002-000-000-000-000-000",
|
|
7208
|
+
victim_other: "130-003-000-000-000-000-000",
|
|
7209
|
+
offender: "130-004-000-000-000-000-000",
|
|
7210
|
+
witness: "130-005-000-000-000-000-000",
|
|
7211
|
+
dependent: "130-006-000-000-000-000-000"
|
|
7212
|
+
};
|
|
7167
7213
|
|
|
7168
7214
|
// src/services/cvcRegistryService.ts
|
|
7169
7215
|
var import_mongoose10 = require("mongoose");
|
|
@@ -9625,7 +9671,7 @@ var serviceCategories_v1_0_0_default = {
|
|
|
9625
9671
|
|
|
9626
9672
|
// src/cvcs/serviceStates.v1.0.0.json
|
|
9627
9673
|
var serviceStates_v1_0_0_default = {
|
|
9628
|
-
domain: "
|
|
9674
|
+
domain: "service_states",
|
|
9629
9675
|
name: "Core Service State",
|
|
9630
9676
|
version: "1.0.0",
|
|
9631
9677
|
levels: {
|
|
@@ -9859,6 +9905,317 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
9859
9905
|
}
|
|
9860
9906
|
]
|
|
9861
9907
|
};
|
|
9908
|
+
|
|
9909
|
+
// src/cvcs/incidentParticipationRoles.v1.0.0.json
|
|
9910
|
+
var incidentParticipationRoles_v1_0_0_default = {
|
|
9911
|
+
domain: "incident_participation_roles",
|
|
9912
|
+
name: "Core Incident Participation Roles",
|
|
9913
|
+
version: "1.0.0",
|
|
9914
|
+
levels: {
|
|
9915
|
+
"0": "Unknown or Missing",
|
|
9916
|
+
"1": "Group",
|
|
9917
|
+
"2": "Role"
|
|
9918
|
+
},
|
|
9919
|
+
entries: [
|
|
9920
|
+
{
|
|
9921
|
+
code: "069-001-000-000-000-000-000",
|
|
9922
|
+
key: "client_group",
|
|
9923
|
+
title: "Client",
|
|
9924
|
+
selectable: false,
|
|
9925
|
+
parentCode: null,
|
|
9926
|
+
childCodes: [
|
|
9927
|
+
"069-001-001-000-000-000-000"
|
|
9928
|
+
],
|
|
9929
|
+
definition: "Group of participation roles identifying the person the incident record is about."
|
|
9930
|
+
},
|
|
9931
|
+
{
|
|
9932
|
+
code: "069-001-001-000-000-000-000",
|
|
9933
|
+
key: "client_subject",
|
|
9934
|
+
title: "Client (subject)",
|
|
9935
|
+
selectable: true,
|
|
9936
|
+
parentCode: "069-001-000-000-000-000-000",
|
|
9937
|
+
childCodes: [],
|
|
9938
|
+
definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
|
|
9939
|
+
},
|
|
9940
|
+
{
|
|
9941
|
+
code: "069-002-000-000-000-000-000",
|
|
9942
|
+
key: "caller_reporter_group",
|
|
9943
|
+
title: "Caller / Reporter",
|
|
9944
|
+
selectable: false,
|
|
9945
|
+
parentCode: null,
|
|
9946
|
+
childCodes: [
|
|
9947
|
+
"069-002-001-000-000-000-000",
|
|
9948
|
+
"069-002-002-000-000-000-000",
|
|
9949
|
+
"069-002-003-000-000-000-000"
|
|
9950
|
+
],
|
|
9951
|
+
definition: "Group of participation roles identifying who contacted or reported the incident to the program."
|
|
9952
|
+
},
|
|
9953
|
+
{
|
|
9954
|
+
code: "069-002-001-000-000-000-000",
|
|
9955
|
+
key: "caller_self",
|
|
9956
|
+
title: "Caller (self)",
|
|
9957
|
+
selectable: true,
|
|
9958
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9959
|
+
childCodes: [],
|
|
9960
|
+
definition: "Caller contacting the program on their own behalf."
|
|
9961
|
+
},
|
|
9962
|
+
{
|
|
9963
|
+
code: "069-002-002-000-000-000-000",
|
|
9964
|
+
key: "caller_third_party",
|
|
9965
|
+
title: "Caller (third party)",
|
|
9966
|
+
selectable: true,
|
|
9967
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9968
|
+
childCodes: [],
|
|
9969
|
+
definition: "Caller contacting the program on behalf of someone else."
|
|
9970
|
+
},
|
|
9971
|
+
{
|
|
9972
|
+
code: "069-002-003-000-000-000-000",
|
|
9973
|
+
key: "reporter",
|
|
9974
|
+
title: "Reporter",
|
|
9975
|
+
selectable: true,
|
|
9976
|
+
parentCode: "069-002-000-000-000-000-000",
|
|
9977
|
+
childCodes: [],
|
|
9978
|
+
definition: "Participant who filed a formal report about the incident."
|
|
9979
|
+
},
|
|
9980
|
+
{
|
|
9981
|
+
code: "069-003-000-000-000-000-000",
|
|
9982
|
+
key: "support_network_group",
|
|
9983
|
+
title: "Support network",
|
|
9984
|
+
selectable: false,
|
|
9985
|
+
parentCode: null,
|
|
9986
|
+
childCodes: [
|
|
9987
|
+
"069-003-001-000-000-000-000",
|
|
9988
|
+
"069-003-002-000-000-000-000"
|
|
9989
|
+
],
|
|
9990
|
+
definition: "Group of participation roles identifying people from the client's personal support network."
|
|
9991
|
+
},
|
|
9992
|
+
{
|
|
9993
|
+
code: "069-003-001-000-000-000-000",
|
|
9994
|
+
key: "family_member_or_guardian",
|
|
9995
|
+
title: "Family member or guardian",
|
|
9996
|
+
selectable: true,
|
|
9997
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
9998
|
+
childCodes: [],
|
|
9999
|
+
definition: "Family member or legal guardian of the client."
|
|
10000
|
+
},
|
|
10001
|
+
{
|
|
10002
|
+
code: "069-003-002-000-000-000-000",
|
|
10003
|
+
key: "friend_or_peer",
|
|
10004
|
+
title: "Friend or peer",
|
|
10005
|
+
selectable: true,
|
|
10006
|
+
parentCode: "069-003-000-000-000-000-000",
|
|
10007
|
+
childCodes: [],
|
|
10008
|
+
definition: "Friend or peer in the client's support network."
|
|
10009
|
+
},
|
|
10010
|
+
{
|
|
10011
|
+
code: "069-004-000-000-000-000-000",
|
|
10012
|
+
key: "system_professional_group",
|
|
10013
|
+
title: "System / professional participants",
|
|
10014
|
+
selectable: false,
|
|
10015
|
+
parentCode: null,
|
|
10016
|
+
childCodes: [
|
|
10017
|
+
"069-004-001-000-000-000-000",
|
|
10018
|
+
"069-004-002-000-000-000-000",
|
|
10019
|
+
"069-004-003-000-000-000-000",
|
|
10020
|
+
"069-004-004-000-000-000-000",
|
|
10021
|
+
"069-004-005-000-000-000-000"
|
|
10022
|
+
],
|
|
10023
|
+
definition: "Group of participation roles identifying system-side professionals involved in the incident."
|
|
10024
|
+
},
|
|
10025
|
+
{
|
|
10026
|
+
code: "069-004-001-000-000-000-000",
|
|
10027
|
+
key: "service_provider_staff",
|
|
10028
|
+
title: "Service provider staff",
|
|
10029
|
+
selectable: true,
|
|
10030
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
10031
|
+
childCodes: [],
|
|
10032
|
+
definition: "Staff of a service provider program or agency involved in the incident."
|
|
10033
|
+
},
|
|
10034
|
+
{
|
|
10035
|
+
code: "069-004-002-000-000-000-000",
|
|
10036
|
+
key: "medical_provider_staff",
|
|
10037
|
+
title: "Medical provider staff",
|
|
10038
|
+
selectable: true,
|
|
10039
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
10040
|
+
childCodes: [],
|
|
10041
|
+
definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
|
|
10042
|
+
},
|
|
10043
|
+
{
|
|
10044
|
+
code: "069-004-003-000-000-000-000",
|
|
10045
|
+
key: "data_entry",
|
|
10046
|
+
title: "Data Entry / Editor",
|
|
10047
|
+
selectable: true,
|
|
10048
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
10049
|
+
childCodes: [],
|
|
10050
|
+
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."
|
|
10051
|
+
},
|
|
10052
|
+
{
|
|
10053
|
+
code: "069-004-004-000-000-000-000",
|
|
10054
|
+
key: "other_incident_responder",
|
|
10055
|
+
title: "VSP or Other Incident Responder",
|
|
10056
|
+
selectable: true,
|
|
10057
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
10058
|
+
childCodes: [],
|
|
10059
|
+
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)."
|
|
10060
|
+
},
|
|
10061
|
+
{
|
|
10062
|
+
code: "069-004-005-000-000-000-000",
|
|
10063
|
+
key: "responding_officer",
|
|
10064
|
+
title: "LE Responding Officer",
|
|
10065
|
+
selectable: true,
|
|
10066
|
+
parentCode: "069-004-000-000-000-000-000",
|
|
10067
|
+
childCodes: [],
|
|
10068
|
+
definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
|
|
10069
|
+
},
|
|
10070
|
+
{
|
|
10071
|
+
code: "069-000-000-000-000-000-000",
|
|
10072
|
+
key: "missingness_root",
|
|
10073
|
+
title: "Unknown, Redacted, or Missing",
|
|
10074
|
+
selectable: false,
|
|
10075
|
+
parentCode: null,
|
|
10076
|
+
childCodes: [
|
|
10077
|
+
"069-000-000-000-000-000-001",
|
|
10078
|
+
"069-000-000-000-000-000-002",
|
|
10079
|
+
"069-000-000-000-000-000-003"
|
|
10080
|
+
],
|
|
10081
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
10082
|
+
},
|
|
10083
|
+
{
|
|
10084
|
+
code: "069-000-000-000-000-000-001",
|
|
10085
|
+
key: "unknown",
|
|
10086
|
+
title: "Unknown",
|
|
10087
|
+
selectable: true,
|
|
10088
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
10089
|
+
childCodes: [],
|
|
10090
|
+
definition: "Value is unknown at time of entry."
|
|
10091
|
+
},
|
|
10092
|
+
{
|
|
10093
|
+
code: "069-000-000-000-000-000-002",
|
|
10094
|
+
key: "anonymous",
|
|
10095
|
+
title: "Anonymous",
|
|
10096
|
+
selectable: true,
|
|
10097
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
10098
|
+
childCodes: [],
|
|
10099
|
+
definition: "Value is intentionally withheld or redacted."
|
|
10100
|
+
},
|
|
10101
|
+
{
|
|
10102
|
+
code: "069-000-000-000-000-000-003",
|
|
10103
|
+
key: "data_not_collected",
|
|
10104
|
+
title: "Data not collected",
|
|
10105
|
+
selectable: true,
|
|
10106
|
+
parentCode: "069-000-000-000-000-000-000",
|
|
10107
|
+
childCodes: [],
|
|
10108
|
+
definition: "No attempt was made to collect the value."
|
|
10109
|
+
}
|
|
10110
|
+
]
|
|
10111
|
+
};
|
|
10112
|
+
|
|
10113
|
+
// src/cvcs/incidentInvolvementRoles.v1.0.0.json
|
|
10114
|
+
var incidentInvolvementRoles_v1_0_0_default = {
|
|
10115
|
+
domain: "incident_involvement_roles",
|
|
10116
|
+
name: "Core Incident Involvement Role",
|
|
10117
|
+
version: "1.0.0",
|
|
10118
|
+
levels: {
|
|
10119
|
+
"0": "Unknown or Missing",
|
|
10120
|
+
"1": "Involvement Role"
|
|
10121
|
+
},
|
|
10122
|
+
entries: [
|
|
10123
|
+
{
|
|
10124
|
+
code: "130-001-000-000-000-000-000",
|
|
10125
|
+
key: "victim_primary",
|
|
10126
|
+
title: "Victim (primary)",
|
|
10127
|
+
selectable: true,
|
|
10128
|
+
parentCode: null,
|
|
10129
|
+
childCodes: [],
|
|
10130
|
+
definition: "The primary victim/survivor for the incident framing."
|
|
10131
|
+
},
|
|
10132
|
+
{
|
|
10133
|
+
code: "130-002-000-000-000-000-000",
|
|
10134
|
+
key: "victim_secondary",
|
|
10135
|
+
title: "Victim (secondary)",
|
|
10136
|
+
selectable: true,
|
|
10137
|
+
parentCode: null,
|
|
10138
|
+
childCodes: [],
|
|
10139
|
+
definition: "A secondary victim harmed in the incident context."
|
|
10140
|
+
},
|
|
10141
|
+
{
|
|
10142
|
+
code: "130-003-000-000-000-000-000",
|
|
10143
|
+
key: "victim_other",
|
|
10144
|
+
title: "Victim (other)",
|
|
10145
|
+
selectable: true,
|
|
10146
|
+
parentCode: null,
|
|
10147
|
+
childCodes: [],
|
|
10148
|
+
definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
|
|
10149
|
+
},
|
|
10150
|
+
{
|
|
10151
|
+
code: "130-004-000-000-000-000-000",
|
|
10152
|
+
key: "offender",
|
|
10153
|
+
title: "Offender",
|
|
10154
|
+
selectable: true,
|
|
10155
|
+
parentCode: null,
|
|
10156
|
+
childCodes: [],
|
|
10157
|
+
definition: "The person who caused harm."
|
|
10158
|
+
},
|
|
10159
|
+
{
|
|
10160
|
+
code: "130-005-000-000-000-000-000",
|
|
10161
|
+
key: "witness",
|
|
10162
|
+
title: "Witness",
|
|
10163
|
+
selectable: true,
|
|
10164
|
+
parentCode: null,
|
|
10165
|
+
childCodes: [],
|
|
10166
|
+
definition: "A person who witnessed relevant events."
|
|
10167
|
+
},
|
|
10168
|
+
{
|
|
10169
|
+
code: "130-006-000-000-000-000-000",
|
|
10170
|
+
key: "dependent",
|
|
10171
|
+
title: "Dependent",
|
|
10172
|
+
selectable: true,
|
|
10173
|
+
parentCode: null,
|
|
10174
|
+
childCodes: [],
|
|
10175
|
+
definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
|
|
10176
|
+
},
|
|
10177
|
+
{
|
|
10178
|
+
code: "130-000-000-000-000-000-000",
|
|
10179
|
+
key: "missingness_root",
|
|
10180
|
+
title: "Unknown, Redacted, or Missing",
|
|
10181
|
+
selectable: false,
|
|
10182
|
+
parentCode: null,
|
|
10183
|
+
childCodes: [
|
|
10184
|
+
"130-000-000-000-000-000-001",
|
|
10185
|
+
"130-000-000-000-000-000-002",
|
|
10186
|
+
"130-000-000-000-000-000-003"
|
|
10187
|
+
],
|
|
10188
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
10189
|
+
},
|
|
10190
|
+
{
|
|
10191
|
+
code: "130-000-000-000-000-000-001",
|
|
10192
|
+
key: "unknown",
|
|
10193
|
+
title: "Unknown",
|
|
10194
|
+
selectable: true,
|
|
10195
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
10196
|
+
childCodes: [],
|
|
10197
|
+
definition: "Value is unknown at time of entry."
|
|
10198
|
+
},
|
|
10199
|
+
{
|
|
10200
|
+
code: "130-000-000-000-000-000-002",
|
|
10201
|
+
key: "anonymous",
|
|
10202
|
+
title: "Anonymous",
|
|
10203
|
+
selectable: true,
|
|
10204
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
10205
|
+
childCodes: [],
|
|
10206
|
+
definition: "Value is intentionally withheld or redacted."
|
|
10207
|
+
},
|
|
10208
|
+
{
|
|
10209
|
+
code: "130-000-000-000-000-000-003",
|
|
10210
|
+
key: "data_not_collected",
|
|
10211
|
+
title: "Data not collected",
|
|
10212
|
+
selectable: true,
|
|
10213
|
+
parentCode: "130-000-000-000-000-000-000",
|
|
10214
|
+
childCodes: [],
|
|
10215
|
+
definition: "No attempt was made to collect the value."
|
|
10216
|
+
}
|
|
10217
|
+
]
|
|
10218
|
+
};
|
|
9862
10219
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9863
10220
|
0 && (module.exports = {
|
|
9864
10221
|
ACCOMMODATION_LABELS,
|
|
@@ -10097,6 +10454,8 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
10097
10454
|
INTERACTION_TYPES,
|
|
10098
10455
|
INTERACTION_TYPE_LABELS,
|
|
10099
10456
|
INVOLVEMENT_ROLE_TO_PERSON_TYPE,
|
|
10457
|
+
IncidentInvolvementRoleKeys,
|
|
10458
|
+
IncidentParticipationRoleKeys,
|
|
10100
10459
|
MINOR_ADULT_STATUS,
|
|
10101
10460
|
MINOR_ADULT_STATUS_LABELS,
|
|
10102
10461
|
PARTICIPATION_ROLE_CATEGORIES,
|
|
@@ -10186,6 +10545,8 @@ var serviceMechanisms_v1_0_0_default = {
|
|
|
10186
10545
|
getPersonTypeForRole,
|
|
10187
10546
|
getRelationshipCategory,
|
|
10188
10547
|
guidanceSchema,
|
|
10548
|
+
incidentInvolvementRolesSot,
|
|
10549
|
+
incidentParticipationRolesSot,
|
|
10189
10550
|
isIC56Missingness,
|
|
10190
10551
|
isIC56ValidChannel,
|
|
10191
10552
|
isLgbtqOrientation,
|