User bio
404 bio not found
Member since Nov 11, 2020
Posts:
Replies:
There are a few options you could go for here. One would be to have your DTL go from your HL7 Message to Ens.StreamContainer, and then use a code block in your DTL to create and write the stream to store in the stream container.
Something like:
Set stream = ##class(%Stream.GlobalBinary).%New()
Do stream.Write(yourTextString)
set streamContainer=##class(Ens.StreamContainer).%New(stream)
(Above is untested, and you may need to set other values within the container.)
You can then use the operation class EnsLib.File.PassthroughOperation to then write the file out to your desired location.
Hi Alexander.
Sorry for being pedantic, but you're missing the ending quotation mark when setting the value of 'sql'
SET variable = 2000
SET sql = "SELECT Column FROM Table WHERE ID = ?"
DO ##class(%SQL.Statement).%ExecDirect(, sql, variable)
Certifications & Credly badges:
Julian has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Following:
This is a great repo - thanks for sharing!
Looking through what you have here, it's certainly given me the inspiration to move away from a single class and instead breaking these out into a class per type.