Skip to content

Incorrect generation of differential when using <element-name> only <datatype> or <datatype> #1578

@vayvy

Description

@vayvy

When constraining type choice elements with "only" to specific datatypes, the slicing in the differential is open, but should be closed and constrained to the defined dataytypes.

Example

FSH
* collected[x] only dateTime or Period

Differential
{ "id": "Specimen.collection.collected[x]", "path": "Specimen.collection.collected[x]", "slicing": { "discriminator": [ { "type": "type", "path": "$this" } ], "ordered": false, "rules": "open" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions