@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
@@ -1,5 +1,5 @@
1
- import { ef as PlatformToolValue, cN as FunctionStatusValue, eC as RoleLevelValue, eN as ShareViewValue, eb as PermissionStateValue } from '../platform-auth-C-G2qeGM.cjs';
2
- export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cD as DataQualityValue, cL as FormStatusValue, cM as FormTypeValue, cO as IC13Category, cQ as IC13Value, cR as IC22Value, cS as IC23Value, cT as IC24Value, cU as IC25Value, cV as IC49ReferralOutcomeValue, cW as IC49ReferralVerificationValue, cX as IC49Value, cY as IC4Value, c_ as IC56Value, c$ as IC57Value, d1 as IC58Value, d2 as IC59Value, d3 as IC5Value, dT as IncidentInvolvementRoleValue, dU as IncidentParticipationRoleValue, dV as InteractionTypeValue, dY as MinorAdultStatusValue, ec as PersonDisplayCategoryValue, ed as PersonRoleValue, ee as PersonTypeValue, el as QuestionFormatValue, em as QuickStartTemplateId, ey as RecordStateValue, eA as RelationshipConcernValue, eB as RelationshipDynamicValue, eM as SessionStateValue, eO as SubmissionStateValue, eS as UserStatusValue } from '../platform-auth-C-G2qeGM.cjs';
1
+ import { ef as PlatformToolValue, cN as FunctionStatusValue, eC as RoleLevelValue, eN as ShareViewValue, eb as PermissionStateValue } from '../platform-auth-CjC57132.cjs';
2
+ export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cD as DataQualityValue, cL as FormStatusValue, cM as FormTypeValue, cO as IC13Category, cQ as IC13Value, cR as IC22Value, cS as IC23Value, cT as IC24Value, cU as IC25Value, cV as IC49ReferralOutcomeValue, cW as IC49ReferralVerificationValue, cX as IC49Value, cY as IC4Value, c_ as IC56Value, c$ as IC57Value, d1 as IC58Value, d2 as IC59Value, d3 as IC5Value, dT as IncidentInvolvementRoleValue, dU as IncidentParticipationRoleValue, dV as InteractionTypeValue, dY as MinorAdultStatusValue, ec as PersonDisplayCategoryValue, ed as PersonRoleValue, ee as PersonTypeValue, el as QuestionFormatValue, em as QuickStartTemplateId, ey as RecordStateValue, eA as RelationshipConcernValue, eB as RelationshipDynamicValue, eM as SessionStateValue, eO as SubmissionStateValue, eS as UserStatusValue } from '../platform-auth-CjC57132.cjs';
3
3
 
