@htilabs/platform-common-models 0.5.3-beta.4 → 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 +6874 -2
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +7562 -66
- package/dist/cvcs/index.d.ts +7562 -66
- package/dist/cvcs/index.js +6833 -1
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +7742 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1009 -3
- package/dist/index.d.ts +1009 -3
- package/dist/index.js +7656 -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 +160 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +319 -0
- package/src/__tests__/cvc-structural.test.ts +40 -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/administeringJurisdiction.v1.0.0.json +105 -0
- package/src/cvcs/ageBinReporting.v1.0.0.json +114 -0
- package/src/cvcs/contactInfoTypes.v1.0.0.json +250 -0
- package/src/cvcs/contactSafetyStatus.v1.0.0.json +69 -0
- package/src/cvcs/employmentStatus.v1.0.0.json +302 -0
- package/src/cvcs/enrollmentApplicationStatus.v1.0.0.json +123 -0
- package/src/cvcs/eyeColor.v1.0.0.json +114 -0
- package/src/cvcs/facilitatorEntityType.v1.0.0.json +141 -0
- package/src/cvcs/facilitatorLabelUsedInSource.v1.0.0.json +159 -0
- package/src/cvcs/facilitatorSubrole.v1.0.0.json +381 -0
- package/src/cvcs/frequencyCadence.v1.0.0.json +114 -0
- package/src/cvcs/genderIdentity.v1.0.0.json +128 -0
- package/src/cvcs/hairColor.v1.0.0.json +105 -0
- package/src/cvcs/hasTattoos.v1.0.0.json +69 -0
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +124 -0
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/homelessStatus.v1.0.0.json +98 -0
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +392 -0
- package/src/cvcs/index.ts +80 -0
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
- package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +78 -0
- package/src/cvcs/locationType.v1.0.0.json +168 -0
- package/src/cvcs/maritalStatusLegal.v1.0.0.json +96 -0
- package/src/cvcs/militaryBranch.v1.0.0.json +85 -0
- package/src/cvcs/militaryStatus.v1.0.0.json +67 -0
- package/src/cvcs/nameType.v1.0.0.json +123 -0
- package/src/cvcs/offenderStatus.v1.0.0.json +96 -0
- package/src/cvcs/offenderStatusFamily.v1.0.0.json +87 -0
- package/src/cvcs/orientationIdentity.v1.0.0.json +97 -0
- package/src/cvcs/personRelationships.v1.0.0.json +924 -0
- package/src/cvcs/preferredContactMethod.v1.0.0.json +46 -0
- package/src/cvcs/pronouns.v1.0.0.json +87 -0
- package/src/cvcs/recencyBand.v1.0.0.json +124 -0
- package/src/cvcs/referralEntityCategory.v1.0.0.json +439 -0
- package/src/cvcs/relationshipStatusCurrent.v1.0.0.json +69 -0
- package/src/cvcs/relationshipTies.v1.0.0.json +291 -0
- package/src/cvcs/sexProviderSubrole.v1.0.0.json +78 -0
- package/src/cvcs/sharePurpose.v1.0.0.json +82 -0
- package/src/cvcs/smtType.v1.0.0.json +114 -0
- package/src/cvcs/tribes.v1.0.0.json +492 -0
- package/src/cvcs/victimStatusFamily.v1.0.0.json +96 -0
- package/src/generated/cvc-enums.ts +1048 -0
- package/src/index.ts +20 -0
- package/src/schemas/common.ts +4 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "preferred_contact_method",
|
|
3
|
+
"name": "Core Preferred Contact Method",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"1": "Contact method"
|
|
7
|
+
},
|
|
8
|
+
"entries": [
|
|
9
|
+
{
|
|
10
|
+
"code": "185-001-000-000-000-000-000",
|
|
11
|
+
"key": "call",
|
|
12
|
+
"title": "Call",
|
|
13
|
+
"selectable": true,
|
|
14
|
+
"parentCode": null,
|
|
15
|
+
"childCodes": [],
|
|
16
|
+
"definition": "Voice telephone call to a reachable phone number."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"code": "185-002-000-000-000-000-000",
|
|
20
|
+
"key": "text",
|
|
21
|
+
"title": "Text / SMS",
|
|
22
|
+
"selectable": true,
|
|
23
|
+
"parentCode": null,
|
|
24
|
+
"childCodes": [],
|
|
25
|
+
"definition": "SMS or text message to a reachable mobile number."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"code": "185-003-000-000-000-000-000",
|
|
29
|
+
"key": "email",
|
|
30
|
+
"title": "Email",
|
|
31
|
+
"selectable": true,
|
|
32
|
+
"parentCode": null,
|
|
33
|
+
"childCodes": [],
|
|
34
|
+
"definition": "Electronic mail to a reachable email address."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"code": "185-004-000-000-000-000-000",
|
|
38
|
+
"key": "messaging_app_dm",
|
|
39
|
+
"title": "Messaging app DM",
|
|
40
|
+
"selectable": true,
|
|
41
|
+
"parentCode": null,
|
|
42
|
+
"childCodes": [],
|
|
43
|
+
"definition": "Direct message on a messaging application (generic). The specific application is captured at the contact entry (see CVC-149 contact_info_types); this CVC records only the channel-class preference."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "pronouns",
|
|
3
|
+
"name": "Core Pronouns",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Category"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "147-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
|
+
"147-000-000-000-000-000-001",
|
|
18
|
+
"147-000-000-000-000-000-002",
|
|
19
|
+
"147-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "147-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "147-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "Value is unknown at time of entry."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "147-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "147-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "147-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "147-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "No attempt was made to collect the value."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "147-001-000-000-000-000-000",
|
|
52
|
+
"key": "he_him",
|
|
53
|
+
"title": "He / Him",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "Individuals who use he/him pronouns."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "147-002-000-000-000-000-000",
|
|
61
|
+
"key": "she_her",
|
|
62
|
+
"title": "She / Her",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Individuals who use she/her pronouns."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "147-003-000-000-000-000-000",
|
|
70
|
+
"key": "they_them",
|
|
71
|
+
"title": "They / Them",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "Individuals who use they/them pronouns."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"code": "147-004-000-000-000-000-000",
|
|
79
|
+
"key": "other_self_described",
|
|
80
|
+
"title": "Other - [trigger an optional write in]",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "Allows for additional self-described pronouns not adequately represented by the listed categories."
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "recency_band",
|
|
3
|
+
"name": "Core Recency Band",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Recency Band"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "137-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
|
+
"137-000-000-000-000-000-001",
|
|
18
|
+
"137-000-000-000-000-000-002",
|
|
19
|
+
"137-000-000-000-000-000-003",
|
|
20
|
+
"137-000-000-000-000-000-004"
|
|
21
|
+
],
|
|
22
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"code": "137-000-000-000-000-000-001",
|
|
26
|
+
"key": "unknown",
|
|
27
|
+
"title": "Unknown",
|
|
28
|
+
"selectable": true,
|
|
29
|
+
"parentCode": "137-000-000-000-000-000-000",
|
|
30
|
+
"childCodes": [],
|
|
31
|
+
"definition": "Value is unknown at time of entry."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"code": "137-000-000-000-000-000-002",
|
|
35
|
+
"key": "anonymous",
|
|
36
|
+
"title": "Anonymous",
|
|
37
|
+
"selectable": true,
|
|
38
|
+
"parentCode": "137-000-000-000-000-000-000",
|
|
39
|
+
"childCodes": [],
|
|
40
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "137-000-000-000-000-000-003",
|
|
44
|
+
"key": "data_not_collected",
|
|
45
|
+
"title": "Data not collected",
|
|
46
|
+
"selectable": true,
|
|
47
|
+
"parentCode": "137-000-000-000-000-000-000",
|
|
48
|
+
"childCodes": [],
|
|
49
|
+
"definition": "No attempt was made to collect the value."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"code": "137-000-000-000-000-000-004",
|
|
53
|
+
"key": "prefer_not_to_answer",
|
|
54
|
+
"title": "Client prefers not to answer",
|
|
55
|
+
"selectable": true,
|
|
56
|
+
"parentCode": "137-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": "137-001-000-000-000-000-000",
|
|
62
|
+
"key": "less_than_3_years",
|
|
63
|
+
"title": "Less than 3 years ago",
|
|
64
|
+
"selectable": true,
|
|
65
|
+
"parentCode": null,
|
|
66
|
+
"childCodes": [],
|
|
67
|
+
"definition": "The asserted event occurred less than 3 years ago."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"code": "137-002-000-000-000-000-000",
|
|
71
|
+
"key": "months_3_to_6",
|
|
72
|
+
"title": "3-6 months ago",
|
|
73
|
+
"selectable": true,
|
|
74
|
+
"parentCode": null,
|
|
75
|
+
"childCodes": [],
|
|
76
|
+
"definition": "The asserted event occurred between 3 and 6 months ago."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "137-003-000-000-000-000-000",
|
|
80
|
+
"key": "months_6_to_12",
|
|
81
|
+
"title": "6-12 months ago",
|
|
82
|
+
"selectable": true,
|
|
83
|
+
"parentCode": null,
|
|
84
|
+
"childCodes": [],
|
|
85
|
+
"definition": "The asserted event occurred between 6 and 12 months ago."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"code": "137-004-000-000-000-000-000",
|
|
89
|
+
"key": "one_year_or_more",
|
|
90
|
+
"title": "One year or more",
|
|
91
|
+
"selectable": true,
|
|
92
|
+
"parentCode": null,
|
|
93
|
+
"childCodes": [],
|
|
94
|
+
"definition": "The asserted event occurred one year or more ago (without further granularity)."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"code": "137-005-000-000-000-000-000",
|
|
98
|
+
"key": "ten_plus_years",
|
|
99
|
+
"title": "10+ years ago",
|
|
100
|
+
"selectable": true,
|
|
101
|
+
"parentCode": null,
|
|
102
|
+
"childCodes": [],
|
|
103
|
+
"definition": "The asserted event occurred 10 or more years ago."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"code": "137-006-000-000-000-000-000",
|
|
107
|
+
"key": "within_3_months",
|
|
108
|
+
"title": "Within past 3 months",
|
|
109
|
+
"selectable": true,
|
|
110
|
+
"parentCode": null,
|
|
111
|
+
"childCodes": [],
|
|
112
|
+
"definition": "The asserted event occurred within the past 3 months."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "137-007-000-000-000-000-000",
|
|
116
|
+
"key": "years_3_to_10",
|
|
117
|
+
"title": "3-10 years ago",
|
|
118
|
+
"selectable": true,
|
|
119
|
+
"parentCode": null,
|
|
120
|
+
"childCodes": [],
|
|
121
|
+
"definition": "The asserted event occurred between 3 and 10 years ago."
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|