Rechercher

Question
· Aug 29, 2024

Create PDF and transfer it via REST

Hello, I want to create PDF from HTML source. I found pandoc. I installed pandoc on IRIS container image. I created Interoperability production. I have setup REST service to receive HTML file in request body. I call pandoc command pandoc -o output.pdf input.html  from a BPL process. I copy output.pdf file stream into response body. I save the response at the source. I get a file named output.pdf but it does not load in Acrobat. I suspect I am doing something wrong with headers (accept-encoding?) or maybe do I need to base64 encode the pdf file to transfer it via REST?

7 Comments
Discussion (7)2
Log in or sign up to continue
Question
· Aug 28, 2024

OPEN A TERMINAL WINDOW VIA HREF TAG IN HTML

? 4 U:

IS THERE A WAY TO OPEN THE TERMINAL WINDOW WITH INTERNAL IP AND NAMESPACE FROM HREF TAG IN AND HTML 

i KNOW I CAN CALL ON THE MANAGEMENT PORT VIA A HREF TAG:

<td><a href=""http://"_IP_":57773/csp/sys/exp/%25CSP.UI.Portal.GlobalList.zen?$NAMESPACE="_USER_"&$NAMESPACE="_USER_" id=""rr"" onclick='selectedRow()' target='_blank'>Portal</a></td>"

BUT WHATEVER I TRIED, JAVASCRIPT OR ANYTHING ELSE I CAN'T OPEN A TERMINAL WINDOW

<td><a href="??????????????????"">Terminal</a></td>

2 Comments
Discussion (2)2
Log in or sign up to continue
Discussion (13)5
Log in or sign up to continue
Question
· Aug 27, 2024

FHIR Response to Data Message Class Question/Issue

I am trying to create a HS.FHIR.DTL.vR4.Model.Resource.Encounter message based on a conversion of HS.FHIRServer.Interop.Response QuickStream to a JSON %Dynamic Object. 

When I try to send the HS.FHIR.DTL.vR4.Model.Resource.Encounter onto the Router

  1. it is not showing up as a Defined Message Class to Route the message back to the SourceConfigName of the Request message that initialized the FHIR query
  2. I keep getting "ERROR <Ens>ErrBPTerminated: Terminating BP EPIC.FHIR.Process # due to error: ERROR #5002: ObjectScript error: <SUBSCRIPT>%SaveData+29 ^Ens.MessageHeader.1 ^Ens.MessageHeaderI("MessageBodyId","{"resourceType":"Encounter","id":"xxxxxxxxxxx","id> ERROR #5002: ObjectScript error: <SUBSCRIPT>%SaveData+29 ^Ens.MessageHeader.1 ^Ens.MessageHeaderI("MessageBodyId","{"resourceType":"Encounter","id":"xxxxxxxxxxxxxx","id"

my inital design was to create a way to use FHIR calls like we do with other Web Services to query the External Repository, send back the result, and do something with the Result in the HL7 messaging.

Am I going about this all wrong? What have others done to Query FHIR from an External Source?

4 Comments
Discussion (4)4
Log in or sign up to continue
Announcement
· Aug 27, 2024

Get started with ObjectScript

Hi, Community!

We're happy to introduce a new learning path created by the Online Learning team:

Getting Started with InterSystems ObjectScript

This learning path takes just under 5 hours to complete. You will become familiar with ObjectScript syntax and its key features, and you can show your skills with the final assessment.

Successful completion earns you a digital badge for your social profiles!

Ready to get started? Start the ObjectScript learning path!

Discussion (0)1
Log in or sign up to continue