Stream: committers
Topic: New IG p[ublisher doesn't like formerly working JSON
David Pyke (Mar 06 2019 at 16:55):
the eLTSS IG ServicePlan Logical model worked until today. Now it breaks with [java] java.lang.Exception: Error parsing /home/loftwyr/FHIR/eLTSS/src/resources/structuredefinition-eLTSSServicePlanModel: com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonArray
I'm not sure what changed with the parser but the JSON validates with other tools. What do I need to fix?
The file can be found here: https://github.com/HL7/eLTSS/blob/master/src/resources/structuredefinition-eLTSSServicePlanModel.json
David Pyke (Mar 06 2019 at 16:58):
Full build log: http://build.fhir.org/ig/HL7/eLTSS/build.log
Grahame Grieve (Mar 06 2019 at 21:04):
it's a version issue. what version is it supposed to be? The IG publisher is reading it as R4 - is it?
David Pyke (Mar 06 2019 at 21:04):
It's supposed to be, yes
Grahame Grieve (Mar 06 2019 at 21:10):
well, then the error is genuine - the source resource has:
Grahame Grieve (Mar 06 2019 at 21:11):
"type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/us/eLTSS/StructureDefinition/eLTSSPersonModel" } ],
Grahame Grieve (Mar 06 2019 at 21:11):
the targetProfile should be
Grahame Grieve (Mar 06 2019 at 21:11):
"type": [ { "code": "Reference", "targetProfile": ["http://hl7.org/fhir/us/eLTSS/StructureDefinition/eLTSSPersonModel"] } ],
Grahame Grieve (Mar 06 2019 at 21:11):
did you author it by hand? if not, how?
David Pyke (Mar 06 2019 at 21:12):
I didn't author this one. I'm not sure how it was made. I'll make the changes though.
David Pyke (Mar 06 2019 at 21:15):
Thanks, Graham!
David Pyke (Mar 06 2019 at 21:35):
According to the author, they used Forge.
Lloyd McKenzie (Mar 06 2019 at 22:59):
Forge can't author R4 profiles yet...
Grahame Grieve (Mar 06 2019 at 23:26):
yep. it's an R3 - mark it accordingly
John Moehrke (Mar 07 2019 at 13:28):
can we put the R3 version into a tool and ask for an R4 equivalent that we then edit from that point on?
Grahame Grieve (Mar 07 2019 at 13:32):
actually it's an R2
Grahame Grieve (Mar 07 2019 at 13:32):
and no, not yet. Forge R4 is coming but not available now.
John Moehrke (Mar 07 2019 at 13:39):
yeah, I know... I check every morning to see if Forge is updated... So then an HL7 IG going to ballot in May wanting to be on R4, is a difficult thing to create the StructureDefinition...
John Moehrke (Mar 07 2019 at 13:40):
I just hoped that you had a tool that just just did gross conversion. The fine details are easy enough to manually edit.
Michel Rutten (Mar 07 2019 at 13:57):
@John Moehrke FYI Forge FHIR R4 release is scheduled for May.
John Moehrke (Mar 07 2019 at 14:06):
I know... and May can't get here fast enough.... :-)
Grahame Grieve (Mar 07 2019 at 23:32):
the IG publisher supports profiles edited in Forge no problem. you just have to tell the IG publisher that the version of the StructureDefinition is 1.0.2
David Pyke (Mar 08 2019 at 02:26):
Perfect. I'll make sure to do that
Last updated: Apr 12 2022 at 19:14 UTC