FHIR Chat · ProductPlan example · IG creation

Stream: IG creation

Topic: ProductPlan example


view this post on Zulip Eric Haas (Jun 05 2018 at 22:57):

ProductPlan example not recognized by publisher. here is the example :
https://github.com/HL7/VhDir/blob/master/source/examples/draft/productplan-example-qhp.xml

got an 'unrecognized type error.'

view this post on Zulip Eric Haas (Jun 06 2018 at 13:56):

Stack Dump (for debugging):                                                      (36.0632sec)
java.lang.Exception: Unable to determine type for  /Users/ehaas/Documents/FHIR/VhDir/source/examples/productplan-example-qhp: null
    at org.hl7.fhir.igtools.publisher.Publisher.loadAsElementModel(Publisher.java:2168)
    at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:1581)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:498)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:464)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4528)
Caused by: java.lang.NumberFormatException
    at java.math.BigDecimal.<init>(BigDecimal.java:596)
    at java.math.BigDecimal.<init>(BigDecimal.java:383)
    at java.math.BigDecimal.<init>(BigDecimal.java:806)
    at org.hl7.fhir.r4.elementmodel.JsonParser.primitiveValue(JsonParser.java:450)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:459)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:385)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:469)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:385)
    at org.hl7.fhir.r4.elementmodel.JsonParser.composeList(JsonParser.java:428)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:389)
    at org.hl7.fhir.r4.elementmodel.JsonParser.composeList(JsonParser.java:428)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:389)
    at org.hl7.fhir.r4.elementmodel.JsonParser.composeList(JsonParser.java:428)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:389)
    at org.hl7.fhir.r4.elementmodel.JsonParser.compose(JsonParser.java:362)
    at org.hl7.fhir.r4.elementmodel.ObjectConverter.convert(ObjectConverter.java:88)
    at org.hl7.fhir.igtools.publisher.Publisher.loadAsElementModel(Publisher.java:2161)
    ... 4 more

view this post on Zulip Grahame Grieve (Jun 06 2018 at 20:02):

are you sure the resource is valid?

view this post on Zulip Eric Haas (Jun 06 2018 at 20:55):

I'll take another look .... I lazily expect the ig-pub to do that ;-)

view this post on Zulip Grahame Grieve (Jun 06 2018 at 20:58):

I agree it should. but when debugging....

view this post on Zulip Eric Haas (Jun 06 2018 at 23:11):

It turns out there were several elements that were empty.

view this post on Zulip Grahame Grieve (Jun 06 2018 at 23:12):

probably would have said that in the validation the end had it got that far


Last updated: Apr 12 2022 at 19:14 UTC