FHIR Chat · SD Differential Element ordering · implementers

Stream: implementers

Topic: SD Differential Element ordering


view this post on Zulip RP (May 06 2021 at 01:57):

I noticed on a few SD profiles that the differentials were in the same ordering as the snapshot. Is there an expectation around this? Looking at the spec the only part I had read was that "In any differential, all the elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models". So I'm assuming that the on a differential you can place elements in any ordering?

view this post on Zulip RP (May 06 2021 at 01:59):

Nevermind there is a requirement just in a different section:
"Elements specified in the differential (and all elements in the snapshot) must be ordered as such:
Elements from the baseDefinition appear before new elements in a StructureDefinition with derivation 'specialization'
Elements must be in the same order as the baseDefinition, and child elements appear in depth-first order.
Unsliced descendants of sliced elements appear before slices"


Last updated: Apr 12 2022 at 19:14 UTC