@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.
Files changed (36) hide show
  1. package/dist/constants/index.cjs +18 -9
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +18 -9
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +461 -0
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +529 -26
  10. package/dist/cvcs/index.d.ts +529 -26
  11. package/dist/cvcs/index.js +458 -0
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +534 -9
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +70 -3
  16. package/dist/index.d.ts +70 -3
  17. package/dist/index.js +528 -9
  18. package/dist/index.js.map +1 -1
  19. package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
  20. package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
  21. package/dist/schemas/index.cjs +16 -7
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.js +16 -7
  24. package/dist/schemas/index.js.map +1 -1
  25. package/dist/types/index.d.cts +2 -2
  26. package/dist/types/index.d.ts +2 -2
  27. package/package.json +1 -1
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +12 -0
  29. package/src/__tests__/cvc-sot-snapshot.test.ts +20 -0
  30. package/src/__tests__/cvc-structural.test.ts +3 -0
  31. package/src/constants/ic.ts +24 -14
  32. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
  33. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
  34. package/src/cvcs/index.ts +6 -0
  35. package/src/cvcs/raceEthnicity.v1.0.0.json +142 -0
  36. package/src/generated/cvc-enums.ts +73 -0
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,
@@ -287,6 +289,7 @@ __export(src_exports, {
287
289
  ROLE_LEVEL: () => ROLE_LEVEL,
288
290
  ROLE_LEVEL_LABELS: () => ROLE_LEVEL_LABELS,
289
291
  ROLE_LEVEL_VALUES: () => ROLE_LEVEL_VALUES,
292
+ RaceEthnicityKeys: () => RaceEthnicityKeys,
290
293
  SESSION_STATES: () => SESSION_STATES,
291
294
  SESSION_STATE_LABELS: () => SESSION_STATE_LABELS,
292
295
  SHARE_VIEW: () => SHARE_VIEW,
@@ -345,6 +348,8 @@ __export(src_exports, {
345
348
  getPersonTypeForRole: () => getPersonTypeForRole,
346
349
  getRelationshipCategory: () => getRelationshipCategory,
347
350
  guidanceSchema: () => guidanceSchema,
351
+ incidentInvolvementRolesSot: () => incidentInvolvementRoles_v1_0_0_default,
352
+ incidentParticipationRolesSot: () => incidentParticipationRoles_v1_0_0_default,
348
353
  isIC56Missingness: () => isIC56Missingness,
349
354
  isIC56ValidChannel: () => isIC56ValidChannel,
350
355
  isLgbtqOrientation: () => isLgbtqOrientation,
@@ -363,6 +368,7 @@ __export(src_exports, {
363
368
  questionModel: () => questionModel_exports,
364
369
  questionSchemaDefinition: () => questionSchemaDefinition,
365
370
  questionSchemaOptions: () => questionSchemaOptions,
371
+ raceEthnicitySot: () => raceEthnicity_v1_0_0_default,
366
372
  resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
367
373
  scoringConditionSchema: () => scoringConditionSchema,
368
374
  scoringRecommendationSchema: () => scoringRecommendationSchema,
@@ -1263,7 +1269,7 @@ var INCIDENT_INVOLVEMENT_ROLE = {
1263
1269
  OFFENDER: "offender",
1264
1270
  UNKNOWN: "unknown",
1265
1271
  ANONYMOUS: "anonymous",
1266
- NOT_COLLECTED: "not_collected"
1272
+ DATA_NOT_COLLECTED: "data_not_collected"
1267
1273
  };
1268
1274
  var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
1269
1275
  [INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY]: "Primary Victim",
@@ -1274,7 +1280,7 @@ var INCIDENT_INVOLVEMENT_ROLE_LABELS = {
1274
1280
  [INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: "Offender",
1275
1281
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: "Unknown",
1276
1282
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: "Anonymous",
1277
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: "Not Collected"
1283
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
1278
1284
  };
1279
1285
  var THREAD_INVOLVEMENT_ROLES = [
1280
1286
  INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY,
@@ -1302,7 +1308,7 @@ var INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE = {
1302
1308
  [INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: PERSON_ROLES.OFFENDER,
1303
1309
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: PERSON_ROLES.OTHER,
1304
1310
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_ROLES.OTHER,
1305
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: PERSON_ROLES.OTHER
1311
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: PERSON_ROLES.OTHER
1306
1312
  };
1307
1313
  var IC_4_AGE_TYPE = {
1308
1314
  EXACT_DOB: 1,
@@ -1661,9 +1667,12 @@ var INCIDENT_PARTICIPATION_ROLE = {
1661
1667
  FRIEND_OR_PEER: "friend_or_peer",
1662
1668
  SERVICE_PROVIDER_STAFF: "service_provider_staff",
1663
1669
  MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
1670
+ DATA_ENTRY: "data_entry",
1671
+ OTHER_INCIDENT_RESPONDER: "other_incident_responder",
1672
+ RESPONDING_OFFICER: "responding_officer",
1664
1673
  UNKNOWN: "unknown",
1665
1674
  ANONYMOUS: "anonymous",
1666
- NOT_COLLECTED: "not_collected"
1675
+ DATA_NOT_COLLECTED: "data_not_collected"
1667
1676
  };
1668
1677
  var INCIDENT_PARTICIPATION_ROLE_VALUES = [
1669
1678
  INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT,
@@ -1674,9 +1683,12 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
1674
1683
  INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER,
1675
1684
  INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
1676
1685
  INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
1686
+ INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
1687
+ INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
1688
+ INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
1677
1689
  INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
1678
1690
  INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
1679
- INCIDENT_PARTICIPATION_ROLE.NOT_COLLECTED
1691
+ INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
1680
1692
  ];
1681
1693
  var INCIDENT_PARTICIPATION_ROLE_LABELS = {
1682
1694
  [INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT]: "Client / Subject-of-Record",
@@ -1687,9 +1699,12 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
1687
1699
  [INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER]: "Friend or Peer",
1688
1700
  [INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF]: "Service Provider Staff",
1689
1701
  [INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]: "Medical Provider Staff",
1702
+ [INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
1703
+ [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
1704
+ [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
1690
1705
  [INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
1691
1706
  [INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
1692
- [INCIDENT_PARTICIPATION_ROLE.NOT_COLLECTED]: "Not Collected"
1707
+ [INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
1693
1708
  };
1694
1709
  var PARTICIPATION_ROLE_CATEGORIES = {
1695
1710
  CLIENT: [INCIDENT_PARTICIPATION_ROLE.CLIENT_SUBJECT],
@@ -1749,10 +1764,10 @@ var INVOLVEMENT_ROLE_TO_PERSON_TYPE = {
1749
1764
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: null,
1750
1765
  // Conditional — use getPersonTypeForRole()
1751
1766
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_TYPE.THIRD_PARTY,
1752
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: null
1767
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: null
1753
1768
  };
1754
1769
  function getPersonTypeForRole(role, contextPersonType) {
1755
- if (role === INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED) {
1770
+ if (role === INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED) {
1756
1771
  return null;
1757
1772
  }
1758
1773
  if (role === INCIDENT_INVOLVEMENT_ROLE.UNKNOWN) {
@@ -1779,7 +1794,7 @@ function getDisplayCategoryForRole(role, personType) {
1779
1794
  return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
1780
1795
  case INCIDENT_INVOLVEMENT_ROLE.VICTIM_OTHER:
1781
1796
  return PERSON_DISPLAY_CATEGORY.ELIGIBLE_FAMILY;
1782
- case INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED:
1797
+ case INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED:
1783
1798
  default:
1784
1799
  return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
1785
1800
  }
@@ -7164,6 +7179,55 @@ var ServiceMechanismKeys = {
7164
7179
  direct_staff_contractor: "025-003-000-000-000-000-000",
7165
7180
  financial_material_assistance: "025-004-000-000-000-000-000"
7166
7181
  };
7182
+ var IncidentParticipationRoleKeys = {
7183
+ missingness_root: "069-000-000-000-000-000-000",
7184
+ unknown: "069-000-000-000-000-000-001",
7185
+ anonymous: "069-000-000-000-000-000-002",
7186
+ data_not_collected: "069-000-000-000-000-000-003",
7187
+ client_group: "069-001-000-000-000-000-000",
7188
+ client_subject: "069-001-001-000-000-000-000",
7189
+ caller_reporter_group: "069-002-000-000-000-000-000",
7190
+ caller_self: "069-002-001-000-000-000-000",
7191
+ caller_third_party: "069-002-002-000-000-000-000",
7192
+ reporter: "069-002-003-000-000-000-000",
7193
+ support_network_group: "069-003-000-000-000-000-000",
7194
+ family_member_or_guardian: "069-003-001-000-000-000-000",
7195
+ friend_or_peer: "069-003-002-000-000-000-000",
7196
+ system_professional_group: "069-004-000-000-000-000-000",
7197
+ service_provider_staff: "069-004-001-000-000-000-000",
7198
+ medical_provider_staff: "069-004-002-000-000-000-000",
7199
+ data_entry: "069-004-003-000-000-000-000",
7200
+ other_incident_responder: "069-004-004-000-000-000-000",
7201
+ responding_officer: "069-004-005-000-000-000-000"
7202
+ };
7203
+ var IncidentInvolvementRoleKeys = {
7204
+ missingness_root: "130-000-000-000-000-000-000",
7205
+ unknown: "130-000-000-000-000-000-001",
7206
+ anonymous: "130-000-000-000-000-000-002",
7207
+ data_not_collected: "130-000-000-000-000-000-003",
7208
+ victim_primary: "130-001-000-000-000-000-000",
7209
+ victim_secondary: "130-002-000-000-000-000-000",
7210
+ victim_other: "130-003-000-000-000-000-000",
7211
+ offender: "130-004-000-000-000-000-000",
7212
+ witness: "130-005-000-000-000-000-000",
7213
+ dependent: "130-006-000-000-000-000-000"
7214
+ };
7215
+ var RaceEthnicityKeys = {
7216
+ missingness_root: "076-000-000-000-000-000-000",
7217
+ unknown: "076-000-000-000-000-000-001",
7218
+ anonymous: "076-000-000-000-000-000-002",
7219
+ data_not_collected: "076-000-000-000-000-000-003",
7220
+ prefer_not_to_answer: "076-000-000-000-000-000-004",
7221
+ american_indian_or_alaska_native: "076-001-000-000-000-000-000",
7222
+ asian: "076-002-000-000-000-000-000",
7223
+ black_or_african_american: "076-003-000-000-000-000-000",
7224
+ hispanic_or_latino: "076-004-000-000-000-000-000",
7225
+ middle_eastern_or_north_african: "076-005-000-000-000-000-000",
7226
+ multiple_races: "076-006-000-000-000-000-000",
7227
+ native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000",
7228
+ other_self_described: "076-008-000-000-000-000-000",
7229
+ white: "076-009-000-000-000-000-000"
7230
+ };
7167
7231
 
7168
7232
  // src/services/cvcRegistryService.ts
7169
7233
  var import_mongoose10 = require("mongoose");
@@ -9859,6 +9923,461 @@ var serviceMechanisms_v1_0_0_default = {
9859
9923
  }
9860
9924
  ]
9861
9925
  };
9926
+
9927
+ // src/cvcs/incidentParticipationRoles.v1.0.0.json
9928
+ var incidentParticipationRoles_v1_0_0_default = {
9929
+ domain: "incident_participation_roles",
9930
+ name: "Core Incident Participation Roles",
9931
+ version: "1.0.0",
9932
+ levels: {
9933
+ "0": "Unknown or Missing",
9934
+ "1": "Group",
9935
+ "2": "Role"
9936
+ },
9937
+ entries: [
9938
+ {
9939
+ code: "069-001-000-000-000-000-000",
9940
+ key: "client_group",
9941
+ title: "Client",
9942
+ selectable: false,
9943
+ parentCode: null,
9944
+ childCodes: [
9945
+ "069-001-001-000-000-000-000"
9946
+ ],
9947
+ definition: "Group of participation roles identifying the person the incident record is about."
9948
+ },
9949
+ {
9950
+ code: "069-001-001-000-000-000-000",
9951
+ key: "client_subject",
9952
+ title: "Client (subject)",
9953
+ selectable: true,
9954
+ parentCode: "069-001-000-000-000-000-000",
9955
+ childCodes: [],
9956
+ definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
9957
+ },
9958
+ {
9959
+ code: "069-002-000-000-000-000-000",
9960
+ key: "caller_reporter_group",
9961
+ title: "Caller / Reporter",
9962
+ selectable: false,
9963
+ parentCode: null,
9964
+ childCodes: [
9965
+ "069-002-001-000-000-000-000",
9966
+ "069-002-002-000-000-000-000",
9967
+ "069-002-003-000-000-000-000"
9968
+ ],
9969
+ definition: "Group of participation roles identifying who contacted or reported the incident to the program."
9970
+ },
9971
+ {
9972
+ code: "069-002-001-000-000-000-000",
9973
+ key: "caller_self",
9974
+ title: "Caller (self)",
9975
+ selectable: true,
9976
+ parentCode: "069-002-000-000-000-000-000",
9977
+ childCodes: [],
9978
+ definition: "Caller contacting the program on their own behalf."
9979
+ },
9980
+ {
9981
+ code: "069-002-002-000-000-000-000",
9982
+ key: "caller_third_party",
9983
+ title: "Caller (third party)",
9984
+ selectable: true,
9985
+ parentCode: "069-002-000-000-000-000-000",
9986
+ childCodes: [],
9987
+ definition: "Caller contacting the program on behalf of someone else."
9988
+ },
9989
+ {
9990
+ code: "069-002-003-000-000-000-000",
9991
+ key: "reporter",
9992
+ title: "Reporter",
9993
+ selectable: true,
9994
+ parentCode: "069-002-000-000-000-000-000",
9995
+ childCodes: [],
9996
+ definition: "Participant who filed a formal report about the incident."
9997
+ },
9998
+ {
9999
+ code: "069-003-000-000-000-000-000",
10000
+ key: "support_network_group",
10001
+ title: "Support network",
10002
+ selectable: false,
10003
+ parentCode: null,
10004
+ childCodes: [
10005
+ "069-003-001-000-000-000-000",
10006
+ "069-003-002-000-000-000-000"
10007
+ ],
10008
+ definition: "Group of participation roles identifying people from the client's personal support network."
10009
+ },
10010
+ {
10011
+ code: "069-003-001-000-000-000-000",
10012
+ key: "family_member_or_guardian",
10013
+ title: "Family member or guardian",
10014
+ selectable: true,
10015
+ parentCode: "069-003-000-000-000-000-000",
10016
+ childCodes: [],
10017
+ definition: "Family member or legal guardian of the client."
10018
+ },
10019
+ {
10020
+ code: "069-003-002-000-000-000-000",
10021
+ key: "friend_or_peer",
10022
+ title: "Friend or peer",
10023
+ selectable: true,
10024
+ parentCode: "069-003-000-000-000-000-000",
10025
+ childCodes: [],
10026
+ definition: "Friend or peer in the client's support network."
10027
+ },
10028
+ {
10029
+ code: "069-004-000-000-000-000-000",
10030
+ key: "system_professional_group",
10031
+ title: "System / professional participants",
10032
+ selectable: false,
10033
+ parentCode: null,
10034
+ childCodes: [
10035
+ "069-004-001-000-000-000-000",
10036
+ "069-004-002-000-000-000-000",
10037
+ "069-004-003-000-000-000-000",
10038
+ "069-004-004-000-000-000-000",
10039
+ "069-004-005-000-000-000-000"
10040
+ ],
10041
+ definition: "Group of participation roles identifying system-side professionals involved in the incident."
10042
+ },
10043
+ {
10044
+ code: "069-004-001-000-000-000-000",
10045
+ key: "service_provider_staff",
10046
+ title: "Service provider staff",
10047
+ selectable: true,
10048
+ parentCode: "069-004-000-000-000-000-000",
10049
+ childCodes: [],
10050
+ definition: "Staff of a service provider program or agency involved in the incident."
10051
+ },
10052
+ {
10053
+ code: "069-004-002-000-000-000-000",
10054
+ key: "medical_provider_staff",
10055
+ title: "Medical provider staff",
10056
+ selectable: true,
10057
+ parentCode: "069-004-000-000-000-000-000",
10058
+ childCodes: [],
10059
+ definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
10060
+ },
10061
+ {
10062
+ code: "069-004-003-000-000-000-000",
10063
+ key: "data_entry",
10064
+ title: "Data Entry / Editor",
10065
+ selectable: true,
10066
+ parentCode: "069-004-000-000-000-000-000",
10067
+ childCodes: [],
10068
+ 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."
10069
+ },
10070
+ {
10071
+ code: "069-004-004-000-000-000-000",
10072
+ key: "other_incident_responder",
10073
+ title: "VSP or Other Incident Responder",
10074
+ selectable: true,
10075
+ parentCode: "069-004-000-000-000-000-000",
10076
+ childCodes: [],
10077
+ 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)."
10078
+ },
10079
+ {
10080
+ code: "069-004-005-000-000-000-000",
10081
+ key: "responding_officer",
10082
+ title: "LE Responding Officer",
10083
+ selectable: true,
10084
+ parentCode: "069-004-000-000-000-000-000",
10085
+ childCodes: [],
10086
+ definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
10087
+ },
10088
+ {
10089
+ code: "069-000-000-000-000-000-000",
10090
+ key: "missingness_root",
10091
+ title: "Unknown, Redacted, or Missing",
10092
+ selectable: false,
10093
+ parentCode: null,
10094
+ childCodes: [
10095
+ "069-000-000-000-000-000-001",
10096
+ "069-000-000-000-000-000-002",
10097
+ "069-000-000-000-000-000-003"
10098
+ ],
10099
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
10100
+ },
10101
+ {
10102
+ code: "069-000-000-000-000-000-001",
10103
+ key: "unknown",
10104
+ title: "Unknown",
10105
+ selectable: true,
10106
+ parentCode: "069-000-000-000-000-000-000",
10107
+ childCodes: [],
10108
+ definition: "Value is unknown at time of entry."
10109
+ },
10110
+ {
10111
+ code: "069-000-000-000-000-000-002",
10112
+ key: "anonymous",
10113
+ title: "Anonymous",
10114
+ selectable: true,
10115
+ parentCode: "069-000-000-000-000-000-000",
10116
+ childCodes: [],
10117
+ definition: "Value is intentionally withheld or redacted."
10118
+ },
10119
+ {
10120
+ code: "069-000-000-000-000-000-003",
10121
+ key: "data_not_collected",
10122
+ title: "Data not collected",
10123
+ selectable: true,
10124
+ parentCode: "069-000-000-000-000-000-000",
10125
+ childCodes: [],
10126
+ definition: "No attempt was made to collect the value."
10127
+ }
10128
+ ]
10129
+ };
10130
+
10131
+ // src/cvcs/incidentInvolvementRoles.v1.0.0.json
10132
+ var incidentInvolvementRoles_v1_0_0_default = {
10133
+ domain: "incident_involvement_roles",
10134
+ name: "Core Incident Involvement Role",
10135
+ version: "1.0.0",
10136
+ levels: {
10137
+ "0": "Unknown or Missing",
10138
+ "1": "Involvement Role"
10139
+ },
10140
+ entries: [
10141
+ {
10142
+ code: "130-001-000-000-000-000-000",
10143
+ key: "victim_primary",
10144
+ title: "Victim (primary)",
10145
+ selectable: true,
10146
+ parentCode: null,
10147
+ childCodes: [],
10148
+ definition: "The primary victim/survivor for the incident framing."
10149
+ },
10150
+ {
10151
+ code: "130-002-000-000-000-000-000",
10152
+ key: "victim_secondary",
10153
+ title: "Victim (secondary)",
10154
+ selectable: true,
10155
+ parentCode: null,
10156
+ childCodes: [],
10157
+ definition: "A secondary victim harmed in the incident context."
10158
+ },
10159
+ {
10160
+ code: "130-003-000-000-000-000-000",
10161
+ key: "victim_other",
10162
+ title: "Victim (other)",
10163
+ selectable: true,
10164
+ parentCode: null,
10165
+ childCodes: [],
10166
+ definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
10167
+ },
10168
+ {
10169
+ code: "130-004-000-000-000-000-000",
10170
+ key: "offender",
10171
+ title: "Offender",
10172
+ selectable: true,
10173
+ parentCode: null,
10174
+ childCodes: [],
10175
+ definition: "The person who caused harm."
10176
+ },
10177
+ {
10178
+ code: "130-005-000-000-000-000-000",
10179
+ key: "witness",
10180
+ title: "Witness",
10181
+ selectable: true,
10182
+ parentCode: null,
10183
+ childCodes: [],
10184
+ definition: "A person who witnessed relevant events."
10185
+ },
10186
+ {
10187
+ code: "130-006-000-000-000-000-000",
10188
+ key: "dependent",
10189
+ title: "Dependent",
10190
+ selectable: true,
10191
+ parentCode: null,
10192
+ childCodes: [],
10193
+ definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
10194
+ },
10195
+ {
10196
+ code: "130-000-000-000-000-000-000",
10197
+ key: "missingness_root",
10198
+ title: "Unknown, Redacted, or Missing",
10199
+ selectable: false,
10200
+ parentCode: null,
10201
+ childCodes: [
10202
+ "130-000-000-000-000-000-001",
10203
+ "130-000-000-000-000-000-002",
10204
+ "130-000-000-000-000-000-003"
10205
+ ],
10206
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
10207
+ },
10208
+ {
10209
+ code: "130-000-000-000-000-000-001",
10210
+ key: "unknown",
10211
+ title: "Unknown",
10212
+ selectable: true,
10213
+ parentCode: "130-000-000-000-000-000-000",
10214
+ childCodes: [],
10215
+ definition: "Value is unknown at time of entry."
10216
+ },
10217
+ {
10218
+ code: "130-000-000-000-000-000-002",
10219
+ key: "anonymous",
10220
+ title: "Anonymous",
10221
+ selectable: true,
10222
+ parentCode: "130-000-000-000-000-000-000",
10223
+ childCodes: [],
10224
+ definition: "Value is intentionally withheld or redacted."
10225
+ },
10226
+ {
10227
+ code: "130-000-000-000-000-000-003",
10228
+ key: "data_not_collected",
10229
+ title: "Data not collected",
10230
+ selectable: true,
10231
+ parentCode: "130-000-000-000-000-000-000",
10232
+ childCodes: [],
10233
+ definition: "No attempt was made to collect the value."
10234
+ }
10235
+ ]
10236
+ };
10237
+
10238
+ // src/cvcs/raceEthnicity.v1.0.0.json
10239
+ var raceEthnicity_v1_0_0_default = {
10240
+ domain: "race_ethnicity",
10241
+ name: "Core Race/Ethnicity",
10242
+ version: "1.0.0",
10243
+ levels: {
10244
+ "0": "Unknown or Missing",
10245
+ "1": "Category"
10246
+ },
10247
+ entries: [
10248
+ {
10249
+ code: "076-000-000-000-000-000-000",
10250
+ key: "missingness_root",
10251
+ title: "Unknown, Redacted, or Missing",
10252
+ selectable: false,
10253
+ parentCode: null,
10254
+ childCodes: [
10255
+ "076-000-000-000-000-000-001",
10256
+ "076-000-000-000-000-000-002",
10257
+ "076-000-000-000-000-000-003",
10258
+ "076-000-000-000-000-000-004"
10259
+ ],
10260
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
10261
+ },
10262
+ {
10263
+ code: "076-000-000-000-000-000-001",
10264
+ key: "unknown",
10265
+ title: "Unknown",
10266
+ selectable: true,
10267
+ parentCode: "076-000-000-000-000-000-000",
10268
+ childCodes: [],
10269
+ definition: "Value is unknown at time of entry."
10270
+ },
10271
+ {
10272
+ code: "076-000-000-000-000-000-002",
10273
+ key: "anonymous",
10274
+ title: "Anonymous",
10275
+ selectable: true,
10276
+ parentCode: "076-000-000-000-000-000-000",
10277
+ childCodes: [],
10278
+ definition: "Value is intentionally withheld or redacted."
10279
+ },
10280
+ {
10281
+ code: "076-000-000-000-000-000-003",
10282
+ key: "data_not_collected",
10283
+ title: "Data not collected",
10284
+ selectable: true,
10285
+ parentCode: "076-000-000-000-000-000-000",
10286
+ childCodes: [],
10287
+ definition: "No attempt was made to collect the value."
10288
+ },
10289
+ {
10290
+ code: "076-000-000-000-000-000-004",
10291
+ key: "prefer_not_to_answer",
10292
+ title: "Client prefers not to answer",
10293
+ selectable: true,
10294
+ parentCode: "076-000-000-000-000-000-000",
10295
+ childCodes: [],
10296
+ definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
10297
+ },
10298
+ {
10299
+ code: "076-001-000-000-000-000-000",
10300
+ key: "american_indian_or_alaska_native",
10301
+ title: "American Indian or Alaska Native",
10302
+ selectable: true,
10303
+ parentCode: null,
10304
+ childCodes: [],
10305
+ 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."
10306
+ },
10307
+ {
10308
+ code: "076-002-000-000-000-000-000",
10309
+ key: "asian",
10310
+ title: "Asian",
10311
+ selectable: true,
10312
+ parentCode: null,
10313
+ childCodes: [],
10314
+ 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."
10315
+ },
10316
+ {
10317
+ code: "076-003-000-000-000-000-000",
10318
+ key: "black_or_african_american",
10319
+ title: "Black or African American",
10320
+ selectable: true,
10321
+ parentCode: null,
10322
+ childCodes: [],
10323
+ definition: "Individuals with origins in any of the Black racial groups of Africa, including, for example, African American, Jamaican, Haitian, Nigerian, Ethiopian, and Somali."
10324
+ },
10325
+ {
10326
+ code: "076-004-000-000-000-000-000",
10327
+ key: "hispanic_or_latino",
10328
+ title: "Hispanic or Latino",
10329
+ selectable: true,
10330
+ parentCode: null,
10331
+ childCodes: [],
10332
+ definition: "Includes individuals of Mexican, Puerto Rican, Salvadoran, Cuban, Dominican, Guatemalan, and other Central or South American or Spanish culture or origin."
10333
+ },
10334
+ {
10335
+ code: "076-005-000-000-000-000-000",
10336
+ key: "middle_eastern_or_north_african",
10337
+ title: "Middle Eastern or North African",
10338
+ selectable: true,
10339
+ parentCode: null,
10340
+ childCodes: [],
10341
+ 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."
10342
+ },
10343
+ {
10344
+ code: "076-006-000-000-000-000-000",
10345
+ key: "multiple_races",
10346
+ title: "Multiple Races [multiple were selected]",
10347
+ selectable: true,
10348
+ parentCode: null,
10349
+ childCodes: [],
10350
+ definition: "Indicates that an individual identifies with more than one racial and/or ethnic category."
10351
+ },
10352
+ {
10353
+ code: "076-007-000-000-000-000-000",
10354
+ key: "native_hawaiian_or_pacific_islander",
10355
+ title: "Native Hawaiian or Pacific Islander",
10356
+ selectable: true,
10357
+ parentCode: null,
10358
+ childCodes: [],
10359
+ 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."
10360
+ },
10361
+ {
10362
+ code: "076-008-000-000-000-000-000",
10363
+ key: "other_self_described",
10364
+ title: "Other - [trigger an optional write in]",
10365
+ selectable: true,
10366
+ parentCode: null,
10367
+ childCodes: [],
10368
+ definition: "Allows for additional self-described race or ethnicity information not adequately represented by the listed categories."
10369
+ },
10370
+ {
10371
+ code: "076-009-000-000-000-000-000",
10372
+ key: "white",
10373
+ title: "White",
10374
+ selectable: true,
10375
+ parentCode: null,
10376
+ childCodes: [],
10377
+ definition: "Individuals with origins in any of the original peoples of Europe, including, for example, English, German, Irish, Italian, Polish, and Scottish."
10378
+ }
10379
+ ]
10380
+ };
9862
10381
  // Annotate the CommonJS export names for ESM import in node:
9863
10382
  0 && (module.exports = {
9864
10383
  ACCOMMODATION_LABELS,
@@ -10097,6 +10616,8 @@ var serviceMechanisms_v1_0_0_default = {
10097
10616
  INTERACTION_TYPES,
10098
10617
  INTERACTION_TYPE_LABELS,
10099
10618
  INVOLVEMENT_ROLE_TO_PERSON_TYPE,
10619
+ IncidentInvolvementRoleKeys,
10620
+ IncidentParticipationRoleKeys,
10100
10621
  MINOR_ADULT_STATUS,
10101
10622
  MINOR_ADULT_STATUS_LABELS,
10102
10623
  PARTICIPATION_ROLE_CATEGORIES,
@@ -10128,6 +10649,7 @@ var serviceMechanisms_v1_0_0_default = {
10128
10649
  ROLE_LEVEL,
10129
10650
  ROLE_LEVEL_LABELS,
10130
10651
  ROLE_LEVEL_VALUES,
10652
+ RaceEthnicityKeys,
10131
10653
  SESSION_STATES,
10132
10654
  SESSION_STATE_LABELS,
10133
10655
  SHARE_VIEW,
@@ -10186,6 +10708,8 @@ var serviceMechanisms_v1_0_0_default = {
10186
10708
  getPersonTypeForRole,
10187
10709
  getRelationshipCategory,
10188
10710
  guidanceSchema,
10711
+ incidentInvolvementRolesSot,
10712
+ incidentParticipationRolesSot,
10189
10713
  isIC56Missingness,
10190
10714
  isIC56ValidChannel,
10191
10715
  isLgbtqOrientation,
@@ -10204,6 +10728,7 @@ var serviceMechanisms_v1_0_0_default = {
10204
10728
  questionModel,
10205
10729
  questionSchemaDefinition,
10206
10730
  questionSchemaOptions,
10731
+ raceEthnicitySot,
10207
10732
  resolveRegistryWithInheritance,
10208
10733
  scoringConditionSchema,
10209
10734
  scoringRecommendationSchema,