You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single-element slices (`max:1`) keep the existing single-item API.
281
+
282
+
### Reference Types for Family Types
283
+
284
+
When a reference target is a family type (e.g. `Resource`, `DomainResource`), the generated type uses `Reference<string/* Resource */>` instead of `Reference<"Resource">`. This makes narrower profile references like `Reference<"Patient">` assignable to the base type field.
285
+
286
+
Detection uses `mkIsFamilyType(tsIndex)` which checks `schema.typeFamily.resources.length > 0`.
287
+
288
+
### Slice Field Validation
289
+
290
+
`validate()` checks required fields inside matched slice elements via `validateSliceFields`. For constrained choice slices (e.g. BP `component.value[x]` restricted to `valueQuantity`), the variant is validated as required:
291
+
292
+
```
293
+
"observation-bp.component[SystolicBP].valueQuantity is required"
0 commit comments