@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.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSecti
|
|
|
5
5
|
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index--NCIPluF.cjs';
|
|
6
6
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.cjs';
|
|
7
7
|
export { CvcCode, CvcCodeSchema, CvcDomain, CvcEntrySchema, CvcEnvelope, CvcEnvelopeSchema, CvcKey, CvcKeySchema, ServiceCategoryEntry, ServiceCategoryEntrySchema } from './validation/index.cjs';
|
|
8
|
-
export { incidentInvolvementRolesSot, incidentParticipationRolesSot, serviceCategoriesSot, serviceMechanismsSot, serviceStatesSot } from './cvcs/index.cjs';
|
|
8
|
+
export { incidentInvolvementRolesSot, incidentParticipationRolesSot, raceEthnicitySot, serviceCategoriesSot, serviceMechanismsSot, serviceStatesSot } from './cvcs/index.cjs';
|
|
9
9
|
import 'mongoose';
|
|
10
10
|
import 'zod';
|
|
11
11
|
|
|
@@ -261,5 +261,27 @@ declare const IncidentInvolvementRoleKeys: {
|
|
|
261
261
|
readonly dependent: "130-006-000-000-000-000-000";
|
|
262
262
|
};
|
|
263
263
|
type IncidentInvolvementRoleKey = keyof typeof IncidentInvolvementRoleKeys;
|
|
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
|
+
declare const RaceEthnicityKeys: {
|
|
270
|
+
readonly missingness_root: "076-000-000-000-000-000-000";
|
|
271
|
+
readonly unknown: "076-000-000-000-000-000-001";
|
|
272
|
+
readonly anonymous: "076-000-000-000-000-000-002";
|
|
273
|
+
readonly data_not_collected: "076-000-000-000-000-000-003";
|
|
274
|
+
readonly prefer_not_to_answer: "076-000-000-000-000-000-004";
|
|
275
|
+
readonly american_indian_or_alaska_native: "076-001-000-000-000-000-000";
|
|
276
|
+
readonly asian: "076-002-000-000-000-000-000";
|
|
277
|
+
readonly black_or_african_american: "076-003-000-000-000-000-000";
|
|
278
|
+
readonly hispanic_or_latino: "076-004-000-000-000-000-000";
|
|
279
|
+
readonly middle_eastern_or_north_african: "076-005-000-000-000-000-000";
|
|
280
|
+
readonly multiple_races: "076-006-000-000-000-000-000";
|
|
281
|
+
readonly native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000";
|
|
282
|
+
readonly other_self_described: "076-008-000-000-000-000-000";
|
|
283
|
+
readonly white: "076-009-000-000-000-000-000";
|
|
284
|
+
};
|
|
285
|
+
type RaceEthnicityKey = keyof typeof RaceEthnicityKeys;
|
|
264
286
|
|
|
265
|
-
export { type IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, type IncidentParticipationRoleKey, IncidentParticipationRoleKeys, type ServiceCategoryKey, ServiceCategoryKeys, type ServiceMechanismKey, ServiceMechanismKeys, type ServiceStateKey, ServiceStateKeys };
|
|
287
|
+
export { type IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, type IncidentParticipationRoleKey, IncidentParticipationRoleKeys, type RaceEthnicityKey, RaceEthnicityKeys, type ServiceCategoryKey, ServiceCategoryKeys, type ServiceMechanismKey, ServiceMechanismKeys, type ServiceStateKey, ServiceStateKeys };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSecti
|
|
|
5
5
|
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index-CFOrHA8l.js';
|
|
6
6
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.js';
|
|
7
7
|
export { CvcCode, CvcCodeSchema, CvcDomain, CvcEntrySchema, CvcEnvelope, CvcEnvelopeSchema, CvcKey, CvcKeySchema, ServiceCategoryEntry, ServiceCategoryEntrySchema } from './validation/index.js';
|
|
8
|
-
export { incidentInvolvementRolesSot, incidentParticipationRolesSot, serviceCategoriesSot, serviceMechanismsSot, serviceStatesSot } from './cvcs/index.js';
|
|
8
|
+
export { incidentInvolvementRolesSot, incidentParticipationRolesSot, raceEthnicitySot, serviceCategoriesSot, serviceMechanismsSot, serviceStatesSot } from './cvcs/index.js';
|
|
9
9
|
import 'mongoose';
|
|
10
10
|
import 'zod';
|
|
11
11
|
|
|
@@ -261,5 +261,27 @@ declare const IncidentInvolvementRoleKeys: {
|
|
|
261
261
|
readonly dependent: "130-006-000-000-000-000-000";
|
|
262
262
|
};
|
|
263
263
|
type IncidentInvolvementRoleKey = keyof typeof IncidentInvolvementRoleKeys;
|
|
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
|
+
declare const RaceEthnicityKeys: {
|
|
270
|
+
readonly missingness_root: "076-000-000-000-000-000-000";
|
|
271
|
+
readonly unknown: "076-000-000-000-000-000-001";
|
|
272
|
+
readonly anonymous: "076-000-000-000-000-000-002";
|
|
273
|
+
readonly data_not_collected: "076-000-000-000-000-000-003";
|
|
274
|
+
readonly prefer_not_to_answer: "076-000-000-000-000-000-004";
|
|
275
|
+
readonly american_indian_or_alaska_native: "076-001-000-000-000-000-000";
|
|
276
|
+
readonly asian: "076-002-000-000-000-000-000";
|
|
277
|
+
readonly black_or_african_american: "076-003-000-000-000-000-000";
|
|
278
|
+
readonly hispanic_or_latino: "076-004-000-000-000-000-000";
|
|
279
|
+
readonly middle_eastern_or_north_african: "076-005-000-000-000-000-000";
|
|
280
|
+
readonly multiple_races: "076-006-000-000-000-000-000";
|
|
281
|
+
readonly native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000";
|
|
282
|
+
readonly other_self_described: "076-008-000-000-000-000-000";
|
|
283
|
+
readonly white: "076-009-000-000-000-000-000";
|
|
284
|
+
};
|
|
285
|
+
type RaceEthnicityKey = keyof typeof RaceEthnicityKeys;
|
|
264
286
|
|
|
265
|
-
export { type IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, type IncidentParticipationRoleKey, IncidentParticipationRoleKeys, type ServiceCategoryKey, ServiceCategoryKeys, type ServiceMechanismKey, ServiceMechanismKeys, type ServiceStateKey, ServiceStateKeys };
|
|
287
|
+
export { type IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, type IncidentParticipationRoleKey, IncidentParticipationRoleKeys, type RaceEthnicityKey, RaceEthnicityKeys, type ServiceCategoryKey, ServiceCategoryKeys, type ServiceMechanismKey, ServiceMechanismKeys, type ServiceStateKey, ServiceStateKeys };
|
package/dist/index.js
CHANGED
|
@@ -6828,6 +6828,22 @@ var IncidentInvolvementRoleKeys = {
|
|
|
6828
6828
|
witness: "130-005-000-000-000-000-000",
|
|
6829
6829
|
dependent: "130-006-000-000-000-000-000"
|
|
6830
6830
|
};
|
|
6831
|
+
var RaceEthnicityKeys = {
|
|
6832
|
+
missingness_root: "076-000-000-000-000-000-000",
|
|
6833
|
+
unknown: "076-000-000-000-000-000-001",
|
|
6834
|
+
anonymous: "076-000-000-000-000-000-002",
|
|
6835
|
+
data_not_collected: "076-000-000-000-000-000-003",
|
|
6836
|
+
prefer_not_to_answer: "076-000-000-000-000-000-004",
|
|
6837
|
+
american_indian_or_alaska_native: "076-001-000-000-000-000-000",
|
|
6838
|
+
asian: "076-002-000-000-000-000-000",
|
|
6839
|
+
black_or_african_american: "076-003-000-000-000-000-000",
|
|
6840
|
+
hispanic_or_latino: "076-004-000-000-000-000-000",
|
|
6841
|
+
middle_eastern_or_north_african: "076-005-000-000-000-000-000",
|
|
6842
|
+
multiple_races: "076-006-000-000-000-000-000",
|
|
6843
|
+
native_hawaiian_or_pacific_islander: "076-007-000-000-000-000-000",
|
|
6844
|
+
other_self_described: "076-008-000-000-000-000-000",
|
|
6845
|
+
white: "076-009-000-000-000-000-000"
|
|
6846
|
+
};
|
|
6831
6847
|
|
|
6832
6848
|
// src/services/cvcRegistryService.ts
|
|
6833
6849
|
import "mongoose";
|
|
@@ -9834,6 +9850,150 @@ var incidentInvolvementRoles_v1_0_0_default = {
|
|
|
9834
9850
|
}
|
|
9835
9851
|
]
|
|
9836
9852
|
};
|
|
9853
|
+
|
|
9854
|
+
// src/cvcs/raceEthnicity.v1.0.0.json
|
|
9855
|
+
var raceEthnicity_v1_0_0_default = {
|
|
9856
|
+
domain: "race_ethnicity",
|
|
9857
|
+
name: "Core Race/Ethnicity",
|
|
9858
|
+
version: "1.0.0",
|
|
9859
|
+
levels: {
|
|
9860
|
+
"0": "Unknown or Missing",
|
|
9861
|
+
"1": "Category"
|
|
9862
|
+
},
|
|
9863
|
+
entries: [
|
|
9864
|
+
{
|
|
9865
|
+
code: "076-000-000-000-000-000-000",
|
|
9866
|
+
key: "missingness_root",
|
|
9867
|
+
title: "Unknown, Redacted, or Missing",
|
|
9868
|
+
selectable: false,
|
|
9869
|
+
parentCode: null,
|
|
9870
|
+
childCodes: [
|
|
9871
|
+
"076-000-000-000-000-000-001",
|
|
9872
|
+
"076-000-000-000-000-000-002",
|
|
9873
|
+
"076-000-000-000-000-000-003",
|
|
9874
|
+
"076-000-000-000-000-000-004"
|
|
9875
|
+
],
|
|
9876
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
9877
|
+
},
|
|
9878
|
+
{
|
|
9879
|
+
code: "076-000-000-000-000-000-001",
|
|
9880
|
+
key: "unknown",
|
|
9881
|
+
title: "Unknown",
|
|
9882
|
+
selectable: true,
|
|
9883
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9884
|
+
childCodes: [],
|
|
9885
|
+
definition: "Value is unknown at time of entry."
|
|
9886
|
+
},
|
|
9887
|
+
{
|
|
9888
|
+
code: "076-000-000-000-000-000-002",
|
|
9889
|
+
key: "anonymous",
|
|
9890
|
+
title: "Anonymous",
|
|
9891
|
+
selectable: true,
|
|
9892
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9893
|
+
childCodes: [],
|
|
9894
|
+
definition: "Value is intentionally withheld or redacted."
|
|
9895
|
+
},
|
|
9896
|
+
{
|
|
9897
|
+
code: "076-000-000-000-000-000-003",
|
|
9898
|
+
key: "data_not_collected",
|
|
9899
|
+
title: "Data not collected",
|
|
9900
|
+
selectable: true,
|
|
9901
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9902
|
+
childCodes: [],
|
|
9903
|
+
definition: "No attempt was made to collect the value."
|
|
9904
|
+
},
|
|
9905
|
+
{
|
|
9906
|
+
code: "076-000-000-000-000-000-004",
|
|
9907
|
+
key: "prefer_not_to_answer",
|
|
9908
|
+
title: "Client prefers not to answer",
|
|
9909
|
+
selectable: true,
|
|
9910
|
+
parentCode: "076-000-000-000-000-000-000",
|
|
9911
|
+
childCodes: [],
|
|
9912
|
+
definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
|
|
9913
|
+
},
|
|
9914
|
+
{
|
|
9915
|
+
code: "076-001-000-000-000-000-000",
|
|
9916
|
+
key: "american_indian_or_alaska_native",
|
|
9917
|
+
title: "American Indian or Alaska Native",
|
|
9918
|
+
selectable: true,
|
|
9919
|
+
parentCode: null,
|
|
9920
|
+
childCodes: [],
|
|
9921
|
+
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."
|
|
9922
|
+
},
|
|
9923
|
+
{
|
|
9924
|
+
code: "076-002-000-000-000-000-000",
|
|
9925
|
+
key: "asian",
|
|
9926
|
+
title: "Asian",
|
|
9927
|
+
selectable: true,
|
|
9928
|
+
parentCode: null,
|
|
9929
|
+
childCodes: [],
|
|
9930
|
+
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."
|
|
9931
|
+
},
|
|
9932
|
+
{
|
|
9933
|
+
code: "076-003-000-000-000-000-000",
|
|
9934
|
+
key: "black_or_african_american",
|
|
9935
|
+
title: "Black or African American",
|
|
9936
|
+
selectable: true,
|
|
9937
|
+
parentCode: null,
|
|
9938
|
+
childCodes: [],
|
|
9939
|
+
definition: "Individuals with origins in any of the Black racial groups of Africa, including, for example, African American, Jamaican, Haitian, Nigerian, Ethiopian, and Somali."
|
|
9940
|
+
},
|
|
9941
|
+
{
|
|
9942
|
+
code: "076-004-000-000-000-000-000",
|
|
9943
|
+
key: "hispanic_or_latino",
|
|
9944
|
+
title: "Hispanic or Latino",
|
|
9945
|
+
selectable: true,
|
|
9946
|
+
parentCode: null,
|
|
9947
|
+
childCodes: [],
|
|
9948
|
+
definition: "Includes individuals of Mexican, Puerto Rican, Salvadoran, Cuban, Dominican, Guatemalan, and other Central or South American or Spanish culture or origin."
|
|
9949
|
+
},
|
|
9950
|
+
{
|
|
9951
|
+
code: "076-005-000-000-000-000-000",
|
|
9952
|
+
key: "middle_eastern_or_north_african",
|
|
9953
|
+
title: "Middle Eastern or North African",
|
|
9954
|
+
selectable: true,
|
|
9955
|
+
parentCode: null,
|
|
9956
|
+
childCodes: [],
|
|
9957
|
+
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."
|
|
9958
|
+
},
|
|
9959
|
+
{
|
|
9960
|
+
code: "076-006-000-000-000-000-000",
|
|
9961
|
+
key: "multiple_races",
|
|
9962
|
+
title: "Multiple Races [multiple were selected]",
|
|
9963
|
+
selectable: true,
|
|
9964
|
+
parentCode: null,
|
|
9965
|
+
childCodes: [],
|
|
9966
|
+
definition: "Indicates that an individual identifies with more than one racial and/or ethnic category."
|
|
9967
|
+
},
|
|
9968
|
+
{
|
|
9969
|
+
code: "076-007-000-000-000-000-000",
|
|
9970
|
+
key: "native_hawaiian_or_pacific_islander",
|
|
9971
|
+
title: "Native Hawaiian or Pacific Islander",
|
|
9972
|
+
selectable: true,
|
|
9973
|
+
parentCode: null,
|
|
9974
|
+
childCodes: [],
|
|
9975
|
+
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."
|
|
9976
|
+
},
|
|
9977
|
+
{
|
|
9978
|
+
code: "076-008-000-000-000-000-000",
|
|
9979
|
+
key: "other_self_described",
|
|
9980
|
+
title: "Other - [trigger an optional write in]",
|
|
9981
|
+
selectable: true,
|
|
9982
|
+
parentCode: null,
|
|
9983
|
+
childCodes: [],
|
|
9984
|
+
definition: "Allows for additional self-described race or ethnicity information not adequately represented by the listed categories."
|
|
9985
|
+
},
|
|
9986
|
+
{
|
|
9987
|
+
code: "076-009-000-000-000-000-000",
|
|
9988
|
+
key: "white",
|
|
9989
|
+
title: "White",
|
|
9990
|
+
selectable: true,
|
|
9991
|
+
parentCode: null,
|
|
9992
|
+
childCodes: [],
|
|
9993
|
+
definition: "Individuals with origins in any of the original peoples of Europe, including, for example, English, German, Irish, Italian, Polish, and Scottish."
|
|
9994
|
+
}
|
|
9995
|
+
]
|
|
9996
|
+
};
|
|
9837
9997
|
export {
|
|
9838
9998
|
ACCOMMODATION_LABELS,
|
|
9839
9999
|
ACCOMMODATION_OPTIONS,
|
|
@@ -10104,6 +10264,7 @@ export {
|
|
|
10104
10264
|
ROLE_LEVEL,
|
|
10105
10265
|
ROLE_LEVEL_LABELS,
|
|
10106
10266
|
ROLE_LEVEL_VALUES,
|
|
10267
|
+
RaceEthnicityKeys,
|
|
10107
10268
|
SESSION_STATES,
|
|
10108
10269
|
SESSION_STATE_LABELS,
|
|
10109
10270
|
SHARE_VIEW,
|
|
@@ -10182,6 +10343,7 @@ export {
|
|
|
10182
10343
|
questionModel_exports as questionModel,
|
|
10183
10344
|
questionSchemaDefinition,
|
|
10184
10345
|
questionSchemaOptions,
|
|
10346
|
+
raceEthnicity_v1_0_0_default as raceEthnicitySot,
|
|
10185
10347
|
resolveRegistryWithInheritance,
|
|
10186
10348
|
scoringConditionSchema,
|
|
10187
10349
|
scoringRecommendationSchema,
|