Find

Article
· Jun 27, 2024 1m read

How to output audit logs programmatically (by user or event)

InterSystems FAQ rubric

You can use the List query of the %SYS.Audit to output audit logs programmatically.

The sample code is as follows:

 Set statement=##class(%SQL.Statement).%New()  
 Set status=statement.%PrepareClassQuery("%SYS.Audit","List")
 Set rs=statement.%Execute()  
 Set tab = $char(9)
 While rs.%Next() {    
   Write rs.%Get("TimeStamp")_tab_rs.%Get("Event")_tab_rs.%Get("Username"),!      
 }
Discussion (0)1
Log in or sign up to continue
Question
· Jun 27, 2024

How to interpret FHIR.Interop.Response into Patient FHIR Bundle to use to enhance HL7 message

IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:06:39 EDT [HealthConnect:7.2.0-1.r1]

I have a use case where Epic is sending an A60 Allergy transaction is set at the Patient level, but we have a system called VIBE which needs the ADT at an Encounter level instead. Currently we store ADT information in a MS SQL database for years, and we are querying it to get the latest Account Number to insert into the ADT^A60 for VIBE.

This MS SQL Visit Database was built over 20 years ago and is quite cumbersome to keep maintaining. I would like us to move away from using this MS SQL Database, and query Epic directly.

One idea is to use Epic's FHIR repository to query and get the most resent Account Number to pass into the HL7 message. 

Using the FHIR Demo model to test the functionality to connect to Epic's FHIR repository. I am sending a request through HS.FHIRServer.Interop.HTTPOperation. Just recently I figured out the magic chant to get the Response back from Epic, however I am not sure what to do next.

How do I take the Quick Stream ID from JSON and put it into the FHIR Bundle Class Structure that I can pass back into the HL7 message via in a DTL?

2 Comments
Discussion (2)2
Log in or sign up to continue
Discussion
· Jun 27, 2024

VS Code client-side editing and class/package changes

When using VS Code client-side editing in combination with a file-based revision control system such as git, I find activities such as branch switching and moving/renaming classes and packages a bit tedious, since you to maintain the connected namespace in sync manually.

I am not aware of a built-in way to do this with VS Code Extension. Just added an idea to the portal that is about adding some kind of mechanism to do this automatically, please do not hesitate to comment, amend and vote for idea DPI-I-608  😊

Discussion (0)1
Log in or sign up to continue
Question
· Jun 27, 2024

ZF(-100) and qpdf

Hi,

I have seen your post on using qpdf with the zf(-100) function and was wondering if you could be so kind to share an example line of code.  I can use pdf from the DOS command line no problems with the following:

qpdf  --encrypt test123 test123 256 -- c:\test\basement.pdf c:\test\basementenc.pdf

 Trying the following from the iris terminal I get a RET=2 in messages.log and the PDF is not created.

d $ZF(-100,"/logcmd", "qpdf", "--encrypt test123 test123 256 --", "C:\test\basement.pdf", "c:\test\basementenc.pdf") 

 

Kind Regards,

Jason

1 Comment
Discussion (1)2
Log in or sign up to continue
Announcement
· Jun 27, 2024
Discussion (0)1
Log in or sign up to continue