Stream: IG creation
Topic: Template - Examples
Sarah Gaunt (Jan 20 2020 at 22:45):
@Lloyd McKenzie examples still aren't showing up on the profile page on the examples tab using the template when exampleCanonical is set.
Is there something else I need to do to get these to show up, or is this not ready yet?
If it's not ready yet, how can we remove the examples tab - we are hoping to publish the BSeR IG in the next few weeks and having "No examples are currently available for the Profile." on that tab when there are examples, is wrong.
Lloyd McKenzie (Jan 20 2020 at 22:48):
Where is your IG? It should be working now...
Sarah Gaunt (Jan 20 2020 at 23:01):
https://github.com/HL7/bser/tree/master
http://build.fhir.org/ig/HL7/bser/branches/master/index.html
<resource> <reference> <reference value="Observation/observation-BSeR-ArthritisFeedbackObservation-1-eve-everywoman" /> <display value="observation-BSeR-ArthritisFeedbackObservation-1-eve-everywoman" /> </reference> <name value="observation-BSeR-ArthritisFeedbackObservation-1-eve-everywoman" /> <exampleCanonical value="StructureDefinition/BSeR-ArthritisFeedbackObservation" /> </resource>
Ignore the fact that exampleCanonical doesn't have a canonical reference in it - that's just a hack to stop the IG publisher from crashing until Grahame can fix the issue. (It wasn't working when those had the full url either). AFAIK it's not working in your Sample IG (at least not the last time I checked).
Lloyd McKenzie (Jan 20 2020 at 23:52):
SampleIg hasn't been committed for a bit. Have some other changes pending on a new release of the template.
Lloyd McKenzie (Jan 20 2020 at 23:52):
It works locally
Lloyd McKenzie (Jan 20 2020 at 23:52):
I'll check yours soon. Hopefully before tomorrow
Sarah Gaunt (Jan 20 2020 at 23:53):
Ok, thanks.
Lloyd McKenzie (Jan 21 2020 at 05:37):
I ran your IG with the most recent IG publisher and looked at the examples tab of the BSER_Observation profile and I see this:
pasted image
So as far as I can tell, examples are working...
If you look at temp\pages\_data\pages.json and search for "examples":, look for the pages that don't have empty arrays. Those are the ones that will have examples. If you think something should have examples but doesn't, we can dig further.
Lloyd McKenzie (Jan 21 2020 at 05:37):
(@Sarah Gaunt )
Jose Costa Teixeira (Jan 21 2020 at 05:49):
I can confirm this now works. Thanks!
Sarah Gaunt (Jan 21 2020 at 06:08):
Yup - works for me now too. Maybe the shortened exampleCanonical values I hacked in there to get it working over the weekend were causing the issue - I rolled those back to the full one a few hours ago when the new IG publisher was released. No matter - it works now! Thanks!!!
Last updated: Apr 12 2022 at 19:14 UTC