@htilabs/platform-common-models 0.12.3 → 0.12.4

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 (35) hide show
  1. package/dist/cvcs/index.cjs +153 -21
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +164 -27
  4. package/dist/cvcs/index.d.ts +164 -27
  5. package/dist/cvcs/index.js +153 -21
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +1 -0
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +4 -3
  10. package/dist/enums/index.d.ts +4 -3
  11. package/dist/enums/index.js +1 -0
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/{index-4DiJrn7y.d.ts → index-C0J3f169.d.ts} +1 -1
  14. package/dist/{index-qreOzXYS.d.cts → index-EPjPjR0z.d.cts} +1 -1
  15. package/dist/index.cjs +154 -21
  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 +154 -21
  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 +57 -3
  28. package/src/__tests__/cvc-sot-snapshot.test.ts +5 -4
  29. package/src/__tests__/location-type-routing-invariant.test.ts +202 -0
  30. package/src/cvcs/coreInformationScope.v1.0.0.json +22 -5
  31. package/src/cvcs/index.ts +3 -0
  32. package/src/cvcs/locationType.v1.0.0.json +131 -16
  33. package/src/generated/cvc-enums.ts +4 -3
  34. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-DaDrEuTa.d.cts} +8 -8
  35. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-DaDrEuTa.d.ts} +8 -8
@@ -2,8 +2,8 @@
2
2
  "domain": "core_information_scope",
3
3
  "name": "Core Information Scope",
4
4
  "version": "1.0.0",
