Stream: implementers
Topic: Binary, conversion
René Spronk (Dec 12 2017 at 14:54):
If my accept header states that I'd like to have a JPEG image, whereas the Binary resource states that the resource in question is mime-type DICOM, would it be OK for a server to create a JPEG ? - http://build.fhir.org/binary.html#rest doesn't seem to preclude this arrangement.
One can't force a server to perform this conversion, but if it has the capability, and that capability is known to a client, why not?
René Spronk (Dec 12 2017 at 14:54):
(the question was raised during a training course)
John Moehrke (Dec 12 2017 at 15:06):
I proposed this very thing in the IHE-MHD profile. We had it in the mXDE profile. I had even envisioned a Server that could take a natively CDA and return a FHIR-Document which has the advantage of giving you the FHIR core resources. But had to remove it upon public comment given that there was no deterministic way to indicate that a server would or would not do this. It all seemed automatic, with fallback, as defined by http negotiate. So I like it, but the IHE-MHD community was cautious. So it has been discussed. There are mechanisms in ImagingStudy and DICOM Web for the specific JPG from DICOM that you speak of.
Grahame Grieve (Dec 12 2017 at 18:44):
it's legal. but beyond the specification
René Spronk (Dec 13 2017 at 12:44):
Alternatively we could add an operation to Binary, which would allow servers to express support for mime type conversions, and would allow for parameters which could influence the conversion process, e.g. 'give me a 300 by 200 pixel jpeg of that dicom image', or 'create a FHIR document according to profile X' for this CDA-document. One still wouln't be aware as to what conversions the server supports, so that would still be hit and miss.
Grahame Grieve (Dec 13 2017 at 19:15):
having watched the discussion of this play out in dicom space, I'm super keen for us not to burn effort to solve a difficult problem badly. If people really want a standard for that, there's WADO-RS
René Spronk (Dec 14 2017 at 10:05):
Sure, but that just solves the DICOM issue, not any other conversions, such as the one mentioned: CDA to FHIR-doc, or CDA to PDF. The latter is fairly common.
Grahame Grieve (Dec 14 2017 at 11:31):
well, the simple format conversions are pretty straight forward: ask for it in a different media type, and see if you can get it
John Moehrke (Dec 14 2017 at 15:26):
Im with Grahame. http negotiate is already available for this. reinventing this with an operation seems like it is not likely to produce any more deterministic results.
Elliot Silver (Dec 14 2017 at 18:16):
Agree with John and Grahame. I think doing plain content type conversions is an appropriate extension for a FHIR implementation (hmm, wonder if something should be documented in the Capability statement). If you want to do more with a DICOM image you should put it a DICOMweb server where the semantics are well defined.
It would also be possible to implement a single system that provided both a FHIR Binary and a DICOMweb interface.
Last updated: Apr 12 2022 at 19:14 UTC