Hi all
I'm having trouble defining the mapping needed to take the very large base64 string in OBX:5.5, and map it to an XML virtual document property that supports Stream.GlobalCharacter. I know from within the DTL you have to use custom code to manage the segment due to its size.
do target.StoreFieldStreamRaw(.stream,"LetterAttachment(1).Base64EncodedFile(1)", .rem)
set tObx14Value = $piece(rem,"|",10)
set convertedDate = ##class(Phu.Shared.Util.DateTime).ConvertHl7DateTimeToXmlDateTime(tObx14Value)
do target.SetValueAt(convertedDate,"DocumentDetails(1).AuthoredDate(1)")
do target.SetValu
.png)
.png)
.png)
.png)

.png)