@htilabs/platform-common-models 0.12.4 → 0.13.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.
Files changed (37) hide show
  1. package/dist/cvcs/index.cjs +599 -129
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +865 -391
  4. package/dist/cvcs/index.d.ts +865 -391
  5. package/dist/cvcs/index.js +599 -129
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +17 -16
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +17 -16
  10. package/dist/enums/index.d.ts +17 -16
  11. package/dist/enums/index.js +17 -16
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/{index-C0J3f169.d.ts → index-4DiJrn7y.d.ts} +1 -1
  14. package/dist/{index-EPjPjR0z.d.cts → index-qreOzXYS.d.cts} +1 -1
  15. package/dist/index.cjs +616 -145
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +616 -145
  20. package/dist/index.js.map +1 -1
  21. package/dist/models/index.d.cts +2 -2
  22. package/dist/models/index.d.ts +2 -2
  23. package/dist/schemas/index.d.cts +25 -25
  24. package/dist/schemas/index.d.ts +25 -25
  25. package/package.json +1 -1
  26. package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
  27. package/src/__tests__/core-information-scope-invariant.test.ts +28 -0
  28. package/src/__tests__/cvc-sot-snapshot.test.ts +6 -3
  29. package/src/__tests__/cvc-structural.test.ts +1 -1
  30. package/src/__tests__/victim-abuse-types-canon.test.ts +301 -0
  31. package/src/cvcs/coreInformationScope.v1.0.0.json +3 -3
  32. package/src/cvcs/index.ts +1 -1
  33. package/src/cvcs/victimAbuseTypes.v1.1.0.json +744 -0
  34. package/src/generated/cvc-enums.ts +17 -16
  35. package/src/cvcs/victimAbuseTypes.v1.0.0.json +0 -276
  36. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-ctHTp2df.d.cts} +8 -8
  37. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-ctHTp2df.d.ts} +8 -8
@@ -3453,38 +3453,39 @@ export type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;
3453
3453
  /**
3454
3454
  * Key → positional code map for the `victim_abuse_types` CVC domain.
3455
3455
  *
3456
- * Domain: `victim_abuse_types` · Version: 1.0.0 · Entries: 29
3456
+ * Domain: `victim_abuse_types` · Version: 1.1.0 · Entries: 30
3457
3457
  */
