@htilabs/platform-common-models 0.6.0 → 0.7.0-beta.1
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/README.md +44 -0
- package/dist/config/index.cjs +191 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.cts +101 -0
- package/dist/config/index.d.ts +101 -0
- package/dist/config/index.js +165 -0
- package/dist/config/index.js.map +1 -0
- package/dist/constants/index.cjs +46 -5
- 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 +42 -5
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +321 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +789 -436
- package/dist/cvcs/index.d.ts +789 -436
- package/dist/cvcs/index.js +318 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +424 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -3
- package/dist/index.d.ts +94 -3
- package/dist/index.js +412 -6
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-CjC57132.d.cts → platform-auth-C97LpsRd.d.cts} +8 -4
- package/dist/{platform-auth-CjC57132.d.ts → platform-auth-C97LpsRd.d.ts} +8 -4
- package/dist/schemas/index.cjs +43 -6
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +4 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +43 -6
- 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 +9 -2
- package/src/__tests__/__snapshots__/cvc-sot.snap +12 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +24 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/__tests__/runtime-contract-validator.test.ts +556 -0
- package/src/config/fixtures/valid.yaml +90 -0
- package/src/config/index.ts +352 -0
- package/src/constants/ic.ts +49 -6
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/index.ts +6 -0
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
- package/src/cvcs/recencyBand.v1.0.0.json +124 -0
- package/src/generated/cvc-enums.ts +59 -0
- package/src/index.ts +20 -0
- package/src/schemas/common.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -35,8 +35,6 @@ var CVC_1_NAME_TYPE = {
|
|
|
35
35
|
ALIAS: "alias",
|
|
36
36
|
/** Trade name / business name - single unstructured name field */
|
|
37
37
|
TRADE_NAME: "trade_name",
|
|
38
|
-
/** Single-word name (e.g., "Madonna", "Prince") - single unstructured name field */
|
|
39
|
-
MONONYM: "mononym",
|
|
40
38
|
/** Nickname - single unstructured name field */
|
|
41
39
|
NICKNAME: "nickname",
|
|
42
40
|
/** Online handle or username - single unstructured name field */
|
|
@@ -48,7 +46,6 @@ var CVC_1_VALUES = [
|
|
|
48
46
|
CVC_1_NAME_TYPE.LEGAL,
|
|
49
47
|
CVC_1_NAME_TYPE.ALIAS,
|
|
50
48
|
CVC_1_NAME_TYPE.TRADE_NAME,
|
|
51
|
-
CVC_1_NAME_TYPE.MONONYM,
|
|
52
49
|
CVC_1_NAME_TYPE.NICKNAME,
|
|
53
50
|
CVC_1_NAME_TYPE.HANDLE,
|
|
54
51
|
CVC_1_NAME_TYPE.UNKNOWN
|
|
@@ -57,7 +54,6 @@ var CVC_1_LABELS = {
|
|
|
57
54
|
[CVC_1_NAME_TYPE.LEGAL]: "Legal Name",
|
|
58
55
|
[CVC_1_NAME_TYPE.ALIAS]: "Alias / AKA",
|
|
59
56
|
[CVC_1_NAME_TYPE.TRADE_NAME]: "Trade Name",
|
|
60
|
-
[CVC_1_NAME_TYPE.MONONYM]: "Mononym",
|
|
61
57
|
[CVC_1_NAME_TYPE.NICKNAME]: "Nickname",
|
|
62
58
|
[CVC_1_NAME_TYPE.HANDLE]: "Handle / Username",
|
|
63
59
|
[CVC_1_NAME_TYPE.UNKNOWN]: "Unknown"
|
|
@@ -68,7 +64,6 @@ var CVC_1_STRUCTURED_NAME_TYPES = [
|
|
|
68
64
|
var CVC_1_UNSTRUCTURED_NAME_TYPES = [
|
|
69
65
|
CVC_1_NAME_TYPE.ALIAS,
|
|
70
66
|
CVC_1_NAME_TYPE.TRADE_NAME,
|
|
71
|
-
CVC_1_NAME_TYPE.MONONYM,
|
|
72
67
|
CVC_1_NAME_TYPE.NICKNAME,
|
|
73
68
|
CVC_1_NAME_TYPE.HANDLE,
|
|
74
69
|
CVC_1_NAME_TYPE.UNKNOWN
|
|
@@ -1014,7 +1009,10 @@ var CVC_17_CORE_GENDER_IDENTITY = {
|
|
|
1014
1009
|
TRANSGENDER: "TRANSGENDER",
|
|
1015
1010
|
NON_BINARY: "NON_BINARY",
|
|
1016
1011
|
OTHER: "OTHER",
|
|
1012
|
+
// Level 0 - Missingness codes (codebook canonical set)
|
|
1017
1013
|
UNKNOWN: "UNK",
|
|
1014
|
+
DATA_NOT_COLLECTED: "DNC",
|
|
1015
|
+
PREFER_NOT_TO_ANSWER: "PNA",
|
|
1018
1016
|
// Level 2 - Transgender subcategories
|
|
1019
1017
|
TRANSGENDER_FTM: "TRANSGENDER_FTM",
|
|
1020
1018
|
TRANSGENDER_MTF: "TRANSGENDER_MTF"
|
|
@@ -1026,6 +1024,8 @@ var CVC_17_LABELS = {
|
|
|
1026
1024
|
[CVC_17_CORE_GENDER_IDENTITY.NON_BINARY]: "Non-Binary",
|
|
1027
1025
|
[CVC_17_CORE_GENDER_IDENTITY.OTHER]: "Other",
|
|
1028
1026
|
[CVC_17_CORE_GENDER_IDENTITY.UNKNOWN]: "Unknown",
|
|
1027
|
+
[CVC_17_CORE_GENDER_IDENTITY.DATA_NOT_COLLECTED]: "Data not collected",
|
|
1028
|
+
[CVC_17_CORE_GENDER_IDENTITY.PREFER_NOT_TO_ANSWER]: "Client prefers not to answer",
|
|
1029
1029
|
[CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_FTM]: "Transgender - FTM",
|
|
1030
1030
|
[CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_MTF]: "Transgender - MTF"
|
|
1031
1031
|
};
|
|
@@ -1050,6 +1050,32 @@ function isTransgenderGenderIdentity(value) {
|
|
|
1050
1050
|
if (!value) return false;
|
|
1051
1051
|
return CVC_17_TRANSGENDER_VALUES.includes(value);
|
|
1052
1052
|
}
|
|
1053
|
+
var CVC_17_SELECTABLE_VALUES = [
|
|
1054
|
+
CVC_17_CORE_GENDER_IDENTITY.MALE,
|
|
1055
|
+
CVC_17_CORE_GENDER_IDENTITY.FEMALE,
|
|
1056
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER,
|
|
1057
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_FTM,
|
|
1058
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_MTF,
|
|
1059
|
+
CVC_17_CORE_GENDER_IDENTITY.NON_BINARY,
|
|
1060
|
+
CVC_17_CORE_GENDER_IDENTITY.OTHER
|
|
1061
|
+
];
|
|
1062
|
+
var CVC_17_MISSINGNESS_VALUES = [
|
|
1063
|
+
CVC_17_CORE_GENDER_IDENTITY.UNKNOWN,
|
|
1064
|
+
CVC_17_CORE_GENDER_IDENTITY.DATA_NOT_COLLECTED,
|
|
1065
|
+
CVC_17_CORE_GENDER_IDENTITY.PREFER_NOT_TO_ANSWER
|
|
1066
|
+
];
|
|
1067
|
+
var CVC_17_VALUES = [
|
|
1068
|
+
CVC_17_CORE_GENDER_IDENTITY.MALE,
|
|
1069
|
+
CVC_17_CORE_GENDER_IDENTITY.FEMALE,
|
|
1070
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER,
|
|
1071
|
+
CVC_17_CORE_GENDER_IDENTITY.NON_BINARY,
|
|
1072
|
+
CVC_17_CORE_GENDER_IDENTITY.OTHER,
|
|
1073
|
+
CVC_17_CORE_GENDER_IDENTITY.UNKNOWN,
|
|
1074
|
+
CVC_17_CORE_GENDER_IDENTITY.DATA_NOT_COLLECTED,
|
|
1075
|
+
CVC_17_CORE_GENDER_IDENTITY.PREFER_NOT_TO_ANSWER,
|
|
1076
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_FTM,
|
|
1077
|
+
CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_MTF
|
|
1078
|
+
];
|
|
1053
1079
|
var IC_24_RACE = {
|
|
1054
1080
|
AMERICAN_INDIAN_ALASKA_NATIVE: 1,
|
|
1055
1081
|
ASIAN: 2,
|
|
@@ -3975,6 +4001,13 @@ var CVC_67_SELECTABLE_VALUES = [
|
|
|
3975
4001
|
var CVC_67_MISSINGNESS_VALUES = [
|
|
3976
4002
|
CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
|
|
3977
4003
|
];
|
|
4004
|
+
var CVC_67_VALUES = [
|
|
4005
|
+
CVC_67_HMIS_SEX.MALE,
|
|
4006
|
+
CVC_67_HMIS_SEX.FEMALE,
|
|
4007
|
+
CVC_67_HMIS_SEX.CLIENT_PREFERS_NOT_TO_ANSWER,
|
|
4008
|
+
CVC_67_HMIS_SEX.CLIENT_DOESNT_KNOW,
|
|
4009
|
+
CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
|
|
4010
|
+
];
|
|
3978
4011
|
|
|
3979
4012
|
// src/constants/service-catalog.json
|
|
3980
4013
|
var service_catalog_default = {
|
|
@@ -5585,7 +5618,11 @@ var personNameSchema = new Schema(
|
|
|
5585
5618
|
isPrimary: Boolean,
|
|
5586
5619
|
alias: Boolean,
|
|
5587
5620
|
isUnknown: Boolean,
|
|
5588
|
-
isAnonymous: Boolean
|
|
5621
|
+
isAnonymous: Boolean,
|
|
5622
|
+
// Shape flag: this person has only one name (e.g., Madonna). A mononym
|
|
5623
|
+
// can itself be legal, a nickname, a trade name, etc. — it's orthogonal
|
|
5624
|
+
// to nameType, not a value of it.
|
|
5625
|
+
isMononym: Boolean
|
|
5589
5626
|
},
|
|
5590
5627
|
{ _id: false }
|
|
5591
5628
|
);
|
|
@@ -7730,6 +7767,41 @@ var FrequencyCadenceKeys = {
|
|
|
7730
7767
|
annual: "176-006-000-000-000-000-000",
|
|
7731
7768
|
one_time: "176-007-000-000-000-000-000"
|
|
7732
7769
|
};
|
|
7770
|
+
var RecencyBandKeys = {
|
|
7771
|
+
missingness_root: "137-000-000-000-000-000-000",
|
|
7772
|
+
unknown: "137-000-000-000-000-000-001",
|
|
7773
|
+
anonymous: "137-000-000-000-000-000-002",
|
|
7774
|
+
data_not_collected: "137-000-000-000-000-000-003",
|
|
7775
|
+
prefer_not_to_answer: "137-000-000-000-000-000-004",
|
|
7776
|
+
less_than_3_years: "137-001-000-000-000-000-000",
|
|
7777
|
+
months_3_to_6: "137-002-000-000-000-000-000",
|
|
7778
|
+
months_6_to_12: "137-003-000-000-000-000-000",
|
|
7779
|
+
one_year_or_more: "137-004-000-000-000-000-000",
|
|
7780
|
+
ten_plus_years: "137-005-000-000-000-000-000",
|
|
7781
|
+
within_3_months: "137-006-000-000-000-000-000",
|
|
7782
|
+
years_3_to_10: "137-007-000-000-000-000-000"
|
|
7783
|
+
};
|
|
7784
|
+
var JuvenileJusticeEpisodeTypeKeys = {
|
|
7785
|
+
missingness_root: "197-000-000-000-000-000-000",
|
|
7786
|
+
unknown: "197-000-000-000-000-000-001",
|
|
7787
|
+
anonymous: "197-000-000-000-000-000-002",
|
|
7788
|
+
data_not_collected: "197-000-000-000-000-000-003",
|
|
7789
|
+
detention_stay: "197-001-000-000-000-000-000",
|
|
7790
|
+
diversion_program: "197-002-000-000-000-000-000",
|
|
7791
|
+
pending_adjudication: "197-003-000-000-000-000-000",
|
|
7792
|
+
probation_supervision: "197-004-000-000-000-000-000",
|
|
7793
|
+
residential_jj_placement: "197-005-000-000-000-000-000"
|
|
7794
|
+
};
|
|
7795
|
+
var HmisSexKeys = {
|
|
7796
|
+
missingness_root: "067-000-000-000-000-000-000",
|
|
7797
|
+
unknown: "067-000-000-000-000-000-001",
|
|
7798
|
+
anonymous: "067-000-000-000-000-000-002",
|
|
7799
|
+
data_not_collected: "067-000-000-000-000-000-003",
|
|
7800
|
+
client_doesn_t_know: "067-000-000-000-000-000-004",
|
|
7801
|
+
client_prefers_not_to_answer: "067-000-000-000-000-000-005",
|
|
7802
|
+
female: "067-001-000-000-000-000-000",
|
|
7803
|
+
male: "067-002-000-000-000-000-000"
|
|
7804
|
+
};
|
|
7733
7805
|
|
|
7734
7806
|
// src/services/cvcRegistryService.ts
|
|
7735
7807
|
import "mongoose";
|
|
@@ -19479,6 +19551,328 @@ var frequencyCadence_v1_0_0_default = {
|
|
|
19479
19551
|
}
|
|
19480
19552
|
]
|
|
19481
19553
|
};
|
|
19554
|
+
|
|
19555
|
+
// src/cvcs/recencyBand.v1.0.0.json
|
|
19556
|
+
var recencyBand_v1_0_0_default = {
|
|
19557
|
+
domain: "recency_band",
|
|
19558
|
+
name: "Core Recency Band",
|
|
19559
|
+
version: "1.0.0",
|
|
19560
|
+
levels: {
|
|
19561
|
+
"0": "Unknown or Missing",
|
|
19562
|
+
"1": "Recency Band"
|
|
19563
|
+
},
|
|
19564
|
+
entries: [
|
|
19565
|
+
{
|
|
19566
|
+
code: "137-000-000-000-000-000-000",
|
|
19567
|
+
key: "missingness_root",
|
|
19568
|
+
title: "Unknown, Redacted, or Missing",
|
|
19569
|
+
selectable: false,
|
|
19570
|
+
parentCode: null,
|
|
19571
|
+
childCodes: [
|
|
19572
|
+
"137-000-000-000-000-000-001",
|
|
19573
|
+
"137-000-000-000-000-000-002",
|
|
19574
|
+
"137-000-000-000-000-000-003",
|
|
19575
|
+
"137-000-000-000-000-000-004"
|
|
19576
|
+
],
|
|
19577
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
19578
|
+
},
|
|
19579
|
+
{
|
|
19580
|
+
code: "137-000-000-000-000-000-001",
|
|
19581
|
+
key: "unknown",
|
|
19582
|
+
title: "Unknown",
|
|
19583
|
+
selectable: true,
|
|
19584
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
19585
|
+
childCodes: [],
|
|
19586
|
+
definition: "Value is unknown at time of entry."
|
|
19587
|
+
},
|
|
19588
|
+
{
|
|
19589
|
+
code: "137-000-000-000-000-000-002",
|
|
19590
|
+
key: "anonymous",
|
|
19591
|
+
title: "Anonymous",
|
|
19592
|
+
selectable: true,
|
|
19593
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
19594
|
+
childCodes: [],
|
|
19595
|
+
definition: "Value is intentionally withheld or redacted."
|
|
19596
|
+
},
|
|
19597
|
+
{
|
|
19598
|
+
code: "137-000-000-000-000-000-003",
|
|
19599
|
+
key: "data_not_collected",
|
|
19600
|
+
title: "Data not collected",
|
|
19601
|
+
selectable: true,
|
|
19602
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
19603
|
+
childCodes: [],
|
|
19604
|
+
definition: "No attempt was made to collect the value."
|
|
19605
|
+
},
|
|
19606
|
+
{
|
|
19607
|
+
code: "137-000-000-000-000-000-004",
|
|
19608
|
+
key: "prefer_not_to_answer",
|
|
19609
|
+
title: "Client prefers not to answer",
|
|
19610
|
+
selectable: true,
|
|
19611
|
+
parentCode: "137-000-000-000-000-000-000",
|
|
19612
|
+
childCodes: [],
|
|
19613
|
+
definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
|
|
19614
|
+
},
|
|
19615
|
+
{
|
|
19616
|
+
code: "137-001-000-000-000-000-000",
|
|
19617
|
+
key: "less_than_3_years",
|
|
19618
|
+
title: "Less than 3 years ago",
|
|
19619
|
+
selectable: true,
|
|
19620
|
+
parentCode: null,
|
|
19621
|
+
childCodes: [],
|
|
19622
|
+
definition: "The asserted event occurred less than 3 years ago."
|
|
19623
|
+
},
|
|
19624
|
+
{
|
|
19625
|
+
code: "137-002-000-000-000-000-000",
|
|
19626
|
+
key: "months_3_to_6",
|
|
19627
|
+
title: "3-6 months ago",
|
|
19628
|
+
selectable: true,
|
|
19629
|
+
parentCode: null,
|
|
19630
|
+
childCodes: [],
|
|
19631
|
+
definition: "The asserted event occurred between 3 and 6 months ago."
|
|
19632
|
+
},
|
|
19633
|
+
{
|
|
19634
|
+
code: "137-003-000-000-000-000-000",
|
|
19635
|
+
key: "months_6_to_12",
|
|
19636
|
+
title: "6-12 months ago",
|
|
19637
|
+
selectable: true,
|
|
19638
|
+
parentCode: null,
|
|
19639
|
+
childCodes: [],
|
|
19640
|
+
definition: "The asserted event occurred between 6 and 12 months ago."
|
|
19641
|
+
},
|
|
19642
|
+
{
|
|
19643
|
+
code: "137-004-000-000-000-000-000",
|
|
19644
|
+
key: "one_year_or_more",
|
|
19645
|
+
title: "One year or more",
|
|
19646
|
+
selectable: true,
|
|
19647
|
+
parentCode: null,
|
|
19648
|
+
childCodes: [],
|
|
19649
|
+
definition: "The asserted event occurred one year or more ago (without further granularity)."
|
|
19650
|
+
},
|
|
19651
|
+
{
|
|
19652
|
+
code: "137-005-000-000-000-000-000",
|
|
19653
|
+
key: "ten_plus_years",
|
|
19654
|
+
title: "10+ years ago",
|
|
19655
|
+
selectable: true,
|
|
19656
|
+
parentCode: null,
|
|
19657
|
+
childCodes: [],
|
|
19658
|
+
definition: "The asserted event occurred 10 or more years ago."
|
|
19659
|
+
},
|
|
19660
|
+
{
|
|
19661
|
+
code: "137-006-000-000-000-000-000",
|
|
19662
|
+
key: "within_3_months",
|
|
19663
|
+
title: "Within past 3 months",
|
|
19664
|
+
selectable: true,
|
|
19665
|
+
parentCode: null,
|
|
19666
|
+
childCodes: [],
|
|
19667
|
+
definition: "The asserted event occurred within the past 3 months."
|
|
19668
|
+
},
|
|
19669
|
+
{
|
|
19670
|
+
code: "137-007-000-000-000-000-000",
|
|
19671
|
+
key: "years_3_to_10",
|
|
19672
|
+
title: "3-10 years ago",
|
|
19673
|
+
selectable: true,
|
|
19674
|
+
parentCode: null,
|
|
19675
|
+
childCodes: [],
|
|
19676
|
+
definition: "The asserted event occurred between 3 and 10 years ago."
|
|
19677
|
+
}
|
|
19678
|
+
]
|
|
19679
|
+
};
|
|
19680
|
+
|
|
19681
|
+
// src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json
|
|
19682
|
+
var juvenileJusticeEpisodeType_v1_0_0_default = {
|
|
19683
|
+
domain: "juvenile_justice_episode_type",
|
|
19684
|
+
name: "Core Juvenile Justice Episode Type",
|
|
19685
|
+
version: "1.0.0",
|
|
19686
|
+
levels: {
|
|
19687
|
+
"0": "Unknown or Missing",
|
|
19688
|
+
"1": "Episode Type"
|
|
19689
|
+
},
|
|
19690
|
+
entries: [
|
|
19691
|
+
{
|
|
19692
|
+
code: "197-000-000-000-000-000-000",
|
|
19693
|
+
key: "missingness_root",
|
|
19694
|
+
title: "Unknown, Redacted, or Missing",
|
|
19695
|
+
selectable: false,
|
|
19696
|
+
parentCode: null,
|
|
19697
|
+
childCodes: [
|
|
19698
|
+
"197-000-000-000-000-000-001",
|
|
19699
|
+
"197-000-000-000-000-000-002",
|
|
19700
|
+
"197-000-000-000-000-000-003"
|
|
19701
|
+
],
|
|
19702
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
19703
|
+
},
|
|
19704
|
+
{
|
|
19705
|
+
code: "197-000-000-000-000-000-001",
|
|
19706
|
+
key: "unknown",
|
|
19707
|
+
title: "Unknown",
|
|
19708
|
+
selectable: true,
|
|
19709
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
19710
|
+
childCodes: [],
|
|
19711
|
+
definition: "Value is unknown at time of entry."
|
|
19712
|
+
},
|
|
19713
|
+
{
|
|
19714
|
+
code: "197-000-000-000-000-000-002",
|
|
19715
|
+
key: "anonymous",
|
|
19716
|
+
title: "Anonymous",
|
|
19717
|
+
selectable: true,
|
|
19718
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
19719
|
+
childCodes: [],
|
|
19720
|
+
definition: "Value is intentionally withheld or redacted."
|
|
19721
|
+
},
|
|
19722
|
+
{
|
|
19723
|
+
code: "197-000-000-000-000-000-003",
|
|
19724
|
+
key: "data_not_collected",
|
|
19725
|
+
title: "Data not collected",
|
|
19726
|
+
selectable: true,
|
|
19727
|
+
parentCode: "197-000-000-000-000-000-000",
|
|
19728
|
+
childCodes: [],
|
|
19729
|
+
definition: "No attempt was made to collect the value."
|
|
19730
|
+
},
|
|
19731
|
+
{
|
|
19732
|
+
code: "197-001-000-000-000-000-000",
|
|
19733
|
+
key: "detention_stay",
|
|
19734
|
+
title: "Detention stay",
|
|
19735
|
+
selectable: true,
|
|
19736
|
+
parentCode: null,
|
|
19737
|
+
childCodes: [],
|
|
19738
|
+
definition: "A period of confinement in a juvenile detention facility."
|
|
19739
|
+
},
|
|
19740
|
+
{
|
|
19741
|
+
code: "197-002-000-000-000-000-000",
|
|
19742
|
+
key: "diversion_program",
|
|
19743
|
+
title: "Diversion program",
|
|
19744
|
+
selectable: true,
|
|
19745
|
+
parentCode: null,
|
|
19746
|
+
childCodes: [],
|
|
19747
|
+
definition: "Participation in a program that diverts a youth away from formal juvenile court processing."
|
|
19748
|
+
},
|
|
19749
|
+
{
|
|
19750
|
+
code: "197-003-000-000-000-000-000",
|
|
19751
|
+
key: "pending_adjudication",
|
|
19752
|
+
title: "Pending charges / adjudication process",
|
|
19753
|
+
selectable: true,
|
|
19754
|
+
parentCode: null,
|
|
19755
|
+
childCodes: [],
|
|
19756
|
+
definition: "An open juvenile case awaiting adjudication."
|
|
19757
|
+
},
|
|
19758
|
+
{
|
|
19759
|
+
code: "197-004-000-000-000-000-000",
|
|
19760
|
+
key: "probation_supervision",
|
|
19761
|
+
title: "Probation / community supervision (juvenile)",
|
|
19762
|
+
selectable: true,
|
|
19763
|
+
parentCode: null,
|
|
19764
|
+
childCodes: [],
|
|
19765
|
+
definition: "Court-ordered supervision of a youth in the community rather than in confinement."
|
|
19766
|
+
},
|
|
19767
|
+
{
|
|
19768
|
+
code: "197-005-000-000-000-000-000",
|
|
19769
|
+
key: "residential_jj_placement",
|
|
19770
|
+
title: "Residential JJ placement",
|
|
19771
|
+
selectable: true,
|
|
19772
|
+
parentCode: null,
|
|
19773
|
+
childCodes: [],
|
|
19774
|
+
definition: "Placement in a residential juvenile justice facility (e.g. training school, residential treatment)."
|
|
19775
|
+
}
|
|
19776
|
+
]
|
|
19777
|
+
};
|
|
19778
|
+
|
|
19779
|
+
// src/cvcs/hmisSex.v1.0.0.json
|
|
19780
|
+
var hmisSex_v1_0_0_default = {
|
|
19781
|
+
domain: "hmis_sex",
|
|
19782
|
+
name: "Core HMIS Sex",
|
|
19783
|
+
version: "1.0.0",
|
|
19784
|
+
levels: {
|
|
19785
|
+
"0": "Unknown or Missing",
|
|
19786
|
+
"1": "Sex"
|
|
19787
|
+
},
|
|
19788
|
+
entries: [
|
|
19789
|
+
{
|
|
19790
|
+
code: "067-000-000-000-000-000-000",
|
|
19791
|
+
key: "missingness_root",
|
|
19792
|
+
title: "Unknown, Redacted, or Missing",
|
|
19793
|
+
selectable: false,
|
|
19794
|
+
parentCode: null,
|
|
19795
|
+
childCodes: [
|
|
19796
|
+
"067-000-000-000-000-000-001",
|
|
19797
|
+
"067-000-000-000-000-000-002",
|
|
19798
|
+
"067-000-000-000-000-000-003",
|
|
19799
|
+
"067-000-000-000-000-000-004",
|
|
19800
|
+
"067-000-000-000-000-000-005"
|
|
19801
|
+
],
|
|
19802
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data."
|
|
19803
|
+
},
|
|
19804
|
+
{
|
|
19805
|
+
code: "067-000-000-000-000-000-001",
|
|
19806
|
+
key: "unknown",
|
|
19807
|
+
title: "Unknown",
|
|
19808
|
+
selectable: true,
|
|
19809
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
19810
|
+
childCodes: [],
|
|
19811
|
+
definition: "Value is unknown at time of entry."
|
|
19812
|
+
},
|
|
19813
|
+
{
|
|
19814
|
+
code: "067-000-000-000-000-000-002",
|
|
19815
|
+
key: "anonymous",
|
|
19816
|
+
title: "Anonymous",
|
|
19817
|
+
selectable: true,
|
|
19818
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
19819
|
+
childCodes: [],
|
|
19820
|
+
definition: "Value is intentionally withheld or redacted."
|
|
19821
|
+
},
|
|
19822
|
+
{
|
|
19823
|
+
code: "067-000-000-000-000-000-003",
|
|
19824
|
+
key: "data_not_collected",
|
|
19825
|
+
title: "Data not collected",
|
|
19826
|
+
selectable: true,
|
|
19827
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
19828
|
+
childCodes: [],
|
|
19829
|
+
definition: "Use this response if the staff does not ask the person to provide their sex."
|
|
19830
|
+
},
|
|
19831
|
+
{
|
|
19832
|
+
code: "067-000-000-000-000-000-004",
|
|
19833
|
+
key: "client_doesn_t_know",
|
|
19834
|
+
title: "Client doesn't know",
|
|
19835
|
+
selectable: true,
|
|
19836
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
19837
|
+
childCodes: [],
|
|
19838
|
+
definition: `"Client doesn't know" should only be selected when a person does not know their sex from among the responses.`
|
|
19839
|
+
},
|
|
19840
|
+
{
|
|
19841
|
+
code: "067-000-000-000-000-000-005",
|
|
19842
|
+
key: "client_prefers_not_to_answer",
|
|
19843
|
+
title: "Client prefers not to answer",
|
|
19844
|
+
selectable: true,
|
|
19845
|
+
parentCode: "067-000-000-000-000-000-000",
|
|
19846
|
+
childCodes: [],
|
|
19847
|
+
definition: '"Client prefers not to answer" should only be selected when a person chooses not to identify their sex from among the responses.'
|
|
19848
|
+
},
|
|
19849
|
+
{
|
|
19850
|
+
code: "067-001-000-000-000-000-000",
|
|
19851
|
+
key: "female",
|
|
19852
|
+
title: "Female",
|
|
19853
|
+
selectable: true,
|
|
19854
|
+
parentCode: null,
|
|
19855
|
+
childCodes: [],
|
|
19856
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing eggs (ova)."
|
|
19857
|
+
},
|
|
19858
|
+
{
|
|
19859
|
+
code: "067-002-000-000-000-000-000",
|
|
19860
|
+
key: "male",
|
|
19861
|
+
title: "Male",
|
|
19862
|
+
selectable: true,
|
|
19863
|
+
parentCode: null,
|
|
19864
|
+
childCodes: [],
|
|
19865
|
+
definition: "A person of the sex characterized by a reproductive system with the biological function of producing sperm."
|
|
19866
|
+
}
|
|
19867
|
+
]
|
|
19868
|
+
};
|
|
19869
|
+
|
|
19870
|
+
// src/index.ts
|
|
19871
|
+
var selectableCodes = (envelope) => envelope.entries.filter((e) => e.selectable).map((e) => e.code);
|
|
19872
|
+
var CVC_137_VALUES = selectableCodes(recencyBand_v1_0_0_default);
|
|
19873
|
+
var CVC_197_VALUES = selectableCodes(
|
|
19874
|
+
juvenileJusticeEpisodeType_v1_0_0_default
|
|
19875
|
+
);
|
|
19482
19876
|
export {
|
|
19483
19877
|
ACCOMMODATION_LABELS,
|
|
19484
19878
|
ACCOMMODATION_OPTIONS,
|
|
@@ -19524,6 +19918,7 @@ export {
|
|
|
19524
19918
|
CVC_136_OPTIONS,
|
|
19525
19919
|
CVC_136_TYPE_TO_CATEGORY,
|
|
19526
19920
|
CVC_136_VALUES,
|
|
19921
|
+
CVC_137_VALUES,
|
|
19527
19922
|
CVC_145_CATEGORY,
|
|
19528
19923
|
CVC_145_CATEGORY_LABELS,
|
|
19529
19924
|
CVC_145_CATEGORY_ORDER,
|
|
@@ -19602,7 +19997,10 @@ export {
|
|
|
19602
19997
|
CVC_17_LABELS,
|
|
19603
19998
|
CVC_17_LEVEL_1_OPTIONS,
|
|
19604
19999
|
CVC_17_LEVEL_2_TRANSGENDER_OPTIONS,
|
|
20000
|
+
CVC_17_MISSINGNESS_VALUES,
|
|
20001
|
+
CVC_17_SELECTABLE_VALUES,
|
|
19605
20002
|
CVC_17_TRANSGENDER_VALUES,
|
|
20003
|
+
CVC_17_VALUES,
|
|
19606
20004
|
CVC_180_EDUCATION_LEVEL,
|
|
19607
20005
|
CVC_180_LABELS,
|
|
19608
20006
|
CVC_180_ORDINAL,
|
|
@@ -19612,6 +20010,7 @@ export {
|
|
|
19612
20010
|
CVC_196_CHILD_WELFARE_EPISODE_TYPE,
|
|
19613
20011
|
CVC_196_LABELS,
|
|
19614
20012
|
CVC_196_VALUES,
|
|
20013
|
+
CVC_197_VALUES,
|
|
19615
20014
|
CVC_1_LABELS,
|
|
19616
20015
|
CVC_1_NAME_TYPE,
|
|
19617
20016
|
CVC_1_STRUCTURED_NAME_TYPES,
|
|
@@ -19621,6 +20020,7 @@ export {
|
|
|
19621
20020
|
CVC_67_LABELS,
|
|
19622
20021
|
CVC_67_MISSINGNESS_VALUES,
|
|
19623
20022
|
CVC_67_SELECTABLE_VALUES,
|
|
20023
|
+
CVC_67_VALUES,
|
|
19624
20024
|
CVC_72_HT_TYPE,
|
|
19625
20025
|
CVC_72_LABELS,
|
|
19626
20026
|
CVC_72_VALUES,
|
|
@@ -19675,6 +20075,7 @@ export {
|
|
|
19675
20075
|
HairColorKeys,
|
|
19676
20076
|
HasTattoosKeys,
|
|
19677
20077
|
HighestEducationLevelCompletedKeys,
|
|
20078
|
+
HmisSexKeys,
|
|
19678
20079
|
HomelessStatusKeys,
|
|
19679
20080
|
IC_13_CATEGORIES,
|
|
19680
20081
|
IC_13_CATEGORY_ORDER,
|
|
@@ -19735,6 +20136,7 @@ export {
|
|
|
19735
20136
|
IncidentInvolvementRoleKeys,
|
|
19736
20137
|
IncidentParticipationRoleKeys,
|
|
19737
20138
|
IncomeBenefitsSourcesKeys,
|
|
20139
|
+
JuvenileJusticeEpisodeTypeKeys,
|
|
19738
20140
|
JuvenileJusticeInvolvementStatusKeys,
|
|
19739
20141
|
LocationTypeKeys,
|
|
19740
20142
|
MINOR_ADULT_STATUS,
|
|
@@ -19780,6 +20182,7 @@ export {
|
|
|
19780
20182
|
ROLE_LEVEL_LABELS,
|
|
19781
20183
|
ROLE_LEVEL_VALUES,
|
|
19782
20184
|
RaceEthnicityKeys,
|
|
20185
|
+
RecencyBandKeys,
|
|
19783
20186
|
ReferralEntityCategoryKeys,
|
|
19784
20187
|
RelationshipStatusCurrentKeys,
|
|
19785
20188
|
RelationshipTiesKeys,
|
|
@@ -19861,6 +20264,7 @@ export {
|
|
|
19861
20264
|
hairColor_v1_0_0_default as hairColorSot,
|
|
19862
20265
|
hasTattoos_v1_0_0_default as hasTattoosSot,
|
|
19863
20266
|
highestEducationLevelCompleted_v1_0_0_default as highestEducationLevelCompletedSot,
|
|
20267
|
+
hmisSex_v1_0_0_default as hmisSexSot,
|
|
19864
20268
|
homelessStatus_v1_0_0_default as homelessStatusSot,
|
|
19865
20269
|
incidentInvolvementRoles_v1_0_0_default as incidentInvolvementRolesSot,
|
|
19866
20270
|
incidentParticipationRoles_v1_0_0_default as incidentParticipationRolesSot,
|
|
@@ -19871,6 +20275,7 @@ export {
|
|
|
19871
20275
|
isProtectedRelationship,
|
|
19872
20276
|
isStructuredNameType,
|
|
19873
20277
|
isTransgenderGenderIdentity,
|
|
20278
|
+
juvenileJusticeEpisodeType_v1_0_0_default as juvenileJusticeEpisodeTypeSot,
|
|
19874
20279
|
juvenileJusticeInvolvementStatus_v1_0_0_default as juvenileJusticeInvolvementStatusSot,
|
|
19875
20280
|
layoutSchema,
|
|
19876
20281
|
locationType_v1_0_0_default as locationTypeSot,
|
|
@@ -19897,6 +20302,7 @@ export {
|
|
|
19897
20302
|
questionSchemaDefinition,
|
|
19898
20303
|
questionSchemaOptions,
|
|
19899
20304
|
raceEthnicity_v1_0_0_default as raceEthnicitySot,
|
|
20305
|
+
recencyBand_v1_0_0_default as recencyBandSot,
|
|
19900
20306
|
referralEntityCategory_v1_0_0_default as referralEntityCategorySot,
|
|
19901
20307
|
relationshipStatusCurrent_v1_0_0_default as relationshipStatusCurrentSot,
|
|
19902
20308
|
relationshipTies_v1_0_0_default as relationshipTiesSot,
|