@htilabs/platform-common-models 0.4.0-beta.2 → 0.5.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/index.cjs +18 -9
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +18 -9
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +461 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +529 -26
- package/dist/cvcs/index.d.ts +529 -26
- package/dist/cvcs/index.js +458 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +534 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -3
- package/dist/index.d.ts +70 -3
- package/dist/index.js +528 -9
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-C-G2qeGM.d.cts → platform-auth-CjC57132.d.cts} +10 -7
- package/dist/{platform-auth-C-G2qeGM.d.ts → platform-auth-CjC57132.d.ts} +10 -7
- package/dist/schemas/index.cjs +16 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +16 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +12 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +20 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/constants/ic.ts +24 -14
- package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +105 -0
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +202 -0
- package/src/cvcs/index.ts +6 -0
- package/src/cvcs/raceEthnicity.v1.0.0.json +142 -0
- package/src/generated/cvc-enums.ts +73 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "race_ethnicity",
|
|
3
|
+
"name": "Core Race/Ethnicity",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Category"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "076-000-000-000-000-000-000",
|
|
12
|
+
"key": "missingness_root",
|
|
13
|
+
"title": "Unknown, Redacted, or Missing",
|
|
14
|
+
"selectable": false,
|
|
15
|
+
"parentCode": null,
|
|
16
|
+
"childCodes": [
|
|
17
|
+
"076-000-000-000-000-000-001",
|
|
18
|
+
"076-000-000-000-000-000-002",
|
|
19
|
+
"076-000-000-000-000-000-003",
|
|
20
|
+
"076-000-000-000-000-000-004"
|
|
21
|
+
],
|
|
22
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"code": "076-000-000-000-000-000-001",
|
|
26
|
+
"key": "unknown",
|
|
27
|
+
"title": "Unknown",
|
|
28
|
+
"selectable": true,
|
|
29
|
+
"parentCode": "076-000-000-000-000-000-000",
|
|
30
|
+
"childCodes": [],
|
|
31
|
+
"definition": "Value is unknown at time of entry."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"code": "076-000-000-000-000-000-002",
|
|
35
|
+
"key": "anonymous",
|
|
36
|
+
"title": "Anonymous",
|
|
37
|
+
"selectable": true,
|
|
38
|
+
"parentCode": "076-000-000-000-000-000-000",
|
|
39
|
+
"childCodes": [],
|
|
40
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "076-000-000-000-000-000-003",
|
|
44
|
+
"key": "data_not_collected",
|
|
45
|
+
"title": "Data not collected",
|
|
46
|
+
"selectable": true,
|
|
47
|
+
"parentCode": "076-000-000-000-000-000-000",
|
|
48
|
+
"childCodes": [],
|
|
49
|
+
"definition": "No attempt was made to collect the value."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"code": "076-000-000-000-000-000-004",
|
|
53
|
+
"key": "prefer_not_to_answer",
|
|
54
|
+
"title": "Client prefers not to answer",
|
|
55
|
+
"selectable": true,
|
|
56
|
+
"parentCode": "076-000-000-000-000-000-000",
|
|
57
|
+
"childCodes": [],
|
|
58
|
+
"definition": "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"code": "076-001-000-000-000-000-000",
|
|
62
|
+
"key": "american_indian_or_alaska_native",
|
|
63
|
+
"title": "American Indian or Alaska Native",
|
|
64
|
+
"selectable": true,
|
|
65
|
+
"parentCode": null,
|
|
66
|
+
"childCodes": [],
|
|
67
|
+
"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."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"code": "076-002-000-000-000-000-000",
|
|
71
|
+
"key": "asian",
|
|
72
|
+
"title": "Asian",
|
|
73
|
+
"selectable": true,
|
|
74
|
+
"parentCode": null,
|
|
75
|
+
"childCodes": [],
|
|
76
|
+
"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."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "076-003-000-000-000-000-000",
|
|
80
|
+
"key": "black_or_african_american",
|
|
81
|
+
"title": "Black or African American",
|
|
82
|
+
"selectable": true,
|
|
83
|
+
"parentCode": null,
|
|
84
|
+
"childCodes": [],
|
|
85
|
+
"definition": "Individuals with origins in any of the Black racial groups of Africa, including, for example, African American, Jamaican, Haitian, Nigerian, Ethiopian, and Somali."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"code": "076-004-000-000-000-000-000",
|
|
89
|
+
"key": "hispanic_or_latino",
|
|
90
|
+
"title": "Hispanic or Latino",
|
|
91
|
+
"selectable": true,
|
|
92
|
+
"parentCode": null,
|
|
93
|
+
"childCodes": [],
|
|
94
|
+
"definition": "Includes individuals of Mexican, Puerto Rican, Salvadoran, Cuban, Dominican, Guatemalan, and other Central or South American or Spanish culture or origin."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"code": "076-005-000-000-000-000-000",
|
|
98
|
+
"key": "middle_eastern_or_north_african",
|
|
99
|
+
"title": "Middle Eastern or North African",
|
|
100
|
+
"selectable": true,
|
|
101
|
+
"parentCode": null,
|
|
102
|
+
"childCodes": [],
|
|
103
|
+
"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."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"code": "076-006-000-000-000-000-000",
|
|
107
|
+
"key": "multiple_races",
|
|
108
|
+
"title": "Multiple Races [multiple were selected]",
|
|
109
|
+
"selectable": true,
|
|
110
|
+
"parentCode": null,
|
|
111
|
+
"childCodes": [],
|
|
112
|
+
"definition": "Indicates that an individual identifies with more than one racial and/or ethnic category."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "076-007-000-000-000-000-000",
|
|
116
|
+
"key": "native_hawaiian_or_pacific_islander",
|
|
117
|
+
"title": "Native Hawaiian or Pacific Islander",
|
|
118
|
+
"selectable": true,
|
|
119
|
+
"parentCode": null,
|
|
120
|
+
"childCodes": [],
|
|
121
|
+
"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."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"code": "076-008-000-000-000-000-000",
|
|
125
|
+
"key": "other_self_described",
|
|
126
|
+
"title": "Other - [trigger an optional write in]",
|
|
127
|
+
"selectable": true,
|
|
128
|
+
"parentCode": null,
|
|
129
|
+
"childCodes": [],
|
|
130
|
+
"definition": "Allows for additional self-described race or ethnicity information not adequately represented by the listed categories."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"code": "076-009-000-000-000-000-000",
|
|
134
|
+
"key": "white",
|
|
135
|
+
"title": "White",
|
|
136
|
+
"selectable": true,
|
|
137
|
+
"parentCode": null,
|
|
138
|
+
"childCodes": [],
|
|
139
|
+
"definition": "Individuals with origins in any of the original peoples of Europe, including, for example, English, German, Irish, Italian, Polish, and Scottish."
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
@@ -211,3 +211,76 @@ export const ServiceMechanismKeys = {
|
|
|
211
211
|
} as const;
|
|
212
212
|
|
|
213
213
|
export type ServiceMechanismKey = keyof typeof ServiceMechanismKeys;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Key → positional code map for the `incident_participation_roles` CVC domain.
|
|
217
|
+
*
|
|
218
|
+
* Domain: `incident_participation_roles` · Version: 1.0.0 · Entries: 19
|
|
219
|
+
*/
|
|
220
|
+
export const IncidentParticipationRoleKeys = {
|
|
221
|
+
missingness_root: "069-000-000-000-000-000-000",
|
|
222
|
+
unknown: "069-000-000-000-000-000-001",
|
|
223
|
+
anonymous: "069-000-000-000-000-000-002",
|
|
224
|
+
data_not_collected: "069-000-000-000-000-000-003",
|
|
225
|
+
client_group: "069-001-000-000-000-000-000",
|
|
226
|
+
client_subject: "069-001-001-000-000-000-000",
|
|
227
|
+
caller_reporter_group: "069-002-000-000-000-000-000",
|
|
228
|
+
caller_self: "069-002-001-000-000-000-000",
|
|
229
|
+
caller_third_party: "069-002-002-000-000-000-000",
|
|
230
|
+
reporter: "069-002-003-000-000-000-000",
|
|
231
|
+
support_network_group: "069-003-000-000-000-000-000",
|
|
232
|
+
family_member_or_guardian: "069-003-001-000-000-000-000",
|
|
233
|
+
friend_or_peer: "069-003-002-000-000-000-000",
|
|
234
|
+
system_professional_group: "069-004-000-000-000-000-000",
|
|
235
|
+
service_provider_staff: "069-004-001-000-000-000-000",
|
|
236
|
+
medical_provider_staff: "069-004-002-000-000-000-000",
|
|
237
|
+
data_entry: "069-004-003-000-000-000-000",
|
|
238
|
+
other_incident_responder: "069-004-004-000-000-000-000",
|
|
239
|
+
responding_officer: "069-004-005-000-000-000-000",
|
|
240
|
+
} as const;
|
|
241
|
+
|
|
242
|
+
export type IncidentParticipationRoleKey = keyof typeof IncidentParticipationRoleKeys;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Key → positional code map for the `incident_involvement_roles` CVC domain.
|
|
246
|
+
*
|
|
247
|
+
* Domain: `incident_involvement_roles` · Version: 1.0.0 · Entries: 10
|
|
248
|
+
*/
|
|
249
|
+
export const IncidentInvolvementRoleKeys = {
|
|
250
|
+
missingness_root: "130-000-000-000-000-000-000",
|
|
251
|
+
unknown: "130-000-000-000-000-000-001",
|
|
252
|
+
anonymous: "130-000-000-000-000-000-002",
|
|
253
|
+
data_not_collected: "130-000-000-000-000-000-003",
|
|
254
|
+
victim_primary: "130-001-000-000-000-000-000",
|
|
255
|
+
victim_secondary: "130-002-000-000-000-000-000",
|
|
256
|
+
victim_other: "130-003-000-000-000-000-000",
|
|
257
|
+
offender: "130-004-000-000-000-000-000",
|
|
258
|
+
witness: "130-005-000-000-000-000-000",
|
|
259
|
+
dependent: "130-006-000-000-000-000-000",
|
|
260
|
+
} as const;
|
|
261
|
+
|
|
262
|
+
export type IncidentInvolvementRoleKey = keyof typeof IncidentInvolvementRoleKeys;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Key → positional code map for the `race_ethnicity` CVC domain.
|
|
266
|
+
*
|
|
267
|
+
* Domain: `race_ethnicity` · Version: 1.0.0 · Entries: 14
|
|
268
|
+
*/
|
|
269
|
+
export const RaceEthnicityKeys = {
|
|
270
|
+
missingness_root: "076-000-000-000-000-000-000",
|
|
271
|
+
unknown: "076-000-000-000-000-000-001",
|
|
272
|
+
anonymous: "076-000-000-000-000-000-002",
|
|
273
|
+
data_not_collected: "076-000-000-000-000-000-003",
|
|
274
|
+
prefer_not_to_answer: "076-000-000-000-000-000-004",
|
|
275
|
+
american_indian_or_alaska_native: "076-001-000-000-000-000-000",
|
|
276
|
+
asian: "076-002-000-000-000-000-000",
|
|
277
|
+
black_or_african_american: "076-003-000-000-000-000-000",
|
|
278
|
+
hispanic_or_latino: "076-004-000-000-000-000-000",
|
|
279
|
+
middle_eastern_or_north_african: "076-005-000-000-000-000-000",
|
|
280
|
+
multiple_races: "076-006-000-000-000-000-000",
|
|
281
|
+
native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000",
|
|
282
|
+
other_self_described: "076-008-000-000-000-000-000",
|
|
283
|
+
white: "076-009-000-000-000-000-000",
|
|
284
|
+
} as const;
|
|
285
|
+
|
|
286
|
+
export type RaceEthnicityKey = keyof typeof RaceEthnicityKeys;
|