@htilabs/platform-common-models 0.8.0 → 0.8.1

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.
@@ -0,0 +1,96 @@
1
+ {
2
+ "domain": "service_audience",
3
+ "name": "Core Service Audience",
4
+ "version": "1.0.0",
5
+ "levels": {
6
+ "0": "Unknown or Missing",
7
+ "1": "Service audience"
8
+ },
9
+ "entries": [
10
+ {
11
+ "code": "045-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
+ "045-000-000-000-000-000-001",
18
+ "045-000-000-000-000-000-002",
19
+ "045-000-000-000-000-000-003"
20
+ ],
21
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
22
+ },
23
+ {
24
+ "code": "045-000-000-000-000-000-001",
25
+ "key": "unknown",
26
+ "title": "Unknown",
27
+ "selectable": true,
28
+ "parentCode": "045-000-000-000-000-000-000",
29
+ "childCodes": [],
30
+ "definition": "The audience for the service is unknown or cannot be determined from the available information."
31
+ },
32
+ {
33
+ "code": "045-000-000-000-000-000-002",
34
+ "key": "anonymous",
35
+ "title": "Anonymous / declined to answer",
36
+ "selectable": true,
37
+ "parentCode": "045-000-000-000-000-000-000",
38
+ "childCodes": [],
39
+ "definition": "The service audience may be withheld by preference or due to redaction; identity is anonymous or redacted."
40
+ },
41
+ {
42
+ "code": "045-000-000-000-000-000-003",
43
+ "key": "data_not_collected",
44
+ "title": "Data not collected",
45
+ "selectable": true,
46
+ "parentCode": "045-000-000-000-000-000-000",
47
+ "childCodes": [],
48
+ "definition": "No attempt was made to collect the service audience."
49
+ },
50
+ {
51
+ "code": "045-001-000-000-000-000-000",
52
+ "key": "primary_victim",
53
+ "title": "Primary victim",
54
+ "selectable": true,
55
+ "parentCode": null,
56
+ "childCodes": [],
57
+ "definition": "The direct victim / survivor of the crime or victimization who is the primary recipient of the service."
58
+ },
59
+ {
60
+ "code": "045-002-000-000-000-000-000",
61
+ "key": "eligible_family_member",
62
+ "title": "Eligible family member",
63
+ "selectable": true,
64
+ "parentCode": null,
65
+ "childCodes": [],
66
+ "definition": "A family member of the primary victim who is themselves eligible to receive services (e.g., a secondary victim or dependent)."
67
+ },
68
+ {
69
+ "code": "045-003-000-000-000-000-000",
70
+ "key": "third_party",
71
+ "title": "Third party",
72
+ "selectable": true,
73
+ "parentCode": null,
74
+ "childCodes": [],
75
+ "definition": "A third party who is not the primary victim or an eligible family member but is the recipient of the service (e.g., a witness, bystander, or community contact)."
76
+ },
77
+ {
78
+ "code": "045-004-000-000-000-000-000",
79
+ "key": "offender",
80
+ "title": "Offender",
81
+ "selectable": true,
82
+ "parentCode": null,
83
+ "childCodes": [],
84
+ "definition": "A person who is the offender / perpetrator in the relevant context and is the recipient of the service (e.g., diversion or rehabilitative services)."
85
+ },
86
+ {
87
+ "code": "045-005-000-000-000-000-000",
88
+ "key": "personnel",
89
+ "title": "Personnel",
90
+ "selectable": true,
91
+ "parentCode": null,
92
+ "childCodes": [],
93
+ "definition": "Agency personnel, staff, volunteers, or other professionals who are the recipients of the service (e.g., training, debriefing, or staff support)."
94
+ }
95
+ ]
96
+ }
@@ -0,0 +1,276 @@
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
+ }
@@ -3303,3 +3303,150 @@ export const ThreadTypeKeys = {
3303
3303
  } as const;
3304
3304
 
3305
3305
  export type ThreadTypeKey = keyof typeof ThreadTypeKeys;