4
4
  /**
5
5
  * @htilabs/platform-common-models — Platform Authorization Types
@@ -1,5 +1,5 @@
1
- import { ef as PlatformToolValue, cN as FunctionStatusValue, eC as RoleLevelValue, eN as ShareViewValue, eb as PermissionStateValue } from '../platform-auth-C-G2qeGM.js';
2
- export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cD as DataQualityValue, cL as FormStatusValue, cM as FormTypeValue, cO as IC13Category, cQ as IC13Value, cR as IC22Value, cS as IC23Value, cT as IC24Value, cU as IC25Value, cV as IC49ReferralOutcomeValue, cW as IC49ReferralVerificationValue, cX as IC49Value, cY as IC4Value, c_ as IC56Value, c$ as IC57Value, d1 as IC58Value, d2 as IC59Value, d3 as IC5Value, dT as IncidentInvolvementRoleValue, dU as IncidentParticipationRoleValue, dV as InteractionTypeValue, dY as MinorAdultStatusValue, ec as PersonDisplayCategoryValue, ed as PersonRoleValue, ee as PersonTypeValue, el as QuestionFormatValue, em as QuickStartTemplateId, ey as RecordStateValue, eA as RelationshipConcernValue, eB as RelationshipDynamicValue, eM as SessionStateValue, eO as SubmissionStateValue, eS as UserStatusValue } from '../platform-auth-C-G2qeGM.js';
1
+ import { ef as PlatformToolValue, cN as FunctionStatusValue, eC as RoleLevelValue, eN as ShareViewValue, eb as PermissionStateValue } from '../platform-auth-CjC57132.js';
2
+ export { h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, cD as DataQualityValue, cL as FormStatusValue, cM as FormTypeValue, cO as IC13Category, cQ as IC13Value, cR as IC22Value, cS as IC23Value, cT as IC24Value, cU as IC25Value, cV as IC49ReferralOutcomeValue, cW as IC49ReferralVerificationValue, cX as IC49Value, cY as IC4Value, c_ as IC56Value, c$ as IC57Value, d1 as IC58Value, d2 as IC59Value, d3 as IC5Value, dT as IncidentInvolvementRoleValue, dU as IncidentParticipationRoleValue, dV as InteractionTypeValue, dY as MinorAdultStatusValue, ec as PersonDisplayCategoryValue, ed as PersonRoleValue, ee as PersonTypeValue, el as QuestionFormatValue, em as QuickStartTemplateId, ey as RecordStateValue, eA as RelationshipConcernValue, eB as RelationshipDynamicValue, eM as SessionStateValue, eO as SubmissionStateValue, eS as UserStatusValue } from '../platform-auth-CjC57132.js';
3
3
 
4
4
  /**
5
5
  * @htilabs/platform-common-models — Platform Authorization Types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htilabs/platform-common-models",
3
- "version": "0.4.0-beta.2",
3
+ "version": "0.5.2-beta.3",
4
4
  "description": "Shared constants, types, and models for HTI Labs applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -13,6 +13,18 @@
13
13
  "service_categories": {
14
14
  "count": 151,
15
15
  "hash": "a7c7a9b09d46c5ba8f5608d3e44331b862b07d67fac969f4bf204dca82b5fbd5"
16
+ },
17
+ "incident_participation_roles": {
18
+ "count": 19,
19
+ "hash": "b183edbd968bf827a607b9ebc08a1388600e9c7d8a72ee47d261830d845988fa"
20
+ },
21
+ "incident_involvement_roles": {
22
+ "count": 10,
23
+ "hash": "82cab90656a08ddd2c4730dbf37e9d0545f9243c74a6f4e919e014e35516d698"
24
+ },
25
+ "race_ethnicity": {
26
+ "count": 14,
27
+ "hash": "b5e9aa83bcbffcaf0fdc665e566d631c359c8b971ecdd6dda7b397745a88dbe9"
16
28
  }
17
29
  }
18
30
  }
@@ -64,6 +64,26 @@ const SOT_SPECS: readonly SotSpec[] = [
64
64
  { file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 14 },
65
65
  // Spec §8.1 — "Entries: 147" + 4 missingness = 151
66
66
  { file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
67
+ // CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
68
+ {
69
+ file: "incidentParticipationRoles.v1.0.0.json",
70
+ domain: "incident_participation_roles",
71
+ expectedCount: 19,
72
+ },
73
+ // CVC-130 — 6 flat role leaves + 4 missingness = 10
74
+ {
75
+ file: "incidentInvolvementRoles.v1.0.0.json",
76
+ domain: "incident_involvement_roles",
77
+ expectedCount: 10,
78
+ },
79
+ // CVC-76 — 9 flat race/ethnicity categories + 1 missingness root + 4
80
+ // missingness children (adds canonical `prefer_not_to_answer` for
81
+ // demographic PNA semantics) = 14.
82
+ {
83
+ file: "raceEthnicity.v1.0.0.json",
84
+ domain: "race_ethnicity",
85
+ expectedCount: 14,
86
+ },
67
87
  ] as const;
68
88
 
69
89
  // ─── Helpers ────────────────────────────────────────────────────────────────
@@ -50,6 +50,9 @@ const SOT_FILES: readonly SotFile[] = [
50
50
  { file: "serviceMechanisms.v1.0.0.json", expectedDomain: "service_mechanisms" },
51
51
  { file: "serviceStates.v1.0.0.json", expectedDomain: "service_states" },
52
52
  { file: "serviceCategories.v1.0.0.json", expectedDomain: "service_categories" },
53
+ { file: "incidentParticipationRoles.v1.0.0.json", expectedDomain: "incident_participation_roles" },
54
+ { file: "incidentInvolvementRoles.v1.0.0.json", expectedDomain: "incident_involvement_roles" },
55
+ { file: "raceEthnicity.v1.0.0.json", expectedDomain: "race_ethnicity" },
53
56
  ] as const;
54
57
 
55
58
  function loadSot(file: string): unknown {
@@ -1203,7 +1203,7 @@ export const INCIDENT_INVOLVEMENT_ROLE = {
1203
1203
  OFFENDER: "offender",
1204
1204
  UNKNOWN: "unknown",
1205
1205
  ANONYMOUS: "anonymous",
1206
- NOT_COLLECTED: "not_collected",
1206
+ DATA_NOT_COLLECTED: "data_not_collected",
1207
1207
  } as const;
1208
1208
 
1209
1209
  export type IncidentInvolvementRoleValue =
@@ -1221,10 +1221,10 @@ export const INCIDENT_INVOLVEMENT_ROLE_LABELS: Record<
1221
1221
  [INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: "Offender",
1222
1222
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: "Unknown",
1223
1223
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: "Anonymous",
1224
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: "Not Collected",
1224
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: "Not Collected",
1225
1225
  };
1226
1226
 
1227
- /** Involvement roles available for selection in Thread UI (excludes victim_other and not_collected). */
1227
+ /** Involvement roles available for selection in Thread UI (excludes victim_other and data_not_collected). */
1228
1228
  export const THREAD_INVOLVEMENT_ROLES = [
1229
1229
  INCIDENT_INVOLVEMENT_ROLE.VICTIM_PRIMARY,
1230
1230
  INCIDENT_INVOLVEMENT_ROLE.VICTIM_SECONDARY,
@@ -1273,7 +1273,7 @@ export const INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE: Record<
1273
1273
  [INCIDENT_INVOLVEMENT_ROLE.OFFENDER]: PERSON_ROLES.OFFENDER,
1274
1274
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: PERSON_ROLES.OTHER,
1275
1275
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_ROLES.OTHER,
1276
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: PERSON_ROLES.OTHER,
1276
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: PERSON_ROLES.OTHER,
1277
1277
  };
