@htilabs/platform-common-models 0.8.6 → 0.8.7
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 +54 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +60 -0
- package/dist/cvcs/index.d.ts +60 -0
- package/dist/cvcs/index.js +54 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +229 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +208 -3
- package/dist/index.d.ts +208 -3
- package/dist/index.js +221 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +36 -4
- package/src/__tests__/cvc-sot-snapshot.test.ts +10 -2
- package/src/cvcs/activityType.v1.0.0.json +143 -0
- package/src/cvcs/assertionDomain.v1.0.0.json +629 -0
- package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
- package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
- package/src/cvcs/radiusBucket.v1.0.0.json +98 -0
- package/src/cvcs/roiMethod.v1.0.0.json +107 -0
- package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
- package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
- package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
- package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
- package/src/generated/cvc-enums.ts +223 -2
package/package.json
CHANGED
|
@@ -187,8 +187,8 @@
|
|
|
187
187
|
"hash": "ba2c6ddb0ef60863d88690f8c82d54208c1eb13b3546e4a5e49c4a2ec8a7517c"
|
|
188
188
|
},
|
|
189
189
|
"source_subtype": {
|
|
190
|
-
"count":
|
|
191
|
-
"hash": "
|
|
190
|
+
"count": 39,
|
|
191
|
+
"hash": "90eefc3e2a4f924779239ae110fb271f8e5c1c34f30dc96ff0ffc40d23ed90e3"
|
|
192
192
|
},
|
|
193
193
|
"support_strength": {
|
|
194
194
|
"count": 11,
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
"hash": "5f98f5304468ccbc8b06c83388edcfc51abde67b3e8e7c66de55d9fafb0776c5"
|
|
208
208
|
},
|
|
209
209
|
"verification_method": {
|
|
210
|
-
"count":
|
|
211
|
-
"hash": "
|
|
210
|
+
"count": 11,
|
|
211
|
+
"hash": "ab1b4f974093be3a289544ecc859f86ae815109cba8a7b881d34828c505bf816"
|
|
212
212
|
},
|
|
213
213
|
"quality_flags": {
|
|
214
214
|
"count": 9,
|
|
@@ -509,6 +509,38 @@
|
|
|
509
509
|
"housing_subsidy_types": {
|
|
510
510
|
"count": 16,
|
|
511
511
|
"hash": "4341619e6016822fcc353987a635421c767391a85f2ff7602726ca02bfa0f4f7"
|
|
512
|
+
},
|
|
513
|
+
"assertion_domain": {
|
|
514
|
+
"count": 68,
|
|
515
|
+
"hash": "814b932cfd24f6d2f931c333806735c25c2239e32388918aafec090de4ef468a"
|
|
516
|
+
},
|
|
517
|
+
"activity_type": {
|
|
518
|
+
"count": 14,
|
|
519
|
+
"hash": "ac980d852c4efc88db745fae50e7cd9ef6f94df3f9d4f90603b2960af4f55a68"
|
|
520
|
+
},
|
|
521
|
+
"provenance_source_id": {
|
|
522
|
+
"count": 13,
|
|
523
|
+
"hash": "4452b7ce856f13be7d7bb4b578943d15eef105140ec88fe03a0d8370f9d98a28"
|
|
524
|
+
},
|
|
525
|
+
"radius_bucket": {
|
|
526
|
+
"count": 9,
|
|
527
|
+
"hash": "0c59ba7bd11ff24fe7420f9164a090016ff783a1666b2c380c8b4ee43f0c9d39"
|
|
528
|
+
},
|
|
529
|
+
"contact_link_type": {
|
|
530
|
+
"count": 8,
|
|
531
|
+
"hash": "2dd40c3fcaf9faabb8bf7524c8acfc82e20e020fb32b990e10df2efef95feda1"
|
|
532
|
+
},
|
|
533
|
+
"suggestion_source": {
|
|
534
|
+
"count": 6,
|
|
535
|
+
"hash": "773fc417d9f296b65f653f0c0a6b686a64bcf8838f9a3f39940b2b651ac273d9"
|
|
536
|
+
},
|
|
537
|
+
"roi_method": {
|
|
538
|
+
"count": 10,
|
|
539
|
+
"hash": "e9413c62e1b0879027a1509500f2e14faf7e0fa9bb60808dd6d1184de53c3087"
|
|
540
|
+
},
|
|
541
|
+
"session_note_visibility": {
|
|
542
|
+
"count": 7,
|
|
543
|
+
"hash": "6ad8e821e790b3ba303578c1ea78081d48264a96765299002b5545a7e78be3d0"
|
|
512
544
|
}
|
|
513
545
|
}
|
|
514
546
|
}
|
|
@@ -416,7 +416,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
416
416
|
{
|
|
417
417
|
file: "sourceSubtype.v1.1.0.json",
|
|
418
418
|
domain: "source_subtype",
|
|
419
|
-
expectedCount:
|
|
419
|
+
expectedCount: 39,
|
|
420
420
|
},
|
|
421
421
|
// CVC-139 — support_strength (formerly evidence_tier). 7 substantive Level-1
|
|
422
422
|
// entries + 1 missingness root + 3 canonical missingness children = 11.
|
|
@@ -454,7 +454,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
454
454
|
{
|
|
455
455
|
file: "verificationMethod.v1.0.0.json",
|
|
456
456
|
domain: "verification_method",
|
|
457
|
-
expectedCount:
|
|
457
|
+
expectedCount: 11,
|
|
458
458
|
},
|
|
459
459
|
// CVC-144 — quality_flags. 5 substantive Level-1 entries
|
|
460
460
|
// (circular_model_label_risk, data_redacted, inconsistent, self_report_only,
|
|
@@ -586,6 +586,14 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
586
586
|
// root + 3 canonical missingness children = 16. CVC number is PROVISIONAL
|
|
587
587
|
// pending ratification.
|
|
588
588
|
{ file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 16 },
|
|
589
|
+
{ file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount: 68 },
|
|
590
|
+
{ file: "activityType.v1.0.0.json", domain: "activity_type", expectedCount: 14 },
|
|
591
|
+
{ file: "provenanceSourceId.v1.0.0.json", domain: "provenance_source_id", expectedCount: 13 },
|
|
592
|
+
{ file: "radiusBucket.v1.0.0.json", domain: "radius_bucket", expectedCount: 9 },
|
|
593
|
+
{ file: "contactLinkType.v1.0.0.json", domain: "contact_link_type", expectedCount: 8 },
|
|
594
|
+
{ file: "suggestionSource.v1.0.0.json", domain: "suggestion_source", expectedCount: 6 },
|
|
595
|
+
{ file: "roiMethod.v1.0.0.json", domain: "roi_method", expectedCount: 10 },
|
|
596
|
+
{ file: "sessionNoteVisibility.v1.0.0.json", domain: "session_note_visibility", expectedCount: 7 },
|
|
589
597
|
] as const;
|
|
590
598
|
|
|
591
599
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "activity_type",
|
|
3
|
+
"name": "activityType",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "PROVISIONAL — net-new value-CVC not yet in Notion; provisional 900+ numbering; substantive values sourced verbatim from the PAVE @pave/domain enum of the same name (D10 source-from-platform-common). PENDING canonical Notion authoring + steward ratification of titles/definitions.",
|
|
6
|
+
"_source": "pave-2.0/packages/domain/src/enums.ts",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Activity type"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "965-000-000-000-000-000-000",
|
|
14
|
+
"key": "missingness_root",
|
|
15
|
+
"title": "Unknown, Redacted, or Missing",
|
|
16
|
+
"selectable": false,
|
|
17
|
+
"parentCode": null,
|
|
18
|
+
"childCodes": [
|
|
19
|
+
"965-000-000-000-000-000-001",
|
|
20
|
+
"965-000-000-000-000-000-002",
|
|
21
|
+
"965-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "965-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "965-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "The activity_type is unknown or cannot be determined."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "965-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "965-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value is intentionally withheld, declined, or redacted."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "965-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "965-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the value."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "965-001-000-000-000-000-000",
|
|
54
|
+
"key": "resided",
|
|
55
|
+
"title": "Resided",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Activity type 'resided' recorded on a person/relationship interaction."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "965-002-000-000-000-000-000",
|
|
63
|
+
"key": "sheltered",
|
|
64
|
+
"title": "Sheltered",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "Activity type 'sheltered' recorded on a person/relationship interaction."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "965-003-000-000-000-000-000",
|
|
72
|
+
"key": "service_delivered",
|
|
73
|
+
"title": "Service Delivered",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Activity type 'service_delivered' recorded on a person/relationship interaction."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "965-004-000-000-000-000-000",
|
|
81
|
+
"key": "met",
|
|
82
|
+
"title": "Met",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Activity type 'met' recorded on a person/relationship interaction."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "965-005-000-000-000-000-000",
|
|
90
|
+
"key": "advertised",
|
|
91
|
+
"title": "Advertised",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Activity type 'advertised' recorded on a person/relationship interaction."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "965-006-000-000-000-000-000",
|
|
99
|
+
"key": "arrested",
|
|
100
|
+
"title": "Arrested",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "Activity type 'arrested' recorded on a person/relationship interaction."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "965-007-000-000-000-000-000",
|
|
108
|
+
"key": "visited",
|
|
109
|
+
"title": "Visited",
|
|
110
|
+
"selectable": true,
|
|
111
|
+
"parentCode": null,
|
|
112
|
+
"childCodes": [],
|
|
113
|
+
"definition": "Activity type 'visited' recorded on a person/relationship interaction."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"code": "965-008-000-000-000-000-000",
|
|
117
|
+
"key": "child_welfare_visit",
|
|
118
|
+
"title": "Child Welfare Visit",
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"parentCode": null,
|
|
121
|
+
"childCodes": [],
|
|
122
|
+
"definition": "Activity type 'child_welfare_visit' recorded on a person/relationship interaction."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "965-009-000-000-000-000-000",
|
|
126
|
+
"key": "incident",
|
|
127
|
+
"title": "Incident",
|
|
128
|
+
"selectable": true,
|
|
129
|
+
"parentCode": null,
|
|
130
|
+
"childCodes": [],
|
|
131
|
+
"definition": "Activity type 'incident' recorded on a person/relationship interaction."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"code": "965-010-000-000-000-000-000",
|
|
135
|
+
"key": "other",
|
|
136
|
+
"title": "Other",
|
|
137
|
+
"selectable": true,
|
|
138
|
+
"parentCode": null,
|
|
139
|
+
"childCodes": [],
|
|
140
|
+
"definition": "Activity type 'other' recorded on a person/relationship interaction."
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|