@htilabs/platform-common-models 0.5.1-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/cvcs/index.cjs +146 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +207 -46
- package/dist/cvcs/index.d.ts +207 -46
- package/dist/cvcs/index.js +145 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +164 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +162 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/cvcs/index.ts +2 -0
- package/src/cvcs/raceEthnicity.v1.0.0.json +142 -0
- package/src/generated/cvc-enums.ts +24 -0
package/dist/index.cjs
CHANGED
|
@@ -289,6 +289,7 @@ __export(src_exports, {
|
|
|
289
289
|
ROLE_LEVEL: () => ROLE_LEVEL,
|
|
290
290
|
ROLE_LEVEL_LABELS: () => ROLE_LEVEL_LABELS,
|
|
291
291
|
ROLE_LEVEL_VALUES: () => ROLE_LEVEL_VALUES,
|
|
292
|
+
RaceEthnicityKeys: () => RaceEthnicityKeys,
|
|
292
293
|
SESSION_STATES: () => SESSION_STATES,
|
|
293
294
|
SESSION_STATE_LABELS: () => SESSION_STATE_LABELS,
|
|
294
295
|
SHARE_VIEW: () => SHARE_VIEW,
|
|
@@ -367,6 +368,7 @@ __export(src_exports, {
|
|
|
367
368
|
questionModel: () => questionModel_exports,
|
|
368
369
|
questionSchemaDefinition: () => questionSchemaDefinition,
|
|
369
370
|
questionSchemaOptions: () => questionSchemaOptions,
|
|
371
|
+
raceEthnicitySot: () => raceEthnicity_v1_0_0_default,
|
|
370
372
|
resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
|
|
371
373
|
scoringConditionSchema: () => scoringConditionSchema,
|
|
372
374
|
scoringRecommendationSchema: () => scoringRecommendationSchema,
|
|
@@ -7210,6 +7212,22 @@ var IncidentInvolvementRoleKeys = {
|
|
|
7210
7212
|
witness: "130-005-000-000-000-000-000",
|
|
7211
7213
|
dependent: "130-006-000-000-000-000-000"
|
|
7212
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
|
+
};
|
|
7213
7231
|
|
|
7214
7232
|
// src/services/cvcRegistryService.ts
|
|
7215
7233
|
var import_mongoose10 = require("mongoose");
|
|
@@ -10216,6 +10234,150 @@ var incidentInvolvementRoles_v1_0_0_default = {
|
|
|
10216
10234
|
}
|
|
10217
10235
|
]
|
|
10218
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
|
+
};
|
|
10219
10381
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10220
10382
|
0 && (module.exports = {
|
|
10221
10383
|
ACCOMMODATION_LABELS,
|
|
@@ -10487,6 +10649,7 @@ var incidentInvolvementRoles_v1_0_0_default = {
|
|
|
10487
10649
|
ROLE_LEVEL,
|
|
10488
10650
|
ROLE_LEVEL_LABELS,
|
|
10489
10651
|
ROLE_LEVEL_VALUES,
|
|
10652
|
+
RaceEthnicityKeys,
|
|
10490
10653
|
SESSION_STATES,
|
|
10491
10654
|
SESSION_STATE_LABELS,
|
|
10492
10655
|
SHARE_VIEW,
|
|
@@ -10565,6 +10728,7 @@ var incidentInvolvementRoles_v1_0_0_default = {
|
|
|
10565
10728
|
questionModel,
|
|
10566
10729
|
questionSchemaDefinition,
|
|
10567
10730
|
questionSchemaOptions,
|
|
10731
|
+
raceEthnicitySot,
|
|
10568
10732
|
resolveRegistryWithInheritance,
|
|
10569
10733
|
scoringConditionSchema,
|
|
10570
10734
|
scoringRecommendationSchema,
|