1278
1278
 
1279
1279
  // ─── IC-4: Age Type ────────────────────────────────────────────────
@@ -1800,9 +1800,12 @@ export const INCIDENT_PARTICIPATION_ROLE = {
1800
1800
  FRIEND_OR_PEER: "friend_or_peer",
1801
1801
  SERVICE_PROVIDER_STAFF: "service_provider_staff",
1802
1802
  MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
1803
+ DATA_ENTRY: "data_entry",
1804
+ OTHER_INCIDENT_RESPONDER: "other_incident_responder",
1805
+ RESPONDING_OFFICER: "responding_officer",
1803
1806
  UNKNOWN: "unknown",
1804
1807
  ANONYMOUS: "anonymous",
1805
- NOT_COLLECTED: "not_collected",
1808
+ DATA_NOT_COLLECTED: "data_not_collected",
1806
1809
  } as const;
1807
1810
 
1808
1811
  export type IncidentParticipationRoleValue =
@@ -1817,9 +1820,12 @@ export const INCIDENT_PARTICIPATION_ROLE_VALUES = [
1817
1820
  INCIDENT_PARTICIPATION_ROLE.FRIEND_OR_PEER,
1818
1821
  INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
1819
1822
  INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
1823
+ INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
1824
+ INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
1825
+ INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
1820
1826
  INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
1821
1827
  INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
1822
- INCIDENT_PARTICIPATION_ROLE.NOT_COLLECTED,
1828
+ INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED,
1823
1829
  ] as const;
1824
1830
 
1825
1831
  export const INCIDENT_PARTICIPATION_ROLE_LABELS: Record<
@@ -1837,15 +1843,19 @@ export const INCIDENT_PARTICIPATION_ROLE_LABELS: Record<
1837
1843
  "Service Provider Staff",
1838
1844
  [INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]:
1839
1845
  "Medical Provider Staff",