3458
3458
  export const VictimAbuseTypesKeys = {
3459
- missingness_root: "073-000-000-000-000-000-000",
3460
- unknown: "073-000-000-000-000-000-001",
3461
- anonymous: "073-000-000-000-000-000-002",
3462
- data_not_collected: "073-000-000-000-000-000-003",
3463
- adult_physical_assault: "073-001-000-000-000-000-000",
3464
- adult_sexual_assault: "073-002-000-000-000-000-000",
3465
3459
  arson: "073-003-000-000-000-000-000",
3466
3460
  bullying: "073-004-000-000-000-000-000",
3467
3461
  burglary: "073-005-000-000-000-000-000",
3468
- child_physical_abuse_or_neglect: "073-006-000-000-000-000-000",
3469
3462
  child_pornography: "073-007-000-000-000-000-000",
3470
- child_sexual_abuse_assault: "073-008-000-000-000-000-000",
3471
- domestic_and_or_family_violence: "073-009-000-000-000-000-000",
3472
- dui_dwi_incidents: "073-010-000-000-000-000-000",
3473
- elder_abuse: "073-011-000-000-000-000-000",
3463
+ domestic_family_violence: "073-009-000-000-000-000-000",
3464
+ dui_dwi_incident: "073-010-000-000-000-000-000",
3465
+ elder_abuse_or_neglect: "073-011-000-000-000-000-000",
3474
3466
  gang_violence: "073-012-000-000-000-000-000",
3475
3467
  hate_crime: "073-013-000-000-000-000-000",
3476
3468
  homicide: "073-014-000-000-000-000-000",
3477
- identity_theft: "073-015-000-000-000-000-000",
3469
+ identity_theft_fraud_financial_crime: "073-015-000-000-000-000-000",
3478
3470
  kidnapping_custodial: "073-016-000-000-000-000-000",
3479
3471
  kidnapping_noncustodial: "073-017-000-000-000-000-000",
3480
3472
  mass_violence: "073-018-000-000-000-000-000",
3481
- other: "073-019-000-000-000-000-000",
3482
- other_vehicular: "073-020-000-000-000-000-000",
3473
+ other_voca_ovc: "073-019-000-000-000-000-000",
3474
+ other_vehicular_victimization: "073-020-000-000-000-000-000",
3483
3475
  robbery: "073-021-000-000-000-000-000",
3484
3476
  stalking_harassment: "073-022-000-000-000-000-000",
3485
- survivors_of_homicide_victims: "073-023-000-000-000-000-000",
3477
+ survivor_of_homicide_victim: "073-023-000-000-000-000-000",
3486
3478
  teen_dating_victimization: "073-024-000-000-000-000-000",
3487
3479
  terrorism: "073-025-000-000-000-000-000",
3480
+ sexual_abuse_assault: "073-026-000-000-000-000-000",
3481
+ physical_abuse_or_neglect: "073-027-000-000-000-000-000",
3482
+ physical_assault: "073-028-000-000-000-000-000",
3483
+ commercial_sexual_exploitation_minor: "073-029-000-000-000-000-000",
3484
+ sexual_exploitation: "073-030-000-000-000-000-000",
3485
+ labor_exploitation: "073-031-000-000-000-000-000",
3486
+ female_genital_mutilation_cutting: "073-032-000-000-000-000-000",
3487
+ forced_marriage: "073-033-000-000-000-000-000",
3488
+ cyber_crimes: "073-034-000-000-000-000-000",
3488
3489
  } as const;
3489
3490
 
3490
3491
  export type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
