FHIR Chat · FHIR inside CDA · implementers

Stream: implementers

Topic: FHIR inside CDA


view this post on Zulip Jens Villadsen (Jan 10 2017 at 10:49):

Has anyone bothered to try out how FHIR could be fitted inside a CDA document? I'm sitting with an infrastructure where the lowest common denominator regarding the wireformat is CDA, but FHIR inside the CDA document is a valid approach. I'm guessing it should go inside the NonXMLBody somehow, but that forces me to use json. While I'm agnostic towards this inner format, the infrastructure is not. Is there somehow a way to put FHIR inside a CDA without it being too nasty?

view this post on Zulip Grahame Grieve (Jan 10 2017 at 11:54):

why does it force you to use json? you could use xml in nonXmlBody

view this post on Zulip Grahame Grieve (Jan 10 2017 at 11:54):

but it's a bit weird wrap fhir inside cda - why do you need to do that? I would have thought that the question would be stated differently, like 'how do we use FHIR inside XDS"

view this post on Zulip John Moehrke (Jan 10 2017 at 12:07):

The answer to Grahames question, how do we use FHIR inside XDS, is easy... XDS is content agnostic. So first set the DocumentEntry.mimeType appropriately http://build.fhir.org/http.html#mime-type

view this post on Zulip John Moehrke (Jan 10 2017 at 12:10):

The question of FHIR inside CDA... is as a nonXmlBody, encoded to contain it... right? Just like XDS-SD content-profile encapsulates PDF or TEXT. (also known as C62)

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:11):

I agree its a bit weird - but that part is politics - the wrapping FHIR inside CDA

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:12):

I know XDS/XDR is an agnostic format

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:12):

its just the name "NonXMLBody" ... does that not imply that xml is kinda forbidden right there?

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:13):

it implies that it's not part of this xml

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:13):

there's no rule that it can't be some other xml.

view this post on Zulip John Moehrke (Jan 10 2017 at 12:13):

No, it just means it is not part of the CDA xml schema... And from CDA perspective it is a blob, and thus must be encoded as a blob.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:14):

so the name should rather be noncdastructuredbody?

view this post on Zulip John Moehrke (Jan 10 2017 at 12:15):

it is a sign of maturity, that good decisions back then, look odd today.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:16):

so the name should have been different

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:16):

?

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:17):

names are hard. Perhaps your longer name would have been clearer. But the rules are clear: it's an ed of some content

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:17):

right

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:18):

actually, what nonXmlBody means is that it's not CDA narrative XML

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:18):

that name keeps on givin'

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:18):

but it is expected that the content is narrative - so the fhir would have to be a composition with narrative

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:19):

at least, that's what's intended

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:19):

okay ... so back to the issue: an amount of time have been invested into understanding CDA

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:19):

and even some profiles have been developed

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:19):

an infrastructure has also been established

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:19):

based on XDS / XDR

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:20):

now, given that the XDS/XDR part is kinda frozen ... untouchable

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:20):

and the header part of the CDA is also kinda frozen ...

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:20):

right. and the short path is, re-use the CDA as much as possible. While the long path is , just go to FHIR directly. The short path is more expensive in the end, but politics often involves choosing a cheapaper option in the short term

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:21):

we have the same dsicussion in Australia, and it's not resolved yet

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:21):

right

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:21):

i know my politics :) - which means that I've might been given a change to make a hybrid solution

view this post on Zulip John Moehrke (Jan 10 2017 at 12:22):

And learn from history... any standard can be improved by making one-more-standard...

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:22):

reuse as much of the existing infrastructure as possible (read: no more money here) ... and use FHIR where it could actually make sense

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:23):

well, what I've found so far in Australia is that as long as the back end is hard cda/xds, and you can't develop it, the amount of usefulness that can derived by hacking a FHIR interface over it (lipstick on a pig) is limited.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:24):

the case is here that only the XDS part and the CDA header is frozen

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:24):

the rest is up for discussion

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:24):

