Stream: social
Topic: PDF report generation
Gang Chen (Feb 10 2017 at 19:44):
Does anyone know if the fhir server can generate a PDF report ?
Lloyd McKenzie (Feb 10 2017 at 21:11):
You could define a custom operation using OperationDefinition that would support doing that, but there's no standard way to do that
Grahame Grieve (Feb 10 2017 at 22:41):
what kind of report?
Lauren Wolejsza (Feb 13 2017 at 12:37):
Hi Gang! I think you are referring more specifically to HAPI FHIR API being able to do PDG generation. Also, there is a stream for hapi you can follow.
Lauren Wolejsza (Feb 13 2017 at 12:46):
@Grahame Grieve & @Gang Chen - Gang and I work together. We are attempting to generate a PDF based on patient-generated health data collected within the first of many VA mobile applications we are refactoring to utilize the HAPI FHIR API and a FHIR-compliant MongoDB database model. One of the goals of our work is to deprecate existing shared services, in this case the document generator, and attempt to utilize the full capabilities of HAPI FHIR API. The existing shared services for PDG generation is coupled to other shared services that rely on other MongoDBs and not the PGHD MongoDB we are working to refactor to. Our challenge is to determine if another way we could generate PDFs based on the data we are storing in the FHIR MongoDB. Any ideas you or anyone else on this stream have about this would be helpful.
Gang Chen (Feb 13 2017 at 16:40):
@Lloyd McKenzie McKenzie, @Grahame Grieve Grieve, @Lauren Wolejsza; -- I was thinking a generic report service (like MS SSRS) being implemented inside fhir, other than just for a specific project. This report service is responsible for collecting data and passing to a report template, and user will take in charge their customized reports
Lloyd McKenzie (Feb 13 2017 at 16:49):
Presumably you could use an HTML -> PDF tool to take the narrative of your resources to render them, though how useful that would be is questionable. It sounds like you want to generate a FHIR document for a particular collection of resources and then render that. There's standard operations for generating a document, but nothing for turning it into a PDF.
Jose Costa Teixeira (Feb 13 2017 at 17:03):
Have you looked at xsl:fo ?
Grahame Grieve (Feb 13 2017 at 19:11):
/$document with accept: application/pdf
Lloyd McKenzie (Feb 13 2017 at 23:23):
That would work, but it's not documented in the spec so you won't find many doing it without negotiation
Grahame Grieve (Feb 14 2017 at 00:31):
sounds like an IG thing to me. It's a fairly obvious thing though
John Moehrke (Feb 14 2017 at 16:44):
I agree with Grahame. In the IHE MHD we pointed this out. Most specifically in reverse. That is when a DocumentReference points at something like a CDA document, the client could use the negotiation to ask for a FHIR conversion. If the server supports this, then it can be returned in FHIR form. We just warned the client that the retrieval can only be expected in the form (mime-type) found in the DocumentReference. IHE is further leveraging this in a profile this year.
Lauren Wolejsza (Feb 14 2017 at 17:07):
@Gang Chen - Thanks everyone for your insights here! Very helpful. Gang - Please look at this entire thread and let's discuss with the team our options.
Last updated: Apr 12 2022 at 19:14 UTC