1846
+ [INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
1847
+ [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]:
1848
+ "VSP or Other Incident Responder",
1849
+ [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
1840
1850
  [INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
1841
1851
  [INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
1842
- [INCIDENT_PARTICIPATION_ROLE.NOT_COLLECTED]: "Not Collected",
1852
+ [INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected",
1843
1853
  };
1844
1854
 
1845
1855
  /**
1846
1856
  * Participation role category groupings for UI organization.
1847
1857
  *
1848
- * Note: UNKNOWN, ANONYMOUS, and NOT_COLLECTED are intentionally excluded.
1858
+ * Note: UNKNOWN, ANONYMOUS, and DATA_NOT_COLLECTED are intentionally excluded.
1849
1859
  * These are data quality states, not selectable participation roles.
1850
1860
  * Handle them via separate UI controls (e.g., "Unknown" / "Anonymous" buttons).
1851
1861
  */
@@ -1923,7 +1933,7 @@ export const PERSON_TYPE_VALUES = [
1923
1933
  /**
1924
1934
  * Static mapping from involvement role to person type.
1925
1935
  *
1926
- * Note: Returns `null` for UNKNOWN and NOT_COLLECTED because these roles
1936
+ * Note: Returns `null` for UNKNOWN and DATA_NOT_COLLECTED because these roles
1927
1937
  * require contextual handling. For these cases, use `getPersonTypeForRole()`
1928
1938
  * which applies conditional logic (e.g., preserving Personnel context).
1929
1939
  *
@@ -1942,20 +1952,20 @@ export const INVOLVEMENT_ROLE_TO_PERSON_TYPE: Record<
1942
1952
  // unknown defaults to ThirdParty unless context indicates Personnel
1943
1953
  [INCIDENT_INVOLVEMENT_ROLE.UNKNOWN]: null, // Conditional — use getPersonTypeForRole()
1944
1954
  [INCIDENT_INVOLVEMENT_ROLE.ANONYMOUS]: PERSON_TYPE.THIRD_PARTY,
1945
- [INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED]: null,
1955
+ [INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED]: null,
1946
1956
  };
1947
1957
 
1948
1958
  /**
1949
1959
  * Get the person type for an involvement role.
1950
1960
  * For 'unknown', preserves PersonnelPerson if provided as context, otherwise defaults to ThirdPartyPerson.
1951
- * Returns null for 'not_collected' (data quality state — cannot infer person type).
1961
+ * Returns null for 'data_not_collected' (data quality state — cannot infer person type).
1952
1962
  */
1953
1963
  export function getPersonTypeForRole(
1954
1964
  role: IncidentInvolvementRoleValue,
1955
1965
  contextPersonType?: PersonTypeValue,
1956
1966
  ): PersonTypeValue | null {
1957
- // NOT_COLLECTED is a data quality state, not a role — cannot infer person type
1958
- if (role === INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED) {
1967
+ // DATA_NOT_COLLECTED is a data quality state, not a role — cannot infer person type
1968
+ if (role === INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED) {
1959
1969
  return null;
1960
1970
  }
1961
1971
  // UNKNOWN: only Personnel context is preserved; all others default to ThirdPartyPerson
@@ -2001,7 +2011,7 @@ export function getDisplayCategoryForRole(
2001
2011
  // Not reachable in Thread, but map to Eligible Family if it occurs
2002
2012
  return PERSON_DISPLAY_CATEGORY.ELIGIBLE_FAMILY;
2003
2013
 
2004
- case INCIDENT_INVOLVEMENT_ROLE.NOT_COLLECTED:
2014
+ case INCIDENT_INVOLVEMENT_ROLE.DATA_NOT_COLLECTED:
2005
2015
  default:
2006
2016
  return PERSON_DISPLAY_CATEGORY.THIRD_PARTY;
2007
2017
  }
@@ -0,0 +1,105 @@
1
+ {
2
+ "domain": "incident_involvement_roles",
3
+ "name": "Core Incident Involvement Role",
4
+ "version": "1.0.0",
5
+ "levels": {
6
+ "0": "Unknown or Missing",
7
+ "1": "Involvement Role"
8
+ },
9
+ "entries": [
10
+ {
11
+ "code": "130-001-000-000-000-000-000",
12
+ "key": "victim_primary",
13
+ "title": "Victim (primary)",
14
+ "selectable": true,
15
+ "parentCode": null,
16
+ "childCodes": [],
17
+ "definition": "The primary victim/survivor for the incident framing."
18
+ },
19
+ {
20
+ "code": "130-002-000-000-000-000-000",
21
+ "key": "victim_secondary",
22
+ "title": "Victim (secondary)",
23
+ "selectable": true,
24
+ "parentCode": null,
25
+ "childCodes": [],
26
+ "definition": "A secondary victim harmed in the incident context."
27
+ },
28
+ {
29
+ "code": "130-003-000-000-000-000-000",
30
+ "key": "victim_other",
31
+ "title": "Victim (other)",
32
+ "selectable": true,
33
+ "parentCode": null,
34
+ "childCodes": [],
35
+ "definition": "Another victim relevant to the case when primary vs secondary is not meaningful."
36
+ },
37
+ {
38
+ "code": "130-004-000-000-000-000-000",
39
+ "key": "offender",
40
+ "title": "Offender",
41
+ "selectable": true,
42
+ "parentCode": null,
43
+ "childCodes": [],
44
+ "definition": "The person who caused harm."
45
+ },
46
+ {
47
+ "code": "130-005-000-000-000-000-000",
48
+ "key": "witness",
49
+ "title": "Witness",
50
+ "selectable": true,
51
+ "parentCode": null,
52
+ "childCodes": [],
53
+ "definition": "A person who witnessed relevant events."
54
+ },
55
+ {
56
+ "code": "130-006-000-000-000-000-000",
57
+ "key": "dependent",
58
+ "title": "Dependent",
59
+ "selectable": true,
60
+ "parentCode": null,
61
+ "childCodes": [],
62
+ "definition": "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
63
+ },
64
+ {
65
+ "code": "130-000-000-000-000-000-000",
66
+ "key": "missingness_root",
67
+ "title": "Unknown, Redacted, or Missing",
68
+ "selectable": false,
69
+ "parentCode": null,
70
+ "childCodes": [
71
+ "130-000-000-000-000-000-001",
72
+ "130-000-000-000-000-000-002",
73
+ "130-000-000-000-000-000-003"
74
+ ],
75
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
76
+ },
77
+ {
78
+ "code": "130-000-000-000-000-000-001",
79
+ "key": "unknown",
80
+ "title": "Unknown",
81
+ "selectable": true,
82
+ "parentCode": "130-000-000-000-000-000-000",
83
+ "childCodes": [],
84
+ "definition": "Value is unknown at time of entry."
85
+ },
86
+ {
87
+ "code": "130-000-000-000-000-000-002",
88
+ "key": "anonymous",
89
+ "title": "Anonymous",
90
+ "selectable": true,
91
+ "parentCode": "130-000-000-000-000-000-000",
92
+ "childCodes": [],
93
+ "definition": "Value is intentionally withheld or redacted."
94
+ },
95
+ {
96
+ "code": "130-000-000-000-000-000-003",
97
+ "key": "data_not_collected",
98
+ "title": "Data not collected",
99
+ "selectable": true,
100
+ "parentCode": "130-000-000-000-000-000-000",
101
+ "childCodes": [],
102
+ "definition": "No attempt was made to collect the value."
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,202 @@
1
+ {
2
+ "domain": "incident_participation_roles",
3
+ "name": "Core Incident Participation Roles",
4
+ "version": "1.0.0",
5
+ "levels": {
6
+ "0": "Unknown or Missing",
7
+ "1": "Group",
8
+ "2": "Role"
9
+ },
10
+ "entries": [
11
+ {
12
+ "code": "069-001-000-000-000-000-000",
13
+ "key": "client_group",
14
+ "title": "Client",
15
+ "selectable": false,
16
+ "parentCode": null,
17
+ "childCodes": [
18
+ "069-001-001-000-000-000-000"
19
+ ],
20
+ "definition": "Group of participation roles identifying the person the incident record is about."
21
+ },
22
+ {
23
+ "code": "069-001-001-000-000-000-000",
24
+ "key": "client_subject",
25
+ "title": "Client (subject)",
26
+ "selectable": true,
27
+ "parentCode": "069-001-000-000-000-000-000",
28
+ "childCodes": [],
29
+ "definition": "The participant who is the subject of the incident record (the client for whom the episode is framed)."
30
+ },
31
+ {
32
+ "code": "069-002-000-000-000-000-000",
33
+ "key": "caller_reporter_group",
34
+ "title": "Caller / Reporter",
35
+ "selectable": false,
36
+ "parentCode": null,
37
+ "childCodes": [
38
+ "069-002-001-000-000-000-000",
39
+ "069-002-002-000-000-000-000",
40
+ "069-002-003-000-000-000-000"
41
+ ],
42
+ "definition": "Group of participation roles identifying who contacted or reported the incident to the program."
43
+ },
44
+ {
45
+ "code": "069-002-001-000-000-000-000",
46
+ "key": "caller_self",
47
+ "title": "Caller (self)",
48
+ "selectable": true,
49
+ "parentCode": "069-002-000-000-000-000-000",
50
+ "childCodes": [],
51
+ "definition": "Caller contacting the program on their own behalf."
52
+ },
53
+ {
54
+ "code": "069-002-002-000-000-000-000",
55
+ "key": "caller_third_party",
56
+ "title": "Caller (third party)",
57
+ "selectable": true,
58
+ "parentCode": "069-002-000-000-000-000-000",
59
+ "childCodes": [],
60
+ "definition": "Caller contacting the program on behalf of someone else."
61
+ },
62
+ {
63
+ "code": "069-002-003-000-000-000-000",
64
+ "key": "reporter",
65
+ "title": "Reporter",
66
+ "selectable": true,
67
+ "parentCode": "069-002-000-000-000-000-000",
68
+ "childCodes": [],
69
+ "definition": "Participant who filed a formal report about the incident."
70
+ },
71
+ {
72
+ "code": "069-003-000-000-000-000-000",
73
+ "key": "support_network_group",
74
+ "title": "Support network",
75
+ "selectable": false,
76
+ "parentCode": null,
77
+ "childCodes": [
78
+ "069-003-001-000-000-000-000",
79
+ "069-003-002-000-000-000-000"
80
+ ],
81
+ "definition": "Group of participation roles identifying people from the client's personal support network."
82
+ },
83
+ {
84
+ "code": "069-003-001-000-000-000-000",
85
+ "key": "family_member_or_guardian",
86
+ "title": "Family member or guardian",
87
+ "selectable": true,
88
+ "parentCode": "069-003-000-000-000-000-000",
89
+ "childCodes": [],
90
+ "definition": "Family member or legal guardian of the client."
91
+ },
92
+ {
93
+ "code": "069-003-002-000-000-000-000",
94
+ "key": "friend_or_peer",
95
+ "title": "Friend or peer",
96
+ "selectable": true,
97
+ "parentCode": "069-003-000-000-000-000-000",
98
+ "childCodes": [],
99
+ "definition": "Friend or peer in the client's support network."
100
+ },
101
+ {
102
+ "code": "069-004-000-000-000-000-000",
103
+ "key": "system_professional_group",
104
+ "title": "System / professional participants",
105
+ "selectable": false,
106
+ "parentCode": null,
107
+ "childCodes": [
108
+ "069-004-001-000-000-000-000",
109
+ "069-004-002-000-000-000-000",
110
+ "069-004-003-000-000-000-000",
111
+ "069-004-004-000-000-000-000",
112
+ "069-004-005-000-000-000-000"
113
+ ],
114
+ "definition": "Group of participation roles identifying system-side professionals involved in the incident."
115
+ },
116
+ {
117
+ "code": "069-004-001-000-000-000-000",
118
+ "key": "service_provider_staff",
119
+ "title": "Service provider staff",
120
+ "selectable": true,
121
+ "parentCode": "069-004-000-000-000-000-000",
122
+ "childCodes": [],
123
+ "definition": "Staff of a service provider program or agency involved in the incident."
124
+ },
125
+ {
126
+ "code": "069-004-002-000-000-000-000",
127
+ "key": "medical_provider_staff",
128
+ "title": "Medical provider staff",
129
+ "selectable": true,
130
+ "parentCode": "069-004-000-000-000-000-000",
131
+ "childCodes": [],
132
+ "definition": "Staff of a medical provider (hospital, clinic) involved in the incident."
133
+ },
134
+ {
135
+ "code": "069-004-003-000-000-000-000",
136
+ "key": "data_entry",
137
+ "title": "Data Entry / Editor",
138
+ "selectable": true,
139
+ "parentCode": "069-004-000-000-000-000-000",
140
+ "childCodes": [],
141
+ "definition": "A participant performing data entry or record editing for the incident — typically program staff entering or updating the record rather than participating substantively in the incident response."
142
+ },
143
+ {
144
+ "code": "069-004-004-000-000-000-000",
145
+ "key": "other_incident_responder",
146
+ "title": "VSP or Other Incident Responder",
147
+ "selectable": true,
148
+ "parentCode": "069-004-000-000-000-000-000",
149
+ "childCodes": [],
150
+ "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)."
151
+ },
152
+ {
153
+ "code": "069-004-005-000-000-000-000",
154
+ "key": "responding_officer",
155
+ "title": "LE Responding Officer",
156
+ "selectable": true,
157
+ "parentCode": "069-004-000-000-000-000-000",
158
+ "childCodes": [],
159
+ "definition": "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
160
+ },
161
+ {
162
+ "code": "069-000-000-000-000-000-000",
163
+ "key": "missingness_root",
164
+ "title": "Unknown, Redacted, or Missing",
165
+ "selectable": false,
166
+ "parentCode": null,
167
+ "childCodes": [
168
+ "069-000-000-000-000-000-001",
169
+ "069-000-000-000-000-000-002",
170
+ "069-000-000-000-000-000-003"
171
+ ],
172
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
173
+ },
174
+ {
175
+ "code": "069-000-000-000-000-000-001",
176
+ "key": "unknown",
177
+ "title": "Unknown",
178
+ "selectable": true,
179
+ "parentCode": "069-000-000-000-000-000-000",
180
+ "childCodes": [],
181
+ "definition": "Value is unknown at time of entry."
182
+ },
183
+ {
184
+ "code": "069-000-000-000-000-000-002",
185
+ "key": "anonymous",
186
+ "title": "Anonymous",
187
+ "selectable": true,
188
+ "parentCode": "069-000-000-000-000-000-000",
189
+ "childCodes": [],
190
+ "definition": "Value is intentionally withheld or redacted."
191
+ },
192
+ {
193
+ "code": "069-000-000-000-000-000-003",
194
+ "key": "data_not_collected",
195
+ "title": "Data not collected",
196
+ "selectable": true,
197
+ "parentCode": "069-000-000-000-000-000-000",
198
+ "childCodes": [],
199
+ "definition": "No attempt was made to collect the value."
200
+ }
201
+ ]
202
+ }
package/src/cvcs/index.ts CHANGED
@@ -22,9 +22,15 @@
22
22
  import serviceCategoriesSot from "./serviceCategories.v1.0.0.json" with { type: "json" };
23
23
  import serviceStatesSot from "./serviceStates.v1.0.0.json" with { type: "json" };
24
24
  import serviceMechanismsSot from "./serviceMechanisms.v1.0.0.json" with { type: "json" };
25
+ import incidentParticipationRolesSot from "./incidentParticipationRoles.v1.0.0.json" with { type: "json" };
26
+ import incidentInvolvementRolesSot from "./incidentInvolvementRoles.v1.0.0.json" with { type: "json" };
27
+ import raceEthnicitySot from "./raceEthnicity.v1.0.0.json" with { type: "json" };
25
28
 
26
29
  export {
27
30
  serviceCategoriesSot,
28
31
  serviceStatesSot,
29
32
  serviceMechanismsSot,
33
+ incidentParticipationRolesSot,
34
+ incidentInvolvementRolesSot,
35
+ raceEthnicitySot,
30
36
  };