5
- "_status": "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits — `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch — pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
6
- "_source": "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope — codebook.csv @ 285a9f1d)",
5
+ "_status": "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 56 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits — `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 56 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch — pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
6
+ "_source": "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 55088d44 (CVC-236 v2, restructured 2026-08-14, amended 2026-10-01; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope — codebook.csv @ 55088d44)",
7
7
  "levels": {
8
8
  "0": "Unknown or Missing",
9
9
  "1": "Category (policy grain, not selectable)",
@@ -114,7 +114,7 @@
114
114
  "selectable": true,
115
115
  "parentCode": "236-001-000-000-000-000-000",
116
116
  "childCodes": [],
117
- "definition": "Addresses. Category `identifying`.",
117
+ "definition": "Addresses. Category `identifying`. LOCATION-TYPE-LOGIC 2026-10-01 (Crysta R1/R3): routed at TYPE grain since this date — the location entries whose CVC-191 reason declares share_unit addresses (the residence tier: current / prior residence · birthplace; the survivor's own whereabouts: current client/victim location · jurisdiction / routing · work / school / business · travel stop · other), each delivered with its type label. Where we met / where it happened rides encounter_location; trafficking-event locations ride victimization; legal locations ride system_involvement; the agency's own site rides nothing. The `address` assertion_domain stays mapped here for the viewing axis and the ADDRESS_* audit verbs.",
118
118
  "levelFloor": 3,
119
119
  "appRelevance": [
120
120
  "PAVE",
@@ -471,9 +471,10 @@
471
471
  "childCodes": [
472
472
  "236-003-001-000-000-000-000",
473
473
  "236-003-002-000-000-000-000",
474
- "236-003-003-000-000-000-000"
474
+ "236-003-003-000-000-000-000",
475
+ "236-003-004-000-000-000-000"
475
476
  ],
476
- "definition": "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety — the immediate-needs triage answers, one disclosure decision.",
477
+ "definition": "Contact & safety — policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units — was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety — the immediate-needs triage answers, one disclosure decision. | 2026-10-01 (LOCATION-TYPE-LOGIC, Crysta R2): fourth unit encounter_location — where we met / where it happened, the session- or event-anchored CVC-191 encounter reasons.",
477
478
  "levelFloor": 3,
478
479
  "appRelevance": [
479
480
  "PAVE",
@@ -531,6 +532,22 @@
531
532
  "shareableDefault": true,
532
533
  "specialDataType": "survivor_confidential"
533
534
  },
535
+ {
536
+ "code": "236-003-004-000-000-000-000",
537
+ "key": "encounter_location",
538
+ "title": "Encounter location (where we met / where it happened)",
539
+ "selectable": true,
540
+ "parentCode": "236-003-000-000-000-000-000",
541
+ "childCodes": [],
542
+ "definition": "Encounter location (where we met / where it happened). Category `contact`. NEW 2026-10-01 (LOCATION-TYPE-LOGIC, Crysta R2): the location entries whose CVC-191 reason is session- or event-anchored — Meet / contact (the session card's Meetup / Incident role) and Incident — authorized as ONE disclosure decision, separate from Addresses. Why it exists: the session card's Meetup / Incident location is encounter-scoped (ADDRESS_INTEGRATION_PLAN row 3 — a meetup point that belongs to no person), so it was never on the survivor's record and never reached a share; Nate's PAVE 2.0 audit found the same hole from the other direction. Homed under Contact & safety on the 2026-09-29 R1 reasoning: where the survivor was found or met is the safety fact the next advocate needs. Routing is read from CVC-191 (`share_unit: encounter_location` on MEET_LOC + INCIDENT), never hand-listed here; the delivered copy carries each entry with its type label and the session it belongs to. The survivor's own current location stays under Addresses; the agency's own site rides nothing. UDD: capture.encounter_location (apps PAVE + Thread, assertion_domain address). Presets: full_collab (ROI) · Thread service_referral_packet + mandatory_report (derivation for veto, 2026-09-29 shape).",
543
+ "levelFloor": 3,
544
+ "appRelevance": [
545
+ "PAVE",
546
+ "Thread"
547
+ ],
548
+ "shareableDefault": true,
549
+ "specialDataType": "survivor_confidential"
550
+ },
534
551
  {
535
552
  "code": "236-004-000-000-000-000-000",
536
553
  "key": "services",
package/src/cvcs/index.ts CHANGED
@@ -62,6 +62,9 @@ import sexProviderSubroleSot from "./sexProviderSubrole.v1.0.0.json" with { type
62
62
  import relationshipTiesSot from "./relationshipTies.v1.0.0.json" with { type: "json" };
63
63
  import personRelationshipsSot from "./personRelationships.v1.0.0.json" with { type: "json" };
64
64
  import employmentStatusSot from "./employmentStatus.v1.0.0.json" with { type: "json" };
65
+ // CVC-191 — rows hand-authored 2026-04-22; the per-reason share-routing columns
66
+ // (tier · anchors · anchorDefault · shareUnit · safetyDefault) are overlaid from
67
+ // prototype canon by scripts/gen-location-type.py; re-run, don't hand-edit them.
65
68
  import locationTypeSot from "./locationType.v1.0.0.json" with { type: "json" };
66
69
  import referralEntityCategorySot from "./referralEntityCategory.v1.0.0.json" with { type: "json" };
67
70
  import incomeBenefitsSourcesSot from "./incomeBenefitsSources.v1.0.0.json" with { type: "json" };
@@ -2,6 +2,7 @@
2
2
  "domain": "location_type",
3
3
  "name": "Core Location Type",
4
4
  "version": "1.0.0",
5
+ "_source": "Rows: hand-authored 2026-04-22 from the April Notion codebook export (co-8ff.5.12); codes, keys, titles and definitions are unchanged since. LOGIC columns (tier · anchors · anchorDefault · shareUnit · safetyDefault): htilabstech/prototype/data/cvcs/core_location_type.yaml @ 55088d44 (CVC-191 v1.1, logic amended 2026-10-01; read from origin/main; cross-checked against htilabstech/prototype/Final CVCs/Location (IC-4)/core - location_type — codebook 1.csv + 2.csv @ 55088d44), overlaid by scripts/gen-location-type.py. NOT absorbed: 8 canon rows the package does not publish (TRAFFICKING_OCCURRENCE, VICTIM_IDENTIFICATION, COMMERCIAL_SEX_AD_POSTING, TRAFFICKING_RECRUITMENT, BIRTHPLACE, COURT_LOCATION, LE_INTERVIEW_LOCATION, LE_AGENCY_LOCATION) and the 4 labels canon reworded on 2026-08-28.",
5
6
  "levels": {
6
7
  "0": "Unknown or Missing",
7
8
  "1": "Category"
@@ -27,7 +28,12 @@
27
28
  "selectable": true,
28
29
  "parentCode": "191-000-000-000-000-000-000",
29
30
  "childCodes": [],
30
- "definition": "Unknown or cannot be determined from the available information."
31
+ "definition": "Unknown or cannot be determined from the available information.",
32
+ "tier": "sentinel",
33
+ "anchors": [],
34
+ "anchorDefault": null,
35
+ "shareUnit": null,
36
+ "safetyDefault": null
31
37
  },
32
38
  {
33
39
  "code": "191-000-000-000-000-000-002",
@@ -36,7 +42,12 @@
36
42
  "selectable": true,
37
43
  "parentCode": "191-000-000-000-000-000-000",
38
44
  "childCodes": [],
39
- "definition": "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
45
+ "definition": "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
46
+ "tier": "sentinel",
47
+ "anchors": [],
48
+ "anchorDefault": null,
49
+ "shareUnit": null,
50
+ "safetyDefault": null
40
51
  },
41
52
  {
42
53
  "code": "191-000-000-000-000-000-003",
@@ -45,7 +56,12 @@
45
56
  "selectable": true,
46
57
  "parentCode": "191-000-000-000-000-000-000",
47
58
  "childCodes": [],
48
- "definition": "No attempt was made to collect the information."
59
+ "definition": "No attempt was made to collect the information.",
60
+ "tier": "sentinel",
61
+ "anchors": [],
62
+ "anchorDefault": null,
63
+ "shareUnit": null,
64
+ "safetyDefault": null
49
65
  },
50
66
  {
51
67
  "code": "191-001-000-000-000-000-000",
@@ -54,7 +70,14 @@
54
70
  "selectable": true,
55
71
  "parentCode": null,
56
72
  "childCodes": [],
57
- "definition": "Where the client/person currently resides (residential location)."
73
+ "definition": "Where the client/person currently resides (residential location).",
74
+ "tier": "residence",
75
+ "anchors": [
76
+ "person"
77
+ ],
78
+ "anchorDefault": "person",
79
+ "shareUnit": "addresses",
80
+ "safetyDefault": "ask"
58
81
  },
59
82
  {
60
83
  "code": "191-002-000-000-000-000-000",
@@ -63,7 +86,16 @@
63
86
  "selectable": true,
64
87
  "parentCode": null,
65
88
  "childCodes": [],
66
- "definition": "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene)."
89
+ "definition": "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
90
+ "tier": "service",
91
+ "anchors": [
92
+ "service_instance",
93
+ "agency_program",
94
+ "person"
95
+ ],
96
+ "anchorDefault": "service_instance",
97
+ "shareUnit": "service_history",
98
+ "safetyDefault": "ask"
67
99
  },
68
100
  {
69
101
  "code": "191-003-000-000-000-000-000",
@@ -72,7 +104,14 @@
72
104
  "selectable": true,
73
105
  "parentCode": null,
74
106
  "childCodes": [],
75
- "definition": "Where the client/victim/caller is physically located at the time of contact or service (operational safety location)."
107
+ "definition": "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
108
+ "tier": "encounter",
109
+ "anchors": [
110
+ "person"
111
+ ],
112
+ "anchorDefault": "person",
113
+ "shareUnit": "addresses",
114
+ "safetyDefault": "ask"
76
115
  },
77
116
  {
78
117
  "code": "191-004-000-000-000-000-000",
@@ -81,7 +120,16 @@
81
120
  "selectable": true,
82
121
  "parentCode": null,
83
122
  "childCodes": [],
84
- "definition": "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site)."
123
+ "definition": "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
124
+ "tier": "encounter",
125
+ "anchors": [
126
+ "session",
127
+ "event",
128
+ "person"
129
+ ],
130
+ "anchorDefault": "session",
131
+ "shareUnit": "encounter_location",
132
+ "safetyDefault": "ask"
85
133
  },
86
134
  {
87
135
  "code": "191-005-000-000-000-000-000",
@@ -90,7 +138,14 @@
90
138
  "selectable": true,
91
139
  "parentCode": null,
92
140
  "childCodes": [],
93
- "definition": "Where the client/person previously resided (historical residential location)."
141
+ "definition": "Where the client/person previously resided (historical residential location).",
142
+ "tier": "residence",
143
+ "anchors": [
144
+ "person"
145
+ ],
146
+ "anchorDefault": "person",
147
+ "shareUnit": "addresses",
148
+ "safetyDefault": "ask"
94
149
  },
95
150
  {
96
151
  "code": "191-006-000-000-000-000-000",
@@ -99,7 +154,14 @@
99
154
  "selectable": true,
100
155
  "parentCode": null,
101
156
  "childCodes": [],
102
- "definition": "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area)."
157
+ "definition": "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
158
+ "tier": "encounter",
159
+ "anchors": [
160
+ "person"
161
+ ],
162
+ "anchorDefault": "person",
163
+ "shareUnit": "addresses",
164
+ "safetyDefault": "ask"
103
165
  },
104
166
  {
105
167
  "code": "191-007-000-000-000-000-000",
@@ -108,7 +170,14 @@
108
170
  "selectable": true,
109
171
  "parentCode": null,
110
172
  "childCodes": [],
111
- "definition": "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps."
173
+ "definition": "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
174
+ "tier": "derived",
175
+ "anchors": [
176
+ "person"
177
+ ],
178
+ "anchorDefault": "person",
179
+ "shareUnit": "commercial_activity",
180
+ "safetyDefault": null
112
181
  },
113
182
  {
114
183
  "code": "191-008-000-000-000-000-000",
@@ -117,7 +186,15 @@
117
186
  "selectable": true,
118
187
  "parentCode": null,
119
188
  "childCodes": [],
120
- "definition": "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds."
189
+ "definition": "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
190
+ "tier": "encounter",
191
+ "anchors": [
192
+ "person",
193
+ "event"
194
+ ],
195
+ "anchorDefault": "person",
196
+ "shareUnit": "addresses",
197
+ "safetyDefault": "ask"
121
198
  },
122
199
  {
123
200
  "code": "191-009-000-000-000-000-000",
@@ -126,7 +203,14 @@
126
203
  "selectable": true,
127
204
  "parentCode": null,
128
205
  "childCodes": [],
129
- "definition": "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity."
206
+ "definition": "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
207
+ "tier": "encounter",
208
+ "anchors": [
209
+ "person"
210
+ ],
211
+ "anchorDefault": "person",
212
+ "shareUnit": "addresses",
213
+ "safetyDefault": "ask"
130
214
  },
131
215
  {
132
216
  "code": "191-010-000-000-000-000-000",
@@ -135,7 +219,14 @@
135
219
  "selectable": true,
136
220
  "parentCode": null,
137
221
  "childCodes": [],
138
- "definition": "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location."
222
+ "definition": "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
223
+ "tier": "derived",
224
+ "anchors": [
225
+ "person"
226
+ ],
227
+ "anchorDefault": "person",
228
+ "shareUnit": "commercial_activity",
229
+ "safetyDefault": null
139
230
  },
140
231
  {
141
232
  "code": "191-011-000-000-000-000-000",
@@ -144,7 +235,14 @@
144
235
  "selectable": true,
145
236
  "parentCode": null,
146
237
  "childCodes": [],
147
- "definition": "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor)."
238
+ "definition": "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
239
+ "tier": "service",
240
+ "anchors": [
241
+ "agency_program"
242
+ ],
243
+ "anchorDefault": "agency_program",
244
+ "shareUnit": null,
245
+ "safetyDefault": "safe"
148
246
  },
149
247
  {
150
248
  "code": "191-012-000-000-000-000-000",
@@ -153,7 +251,16 @@
153
251
  "selectable": true,
154
252
  "parentCode": null,
155
253
  "childCodes": [],
156
- "definition": "A catch-all value used when none of the defined location types apply or when the role/context is unclear."
254
+ "definition": "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
255
+ "tier": "encounter",
256
+ "anchors": [
257
+ "person",
258
+ "session",
259
+ "event"
260
+ ],
261
+ "anchorDefault": "person",
262
+ "shareUnit": "addresses",
263
+ "safetyDefault": "ask"
157
264
  },
158
265
  {
159
266
  "code": "191-013-000-000-000-000-000",
@@ -162,7 +269,15 @@
162
269
  "selectable": true,
163
270
  "parentCode": null,
164
271
  "childCodes": [],
165
- "definition": "Location associated with an incident (e.g., where an event occurred, was reported, or was investigated), distinct from current residence, jurisdiction/routing, or service delivery context."
272
+ "definition": "Location associated with an incident (e.g., where an event occurred, was reported, or was investigated), distinct from current residence, jurisdiction/routing, or service delivery context.",
273
+ "tier": "encounter",
274
+ "anchors": [
275
+ "session",
276
+ "event"
277
+ ],
278
+ "anchorDefault": "event",
279
+ "shareUnit": "encounter_location",
280
+ "safetyDefault": "ask"
166
281
  }
167
282
  ]
168
283
  }
@@ -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
  */
@@ -4085,9 +4085,9 @@ export const NeedsAssessmentChangeTypeKeys = {
4085
4085
  export type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
4086
4086
 
4087
4087
  /**
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).
4088
+ * 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
4089
  *
4090
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 71
4090
+ * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
4091
4091
  */
4092
4092
  export const CoreInformationScopeKeys = {
4093
4093
  missingness_root: "236-000-000-000-000-000-000",
@@ -4122,6 +4122,7 @@ export const CoreInformationScopeKeys = {
4122
4122
  contact_info: "236-003-001-000-000-000-000",
4123
4123
  safe_locations: "236-003-002-000-000-000-000",
4124
4124
  priorities_safety: "236-003-003-000-000-000-000",
4125
+ encounter_location: "236-003-004-000-000-000-000",
4125
4126
  services: "236-004-000-000-000-000-000",
4126
4127
  contact_history: "236-004-001-000-000-000-000",
4127
4128
  service_history: "236-004-002-000-000-000-000",
@@ -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
- type: "tip" | "warning" | "prompt";
237
236
  text: string;
238
- }, mongoose.Document<unknown, {}, {
239
237
  type: "tip" | "warning" | "prompt";
238
+ }, mongoose.Document<unknown, {}, {
240
239
  text: string;
240
+ type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
243
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
244
244
  _id: false;
245
245
  }>> & Omit<{
246
- type: "tip" | "warning" | "prompt";
247
246
  text: string;
247
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
256
255
  text: string;
256
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
298
297
  text: string;
299
- }, mongoose.Document<unknown, {}, {
300
298
  type: "tip" | "warning" | "prompt";
299
+ }, mongoose.Document<unknown, {}, {
301
300
  text: string;
301
+ type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
304
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
305
305
  _id: false;
306
306
  }>> & Omit<{
307
- type: "tip" | "warning" | "prompt";
308
307
  text: string;
308
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
317
316
  text: string;
317
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
237
236
  text: string;
238
- }, mongoose.Document<unknown, {}, {
239
237
  type: "tip" | "warning" | "prompt";
238
+ }, mongoose.Document<unknown, {}, {
240
239
  text: string;
240
+ type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
243
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
244
244
  _id: false;
245
245
  }>> & Omit<{
246
- type: "tip" | "warning" | "prompt";
247
246
  text: string;
247
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
256
255
  text: string;
256
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
298
297
  text: string;
299
- }, mongoose.Document<unknown, {}, {
300
298
  type: "tip" | "warning" | "prompt";
299
+ }, mongoose.Document<unknown, {}, {
301
300
  text: string;
301
+ type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
304
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
305
305
  _id: false;
306
306
  }>> & Omit<{
307
- type: "tip" | "warning" | "prompt";
308
307
  text: string;
308
+ type: "tip" | "warning" | "prompt";
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
- type: "tip" | "warning" | "prompt";
317
316
  text: string;
317
+ type: "tip" | "warning" | "prompt";
318
318
  } & {
319
319
  _id: mongoose.Types.ObjectId;
320
320
  } & {