Stream: conformance
Topic: sdf-15 and Logical Models
Alexander Zautke (Jul 29 2019 at 21:54):
With the new implementation of the mapping language from @Ewout Kramer coming up soon I recently started develop a series of logical models to describe some custom input formats. One invariant on StructureDefinition regarding logical models always got me wondering, though. sdf-15 defines that the first element in a snapshot has no type unless it's a logical model. What was the reason for including logical models as an exception in that rule in R4? Why would the type be of relevance on the first element for a logical model?
Alexander Zautke (Jul 30 2019 at 11:38):
I can on find the proposed backport to R3 in Gforge #20335, but not the original tracker item. Any pointers?
Grahame Grieve (Jul 30 2019 at 11:39):
Alexander Zautke (Jul 30 2019 at 11:44):
How are these related? That tracker item talks about sdf-12 which is supposed to be dropped in #20336
Grahame Grieve (Jul 30 2019 at 11:47):
there was a note that they were related somewhere? I'm not sure
Alexander Zautke (Jul 30 2019 at 11:57):
It just seems random that the type does not matter for resources but is important for logical models. In the end it does not hurt anyone to have the element in the logical model, but why not leave out?
Grahame Grieve (Jul 30 2019 at 11:58):
I think it's a bit different. Resources, they don't have a type. But I don't know that we can say, logical models will never have a type
Alexander Zautke (Jul 30 2019 at 11:59):
But thanks for checking :)
Alexander Zautke (Jul 30 2019 at 12:03):
Wouldn't the type be implicitly defined by the baseDefinition, meaning that it's always of tye "Element"? Does the invariant imply that you could also leave it out?
Grahame Grieve (Jul 30 2019 at 12:04):
... I'm not sure. I wonder if we were just hedging our bets?
Alexander Zautke (Jul 30 2019 at 12:08):
Mhm, I see. The real question would be what is the type if you would have DomainResource as the base definition? Still Element? Not that this would be supported by current tooling, but it would be possible, right?
Grahame Grieve (Jul 30 2019 at 12:09):
no at the moment you couldn't do that. but logical models are used for things much different to that - v2, openEHR, XDS....
Grahame Grieve (Jul 30 2019 at 12:09):
those things may not be class models in the classic sense
Alexander Zautke (Jul 30 2019 at 12:19):
Ok, so the safe way would be to leave it open for logical models, though we don't know what else could be used as the type instead of 'Element'. Or if it could be left out optionally.
Alexander Zautke (Jul 30 2019 at 12:20):
Thanks!
Last updated: Apr 12 2022 at 19:14 UTC