Stream: IG creation
Topic: Seeking advice on troubleshooting error with IG Publisher
David McKillop (Apr 12 2018 at 05:34):
After @Michel Rutten identified (resolved in a forthcoming release) the issue experienced with Forge:
https://chat.fhir.org/#narrow/stream/implementers/topic/Forge.20error.20when.20adding.20Must.20support.20.3D.20true.20to.20an.20extension
@Grahame Grieve , @Lloyd McKenzie - I’m seeking advice with troubleshooting an error encountered with the IG Publisher.
While running IG Publisher (v3.2.0-13560, gen-code v3.2.0-13475) the following error is encountered:
process res: relatedperson-levelone (25.0085sec) process res: patient-levelone (25.0351sec) Exception in thread "main" java.lang.Error: Not handled yet (sortElements: Patient.deceased[x]:boolean, dateTime) at org.hl7.fhir.r4.conformance.ProfileUtilities.sortElements(ProfileUtilities.java:2982) at org.hl7.fhir.r4.conformance.ProfileUtilities.sortDifferential(ProfileUtilities.java:2906) at org.hl7.fhir.r4.context.SimpleWorkerContext.seeMetadataResource(SimpleWorkerContext.java:508) at org.hl7.fhir.r4.context.BaseWorkerContext.cacheResource(BaseWorkerContext.java:188) at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2110) at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:1778) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:426) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:390) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4314)
The file containing this code and the IG Publisher debug file are attached.
If you need any further information, please let me know.
patient-levelone.xml IG-Publisher-DeBug-20180412.txt
Grahame Grieve (Apr 12 2018 at 05:38):
I'll have to debug that. probably over the weekend.
David McKillop (Apr 12 2018 at 05:39):
OK - thanks.
David McKillop (May 01 2018 at 01:46):
Hi @Grahame Grieve the following is probably related to the above issue:
When I run the IG Publisher (v3.4.0-13713, gen-code v3.4.0-13690) with the file
patient-dh-base.xml
the IG publisher runs fine.
When I then delete the invariant "inv-dh-pat-01" on Patient
patient-dh-base.xml
and run the IG Publisher, I get the following errors:
process type: StructureDefinition (25.0451sec) process res: patient-dh-base (25.0451sec) -tx: Terminology server: Check for supported code systems for urn:ietf:bcp:47 Error in snapshot generation: Differential for http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base with id: Patient.deceased[x]:deceasedboolean has an element that is not marked with a snapshot match Publishing Content Failed: Exception loading http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base: Snapshot for http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base does not contain an element that matches an existing differential element that has id: Patient.deceased[x]:deceasedboolean (29.0428sec) (29.0428sec) Use -? to get command line help (29.0428sec) (29.0428sec) Stack Dump (for debugging): (29.0428sec) java.lang.Exception: Exception loading http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base: Snapshot for http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base does not contain an element that matches an existing differential element that has id: Patient.deceased[x]:deceasedboolean at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2188) at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:1854) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:495) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:459) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4393) Caused by: org.hl7.fhir.exceptions.DefinitionException: Snapshot for http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/patient-dh-base does not contain an element that matches an existing differential element that has id: Patient.deceased[x]:deceasedboolean at org.hl7.fhir.r4.conformance.ProfileUtilities.generateSnapshot(ProfileUtilities.java:394) at org.hl7.fhir.r4.context.SimpleWorkerContext.seeMetadataResource(SimpleWorkerContext.java:513) at org.hl7.fhir.r4.context.BaseWorkerContext.cacheResource(BaseWorkerContext.java:188) at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2186) ... 4 more Exception in thread "main" java.lang.NullPointerException at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4403)
which seems odd as nothing relating to Patient.deceased[x]:deceasedboolean was changed.
The IG Publisher debug file is:
IG-Publisher-DeBug-20180501.txt
If you need any further info just let me know.
Thanks for your help.
Grahame Grieve (Jul 06 2018 at 20:39):
so what iG is this for?
David McKillop (Jul 09 2018 at 00:44):
@Grahame Grieve - this is actually used in for the Agency profiles "Patient Base" which is derived from "au-patient" (http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-patient.html) with further constraints.
This profile and other profiles derived from au-patient including the Agency "patient-ident" which is "Patient Base" with a mandatory identifier and "patient-ihi" which is "Patient Base" with mandatory identifier and IHI" are then used in IG's depending on the requirements for the IG.
Let me know if you need more info.
Grahame Grieve (Jul 09 2018 at 07:03):
yes how do I reproduce this?
David McKillop (Jul 09 2018 at 08:25):
Hi @Grahame Grieve - I've sent you an email with the files and the problem in the element id path. Let me know if you need anything else.
David McKillop (Dec 10 2018 at 04:03):
@Grahame Grieve FYI - The problem has been resolved as we are now able to remove the additional "deceased[x]." from the path <element id="Patient.deceased[x].deceased[x]:deceasedBoolean">, plus we are now able to mark the element with "Must Support".
Please close this ticket : https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=17165
Last updated: Apr 12 2022 at 19:14 UTC