Question
· Aug 15, 2023

Zen reports documentation or learning material question

We need to generate a PDF file from an HL7 message as it passes through an Ensemble production. Looking for examples, tutorials, documentation aligned to our scenario.

We are currently using Ensemble (so can't use InterSystems Reports at the moment). Thinking Zen reports...

We can get from HL7 to XML OK, following Introduction to InterSystems Health Connect - YouTube (see c.1:11:00-1:13:00)

We can follow the Zen tutorials to a point - but they mostly get the data being presented in the report from SQL queries rather than from an in-bound XML stream. And as they illustrate using web-pages, we are struggling to see how to send the find the generated PDF (or whatever) so we can send it on to a downstream system.

Searching the documentation, learning site, YouTube channel, etc is getting me InterSystems Reports materials, rather than Zen. Anyone know of a tutorial or documentation that is more closely aligned to our intended use?

(Specifically ORU_R01 lab results, if that makes a difference.)

Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1 (Build 184U) Wed Sep 19 2018 09:09:22 EDT
Discussion (2)1
Log in or sign up to continue

Not entirely sure what you are looking to do, but Zen reports does support the following

1. Use of the parameter DATASOURCE that can be used to provide the XML ReportDefinition component (file based)    [ Parameter DATASOURCE = "vareport.xml";  ]

2. Use of the <CALL> tag to allow for direct insertion of XML into the ReportDefinition component  (stream based)   [ <call method="ProcessBreakdone"></call> ]

3. Use of the <INCLUDE> tag to allow for direct xdata insertion into the ReportDefinition component                             [ <include xdata="CustomRowElem" /> ]

Either of these can be used to create the XML of the ReportDefinition section, and then use those entries in your ReportDisplay section.

Thanks Julie

Closing off an old question for completeness, we never did get Zen working. In the end we used Apache FOP directly:

  • HL7 -> XML as described in the original question
  • call Apache FOP using $ZF(-100,  $$$fopbat, "-xml", XMLfilename, "-xsl", StyleSheetFilename, "-pdf", PDFfilename)

This puts the output PDF onto the filesystem from where, in our solution, it is later picked up for onward transmission to a downstream system.