FHIR Chat · FSH online Potential Issue. · shorthand

Stream: shorthand

Topic: FSH online Potential Issue.


view this post on Zulip 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:

  1. I create an extension (EXT1)
  2. create a profile (PRO1) based on a parent of the object and add the extension (EXT1)
  3. create an example: instanceOf (PRO1) and populating EXT1 attributes and others.
  4. 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.

view this post on Zulip 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 Instances, 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

view this post on Zulip 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.

view this post on Zulip 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!

view this post on Zulip 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.

  1. Introduction to FHIR 2020
  2. Introduction Profiling
  3. Profiling with Forge 2021
  4. Introduction to FHIRPath | DevDays June 2021 Virtual
  5. Introduction to FHIR Shorthand 2020
  6. Let's Build - Profiling with FHIR Shorthand 2020
  7. Create an IG with FHIR Shorthand
  8. Create an IG with FHIR Shorthand (2)
  9. GraphBuilder2
  10. Accelerating your Implementation Guide Production 2021
  11. IG with IG Publisher
  12. FHIR Registry and Packages
  13. Advanced FHIR Shorthand and tools. 2021
  14. Brian Posthletwaite - FHIR Questionnaires and Structured Data Capture | DevDays June 2021 Virtual
  15. Brian Posthlewaite - FHIR Questionnaires and Structured Data Capture | DevDays November 2020 Virtual

view this post on Zulip 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?).

view this post on Zulip 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