@htilabs/platform-common-models 0.6.0 → 0.7.0
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/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-DaDrEuTa.d.cts} +36 -36
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-DaDrEuTa.d.ts} +36 -36
- package/dist/cvcs/index.cjs +1280 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1846 -436
- package/dist/cvcs/index.d.ts +1846 -436
- package/dist/cvcs/index.js +1269 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-C0J3f169.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-EPjPjR0z.d.cts} +1 -1
- package/dist/index.cjs +1443 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +211 -4
- package/dist/index.d.ts +211 -4
- package/dist/index.js +1421 -0
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/package.json +18 -17
- package/src/__tests__/__snapshots__/cvc-sot.snap +44 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +88 -0
- package/src/__tests__/cvc-structural.test.ts +11 -0
- package/src/cvcs/contactInfoUseType.v1.0.0.json +87 -0
- package/src/cvcs/determinationLevel.v1.0.0.json +96 -0
- package/src/cvcs/index.ts +22 -0
- package/src/cvcs/inferenceType.v1.0.0.json +78 -0
- package/src/cvcs/qualityFlags.v1.0.0.json +96 -0
- package/src/cvcs/roleContext.v1.0.0.json +78 -0
- package/src/cvcs/sessionState.v1.0.0.json +96 -0
- package/src/cvcs/sourceCategory.v1.1.0.json +96 -0
- package/src/cvcs/sourceSubtype.v1.1.0.json +330 -0
- package/src/cvcs/supportStrength.v1.0.0.json +114 -0
- package/src/cvcs/timeScope.v1.0.0.json +69 -0
- package/src/cvcs/verificationMethod.v1.0.0.json +96 -0
- package/src/generated/cvc-enums.ts +229 -0
package/dist/models/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-DaDrEuTa.cjs';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
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, 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-
|
|
3
|
+
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, 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-EPjPjR0z.cjs';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-DaDrEuTa.js';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
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, 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-
|
|
3
|
+
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, 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-C0J3f169.js';
|
package/dist/schemas/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as mongoose from 'mongoose';
|
|
2
2
|
import { InferRawDocType, Schema } from 'mongoose';
|
|
3
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-
|
|
3
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-DaDrEuTa.cjs';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
28
28
|
placeId?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
-
},
|
|
31
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}>> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
88
88
|
isAnonymous?: boolean | null | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
id: string;
|
|
91
|
-
},
|
|
91
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
92
92
|
_id: false;
|
|
93
|
-
}
|
|
93
|
+
}>> & Omit<{
|
|
94
94
|
alias?: boolean | null | undefined;
|
|
95
95
|
firstName?: string | null | undefined;
|
|
96
96
|
lastName?: string | null | undefined;
|
|
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
id: string;
|
|
139
|
-
},
|
|
139
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
140
140
|
_id: false;
|
|
141
|
-
}
|
|
141
|
+
}>> & Omit<{
|
|
142
142
|
number?: string | null | undefined;
|
|
143
143
|
type?: string | null | undefined;
|
|
144
144
|
safeToContact?: boolean | null | undefined;
|
|
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
172
|
address?: string | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
id: string;
|
|
175
|
-
},
|
|
175
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
176
176
|
_id: false;
|
|
177
|
-
}
|
|
177
|
+
}>> & Omit<{
|
|
178
178
|
type?: string | null | undefined;
|
|
179
179
|
safeToContact?: boolean | null | undefined;
|
|
180
180
|
address?: string | null | undefined;
|
|
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
246
246
|
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
id: string;
|
|
249
|
-
},
|
|
249
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
250
250
|
_id: false;
|
|
251
|
-
}
|
|
251
|
+
}>> & Omit<{
|
|
252
252
|
race: number[];
|
|
253
253
|
ethnicity: number[];
|
|
254
254
|
accommodations: string[];
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as mongoose from 'mongoose';
|
|
2
2
|
import { InferRawDocType, Schema } from 'mongoose';
|
|
3
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-
|
|
3
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-DaDrEuTa.js';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
28
28
|
placeId?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
-
},
|
|
31
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}>> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
88
88
|
isAnonymous?: boolean | null | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
id: string;
|
|
91
|
-
},
|
|
91
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
92
92
|
_id: false;
|
|
93
|
-
}
|
|
93
|
+
}>> & Omit<{
|
|
94
94
|
alias?: boolean | null | undefined;
|
|
95
95
|
firstName?: string | null | undefined;
|
|
96
96
|
lastName?: string | null | undefined;
|
|
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
id: string;
|
|
139
|
-
},
|
|
139
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
140
140
|
_id: false;
|
|
141
|
-
}
|
|
141
|
+
}>> & Omit<{
|
|
142
142
|
number?: string | null | undefined;
|
|
143
143
|
type?: string | null | undefined;
|
|
144
144
|
safeToContact?: boolean | null | undefined;
|
|
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
172
|
address?: string | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
id: string;
|
|
175
|
-
},
|
|
175
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
176
176
|
_id: false;
|
|
177
|
-
}
|
|
177
|
+
}>> & Omit<{
|
|
178
178
|
type?: string | null | undefined;
|
|
179
179
|
safeToContact?: boolean | null | undefined;
|
|
180
180
|
address?: string | null | undefined;
|
|
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
246
246
|
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
id: string;
|
|
249
|
-
},
|
|
249
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
250
250
|
_id: false;
|
|
251
|
-
}
|
|
251
|
+
}>> & Omit<{
|
|
252
252
|
race: number[];
|
|
253
253
|
ethnicity: number[];
|
|
254
254
|
accommodations: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htilabs/platform-common-models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -52,6 +52,23 @@
|
|
|
52
52
|
"dist",
|
|
53
53
|
"src"
|
|
54
54
|
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"dev": "tsup --watch",
|
|
58
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
59
|
+
"lint": "eslint src --ext .ts",
|
|
60
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
64
|
+
"clean": "rm -rf dist",
|
|
65
|
+
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
66
|
+
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
67
|
+
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
68
|
+
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
69
|
+
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
70
|
+
"prepublishOnly": "npm run build"
|
|
71
|
+
},
|
|
55
72
|
"keywords": [
|
|
56
73
|
"hti",
|
|
57
74
|
"platform-common",
|
|
@@ -85,21 +102,5 @@
|
|
|
85
102
|
},
|
|
86
103
|
"engines": {
|
|
87
104
|
"node": ">=18.0.0"
|
|
88
|
-
},
|
|
89
|
-
"scripts": {
|
|
90
|
-
"build": "tsup",
|
|
91
|
-
"dev": "tsup --watch",
|
|
92
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
93
|
-
"lint": "eslint src --ext .ts",
|
|
94
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
95
|
-
"test": "vitest run",
|
|
96
|
-
"test:watch": "vitest",
|
|
97
|
-
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
98
|
-
"clean": "rm -rf dist",
|
|
99
|
-
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
100
|
-
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
101
|
-
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
102
|
-
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
103
|
-
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts"
|
|
104
105
|
}
|
|
105
106
|
}
|
|
@@ -177,6 +177,50 @@
|
|
|
177
177
|
"frequency_cadence": {
|
|
178
178
|
"count": 11,
|
|
179
179
|
"hash": "09d81031a2534830f3956bd49514985e4e9d67304d03fa21f3d7da3fd779c66e"
|
|
180
|
+
},
|
|
181
|
+
"inference_type": {
|
|
182
|
+
"count": 7,
|
|
183
|
+
"hash": "14bee2d2d4a99fad4d7201e451b8ae926fd870394dfb0ccd42ac4a685cd12bcc"
|
|
184
|
+
},
|
|
185
|
+
"source_category": {
|
|
186
|
+
"count": 9,
|
|
187
|
+
"hash": "ba2c6ddb0ef60863d88690f8c82d54208c1eb13b3546e4a5e49c4a2ec8a7517c"
|
|
188
|
+
},
|
|
189
|
+
"source_subtype": {
|
|
190
|
+
"count": 35,
|
|
191
|
+
"hash": "3c039024ef731abc2eb9f3ba9ae1860b75531e1b92e58a6bf74402444f59b773"
|
|
192
|
+
},
|
|
193
|
+
"support_strength": {
|
|
194
|
+
"count": 11,
|
|
195
|
+
"hash": "5d8fac1ffc16f39e2e2ccc0c8e1d7c5d667d2a662a15b312b90279084d70d78f"
|
|
196
|
+
},
|
|
197
|
+
"determination_level": {
|
|
198
|
+
"count": 9,
|
|
199
|
+
"hash": "d02ca85cebd134223f021b64fe79ac1157f628a46cca28b27ff7de96103d05f3"
|
|
200
|
+
},
|
|
201
|
+
"role_context": {
|
|
202
|
+
"count": 7,
|
|
203
|
+
"hash": "28e030655d3489e2feb802f89d29c8efdd431c7e685c5e1cee88e3d6a4c3c717"
|
|
204
|
+
},
|
|
205
|
+
"time_scope": {
|
|
206
|
+
"count": 6,
|
|
207
|
+
"hash": "5f98f5304468ccbc8b06c83388edcfc51abde67b3e8e7c66de55d9fafb0776c5"
|
|
208
|
+
},
|
|
209
|
+
"verification_method": {
|
|
210
|
+
"count": 9,
|
|
211
|
+
"hash": "7054ed373cb1b6c7f9a71e9729625bedb8128c94c1fd3afb3063fcc7e505ccfe"
|
|
212
|
+
},
|
|
213
|
+
"quality_flags": {
|
|
214
|
+
"count": 9,
|
|
215
|
+
"hash": "92202865236b89bf09673a07b81ae7797c4db49da5efb82512b3b0bec9154ab4"
|
|
216
|
+
},
|
|
217
|
+
"contact_info_use_type": {
|
|
218
|
+
"count": 8,
|
|
219
|
+
"hash": "7ebd840146ac112553c164059061b25da76151f8085df4cf081d877190561cda"
|
|
220
|
+
},
|
|
221
|
+
"session_state": {
|
|
222
|
+
"count": 9,
|
|
223
|
+
"hash": "69d301667ebec681cfc9daf3f5d570adc269e484ab05f7d8bab773d1e4511a49"
|
|
180
224
|
}
|
|
181
225
|
}
|
|
182
226
|
}
|
|
@@ -387,6 +387,94 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
387
387
|
domain: "frequency_cadence",
|
|
388
388
|
expectedCount: 11,
|
|
389
389
|
},
|
|
390
|
+
// CVC-142 — inference_type. 3 substantive Level-1 entries (manual, rules,
|
|
391
|
+
// model) + 1 missingness root + 3 canonical missingness children = 7.
|
|
392
|
+
{
|
|
393
|
+
file: "inferenceType.v1.0.0.json",
|
|
394
|
+
domain: "inference_type",
|
|
395
|
+
expectedCount: 7,
|
|
396
|
+
},
|
|
397
|
+
// CVC-140 — source_category. 5 substantive Level-1 entries (human,
|
|
398
|
+
// institutional_record, legal_evidentiary, machine, open_source) + 1
|
|
399
|
+
// missingness root + 3 canonical missingness children = 9.
|
|
400
|
+
{
|
|
401
|
+
file: "sourceCategory.v1.1.0.json",
|
|
402
|
+
domain: "source_category",
|
|
403
|
+
expectedCount: 9,
|
|
404
|
+
},
|
|
405
|
+
// CVC-141 — source_subtype. 31 substantive Level-1 entries (flat across
|
|
406
|
+
// human / institutional_record / legal_evidentiary / machine / open_source
|
|
407
|
+
// categories, with cross-CVC context in definitions) + 1 missingness root +
|
|
408
|
+
// 3 canonical missingness children = 35.
|
|
409
|
+
{
|
|
410
|
+
file: "sourceSubtype.v1.1.0.json",
|
|
411
|
+
domain: "source_subtype",
|
|
412
|
+
expectedCount: 35,
|
|
413
|
+
},
|
|
414
|
+
// CVC-139 — support_strength (formerly evidence_tier). 7 substantive Level-1
|
|
415
|
+
// entries + 1 missingness root + 3 canonical missingness children = 11.
|
|
416
|
+
{
|
|
417
|
+
file: "supportStrength.v1.0.0.json",
|
|
418
|
+
domain: "support_strength",
|
|
419
|
+
expectedCount: 11,
|
|
420
|
+
},
|
|
421
|
+
// CVC-138 — determination_level. 5 substantive Level-1 entries (disclosed,
|
|
422
|
+
// estimated, reported, suspected, verified) + 1 missingness root + 3
|
|
423
|
+
// canonical missingness children = 9.
|
|
424
|
+
{
|
|
425
|
+
file: "determinationLevel.v1.0.0.json",
|
|
426
|
+
domain: "determination_level",
|
|
427
|
+
expectedCount: 9,
|
|
428
|
+
},
|
|
429
|
+
// CVC-160 — role_context. 3 substantive Level-1 entries (both, offender,
|
|
430
|
+
// victim) + 1 missingness root + 3 canonical missingness children = 7.
|
|
431
|
+
{
|
|
432
|
+
file: "roleContext.v1.0.0.json",
|
|
433
|
+
domain: "role_context",
|
|
434
|
+
expectedCount: 7,
|
|
435
|
+
},
|
|
436
|
+
// CVC-174 — time_scope. 2 substantive Level-1 entries (current, prior) + 1
|
|
437
|
+
// missingness root + 3 canonical missingness children = 6.
|
|
438
|
+
{
|
|
439
|
+
file: "timeScope.v1.0.0.json",
|
|
440
|
+
domain: "time_scope",
|
|
441
|
+
expectedCount: 6,
|
|
442
|
+
},
|
|
443
|
+
// CVC-143 — verification_method. 5 substantive Level-1 entries
|
|
444
|
+
// (court_record_confirmed, evidence_threshold_met, multi_source_corroboration,
|
|
445
|
+
// qa_audit_passed, supervisor_review) + 1 missingness root + 3 canonical
|
|
446
|
+
// missingness children = 9.
|
|
447
|
+
{
|
|
448
|
+
file: "verificationMethod.v1.0.0.json",
|
|
449
|
+
domain: "verification_method",
|
|
450
|
+
expectedCount: 9,
|
|
451
|
+
},
|
|
452
|
+
// CVC-144 — quality_flags. 5 substantive Level-1 entries
|
|
453
|
+
// (circular_model_label_risk, data_redacted, inconsistent, self_report_only,
|
|
454
|
+
// single_source) + 1 missingness root + 3 canonical missingness children = 9.
|
|
455
|
+
{
|
|
456
|
+
file: "qualityFlags.v1.0.0.json",
|
|
457
|
+
domain: "quality_flags",
|
|
458
|
+
expectedCount: 9,
|
|
459
|
+
},
|
|
460
|
+
// CVC-154 — contact_info_use_type. 4 substantive Level-1 entries
|
|
461
|
+
// (business_commercial_sex, business_non_cs, mixed_use, personal) + 1
|
|
462
|
+
// missingness root + 3 canonical missingness children = 8. Notion status:
|
|
463
|
+
// Drafted - Needs Review (v3.0); landed at v1.0.0 against canonical pattern.
|
|
464
|
+
{
|
|
465
|
+
file: "contactInfoUseType.v1.0.0.json",
|
|
466
|
+
domain: "contact_info_use_type",
|
|
467
|
+
expectedCount: 8,
|
|
468
|
+
},
|
|
469
|
+
// CVC-216 — session_state. 5 substantive Level-1 entries
|
|
470
|
+
// (session_action_needed, session_closed, session_discarded,
|
|
471
|
+
// session_in_progress, session_initialized) + 1 missingness root + 3
|
|
472
|
+
// canonical missingness children = 9.
|
|
473
|
+
{
|
|
474
|
+
file: "sessionState.v1.0.0.json",
|
|
475
|
+
domain: "session_state",
|
|
476
|
+
expectedCount: 9,
|
|
477
|
+
},
|
|
390
478
|
] as const;
|
|
391
479
|
|
|
392
480
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
@@ -92,6 +92,17 @@ const SOT_FILES: readonly SotFile[] = [
|
|
|
92
92
|
{ file: "enrollmentApplicationStatus.v1.0.0.json", expectedDomain: "enrollment_application_status" },
|
|
93
93
|
{ file: "administeringJurisdiction.v1.0.0.json", expectedDomain: "administering_jurisdiction" },
|
|
94
94
|
{ file: "frequencyCadence.v1.0.0.json", expectedDomain: "frequency_cadence" },
|
|
95
|
+
{ file: "inferenceType.v1.0.0.json", expectedDomain: "inference_type" },
|
|
96
|
+
{ file: "sourceCategory.v1.1.0.json", expectedDomain: "source_category" },
|
|
97
|
+
{ file: "sourceSubtype.v1.1.0.json", expectedDomain: "source_subtype" },
|
|
98
|
+
{ file: "supportStrength.v1.0.0.json", expectedDomain: "support_strength" },
|
|
99
|
+
{ file: "determinationLevel.v1.0.0.json", expectedDomain: "determination_level" },
|
|
100
|
+
{ file: "roleContext.v1.0.0.json", expectedDomain: "role_context" },
|
|
101
|
+
{ file: "timeScope.v1.0.0.json", expectedDomain: "time_scope" },
|
|
102
|
+
{ file: "verificationMethod.v1.0.0.json", expectedDomain: "verification_method" },
|
|
103
|
+
{ file: "qualityFlags.v1.0.0.json", expectedDomain: "quality_flags" },
|
|
104
|
+
{ file: "contactInfoUseType.v1.0.0.json", expectedDomain: "contact_info_use_type" },
|
|
105
|
+
{ file: "sessionState.v1.0.0.json", expectedDomain: "session_state" },
|
|
95
106
|
] as const;
|
|
96
107
|
|
|
97
108
|
function loadSot(file: string): unknown {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "contact_info_use_type",
|
|
3
|
+
"name": "Core Contact Info Use Type",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Use type"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "154-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
|
+
"154-000-000-000-000-000-001",
|
|
18
|
+
"154-000-000-000-000-000-002",
|
|
19
|
+
"154-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "154-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "154-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "Usage context is not known."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "154-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "154-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "154-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "154-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "Worker did not attempt to collect / record usage context."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "154-001-000-000-000-000-000",
|
|
52
|
+
"key": "business_commercial_sex",
|
|
53
|
+
"title": "Business (commercial sex)",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "Used primarily for commercial sex advertising, client communication, or related coordination. If a source instrument directly encodes a CS-only flag, map that into this code."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "154-002-000-000-000-000-000",
|
|
61
|
+
"key": "business_non_cs",
|
|
62
|
+
"title": "Business (non-CS)",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Used primarily for work / business communication not specific to commercial sex activity (employer, general business, services, etc.)."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "154-003-000-000-000-000-000",
|
|
70
|
+
"key": "mixed_use",
|
|
71
|
+
"title": "Mixed use",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "Used for both personal and business purposes (including where business includes commercial sex activity)."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"code": "154-004-000-000-000-000-000",
|
|
79
|
+
"key": "personal",
|
|
80
|
+
"title": "Personal",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "Used primarily for personal / family communication."
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "determination_level",
|
|
3
|
+
"name": "Core Determination Level",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Determination level"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "138-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
|
+
"138-000-000-000-000-000-001",
|
|
18
|
+
"138-000-000-000-000-000-002",
|
|
19
|
+
"138-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "138-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "138-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "Value is unknown at time of entry."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "138-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "138-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "138-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "138-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "No attempt was made to collect the value."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "138-001-000-000-000-000-000",
|
|
52
|
+
"key": "disclosed",
|
|
53
|
+
"title": "Disclosed (subject)",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "The subject discloses or self-reports the condition occurred or applies. Use for trauma-informed capture of disclosures without requiring independent corroboration. Often high priority for service workflows. Pair with support_strength = allegation by default unless corroboration exists."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "138-002-000-000-000-000-000",
|
|
61
|
+
"key": "estimated",
|
|
62
|
+
"title": "Estimated (system-derived)",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Statistical or heuristic estimate where underlying facts may be partial or inferred; useful for early triage and modeling, but not a direct claim by a person or authority. Use when the system or staff is inferring a status from incomplete signals (heuristics, early screening patterns, probabilistic scoring). Do not treat as a disclosure. Pair with inference_type = rules / model when applicable."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "138-003-000-000-000-000-000",
|
|
70
|
+
"key": "reported",
|
|
71
|
+
"title": "Reported (third-party)",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "A third party reports the condition occurred or applies (not the subject's own account). Use when information comes from someone other than the subject: witness, family, another agency, community tip, etc. Not a measure of truth. Pair with support_strength to capture corroboration strength."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"code": "138-004-000-000-000-000-000",
|
|
79
|
+
"key": "suspected",
|
|
80
|
+
"title": "Suspected (working theory)",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "A working hypothesis or investigative theory that the condition likely applies, but is not yet established as a report / disclosure or verified determination. Use for early investigation, suspicion from indicators, or preliminary hypotheses by staff or partners. May be elevated to verified later via superseding entries. Avoid using as a long-term resting state."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "138-005-000-000-000-000-000",
|
|
88
|
+
"key": "verified",
|
|
89
|
+
"title": "Verified (operational)",
|
|
90
|
+
"selectable": true,
|
|
91
|
+
"parentCode": null,
|
|
92
|
+
"childCodes": [],
|
|
93
|
+
"definition": "The asserting organization has verified the condition to a defined operational threshold (not necessarily a legal finding). Use when an agency's policy defines what counts as verified for program / reporting or an internal badge. Verification criteria vary by org; record the policy / threshold via provenance notes or mapping version. Verified means an organization has performed an explicit verification act under a defined threshold; support / corroboration belongs in support_strength."
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
package/src/cvcs/index.ts
CHANGED
|
@@ -63,6 +63,17 @@ import incomeBenefitsSourcesSot from "./incomeBenefitsSources.v1.0.0.json" with
|
|
|
63
63
|
import enrollmentApplicationStatusSot from "./enrollmentApplicationStatus.v1.0.0.json" with { type: "json" };
|
|
64
64
|
import administeringJurisdictionSot from "./administeringJurisdiction.v1.0.0.json" with { type: "json" };
|
|
65
65
|
import frequencyCadenceSot from "./frequencyCadence.v1.0.0.json" with { type: "json" };
|
|
66
|
+
import inferenceTypeSot from "./inferenceType.v1.0.0.json" with { type: "json" };
|
|
67
|
+
import sourceCategorySot from "./sourceCategory.v1.1.0.json" with { type: "json" };
|
|
68
|
+
import sourceSubtypeSot from "./sourceSubtype.v1.1.0.json" with { type: "json" };
|
|
69
|
+
import supportStrengthSot from "./supportStrength.v1.0.0.json" with { type: "json" };
|
|
70
|
+
import determinationLevelSot from "./determinationLevel.v1.0.0.json" with { type: "json" };
|
|
71
|
+
import roleContextSot from "./roleContext.v1.0.0.json" with { type: "json" };
|
|
72
|
+
import timeScopeSot from "./timeScope.v1.0.0.json" with { type: "json" };
|
|
73
|
+
import verificationMethodSot from "./verificationMethod.v1.0.0.json" with { type: "json" };
|
|
74
|
+
import qualityFlagsSot from "./qualityFlags.v1.0.0.json" with { type: "json" };
|
|
75
|
+
import contactInfoUseTypeSot from "./contactInfoUseType.v1.0.0.json" with { type: "json" };
|
|
76
|
+
import sessionStateSot from "./sessionState.v1.0.0.json" with { type: "json" };
|
|
66
77
|
|
|
67
78
|
export {
|
|
68
79
|
serviceCategoriesSot,
|
|
@@ -109,4 +120,15 @@ export {
|
|
|
109
120
|
enrollmentApplicationStatusSot,
|
|
110
121
|
administeringJurisdictionSot,
|
|
111
122
|
frequencyCadenceSot,
|
|
123
|
+
inferenceTypeSot,
|
|
124
|
+
sourceCategorySot,
|
|
125
|
+
sourceSubtypeSot,
|
|
126
|
+
supportStrengthSot,
|
|
127
|
+
determinationLevelSot,
|
|
128
|
+
roleContextSot,
|
|
129
|
+
timeScopeSot,
|
|
130
|
+
verificationMethodSot,
|
|
131
|
+
qualityFlagsSot,
|
|
132
|
+
contactInfoUseTypeSot,
|
|
133
|
+
sessionStateSot,
|
|
112
134
|
};
|