Stream: shorthand
Topic: FSH online Potential Issue.
Al Pivonka (Apr 06 2022 at 18:37):
Observation:
I've been using fish online to generate and test my work thus far.
But I have found:
- I create an extension (EXT1)
- create a profile (PRO1) based on a parent of the object and add the extension (EXT1)
- create an example: instanceOf (PRO1) and populating EXT1 attributes and others.
- Select "Convert to JSON" button. All works well and it generate. No Errors.
(Observation) When I Select the "Convert to FSH" button after #4 above, It is not able to convert to FSH correctly. ERRORS
I'd expect it to work both ways.
thanks . all.fsh
File used is attached.
Chris Moesel (Apr 06 2022 at 18:58):
Hi @Al Pivonka. Interesting find. It turns out that you actually have invalid FSH in your source, but SUSHI doesn't complain about it. It ends up generating invalid JSON. Which, when converted back to FSH, causes problems.
The issue is that in your Instance
, you are setting value[x]
to values, like this:
* item[0].extension[GeneralSettings].extension[title].value[x] = "The Title"
But in Instance
s, you must use the fully typed version of choice properties. So this really should be:
* item[0].extension[GeneralSettings].extension[title].valueString = "The Title"
If you change them all to be like that, it goes much more smoothly. The round-trip still doesn't look exactly like the original source, but it is actually the same (just a different way of doing it). Here's the fixed up version: https://fshschool.org/FSHOnline/#/share/3KjFyoJ
Al Pivonka (Apr 06 2022 at 19:08):
@Chris Moesel
Thank you so very much.
Still learning (FISHING) and kicking the tires.
I appreciate your patience and your willingness to look into things.
BTW, Just started FSH(ing) this wk.
Chris Moesel (Apr 06 2022 at 20:24):
That's great, Al! Best of luck with it! I didn't call it out specifically, but of course the FHIR Shorthand spec itself is very helpful, and not a difficult read (well, at least we tried to make it that way). I'd also recommend some of the presentations linked at the bottom of the FSH School Downloads page!
Al Pivonka (Apr 07 2022 at 13:28):
I've been working my way though the Specs and put together a list of of DEVDays Youtube Videos to watch and learn from.
- Introduction to FHIR 2020
- Introduction Profiling
- Profiling with Forge 2021
- Introduction to FHIRPath | DevDays June 2021 Virtual
- Introduction to FHIR Shorthand 2020
- Let's Build - Profiling with FHIR Shorthand 2020
- Create an IG with FHIR Shorthand
- Create an IG with FHIR Shorthand (2)
- GraphBuilder2
- Accelerating your Implementation Guide Production 2021
- IG with IG Publisher
- FHIR Registry and Packages
- Advanced FHIR Shorthand and tools. 2021
- Brian Posthletwaite - FHIR Questionnaires and Structured Data Capture | DevDays June 2021 Virtual
- Brian Posthlewaite - FHIR Questionnaires and Structured Data Capture | DevDays November 2020 Virtual
Chris Moesel (Apr 07 2022 at 13:40):
I think that's a keen observation. I agree that there is a lot of info on the front half (how to build an IG), but less on the back half (how to implement an IG in a system). Nothing comes to mind offhand, but I am going to summon @Lloyd McKenzie and @Jose Costa Teixeira, as they are resident IG experts around here and may be able to point you to other helpful resources. I expect there are others in this community who might be able to provide some additional insight as well (hopefully people who have experience implementing IGs?).
Lloyd McKenzie (Apr 07 2022 at 16:40):
Nothing jumps to mind. You might ask on the #IG creation stream too.
Last updated: Apr 12 2022 at 19:14 UTC