@@ -1,276 +0,0 @@
1
- {
2
- "domain": "victim_abuse_types",
3
- "name": "Core Victim Abuse Types",
4
- "version": "1.0.0",
5
- "levels": {
6
- "0": "Unknown or Missing",
7
- "1": "Abuse / victimization type"
8
- },
9
- "entries": [
10
- {
11
- "code": "073-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
- "073-000-000-000-000-000-001",
18
- "073-000-000-000-000-000-002",
19
- "073-000-000-000-000-000-003"
20
- ],
21
- "definition": "Root group for values indicating absent, withheld, or uncollected data."
22
- },
23
- {
24
- "code": "073-000-000-000-000-000-001",
25
- "key": "unknown",
26
- "title": "Unknown",
27
- "selectable": true,
28
- "parentCode": "073-000-000-000-000-000-000",
29
- "childCodes": [],
30
- "definition": "The abuse / victimization type is unknown or cannot be determined from the available information."
31
- },
32
- {
33
- "code": "073-000-000-000-000-000-002",
34
- "key": "anonymous",
35
- "title": "Anonymous / declined to answer",
36
- "selectable": true,
37
- "parentCode": "073-000-000-000-000-000-000",
38
- "childCodes": [],
39
- "definition": "The abuse / victimization type may be withheld by preference or due to redaction; identity is anonymous or redacted."
40
- },
41
- {
42
- "code": "073-000-000-000-000-000-003",
43
- "key": "data_not_collected",
44
- "title": "Data not collected",
45
- "selectable": true,
46
- "parentCode": "073-000-000-000-000-000-000",
47
- "childCodes": [],
48
- "definition": "No attempt was made to collect the abuse / victimization type."
49
- },
50
- {
51
- "code": "073-001-000-000-000-000-000",
52
- "key": "adult_physical_assault",
53
- "title": "Adult Physical Assault (includes Aggravated and Simple Assault)",
54
- "selectable": true,
55
- "parentCode": null,
56
- "childCodes": [],
57
- "definition": "Adult physical assault, including aggravated and simple assault."
58
- },
59
- {
60
- "code": "073-002-000-000-000-000-000",
61
- "key": "adult_sexual_assault",
62
- "title": "Adult Sexual Assault",
63
- "selectable": true,
64
- "parentCode": null,
65
- "childCodes": [],
66
- "definition": "Adult sexual assault."
67
- },
68
- {
69
- "code": "073-003-000-000-000-000-000",
70
- "key": "arson",
71
- "title": "Arson",
72
- "selectable": true,
73
- "parentCode": null,
74
- "childCodes": [],
75
- "definition": "Arson."
76
- },
77
- {
78
- "code": "073-004-000-000-000-000-000",
79
- "key": "bullying",
80
- "title": "Bullying (Verbal, Cyber, or Physical)",
81
- "selectable": true,
82
- "parentCode": null,
83
- "childCodes": [],
84
- "definition": "Bullying, including verbal, cyber, or physical bullying."
85
- },
86
- {
87
- "code": "073-005-000-000-000-000-000",
88
- "key": "burglary",
89
- "title": "Burglary",
90
- "selectable": true,
91
- "parentCode": null,
92
- "childCodes": [],
93
- "definition": "Burglary."
94
- },
95
- {
96
- "code": "073-006-000-000-000-000-000",
97
- "key": "child_physical_abuse_or_neglect",
98
- "title": "Child Physical Abuse or Neglect",
99
- "selectable": true,
100
- "parentCode": null,
101
- "childCodes": [],
102
- "definition": "Child physical abuse or neglect."
103
- },
104
- {
105
- "code": "073-007-000-000-000-000-000",
106
- "key": "child_pornography",
107
- "title": "Child Pornography",
108
- "selectable": true,
109
- "parentCode": null,
110
- "childCodes": [],
111
- "definition": "Child pornography."
112
- },
113
- {
114
- "code": "073-008-000-000-000-000-000",
115
- "key": "child_sexual_abuse_assault",
116
- "title": "Child Sexual Abuse / Assault",
117
- "selectable": true,
118
- "parentCode": null,
119
- "childCodes": [],
120
- "definition": "Child sexual abuse or assault."
121
- },
122
- {
123
- "code": "073-009-000-000-000-000-000",
124
- "key": "domestic_and_or_family_violence",
125
- "title": "Domestic and/or Family Violence",
126
- "selectable": true,
127
- "parentCode": null,
128
- "childCodes": [],
129
- "definition": "Domestic and/or family violence."
130
- },
131
- {
132
- "code": "073-010-000-000-000-000-000",
133
- "key": "dui_dwi_incidents",
134
- "title": "DUI / DWI Incidents",
135
- "selectable": true,
136
- "parentCode": null,
137
- "childCodes": [],
138
- "definition": "Driving under the influence (DUI) / driving while intoxicated (DWI) incidents."
139
- },
140
- {
141
- "code": "073-011-000-000-000-000-000",
142
- "key": "elder_abuse",
143
- "title": "Elder Abuse or Neglect (Physical or Emotional)",
144
- "selectable": true,
145
- "parentCode": null,
146
- "childCodes": [],
147
- "definition": "Elder abuse or neglect, physical or emotional."
148
- },
149
- {
150
- "code": "073-012-000-000-000-000-000",
151
- "key": "gang_violence",
152
- "title": "Gang Violence",
153
- "selectable": true,
154
- "parentCode": null,
155
- "childCodes": [],
156
- "definition": "Gang violence."
157
- },
158
- {
159
- "code": "073-013-000-000-000-000-000",
160
- "key": "hate_crime",
161
- "title": "Hate Crime",
162
- "selectable": true,
163
- "parentCode": null,
164
- "childCodes": [],
165
- "definition": "Hate crime."
166
- },
167
- {
168
- "code": "073-014-000-000-000-000-000",
169
- "key": "homicide",
170
- "title": "Homicide",
171
- "selectable": true,
172
- "parentCode": null,
173
- "childCodes": [],
174
- "definition": "Homicide."
175
- },
176
- {
177
- "code": "073-015-000-000-000-000-000",
178
- "key": "identity_theft",
179
- "title": "Identity Theft / Fraud / Financial Crime",
180
- "selectable": true,
181
- "parentCode": null,
182
- "childCodes": [],
183
- "definition": "Identity theft, fraud, or financial crime."
184
- },
185
- {
186
- "code": "073-016-000-000-000-000-000",
187
- "key": "kidnapping_custodial",
188
- "title": "Kidnapping (Custodial)",
189
- "selectable": true,
190
- "parentCode": null,
191
- "childCodes": [],
192
- "definition": "Custodial kidnapping."
193
- },
194
- {
195
- "code": "073-017-000-000-000-000-000",
196
- "key": "kidnapping_noncustodial",
197
- "title": "Kidnapping (Noncustodial)",
198
- "selectable": true,
199
- "parentCode": null,
200
- "childCodes": [],
201
- "definition": "Noncustodial kidnapping."
202
- },
203
- {
204
- "code": "073-018-000-000-000-000-000",
205
- "key": "mass_violence",
206
- "title": "Mass Violence (Domestic / International)",
207
- "selectable": true,
208
- "parentCode": null,
209
- "childCodes": [],
210
- "definition": "Mass violence, domestic or international."
211
- },
212
- {
213
- "code": "073-019-000-000-000-000-000",
214
- "key": "other",
215
- "title": "Other",
216
- "selectable": true,
217
- "parentCode": null,
218
- "childCodes": [],
219
- "definition": "An abuse / victimization type not covered by the other codes. Requires accompanying free-text explanation; prefer a specific code whenever one applies."
220
- },
221
- {
222
- "code": "073-020-000-000-000-000-000",
223
- "key": "other_vehicular",
224
- "title": "Other Vehicular Victimization",
225
- "selectable": true,
226
- "parentCode": null,
227
- "childCodes": [],
228
- "definition": "Other vehicular victimization."
229
- },
230
- {
231
- "code": "073-021-000-000-000-000-000",
232
- "key": "robbery",
233
- "title": "Robbery",
234
- "selectable": true,
235
- "parentCode": null,
236
- "childCodes": [],
237
- "definition": "Robbery."
238
- },
239
- {
240
- "code": "073-022-000-000-000-000-000",
241
- "key": "stalking_harassment",
242
- "title": "Stalking / Harassment",
243
- "selectable": true,
244
- "parentCode": null,
245
- "childCodes": [],
246
- "definition": "Stalking or harassment."
247
- },
248
- {
249
- "code": "073-023-000-000-000-000-000",
250
- "key": "survivors_of_homicide_victims",
251
- "title": "Survivors of Homicide Victims",
252
- "selectable": true,
253
- "parentCode": null,
254
- "childCodes": [],
255
- "definition": "Survivors of homicide victims."
256
- },
257
- {
258
- "code": "073-024-000-000-000-000-000",
259
- "key": "teen_dating_victimization",
260
- "title": "Teen Dating Victimization",
261
- "selectable": true,
262
- "parentCode": null,
263
- "childCodes": [],
264
- "definition": "Teen dating victimization."
265
- },
266
- {
267
- "code": "073-025-000-000-000-000-000",
268
- "key": "terrorism",
269
- "title": "Terrorism (Domestic / International)",
270
- "selectable": true,
271
- "parentCode": null,
272
- "childCodes": [],
273
- "definition": "Terrorism, domestic or international."
274
- }
275
- ]
276
- }
@@ -233,18 +233,18 @@ type SectionQuestionRef = InferRawDocType<typeof sectionQuestionRefSchema>;
233
233
  declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
