Stream: implementers
Topic: Transfer of care
Marc Riding (Aug 29 2018 at 08:46):
Hi Guys,
I work for a uk mental health trust and am currently trying to piece together a prototype ToC bundle for edischarge requirements.
Let me see if I have things correct up to this point:
• We have identified the data within our EHR, and conceptually mapped the data to the AoMRC headings
• From what I am reading, we need to get this data into a FHIR/ITK format, using CareConnect FHIR profiles. Data will end up in a format similar to https://nhsconnect.github.io/ITK-FHIR-Mental-Health-eDischarge/engage_jon_burrows.html
• Data can then be transferred via MESH to endpoints (eg GP surgeries)
It is this second bullet-point I am struggling with. When I try to google eg “constructing fhir bundle” I seem to find articles indicating I should be making calls to a FHIR server or API.
1. Is this the only/recommended method for constructing the bundle from raw data ?
2. Do we need our own such server ? https://fhir.nhs.uk/ ?
3. Are there tools available for constructing these bundles ?
4. They [the bundles] appear to be quite complicated and I am thinking we will need to write scripts to transform the data we have into these compliant bundles. However I don’t want to embark upon this task if there is an easier/better method, and I am sure I’m on the right track.
Kind regards, and many thanks for any help.
Marc
Kevin Sprague (Aug 29 2018 at 10:15):
Hi Marc
Kevin Sprague (Aug 29 2018 at 10:17):
for Transfer of Care in England the Bundles are constructed using the ITK3 specification bundles structures as defined at https://developer.nhs.uk/apis/itk3messagedistribution-2-5-0/ . I work on that project and happy to help with more information.
Marc Riding (Aug 29 2018 at 10:28):
Hi Kevin,
Thanks so much for posting back.
Can you tell me, how to devs usually go about the task of taking the patient data we have locally, and getting it into ToC-compliant bundle ?
Is there software to help construct these bundles, or do we have to get dirty with the code and write our own scripts to create the fhir bundle ?
Many Thanks
Marc
Grahame Grieve (Aug 30 2018 at 22:19):
Is there software to help construct these bundles, or do we have to get dirty with the code and write our own scripts to create the fhir bundle
this feels like a false dichotomy to me but perhaps I don't understand your question. You have to tell some software how to assemble the bundle from source data. That list of instructions will be 'code' in some interpretable language. that'll be getting dirty... but with software to help with the details.
Marc Riding (Aug 31 2018 at 07:51):
Thanks for your reply Grahame.
Yes, you must not have understood my question, as there is no false dichotomy here.
I was asking if there is software to help construct the fhir-encoded data, or whether devs have to write all this code themselves( ie from scratch) in order to transform our local data into a fhir-compliant format to transfer to other healthcare providers.
Despite this, you seem to have answered the question just fine. Unfortunately for me, your answer seems to contradict another that I received via email: "Hi Mark, there is no software to help construct these bundles but there are other people doing the same thing may be useful to speak to some of these people" - So I'm still in the dark a little.
When you say "You have to tell some software how to assemble the bundle from source data." Could you elaborate or point me to some examples of this software ?
Thanks,
Marc
Grahame Grieve (Aug 31 2018 at 08:20):
the confusion seems to be about what you think 'software' means, as opposed to 'code'
Grahame Grieve (Aug 31 2018 at 08:22):
there's lots of open source libraries that help developers assemble bundles in their programming language of choice. is that what you mean by 'software'? but there's nothing already written that magically knows how to assemble your particular bundle from data that is somewhere. Someone's going to have write code. Is that getting dirty?
Grahame Grieve (Aug 31 2018 at 08:22):
open source links: http://wiki.hl7.org/index.php?title=Open_Source_FHIR_implementations but this is very incomplete
Marc Riding (Aug 31 2018 at 09:04):
Yes I consider code libraries to be a form of software.
Thanks for the link.
Grahame Grieve (Aug 31 2018 at 09:06):
then there's lots of software, but someone still has to get dirty in code
Richard Kavanagh (Aug 31 2018 at 11:10):
@Marc Riding if you are looking at the Transfer of Care you are probably also looking at the ITK as well. Not sure what your technology stack is but I made the following for .NET which is a library to help build the ITK Message Wrappers. It needs a tweak to catch some last-minute amendments in the ITK specification, it's largely good to go.
http://clarotech.co.uk/products/library-fhir-itk/
This library leverages the "official" C# HIR library here https://github.com/ewoutkramer/fhir-net-api also available as a NuGet package.
Kevin Mayfield (Sep 03 2018 at 08:10):
@Marc Riding what language are you intending to use and what system are you working with?
Marc Riding (Sep 08 2018 at 11:21):
Hi guys, an update:
I am now currently working with the .net fhir libraries. thanks @Richard Kavanagh for the link My goal is to take our local xml structure and produce an xml fhir bundle for Transfer of Care.
Do you think this is a good route to take ? Our use case is quite straight forward: create the bundle, render a copy and place in our document repo, then send the bundle - we have no immediate need to store and use the data locally in fhir format (other than audit trail), though of course longer-term there are many useful applications etc.
Would another approach be to set up a fhir server, and use a restful api to create the resources/bundle ? Have I got that right ?
Thanks for all your help, and thanks Grahame, didn't realise you were the inventor of FHIR lolol.
Marc Riding (Oct 23 2018 at 11:01):
Hi Guys,
I am really struggling here, any tutorials on using the hl7.fhir .net libs would be greatly appreciated.
Like I said, I am trying to construct something like https://nhsconnect.github.io/ITK-FHIR-Mental-Health-eDischarge/engage_jon_burrows.html
Just really confusing how to go about constructing this xml. Am really disappointed the nhs has just dropped us off at the deep end. Is anyone else going through the same thing ?
Ewout Kramer (Oct 23 2018 at 11:12):
Hi @Marc Riding, here is a link to the docs for the C# FHIR API: http://docs.simplifier.net/fhirnetapi/index.html
Martijn Harthoorn (Oct 23 2018 at 11:13):
Hi Marc, You probably need something like this:
var eoc = new EpisodeOfCare();
// add fields / data to the resource
var bundle = new Bundle();
bundle.Entry.Add(new Bundle.EntryComponent { Resource = eoc });
Ewout Kramer (Oct 23 2018 at 11:13):
If you have more questions on how to use it, join us at the #net stream.
Kevin Mayfield (Oct 23 2018 at 20:24):
I’ve not worked on that specific document but you can see the approach I took (in java) here: https://github.com/nhsconnect/careconnect-examples/tree/master/hapi-fhirDocument-create
It’s roughly collect the data, say Patient demographics, use the resource to generate html and then add both as a section to the document.
Last updated: Apr 12 2022 at 19:14 UTC