FHIR Chat · IG warnings · IG creation

Stream: IG creation

Topic: IG warnings


view this post on Zulip John Moehrke (Feb 12 2022 at 19:09):

Can we get a bit more helpful warning than this from the IG publisher?

ImplementationGuide.definition.resource[81].description warning value should not start or finish with whitespace

view this post on Zulip Grahame Grieve (Feb 12 2022 at 20:07):

what's not clear about that?

view this post on Zulip John Moehrke (Feb 13 2022 at 00:27):

well, trying to figure out which is resource[81] is not easy. Would be nice if it were to tell me the id of the resource which has a bad description.

view this post on Zulip Brian Postlethwaite (Feb 13 2022 at 01:15):

I use the FhirPathTester to find the resource (just drag and drop the XML/JSON file from the web or your local desktop onto the right hand pane) then put the fhirpath expression to locate your instance and click extract => which selects the offending resource into the output...

view this post on Zulip Grahame Grieve (Feb 13 2022 at 21:44):

the 81 bit should be resolved by your editor.

view this post on Zulip Jose Costa Teixeira (Feb 14 2022 at 10:00):

the problem may be that the template adds resources.

view this post on Zulip Jose Costa Teixeira (Feb 14 2022 at 10:01):

But you can see which one of your actual resources is #81 by going to your <ig>/template folder and look at the IG resource that is there. I think it is called onGenerate-ig-updated.xml

view this post on Zulip John Moehrke (Feb 14 2022 at 13:05):

I use notepad++.... it doesn't, to my knowledge, tell me which is the 81st.

view this post on Zulip Jose Costa Teixeira (Feb 14 2022 at 13:15):

You can always count :)..

view this post on Zulip Jose Costa Teixeira (Feb 14 2022 at 13:16):

I think it would be more useful to put the id instead of the position

view this post on Zulip Grahame Grieve (Feb 14 2022 at 13:16):

there isn't usually an id

view this post on Zulip Grahame Grieve (Feb 14 2022 at 13:17):

I'm putting a fragment of the value in instead

view this post on Zulip John Moehrke (Feb 14 2022 at 13:27):

Jose Costa Teixeira said:

You can always count :)..

that was critical to my point... counting 8 is easy but 81 is what inspired me to have the message give me a better clue than a number.

view this post on Zulip Jose Costa Teixeira (Feb 14 2022 at 13:43):

Indeed, for 81 you're more likely in the xpath/fhirpath/jsonpath realm

view this post on Zulip Richard Townley-O'Neill (Feb 15 2022 at 04:26):

@John Moehrke Consider an XML plugin for Notepad++

view this post on Zulip John Moehrke (Feb 15 2022 at 13:06):

I am not saying I can't do it.. I am just pointing out that the warning from the IG publisher could be more helpful. Not all editors now days have programmer tools. Many IG editors use sushi and markdown alone. Grahame has already agreed.


Last updated: Apr 12 2022 at 19:14 UTC