you can fhir-ise the xds part itself directly, and that's ok, but a small-ish benefit. once you start putting an API on top of a CDA based repository, you'll find all these rules about what you can't do with the API, and the benefit starts to get somewhat limited

view this post on Zulip John Moehrke (Jan 10 2017 at 12:25):

I would recommend to pushback on some of the inflexibility you perceive. As I indicated the XD* metadata model intends to be content agnostic, with CDA vs FHIR being addressed fundimentally with the broadest metadata entry -- mimeType... I do expect that the inflexibility might be true, caused by poorly implemented solutions that hard-coded too many things.

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:25):

still, so how do you support put and post when each granular put or post is a single act entry in a whole CDA document

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:26):

XDS is not the problem

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:26):

I'm encouraging consideration of a different model: a native FHIR interface, and throwing summary documents to the xds/cda repositroy

view this post on Zulip John Moehrke (Jan 10 2017 at 12:26):

Grahame, If what you want is a http/REST api, then I very much agree with you... but if you want Document Sharing, and FHIR has a Document model; then XDS works great.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:26):

its actually not XDS

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:26):

its XDR

view this post on Zulip John Moehrke (Jan 10 2017 at 12:27):

XDR has mimeType metadata element too.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:27):

there is no need for retrieving documents

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:28):

i only need XDR for transport basically

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:28):

and I need to support the CDA headers

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:28):

political reasons

view this post on Zulip John Moehrke (Jan 10 2017 at 12:28):

Grahame, I agree... I just also see a Document Sharing as a needed thing. Documents, CDA and FHIR, have a characteristic not found in an API... that doesn't mean Docment is better than API, it doesn't mean API is better than Document... it is just two models.

view this post on Zulip John Moehrke (Jan 10 2017 at 12:30):

Jens, you have made it clear that you will need to encapsulate a FHIR Bundle inside the CDA transported in XDR... where in your case the XDR can only carry CDA...

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:30):

and CDA can carry FHIR

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:31):

the question is: is it insane?

view this post on Zulip John Moehrke (Jan 10 2017 at 12:31):

Jens, then what will your FHIR object look like, that is carried inside CDA? Will it be just a FHIR Document Bundle?

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:31):

probably

view this post on Zulip John Moehrke (Jan 10 2017 at 12:31):

CDA can carry anything... it is 'turtles all the way down'

view this post on Zulip John Moehrke (Jan 10 2017 at 12:32):

all the containers we are talking about can describe the contained content with a mimeType... thus they can contain anything.

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

i know

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

i know it is technically possible

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

all the way down

view this post on Zulip John Moehrke (Jan 10 2017 at 12:32):

and the FHIR object you have contained in the CDA, can contain CDA...

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

hehe

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

okay ... lets not take it there ...

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:32):

but is it insane?

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:33):

fhir inside cda

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:33):

(not fhir inside cda inside fhir inside cda insiden .....)

view this post on Zulip John Moehrke (Jan 10 2017 at 12:34):

I would say not insane... because there is precedent in CDA containing TEXT or PDF or JPEG content... so processing of a received CDA is already looking for something mimeType described in the nonXmlBody

view this post on Zulip John Moehrke (Jan 10 2017 at 12:35):

the only thing is that it is schizophrenic

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:37):

the alternative is to go all the way down CDA - which i would consider sadistic given that CDA has not been used at all among the vendors so far

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:38):

they have all used proprietary standards until now

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:40):

@Grahame Grieve a native FHIR interface is not an option - politically

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:41):

it's not... quite... insane

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:42):

thank you!

view this post on Zulip Grahame Grieve (Jan 10 2017 at 12:42):

but if your only political option is insance, then it's not actually insane

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:42):

you're right

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:44):

thank you guys! - you gave me the anwers I needed

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:44):

I'll let you know what it all ends up with

view this post on Zulip Jens Villadsen (Jan 10 2017 at 12:45):

(its only a national matter that's going to have high impact the next couple of years ;) )


Last updated: Apr 12 2022 at 19:14 UTC