FHIR Chat · All element definitions must have unique ids · hapi

Stream: hapi

Topic: All element definitions must have unique ids


view this post on Zulip John Grimes (Jun 14 2017 at 07:14):

Why does HAPI insist that elements within StructureDefinitions have a defined id element? It appears to be optional in the spec.

Is there a way to suppress this behaviour when validating a StructureDefinition resource?

view this post on Zulip Grahame Grieve (Jun 14 2017 at 12:27):

structure definition is special, and ids are required

view this post on Zulip Richard Ettema (Jun 14 2017 at 14:13):

You can see this in the StructureDefinition Constraints, http://hl7.org/fhir/STU3/structuredefinition.html#invs, with the following invariant:

  • sdf-14: All element definitions must have an id (expression : snapshot.element.all(id.exists()) and differential.element.all(id.exists()))

view this post on Zulip John Grimes (Jun 15 2017 at 00:11):

@Grahame Grieve @Richard Ettema Thanks for that, I can see that now.

Problem is that Forge cannot currently populate these IDs for me, so I have to manually generate every ID in both the snapshot and differential currently. I am following up this issue with them, they say it will be resolved shortly.

What tooling do you use to support you in the creation of profiles?

view this post on Zulip Grahame Grieve (Jun 15 2017 at 01:43):

if you use the IG publisher, it will automatically populate them


Last updated: Apr 12 2022 at 19:14 UTC