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" }