Stream: IG creation
Topic: Same id on multiple elements
Rob Hausam (May 31 2018 at 16:55):
After temporarily removing deviceusestatement from the ig, I get different "Same id on multiple elements" errors on several of the data type profiles like:
process res: range-uv-ips (34.0379sec) Publishing Content Failed: Exception loading http://hl7.org/fhir/uv/ips/StructureDefinition/range-uv-ips: Same id on multiple elements Range.low.system in null (34.0383sec) (34.0383sec) Use -? to get command line help (34.0383sec) (34.0383sec) Stack Dump (for debugging): (34.0383sec) java.lang.Exception: Exception loading http://hl7.org/fhir/uv/ips/StructureDefinition/range-uv-ips: Same id on multiple elements Range.low.system in null at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2272) at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:1937) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:499) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:461) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4501) Caused by: org.hl7.fhir.exceptions.DefinitionException: Same id on multiple elements Range.low.system in null at org.hl7.fhir.r4.conformance.ProfileUtilities.generateIds(ProfileUtilities.java:3277) at org.hl7.fhir.r4.conformance.ProfileUtilities.setIds(ProfileUtilities.java:3220) at org.hl7.fhir.r4.conformance.ProfileUtilities.generateSnapshot(ProfileUtilities.java:375) at org.hl7.fhir.r4.context.SimpleWorkerContext.seeMetadataResource(SimpleWorkerContext.java:559) at org.hl7.fhir.r4.context.BaseWorkerContext.cacheResource(BaseWorkerContext.java:188) at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2270) ... 4 more Exception in thread "main" java.lang.NullPointerException at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4511)
Anyone have thoughts or suggestions on either of these errors?
Grahame Grieve (May 31 2018 at 22:57):
can I reproduce this one?
Rob Hausam (May 31 2018 at 23:00):
You certainly can try to - it's in https://github.com/HL7/fhir-ips, branch fhir-r4.
Rob Hausam (May 31 2018 at 23:03):
I edited ig.json and resources/ig-uv-ips.xml to temporarily remove deviceusestatement in order to get to this error.
Grahame Grieve (May 31 2018 at 23:10):
so the device use statement problem is that you don't have this:
Grahame Grieve (May 31 2018 at 23:11):
<element id="DeviceUseStatement"> <path value="DeviceUseStatement" /> </element>
Grahame Grieve (May 31 2018 at 23:11):
in theory you don't need this, but there's some bug in the snapshot generator I haven't figured out that means that you do
Rob Hausam (May 31 2018 at 23:52):
OK, well I hadn't picked up on that one, obviously, and the error message didn't help much. Good to know - thanks!
Rob Hausam (Jun 01 2018 at 00:13):
Actually, I know that error and solution rather well - it had just slipped my mind and the error messages weren't reminding me.
Last updated: Apr 12 2022 at 19:14 UTC