Stream: implementers
Topic: FHIR Document Examples
Richard Kavanagh (May 07 2017 at 08:30):
Is anyone creating FHIR Documents that have "bundled" examples to share? Looking for test cases for https://twitter.com/ClaroTechUK/status/861118914067124224
Grahame Grieve (May 07 2017 at 08:36):
@Rick Geimer
Oliver Egger (May 08 2017 at 13:34):
@Richard Kavanagh https://github.com/ahdis/chmed16af/blob/master/resources/Bundle/chmed16af-mp-bundle-s01.xml or http://chmed16af.emediplan.ch/Bundle-chmed16af-mp-bundle-s01.xml.html, interested if the bundle survives your testcase
Richard Kavanagh (May 08 2017 at 16:16):
(deleted)
Richard Kavanagh (May 08 2017 at 16:18):
@Oliver Egger thanks, the tool is only for DSTU2 at the moment. When it's finished I'll create a STU3 version.
Jens Villadsen (May 09 2017 at 13:17):
@Oliver Egger - you need a validator for that :)
Oliver Egger (May 09 2017 at 13:47):
@Jens Villadsen not one, but two validators (java and .net :-)). but the validator does not cover all cases for a bundle (e.g. verify that all internal references are complete, slicing by profiles). the ig publisher includes the validation steps automatically, see http://chmed16af.emediplan.ch/qa.html as an example output.
Jens Villadsen (May 09 2017 at 13:49):
@Oliver Egger thats why you need something like the stuff we hacked together in Venice :)
Richard Kavanagh (May 09 2017 at 20:17):
That's what my tool does - checks the referential integrity of a document bundle. It's DSTU2 at the moment and only works when all resources are within the bundle.
pasted image
Rick Geimer (May 10 2017 at 05:39):
Yes, I definitely have some examples, but they are all STU3. Do you still want them? I've also written a very small XSLT transform that checks referential integrity for my own debugging purposes.
Richard Kavanagh (May 10 2017 at 06:40):
(deleted)
Richard Kavanagh (May 10 2017 at 06:40):
@Rick Geimer Yes your example would be great. I will create an STU3 version when I have finished. The tool not only checks integrity but shows the developer where the issues are and a graphical structure of the document so they can verify that the correct resources are joined together.
Rick Geimer (May 10 2017 at 15:45):
@Richard Kavanagh I sent a sample Bundle with test data to your gmail account.
Richard Kavanagh (May 10 2017 at 15:47):
Thanks @Rick Geimer appreciate it...
Brian Postlethwaite (May 11 2017 at 19:38):
@Richard Kavanagh is that test code in .NET?
Also wondering if the code handles references in extensions. (I have a c# extension method that extracts all references in on object - excluding extensions)
Richard Kavanagh (May 12 2017 at 08:16):
@Brian Postlethwaite Yes it is .NET and makes use of the .NET API. It locates the references using FHIRPath (*.Descendants) and does seem to locate references in extensions. We have a number of "extensions" in out document profiles (to handle CDA like participants) and it certainly locates them.
Brian Postlethwaite (May 12 2017 at 09:48):
Seems like a reasonable approach. (Not sure I'd want to do that to scale in my server though)
Last updated: Apr 12 2022 at 19:14 UTC