@htilabs/platform-common-models 0.3.0-beta.5 → 0.4.0-beta.2

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.
Files changed (43) hide show
  1. package/dist/cvcs/index.cjs +633 -467
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +570 -505
  4. package/dist/cvcs/index.d.ts +570 -505
  5. package/dist/cvcs/index.js +633 -466
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/index.cjs +811 -641
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +178 -178
  10. package/dist/index.d.ts +178 -178
  11. package/dist/index.js +811 -639
  12. package/dist/index.js.map +1 -1
  13. package/dist/models/index.cjs +4 -3
  14. package/dist/models/index.cjs.map +1 -1
  15. package/dist/models/index.js +4 -3
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/schemas/index.cjs +4 -3
  18. package/dist/schemas/index.cjs.map +1 -1
  19. package/dist/schemas/index.js +4 -3
  20. package/dist/schemas/index.js.map +1 -1
  21. package/dist/services/index.cjs +4 -3
  22. package/dist/services/index.cjs.map +1 -1
  23. package/dist/services/index.js +4 -3
  24. package/dist/services/index.js.map +1 -1
  25. package/dist/validation/index.cjs +5 -12
  26. package/dist/validation/index.cjs.map +1 -1
  27. package/dist/validation/index.d.cts +31 -30
  28. package/dist/validation/index.d.ts +31 -30
  29. package/dist/validation/index.js +5 -12
  30. package/dist/validation/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/__tests__/__snapshots__/cvc-sot.snap +6 -10
  33. package/src/__tests__/cvc-sot-snapshot.test.ts +8 -8
  34. package/src/__tests__/cvc-structural.test.ts +0 -1
  35. package/src/cvcs/index.ts +5 -6
  36. package/src/cvcs/serviceCategories.v1.0.0.json +560 -430
  37. package/src/cvcs/serviceMechanisms.v1.0.0.json +45 -5
  38. package/src/cvcs/serviceStates.v1.0.0.json +57 -17
  39. package/src/generated/cvc-enums.ts +176 -178
  40. package/src/schemas/cvcEntry.ts +3 -2
  41. package/src/schemas/cvcRegistry.ts +3 -2
  42. package/src/validation/cvc.ts +36 -50
  43. package/src/cvcs/missingness.v1.0.0.json +0 -50
@@ -2,13 +2,13 @@
2
2
  "domain": "service_mechanisms",
3
3
  "name": "Core Service Mechanisms",
4
4
  "version": "1.0.0",
5
- "missingness": ["all"],
6
5
  "levels": {
6
+ "0": "Unknown or Missing",
7
7
  "1": "Service Mechanism"
8
8
  },
