Stream: clinFHIR
Topic: import bundle into scenario builder?
Bob Milius (Mar 23 2017 at 17:32):
Would it be possible to import a transaction bundle into the scenario builder? I have one that I built by hand with a text editor, and would like to demonstrate it other and would like to view it as a graph or structure/reference or current resource view. I could reenter it by hand into builder, but it would be nice to be able to import it.
David Hay (Mar 23 2017 at 17:52):
Actually you can already import a single resource (link on the nav bar) and was thinking of supporting a bundle (it's not that much extra work). Consider it done! (or will be soon :) )
Bob Milius (Mar 23 2017 at 19:08):
thanks!
David Hay (Mar 23 2017 at 20:56):
Have you got an example bundle you could email me?
David Hay (Mar 24 2017 at 01:32):
Ok - can you see if that is working OK? Just create a new scenario (or select an existing one) and click the 'import resource' link in the navbar. Paste the bundle (must be json) into the text area and click import...
Bob Milius (Mar 24 2017 at 14:49):
@David Hay Thanks! Now all I need is a XML to JSON converter :)
David Hay (Mar 25 2017 at 22:58):
looking into that...
David Hay (Mar 26 2017 at 17:00):
Hi Bob - have another try. Still must be json (though I have a fix in mind for that using your excellent idea) but should preserve the references now...
Bob Milius (Mar 27 2017 at 18:33):
thanks again, @David Hay ! I just demoed clinFHIR to our group using the bundles I shared with you. Worked great!
David Hay (Mar 27 2017 at 18:38):
Hi Bob - no worries - glad it was useful! Actually, do you mind if I share that bundle (by saving it into the library)? A good example of a more complex FHIR scenario (at least in terms of resources and relationships)...
Bob Milius (Mar 27 2017 at 18:39):
no problem, happy to share
David Hay (Mar 27 2017 at 19:08):
Interesting, When I try to b64 encode it (which I do to get it into the library), I get the error "Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.". Wonder which that is? I'll look into it...
David Hay (Mar 27 2017 at 19:27):
In the mean time, if anyone wants an example of a complex scenario that can be imported into the scenario builder, send me an email... (david dot hay 25 at gmail dot com)
David Hay (Mar 28 2017 at 03:31):
Actually - I uploaded it here: https://fhirblog.com/2017/03/28/a-complex-scenario/
Bob Milius (Mar 28 2017 at 19:57):
Nice! Thanks!
Last updated: Apr 12 2022 at 19:14 UTC