@htilabs/platform-common-models 0.12.3 → 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.
@@ -1349,7 +1349,7 @@ export const EmploymentStatusKeys = {
1349
1349
  export type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;
1350
1350
 
1351
1351
  /**
1352
- * Key → positional code map for the `location_type` CVC domain.
1352
+ * Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.
1353
1353
  *
1354
1354
  * Domain: `location_type` · Version: 1.0.0 · Entries: 17
1355
1355
  */
@@ -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;
@@ -4085,9 +4086,9 @@ export const NeedsAssessmentChangeTypeKeys = {
4085
4086
  export type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
4086
4087
 
4087
4088
  /**
4088
- * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 55 units, with no renames, so adoption is additive and no stored ROI changes meaning).
4089
+ * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
4089
4090
  *
4090
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 71
4091
+ * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
4091
4092
  */
4092
4093
  export const CoreInformationScopeKeys = {
4093
4094
  missingness_root: "236-000-000-000-000-000-000",
@@ -4122,6 +4123,7 @@ export const CoreInformationScopeKeys = {
4122
4123
  contact_info: "236-003-001-000-000-000-000",
4123
4124
  safe_locations: "236-003-002-000-000-000-000",
4124
4125
  priorities_safety: "236-003-003-000-000-000-000",
4126
+ encounter_location: "236-003-004-000-000-000-000",
4125
4127
  services: "236-004-000-000-000-000-000",
4126
4128
  contact_history: "236-004-001-000-000-000-000",
4127
4129
  service_history: "236-004-002-000-000-000-000",
@@ -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
- }