234
234
  _id: false;
235
235
  }, {
236
- text: string;
237
236
  type: "tip" | "warning" | "prompt";
238
- }, mongoose.Document<unknown, {}, {
239
237
  text: string;
238
+ }, mongoose.Document<unknown, {}, {
240
239
  type: "tip" | "warning" | "prompt";
240
+ text: string;
241
241
  }, {
242
242
  id: string;
243
243
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
244
244
  _id: false;
245
245
  }>> & Omit<{
246
- text: string;
247
246
  type: "tip" | "warning" | "prompt";
247
+ text: string;
248
248
  } & {
249
249
  _id: mongoose.Types.ObjectId;
250
250
  } & {
@@ -252,8 +252,8 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
252
252
  }, "id"> & {
253
253
  id: string;
254
254
  }, unknown, {
255
- text: string;
256
255
  type: "tip" | "warning" | "prompt";
256
+ text: string;
257
257
  } & {
258
258
  _id: mongoose.Types.ObjectId;
259
259
  } & {
@@ -294,18 +294,18 @@ declare const sectionSchemaDefinition: {
294
294
  type: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
295
295
  _id: false;
296
296
  }, {
297
- text: string;
298
297
  type: "tip" | "warning" | "prompt";
299
- }, mongoose.Document<unknown, {}, {
300
298
  text: string;
299
+ }, mongoose.Document<unknown, {}, {
301
300
  type: "tip" | "warning" | "prompt";
301
+ text: string;
302
302
  }, {
303
303
  id: string;
304
304
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
305
305
  _id: false;
306
306
  }>> & Omit<{
307
- text: string;
308
307
  type: "tip" | "warning" | "prompt";
308
+ text: string;
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -313,8 +313,8 @@ declare const sectionSchemaDefinition: {
313
313
  }, "id"> & {
314
314
  id: string;
315
315
  }, unknown, {
316
- text: string;
317
316
  type: "tip" | "warning" | "prompt";
317
+ text: string;
318
318
  } & {
319
319
  _id: mongoose.Types.ObjectId;
320
320
  } & {
@@ -233,18 +233,18 @@ type SectionQuestionRef = InferRawDocType<typeof sectionQuestionRefSchema>;
233
233
  declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
234
234
  _id: false;
235
235
  }, {
236
- text: string;
237
236
  type: "tip" | "warning" | "prompt";
238
- }, mongoose.Document<unknown, {}, {
239
237
  text: string;
238
+ }, mongoose.Document<unknown, {}, {
240
239
  type: "tip" | "warning" | "prompt";
240
+ text: string;
241
241
  }, {
242
242
  id: string;
243
243
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
244
244
  _id: false;
245
245
  }>> & Omit<{
246
- text: string;
247
246
  type: "tip" | "warning" | "prompt";
247
+ text: string;
248
248
  } & {
249
249
  _id: mongoose.Types.ObjectId;
250
250
  } & {
@@ -252,8 +252,8 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
252
252
  }, "id"> & {
253
253
  id: string;
254
254
  }, unknown, {
255
- text: string;
256
255
  type: "tip" | "warning" | "prompt";
256
+ text: string;
257
257
  } & {
258
258
  _id: mongoose.Types.ObjectId;
259
259
  } & {
@@ -294,18 +294,18 @@ declare const sectionSchemaDefinition: {
294
294
  type: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
295
295
  _id: false;
296
296
  }, {
297
- text: string;
298
297
  type: "tip" | "warning" | "prompt";
299
- }, mongoose.Document<unknown, {}, {
300
298
  text: string;
299
+ }, mongoose.Document<unknown, {}, {
301
300
  type: "tip" | "warning" | "prompt";
301
+ text: string;
302
302
  }, {
303
303
  id: string;
304
304
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
305
305
  _id: false;
306
306
  }>> & Omit<{
307
- text: string;
308
307
  type: "tip" | "warning" | "prompt";
308
+ text: string;
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -313,8 +313,8 @@ declare const sectionSchemaDefinition: {
313
313
  }, "id"> & {
314
314
  id: string;
315
315
  }, unknown, {
316
- text: string;
317
316
  type: "tip" | "warning" | "prompt";
317
+ text: string;
318
318
  } & {
319
319
  _id: mongoose.Types.ObjectId;
320
320
  } & {