go to post Arun Tiriveedhi · Sep 15, 2021 Hi Jordan, Looking at the method implementation, the Remainder is being overwritten from the method. So your assignment before GetFieldStreamRaw() method call is not considered. Set Remainder="^^PDF" If you need to set the "^^PDF" at the end of the segment, I would set it before Storing the stream. Set tSC=OBX.SetValueAt("OBX",0) Set tSC=OBX.SetValueAt("RP",2) Set tSC=OBX.SetValueAt("PDF",5.4) Set tSC=OBX.StoreFieldStreamRaw(EmbeddedPDF,5.1,Remainder)
go to post Arun Tiriveedhi · May 13, 2021 We had a similar issue with the object insertion to a parent object. The way we were able to ensure the sequence, was saving the parent object on each insert. There is an overhead and not the most efficient process. Since we were saving the same object without closing it, no additional parents are created.
go to post Arun Tiriveedhi · Apr 1, 2021 Hi Yone, Hope this is not too late, can you try the following code, set NTE3Updated = ##class(EnsLib.HL7.Segment).UnescapeEx(NTE3String,"|^~\&") Regards, Arun
go to post Arun Tiriveedhi · Mar 10, 2021 Use this syntax, HL7.[NTE:4] Contains "NAVIRADTHPT" This will look at all repetitions of NTEs.
go to post Arun Tiriveedhi · Aug 19, 2020 Hi Karthikeyan, From the code that you are running, the file you are providing, is being evaluated as a message file. Can you please provide the file name which doesn't start with a "." or not in the list of MAGICFILENAMES. Please refer to ##class(EnsLib.InteropTools.HL7.MessageAnalyzer.Workspace.FolderType).IsMessageFileName() for the name validation. Thanks,Arun
go to post Arun Tiriveedhi · Mar 24, 2020 Hi Jack, We had used commitSegmentByPath for Huge HL7 related transformations. Can you try doing an intermediate %Save on the target object in the DTL using the <code> block. You can do this save multiple times, it will save as the same object. This might help you with some memory issues. The other method you might consider is the one below, found in the EnsLib.EDI.XML.Document (IRIS 2019.2). /// Switch from keeping changes in memory to keeping them in storage. Allows for unlimited changes to a document without running out of memory. This mode is automatically in effect when the object is created by loading from a stored IdMethod CommittedMode(pMode As %Boolean = 1) As %Status There might be other efficient ways. Please let me know what you find out. Thanks, Arun