9
9
  "entries": [
10
10
  {
11
- "code": "03-01-00-00-00-00-00",
11
+ "code": "025-001-000-000-000-000-000",
12
12
  "key": "support_via_referral",
13
13
  "title": "Support via Referral",
14
14
  "selectable": true,
@@ -17,7 +17,7 @@
17
17
  "definition": "Connecting the client to an external provider or resource, and documenting the referral action and follow-up if applicable."
18
18
  },
19
19
  {
20
- "code": "03-02-00-00-00-00-00",
20
+ "code": "025-002-000-000-000-000-000",
21
21
  "key": "informational_support",
22
22
  "title": "Informational Support",
23
23
  "selectable": true,
@@ -26,7 +26,7 @@
26
26
  "definition": "Education, informational materials, guidance, navigation, instructions, or resource lists where the primary delivery is information."
27
27
  },
28
28
  {
29
- "code": "03-03-00-00-00-00-00",
29
+ "code": "025-003-000-000-000-000-000",
30
30
  "key": "direct_staff_contractor",
31
31
  "title": "Direct Staff/Contractor Service",
32
32
  "selectable": true,
@@ -35,13 +35,53 @@
35
35
  "definition": "Support delivered via personnel time and effort (advocacy, case management, counseling/clinician services, accompaniment, coordination, etc.)."
36
36
  },
37
37
  {
38
- "code": "03-04-00-00-00-00-00",
38
+ "code": "025-004-000-000-000-000-000",
39
39
  "key": "financial_material_assistance",
40
40
  "title": "Financial/Material Assistance",
41
41
  "selectable": true,
42
42
  "parentCode": null,
43
43
  "childCodes": [],
44
44
  "definition": "Cash, vouchers, goods, payments, or anything with monetary value transferred or provided on behalf of the client."
45
+ },
46
+ {
47
+ "code": "025-000-000-000-000-000-000",
48
+ "key": "missingness_root",
49
+ "title": "Unknown, Redacted, or Missing",
50
+ "selectable": false,
51
+ "parentCode": null,
52
+ "childCodes": [
53
+ "025-000-000-000-000-000-001",
54
+ "025-000-000-000-000-000-002",
55
+ "025-000-000-000-000-000-003"
56
+ ],
57
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
58
+ },
59
+ {
60
+ "code": "025-000-000-000-000-000-001",
61
+ "key": "unknown",
62
+ "title": "Unknown",
63
+ "selectable": true,
64
+ "parentCode": "025-000-000-000-000-000-000",
65
+ "childCodes": [],
66
+ "definition": "Value is unknown at time of entry."
67
+ },
68
+ {
69
+ "code": "025-000-000-000-000-000-002",
70
+ "key": "anonymous",
71
+ "title": "Anonymous",
72
+ "selectable": true,
73
+ "parentCode": "025-000-000-000-000-000-000",
74
+ "childCodes": [],
75
+ "definition": "Value is intentionally withheld or redacted."
76
+ },
77
+ {
78
+ "code": "025-000-000-000-000-000-003",
79
+ "key": "data_not_collected",
80
+ "title": "Data not collected",
81
+ "selectable": true,
82
+ "parentCode": "025-000-000-000-000-000-000",
83
+ "childCodes": [],
84
+ "definition": "No attempt was made to collect the value."
45
85
  }
46
86
  ]
47
87
  }
@@ -2,14 +2,14 @@
2
2
  "domain": "service_states",
3
3
  "name": "Core Service State",
4
4
  "version": "1.0.0",
5
- "missingness": ["all"],
6
5
  "levels": {
6
+ "0": "Unknown or Missing",
7
7
  "1": "Primary State",
8
8
  "2": "Sub-State"
9
9
  },