3306
+
3307
+ /**
3308
+ * Key → positional code map for the `living_situation` CVC domain.
3309
+ *
3310
+ * Domain: `living_situation` · Version: 1.0.0 · Entries: 22
3311
+ */
3312
+ export const LivingSituationKeys = {
3313
+ missingness_root: "192-000-000-000-000-000-000",
3314
+ unknown: "192-000-000-000-000-000-001",
3315
+ anonymous: "192-000-000-000-000-000-002",
3316
+ data_not_collected: "192-000-000-000-000-000-003",
3317
+ unsheltered: "192-001-000-000-000-000-000",
3318
+ emergency_shelter: "192-002-000-000-000-000-000",
3319
+ safe_haven: "192-003-000-000-000-000-000",
3320
+ dv_shelter_safe_house: "192-004-000-000-000-000-000",
3321
+ homeless_unspecified: "192-005-000-000-000-000-000",
3322
+ hospital_medical: "192-006-000-000-000-000-000",
3323
+ psychiatric_residential_facility: "192-007-000-000-000-000-000",
3324
+ substance_use_treatment_residential: "192-008-000-000-000-000-000",
3325
+ incarcerated: "192-009-000-000-000-000-000",
3326
+ cw_foster_care: "192-010-000-000-000-000-000",
3327
+ cw_kinship: "192-011-000-000-000-000-000",
3328
+ long_term_care: "192-012-000-000-000-000-000",
3329
+ transitional_housing_program: "192-013-000-000-000-000-000",
3330
+ temp_housing_program: "192-014-000-000-000-000-000",
3331
+ hotel_motel_non_shelter: "192-015-000-000-000-000-000",
3332
+ own_rent: "192-016-000-000-000-000-000",
3333
+ with_family_friends: "192-017-000-000-000-000-000",
3334
+ other: "192-018-000-000-000-000-000",
3335
+ } as const;
3336
+
3337
+ export type LivingSituationKey = keyof typeof LivingSituationKeys;
3338
+
3339
+ /**
3340
+ * Key → positional code map for the `service_audience` CVC domain.
3341
+ *
3342
+ * Domain: `service_audience` · Version: 1.0.0 · Entries: 9
3343
+ */
3344
+ export const ServiceAudienceKeys = {
3345
+ missingness_root: "045-000-000-000-000-000-000",
3346
+ unknown: "045-000-000-000-000-000-001",
3347
+ anonymous: "045-000-000-000-000-000-002",
3348
+ data_not_collected: "045-000-000-000-000-000-003",
3349
+ primary_victim: "045-001-000-000-000-000-000",
3350
+ eligible_family_member: "045-002-000-000-000-000-000",
3351
+ third_party: "045-003-000-000-000-000-000",
3352
+ offender: "045-004-000-000-000-000-000",
3353
+ personnel: "045-005-000-000-000-000-000",
3354
+ } as const;
3355
+
3356
+ export type ServiceAudienceKey = keyof typeof ServiceAudienceKeys;
3357
+
3358
+ /**
3359
+ * Key → positional code map for the `hmis_relationship_to_hoh` CVC domain.
3360
+ *
3361
+ * Domain: `hmis_relationship_to_hoh` · Version: 1.0.0 · Entries: 9
3362
+ */
3363
+ export const HmisRelationshipToHohKeys = {
3364
+ missingness_root: "129-000-000-000-000-000-000",
3365
+ unknown: "129-000-000-000-000-000-001",
3366
+ anonymous: "129-000-000-000-000-000-002",
3367
+ data_not_collected: "129-000-000-000-000-000-003",
3368
+ self_hoh: "129-001-000-000-000-000-000",
3369
+ child_of_hoh: "129-002-000-000-000-000-000",
3370
+ spouse_or_partner_of_hoh: "129-003-000-000-000-000-000",
3371
+ other_relative_of_hoh: "129-004-000-000-000-000-000",
3372
+ non_relation_member: "129-005-000-000-000-000-000",
3373
+ } as const;
3374
+
3375
+ export type HmisRelationshipToHohKey = keyof typeof HmisRelationshipToHohKeys;
3376
+
3377
+ /**
3378
+ * Key → positional code map for the `victim_abuse_types` CVC domain.
3379
+ *
3380
+ * Domain: `victim_abuse_types` · Version: 1.0.0 · Entries: 29
3381
+ */
3382
+ export const VictimAbuseTypesKeys = {
3383
+ missingness_root: "073-000-000-000-000-000-000",
3384
+ unknown: "073-000-000-000-000-000-001",
3385
+ anonymous: "073-000-000-000-000-000-002",
3386
+ data_not_collected: "073-000-000-000-000-000-003",
3387
+ adult_physical_assault: "073-001-000-000-000-000-000",
3388
+ adult_sexual_assault: "073-002-000-000-000-000-000",
3389
+ arson: "073-003-000-000-000-000-000",
3390
+ bullying: "073-004-000-000-000-000-000",
3391
+ burglary: "073-005-000-000-000-000-000",
3392
+ child_physical_abuse_or_neglect: "073-006-000-000-000-000-000",
3393
+ child_pornography: "073-007-000-000-000-000-000",
3394
+ child_sexual_abuse_assault: "073-008-000-000-000-000-000",
3395
+ domestic_and_or_family_violence: "073-009-000-000-000-000-000",
3396
+ dui_dwi_incidents: "073-010-000-000-000-000-000",
3397
+ elder_abuse: "073-011-000-000-000-000-000",
3398
+ gang_violence: "073-012-000-000-000-000-000",
3399
+ hate_crime: "073-013-000-000-000-000-000",
3400
+ homicide: "073-014-000-000-000-000-000",
3401
+ identity_theft: "073-015-000-000-000-000-000",
3402
+ kidnapping_custodial: "073-016-000-000-000-000-000",
3403
+ kidnapping_noncustodial: "073-017-000-000-000-000-000",
3404
+ mass_violence: "073-018-000-000-000-000-000",
3405
+ other: "073-019-000-000-000-000-000",
3406
+ other_vehicular: "073-020-000-000-000-000-000",
3407
+ robbery: "073-021-000-000-000-000-000",
3408
+ stalking_harassment: "073-022-000-000-000-000-000",
3409
+ survivors_of_homicide_victims: "073-023-000-000-000-000-000",
3410
+ teen_dating_victimization: "073-024-000-000-000-000-000",
3411
+ terrorism: "073-025-000-000-000-000-000",
3412
+ } as const;
3413
+
3414
+ export type VictimAbuseTypesKey = keyof typeof VictimAbuseTypesKeys;
3415
+
3416
+ /**
3417
+ * Key → positional code map for the `ht_type` CVC domain.
3418
+ *
3419
+ * Domain: `ht_type` · Version: 1.0.0 · Entries: 7
3420
+ */
3421
+ export const HtTypeKeys = {
3422
+ missingness_root: "072-000-000-000-000-000-000",
3423
+ unknown: "072-000-000-000-000-000-001",
3424
+ anonymous: "072-000-000-000-000-000-002",
3425
+ data_not_collected: "072-000-000-000-000-000-003",
3426
+ sex: "072-001-000-000-000-000-000",
3427
+ labor: "072-002-000-000-000-000-000",
3428
+ sex_and_labor: "072-003-000-000-000-000-000",
3429
+ } as const;
3430
+
3431
+ export type HtTypeKey = keyof typeof HtTypeKeys;
3432
+
3433
+ /**
3434
+ * Key → positional code map for the `relationship_concern` CVC domain (PROVISIONAL CVC-231 — pending codebook ratification).
3435
+ *
3436
+ * Domain: `relationship_concern` · Version: 1.0.0 · Entries: 11
3437
+ */
3438
+ export const RelationshipConcernKeys = {
3439
+ missingness_root: "231-000-000-000-000-000-000",
3440
+ unknown: "231-000-000-000-000-000-001",
3441
+ anonymous: "231-000-000-000-000-000-002",
3442
+ data_not_collected: "231-000-000-000-000-000-003",
3443
+ appears_controlling: "231-001-000-000-000-000-000",
3444
+ is_much_older: "231-002-000-000-000-000-000",
3445
+ physically_abusive: "231-003-000-000-000-000-000",
3446
+ emotionally_abusive: "231-004-000-000-000-000-000",
3447
+ has_legal_involvement: "231-005-000-000-000-000-000",
3448
+ is_known_trafficker_or_suspect: "231-006-000-000-000-000-000",
3449
+ other_concern: "231-007-000-000-000-000-000",
3450
+ } as const;
3451
+
3452
+ export type RelationshipConcernKey = keyof typeof RelationshipConcernKeys;