@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.
Files changed (51) 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 +316 -1
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +368 -26
  10. package/dist/cvcs/index.d.ts +368 -26
  11. package/dist/cvcs/index.js +314 -1
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +373 -12
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +50 -5
  16. package/dist/index.d.ts +50 -5
  17. package/dist/index.js +369 -12
  18. package/dist/index.js.map +1 -1
  19. package/dist/models/index.cjs +2 -2
  20. package/dist/models/index.cjs.map +1 -1
  21. package/dist/models/index.js +2 -2
  22. package/dist/models/index.js.map +1 -1
  23. package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
  24. package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
  25. package/dist/schemas/index.cjs +16 -7
  26. package/dist/schemas/index.cjs.map +1 -1
  27. package/dist/schemas/index.js +16 -7
  28. package/dist/schemas/index.js.map +1 -1
  29. package/dist/services/index.cjs +2 -2
  30. package/dist/services/index.cjs.map +1 -1
  31. package/dist/services/index.js +2 -2
  32. package/dist/services/index.js.map +1 -1
  33. package/dist/types/index.d.cts +2 -2
  34. package/dist/types/index.d.ts +2 -2
  35. package/dist/validation/index.cjs.map +1 -1
  36. package/dist/validation/index.d.cts +2 -2
  37. package/dist/validation/index.d.ts +2 -2
  38. package/dist/validation/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/__tests__/__snapshots__/cvc-sot.snap +10 -2
  41. package/src/__tests__/cvc-sot-snapshot.test.ts +13 -1
  42. package/src/__tests__/cvc-structural.test.ts +1 -1
  43. package/src/constants/ic.ts +24 -14
  44. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
  45. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
  46. package/src/cvcs/index.ts +4 -0
  47. package/src/cvcs/serviceStates.v1.0.0.json +1 -1
  48. package/src/generated/cvc-enums.ts +51 -2
  49. package/src/models/cvcEntryModel.ts +1 -1
  50. package/src/models/cvcRegistryModel.ts +1 -1
  51. package/src/validation/cvc.ts +6 -3
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
- NOT_COLLECTED: "not_collected"
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.NOT_COLLECTED]: "Not Collected"
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.NOT_COLLECTED]: PERSON_ROLES.OTHER
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
- NOT_COLLECTED: "not_collected"
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.NOT_COLLECTED
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.NOT_COLLECTED]: "Not Collected"
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.NOT_COLLECTED]: null
1383
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: null
1375
1384
  };
1376
1385
  function getPersonTypeForRole(role, contextPersonType) {
1377
- if (role === INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED) {
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.NOT_COLLECTED:
1413
+ case INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED:
1405
1414
  default:
1406
1415
  return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
1407
1416
  }
@@ -6581,7 +6590,7 @@ __export(cvcRegistryModel_exports, {
6581
6590
  compileModel: () => compileModel7
6582
6591
  });
6583
6592
  function compileModel7(connection, schema = buildCvcRegistrySchema()) {
6584
- return connection.models.CvcRegistry ?? connection.model("CvcRegistry", schema);
6593
+ return connection.models?.CvcRegistry ?? connection.model("CvcRegistry", schema);
6585
6594
  }
6586
6595
 
6587
6596
  // src/models/cvcEntryModel.ts
@@ -6591,7 +6600,7 @@ __export(cvcEntryModel_exports, {
6591
6600
  compileModel: () => compileModel8
6592
6601
  });
6593
6602
  function compileModel8(connection, schema = buildCvcEntrySchema()) {
6594
- return connection.models.CvcEntry ?? connection.model("CvcEntry", schema);
6603
+ return connection.models?.CvcEntry ?? connection.model("CvcEntry", schema);
6595
6604
  }
6596
6605
 
6597
6606
  // src/models/index.ts
@@ -6786,6 +6795,39 @@ 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
+ };
6789
6831
 
6790
6832
  // src/services/cvcRegistryService.ts
6791
6833
  import "mongoose";
