Stream: committers
Topic: Snapshot element reptition
Gino Canessa (Feb 16 2022 at 21:43):
Hi all, came across something I did not expect and was wondering if it is valid or not. In an IG, a StructureDefinition.snapshot
has the same base element repeated multiple times - e.g., the same id
and path
with different other contents.
Is this allowed/expected/desired? I cannot find a constraint preventing it, but I also am not sure how to process the results.
David Pyke (Feb 16 2022 at 21:55):
So, they repeated the element instead of creating an array?
Grahame Grieve (Feb 16 2022 at 21:59):
the same id and path with different other contents
should not be. ids must be unique within a snapshot
Gino Canessa (Feb 16 2022 at 22:11):
David Pyke said:
So, they repeated the element instead of creating an array?
No, two consecutive StructureDefinition.snapshot.element
array items have the same id
and path
.
Gino Canessa (Feb 16 2022 at 22:22):
Thanks, found it: sdf-16
in StructureDefinition constraints. So I can just pass however I want to pass (likely ignore second) in my code.
As an FYI, I am running into this during package resolution from the current US Core: US Core current version is 4.1.0
, which has a dependency on hl7.fhir.uv.sdc
version 2.7.0
.
hl7.fhir.uv.sdc#2.7.0
has StructureDefinition-sdc-questionnaireresponse.json
with this error. The current version (STU2) does not have this problem. Is there a process for fixing that kind of issue that does not involve re-publication?
Grahame Grieve (Feb 16 2022 at 22:29):
no
Brian Postlethwaite (Feb 21 2022 at 10:28):
There is a newer snapshot of SDC that you can now use too.
Last updated: Apr 12 2022 at 19:14 UTC