10
10
  "entries": [
11
11
  {
12
- "code": "02-01-00-00-00-00-00",
12
+ "code": "049-001-000-000-000-000-000",
13
13
  "key": "need_identified",
14
14
  "title": "Need identified",
15
15
  "selectable": true,
@@ -18,7 +18,7 @@
18
18
  "definition": "A service need was identified/recorded; no commitment to deliver has been made yet."
19
19
  },
20
20
  {
21
- "code": "02-02-00-00-00-00-00",
21
+ "code": "049-002-000-000-000-000-000",
22
22
  "key": "offered",
23
23
  "title": "Offered",
24
24
  "selectable": true,
@@ -27,7 +27,7 @@
27
27
  "definition": "A service option was offered, but not yet delivered."
28
28
  },
29
29
  {
30
- "code": "02-03-00-00-00-00-00",
30
+ "code": "049-003-000-000-000-000-000",
31
31
  "key": "scheduled_in_progress",
32
32
  "title": "Scheduled / in progress",
33
33
  "selectable": true,
@@ -36,7 +36,7 @@
36
36
  "definition": "Service is scheduled or actively underway as a multi-step process."
37
37
  },
38
38
  {
39
- "code": "02-04-00-00-00-00-00",
39
+ "code": "049-004-000-000-000-000-000",
40
40
  "key": "delivered",
41
41
  "title": "Delivered",
42
42
  "selectable": true,
@@ -45,7 +45,7 @@
45
45
  "definition": "A unit of service was delivered/provided or confirmed received."
46
46
  },
47
47
  {
48
- "code": "02-05-00-00-00-00-00",
48
+ "code": "049-005-000-000-000-000-000",
49
49
  "key": "completed",
50
50
  "title": "Completed",
51
51
  "selectable": true,
@@ -54,7 +54,7 @@
54
54
  "definition": "Service episode/plan is finished and closed."
55
55
  },
56
56
  {
57
- "code": "02-06-00-00-00-00-00",
57
+ "code": "049-006-000-000-000-000-000",
58
58
  "key": "declined_by_client",
59
59
  "title": "Declined by client",
60
60
  "selectable": true,
@@ -63,44 +63,84 @@
63
63
  "definition": "Client declined the offered service."
64
64
  },
65
65
  {
66
- "code": "02-07-00-00-00-00-00",
66
+ "code": "049-007-000-000-000-000-000",
67
67
  "key": "unable_to_provide",
68
68
  "title": "Unable to provide",
69
69
  "selectable": true,
70
70
  "parentCode": null,
71
71
  "childCodes": [
72
- "02-07-01-00-00-00-00",
73
- "02-07-02-00-00-00-00",
74
- "02-07-03-00-00-00-00"
72
+ "049-007-001-000-000-000-000",
73
+ "049-007-002-000-000-000-000",
74
+ "049-007-003-000-000-000-000"
75
75
  ],
76
76
  "definition": "Program could not provide the service."
77
77
  },
78
78
  {
79
- "code": "02-07-01-00-00-00-00",
79
+ "code": "049-007-001-000-000-000-000",
80
80
  "key": "unable_to_provide_eligibility",
81
81
  "title": "Unable due to eligibility",
82
82
  "selectable": true,
83
- "parentCode": "02-07-00-00-00-00-00",
83
+ "parentCode": "049-007-000-000-000-000-000",
84
84
  "childCodes": [],
85
85
  "definition": "Client did not have eligibility for the Service."
86
86
  },
87
87
  {
88
- "code": "02-07-02-00-00-00-00",
88
+ "code": "049-007-002-000-000-000-000",
89
89
  "key": "unable_to_provide_capacity",
90
90
  "title": "Unable due to capacity",
91
91
  "selectable": true,
92
- "parentCode": "02-07-00-00-00-00-00",
92
+ "parentCode": "049-007-000-000-000-000-000",
93
93
  "childCodes": [],
94
94
  "definition": "Program did not have capacity to provide the Service."
95
95
  },
96
96
  {
97
- "code": "02-07-03-00-00-00-00",
97
+ "code": "049-007-003-000-000-000-000",
98
98
  "key": "unable_to_provide_resources",
99
99
  "title": "Unable due to resource",
100
100
  "selectable": true,
101
- "parentCode": "02-07-00-00-00-00-00",
101
+ "parentCode": "049-007-000-000-000-000-000",
102
102
  "childCodes": [],
103
103
  "definition": "Program did not have sufficient resources to provide the Service."
104
+ },
105
+ {
106
+ "code": "049-000-000-000-000-000-000",
107
+ "key": "missingness_root",
108
+ "title": "Unknown, Redacted, or Missing",
109
+ "selectable": false,
110
+ "parentCode": null,
111
+ "childCodes": [
112
+ "049-000-000-000-000-000-001",
113
+ "049-000-000-000-000-000-002",
114
+ "049-000-000-000-000-000-003"
115
+ ],
116
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
117
+ },
118
+ {
119
+ "code": "049-000-000-000-000-000-001",
120
+ "key": "unknown",
121
+ "title": "Unknown",
122
+ "selectable": true,
123
+ "parentCode": "049-000-000-000-000-000-000",
124
+ "childCodes": [],
125
+ "definition": "Value is unknown at time of entry."
126
+ },
127
+ {
128
+ "code": "049-000-000-000-000-000-002",
129
+ "key": "anonymous",
130
+ "title": "Anonymous",
131
+ "selectable": true,
132
+ "parentCode": "049-000-000-000-000-000-000",
133
+ "childCodes": [],
134
+ "definition": "Value is intentionally withheld or redacted."
135
+ },
136
+ {
137
+ "code": "049-000-000-000-000-000-003",
138
+ "key": "data_not_collected",
139
+ "title": "Data not collected",
140
+ "selectable": true,
141
+ "parentCode": "049-000-000-000-000-000-000",
142
+ "childCodes": [],
143
+ "definition": "No attempt was made to collect the value."
104
144
  }
105
145
  ]
106
146
  }