@@ -9247,7 +9289,7 @@ var serviceCategories_v1_0_0_default = {
9247
9289
 
9248
9290
  // src/cvcs/serviceStates.v1.0.0.json
9249
9291
  var serviceStates_v1_0_0_default = {
9250
- domain: "service_state",
9292
+ domain: "service_states",
9251
9293
  name: "Core Service State",
9252
9294
  version: "1.0.0",
9253
9295
  levels: {
@@ -9481,6 +9523,317 @@ var serviceMechanisms_v1_0_0_default = {
9481
9523
  }
9482
9524
  ]
9483
9525
  };
9526
+
9527
+ // src/cvcs/incidentParticipationRoles.v1.0.0.json
9528
+ var incidentParticipationRoles_v1_0_0_default = {
9529
+ domain: "incident_participation_roles",
9530
+ name: "Core Incident Participation Roles",
9531
+ version: "1.0.0",
9532
+ levels: {
9533
+ "0": "Unknown or Missing",
9534
+ "1": "Group",
9535
+ "2": "Role"
9536
+ },
9537
+ entries: [
9538
+ {
9539
+ code: "069-001-000-000-000-000-000",
9540
+ key: "client_group",
9541
+ title: "Client",
9542
+ selectable: false,
9543
+ parentCode: null,
9544
+ childCodes: [
9545
+ "069-001-001-000-000-000-000"
9546
+ ],
9547
+ definition: "Group of participation roles identifying the person the incident record is about."
9548
+ },
9549
+ {
9550
+ code: "069-001-001-000-000-000-000",
9551
+ key: "client_subject",
9552
+ title: "Client (subject)",
9553
+ selectable: true,
9554
+ parentCode: "069-001-000-000-000-000-000",
9555
+ childCodes: [],
9556
+ definition: "The participant who is the subject of the incident record (the client for whom the episode is framed)."
9557
+ },
9558
+ {
9559
+ code: "069-002-000-000-000-000-000",
9560
+ key: "caller_reporter_group",
9561
+ title: "Caller / Reporter",
9562
+ selectable: false,
9563
+ parentCode: null,
9564
+ childCodes: [
9565
+ "069-002-001-000-000-000-000",
9566
+ "069-002-002-000-000-000-000",
9567
+ "069-002-003-000-000-000-000"
9568
+ ],
9569
+ definition: "Group of participation roles identifying who contacted or reported the incident to the program."
9570
+ },
9571
+ {
9572
+ code: "069-002-001-000-000-000-000",
9573
+ key: "caller_self",
9574
+ title: "Caller (self)",
9575
+ selectable: true,
9576
+ parentCode: "069-002-000-000-000-000-000",
9577
+ childCodes: [],
9578
+ definition: "Caller contacting the program on their own behalf."
9579
+ },
9580
+ {
9581
+ code: "069-002-002-000-000-000-000",
9582
+ key: "caller_third_party",
9583
+ title: "Caller (third party)",
9584
+ selectable: true,
9585
+ parentCode: "069-002-000-000-000-000-000",
9586
+ childCodes: [],
9587
+ definition: "Caller contacting the program on behalf of someone else."
9588
+ },
9589
+ {
9590
+ code: "069-002-003-000-000-000-000",
9591
+ key: "reporter",
9592
+ title: "Reporter",
9593
+ selectable: true,
9594
+ parentCode: "069-002-000-000-000-000-000",
9595
+ childCodes: [],
9596
+ definition: "Participant who filed a formal report about the incident."
9597
+ },
9598
+ {
9599
+ code: "069-003-000-000-000-000-000",
9600
+ key: "support_network_group",
9601
+ title: "Support network",
9602
+ selectable: false,
9603
+ parentCode: null,
9604
+ childCodes: [
9605
+ "069-003-001-000-000-000-000",
9606
+ "069-003-002-000-000-000-000"
9607
+ ],
9608
+ definition: "Group of participation roles identifying people from the client's personal support network."
9609
+ },
9610
+ {
9611
+ code: "069-003-001-000-000-000-000",
9612
+ key: "family_member_or_guardian",
9613
+ title: "Family member or guardian",
9614
+ selectable: true,
9615
+ parentCode: "069-003-000-000-000-000-000",
9616
+ childCodes: [],
9617
+ definition: "Family member or legal guardian of the client."
9618
+ },
9619
+ {
9620
+ code: "069-003-002-000-000-000-000",
9621
+ key: "friend_or_peer",
9622
+ title: "Friend or peer",
9623
+ selectable: true,
9624
+ parentCode: "069-003-000-000-000-000-000",
9625
+ childCodes: [],
9626
+ definition: "Friend or peer in the client's support network."
9627
+ },
9628
+ {
9629
+ code: "069-004-000-000-000-000-000",
9630
+ key: "system_professional_group",
9631
+ title: "System / professional participants",
9632
+ selectable: false,
9633
+ parentCode: null,
9634
+ childCodes: [
9635
+ "069-004-001-000-000-000-000",
9636
+ "069-004-002-000-000-000-000",
9637
+ "069-004-003-000-000-000-000",
9638
+ "069-004-004-000-000-000-000",
9639
+ "069-004-005-000-000-000-000"
9640
+ ],
9641
+ definition: "Group of participation roles identifying system-side professionals involved in the incident."
9642
+ },
9643
+ {
9644
+ code: "069-004-001-000-000-000-000",
9645
+ key: "service_provider_staff",
9646
+ title: "Service provider staff",
9647
+ selectable: true,
9648
+ parentCode: "069-004-000-000-000-000-000",
9649
+ childCodes: [],
9650
+ definition: "Staff of a service provider program or agency involved in the incident."
9651
+ },
9652
+ {
9653
+ code: "069-004-002-000-000-000-000",
9654
+ key: "medical_provider_staff",
9655
+ title: "Medical provider staff",
9656
+ selectable: true,
9657
+ parentCode: "069-004-000-000-000-000-000",
9658
+ childCodes: [],
9659
+ definition: "Staff of a medical provider (hospital, clinic) involved in the incident."
9660
+ },
9661
+ {
9662
+ code: "069-004-003-000-000-000-000",
9663
+ key: "data_entry",
9664
+ title: "Data Entry / Editor",
9665
+ selectable: true,
9666
+ parentCode: "069-004-000-000-000-000-000",
9667
+ childCodes: [],
9668
+ 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."
9669
+ },
9670
+ {
9671
+ code: "069-004-004-000-000-000-000",
9672
+ key: "other_incident_responder",
9673
+ title: "VSP or Other Incident Responder",
9674
+ selectable: true,
9675
+ parentCode: "069-004-000-000-000-000-000",
9676
+ childCodes: [],
9677
+ 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)."
9678
+ },
9679
+ {
9680
+ code: "069-004-005-000-000-000-000",
9681
+ key: "responding_officer",
9682
+ title: "LE Responding Officer",
9683
+ selectable: true,
9684
+ parentCode: "069-004-000-000-000-000-000",
9685
+ childCodes: [],
9686
+ definition: "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
9687
+ },
9688
+ {
9689
+ code: "069-000-000-000-000-000-000",
9690
+ key: "missingness_root",
9691
+ title: "Unknown, Redacted, or Missing",
9692
+ selectable: false,
9693
+ parentCode: null,
9694
+ childCodes: [
9695
+ "069-000-000-000-000-000-001",
9696
+ "069-000-000-000-000-000-002",
9697
+ "069-000-000-000-000-000-003"
9698
+ ],
9699
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9700
+ },
9701
+ {
9702
+ code: "069-000-000-000-000-000-001",
9703
+ key: "unknown",
9704
+ title: "Unknown",
9705
+ selectable: true,
9706
+ parentCode: "069-000-000-000-000-000-000",
9707
+ childCodes: [],
9708
+ definition: "Value is unknown at time of entry."
9709
+ },
9710
+ {
9711
+ code: "069-000-000-000-000-000-002",
9712
+ key: "anonymous",
9713
+ title: "Anonymous",
9714
+ selectable: true,
9715
+ parentCode: "069-000-000-000-000-000-000",
9716
+ childCodes: [],
9717
+ definition: "Value is intentionally withheld or redacted."
9718
+ },
9719
+ {
9720
+ code: "069-000-000-000-000-000-003",
9721
+ key: "data_not_collected",
9722
+ title: "Data not collected",
9723
+ selectable: true,
9724
+ parentCode: "069-000-000-000-000-000-000",
9725
+ childCodes: [],
9726
+ definition: "No attempt was made to collect the value."
9727
+ }
9728
+ ]
9729
+ };
9730
+
9731
+ // src/cvcs/incidentInvolvementRoles.v1.0.0.json
9732
+ var incidentInvolvementRoles_v1_0_0_default = {
9733
+ domain: "incident_involvement_roles",
9734
+ name: "Core Incident Involvement Role",
9735
+ version: "1.0.0",
9736
+ levels: {
9737
+ "0": "Unknown or Missing",
9738
+ "1": "Involvement Role"
9739
+ },
9740
+ entries: [
9741
+ {
9742
+ code: "130-001-000-000-000-000-000",
9743
+ key: "victim_primary",
9744
+ title: "Victim (primary)",
9745
+ selectable: true,
9746
+ parentCode: null,
9747
+ childCodes: [],
9748
+ definition: "The primary victim/survivor for the incident framing."
9749
+ },
9750
+ {
9751
+ code: "130-002-000-000-000-000-000",
9752
+ key: "victim_secondary",
9753
+ title: "Victim (secondary)",
9754
+ selectable: true,
9755
+ parentCode: null,
9756
+ childCodes: [],
9757
+ definition: "A secondary victim harmed in the incident context."
9758
+ },
9759
+ {
9760
+ code: "130-003-000-000-000-000-000",
9761
+ key: "victim_other",
9762
+ title: "Victim (other)",
9763
+ selectable: true,
9764
+ parentCode: null,
9765
+ childCodes: [],
9766
+ definition: "Another victim relevant to the case when primary vs secondary is not meaningful."
9767
+ },
9768
+ {
9769
+ code: "130-004-000-000-000-000-000",
9770
+ key: "offender",
9771
+ title: "Offender",
9772
+ selectable: true,
9773
+ parentCode: null,
9774
+ childCodes: [],
9775
+ definition: "The person who caused harm."
9776
+ },
9777
+ {
9778
+ code: "130-005-000-000-000-000-000",
9779
+ key: "witness",
9780
+ title: "Witness",
9781
+ selectable: true,
9782
+ parentCode: null,
9783
+ childCodes: [],
9784
+ definition: "A person who witnessed relevant events."
9785
+ },
9786
+ {
9787
+ code: "130-006-000-000-000-000-000",
9788
+ key: "dependent",
9789
+ title: "Dependent",
9790
+ selectable: true,
9791
+ parentCode: null,
9792
+ childCodes: [],
9793
+ definition: "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
9794
+ },
9795
+ {
9796
+ code: "130-000-000-000-000-000-000",
9797
+ key: "missingness_root",
9798
+ title: "Unknown, Redacted, or Missing",
9799
+ selectable: false,
9800
+ parentCode: null,
9801
+ childCodes: [
9802
+ "130-000-000-000-000-000-001",
9803
+ "130-000-000-000-000-000-002",
9804
+ "130-000-000-000-000-000-003"
9805
+ ],
9806
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9807
+ },
9808
+ {
9809
+ code: "130-000-000-000-000-000-001",
9810
+ key: "unknown",
9811
+ title: "Unknown",
9812
+ selectable: true,
9813
+ parentCode: "130-000-000-000-000-000-000",
9814
+ childCodes: [],
9815
+ definition: "Value is unknown at time of entry."
9816
+ },
9817
+ {
9818
+ code: "130-000-000-000-000-000-002",
9819
+ key: "anonymous",
9820
+ title: "Anonymous",
9821
+ selectable: true,
9822
+ parentCode: "130-000-000-000-000-000-000",
9823
+ childCodes: [],
9824
+ definition: "Value is intentionally withheld or redacted."
9825
+ },
9826
+ {
9827
+ code: "130-000-000-000-000-000-003",
9828
+ key: "data_not_collected",
9829
+ title: "Data not collected",
9830
+ selectable: true,
9831
+ parentCode: "130-000-000-000-000-000-000",
9832
+ childCodes: [],
9833
+ definition: "No attempt was made to collect the value."
9834
+ }
9835
+ ]
9836
+ };
9484
9837
  export {
9485
9838
  ACCOMMODATION_LABELS,
9486
9839
  ACCOMMODATION_OPTIONS,
@@ -9718,6 +10071,8 @@ export {
9718
10071
  INTERACTION_TYPES,
9719
10072
  INTERACTION_TYPE_LABELS,
9720
10073
  INVOLVEMENT_ROLE_TO_PERSON_TYPE,
10074
+ IncidentInvolvementRoleKeys,
10075
+ IncidentParticipationRoleKeys,
9721
10076
  MINOR_ADULT_STATUS,
9722
10077
  MINOR_ADULT_STATUS_LABELS,
9723
10078
  PARTICIPATION_ROLE_CATEGORIES,
@@ -9807,6 +10162,8 @@ export {
9807
10162
  getPersonTypeForRole,
9808
10163
  getRelationshipCategory,
9809
10164
  guidanceSchema,
10165
+ incidentInvolvementRoles_v1_0_0_default as incidentInvolvementRolesSot,
10166
+ incidentParticipationRoles_v1_0_0_default as incidentParticipationRolesSot,
9810
10167
  isIC56Missingness,
9811
10168
  isIC56ValidChannel,
9812
10169
  isLgbtqOrientation,