As I've become a little more familiar with HealthShare, I'd like to start exploring different ways of doing things. To date, the bulk of my data transformations have been using DTL; only using ObjectScript for a few operations that write to external SQL tables that were largely based on examples provided by my sales engineer.
To use "DTL-speak", I know how to get a value in the "source" inbound message, but not how to set a value in the "target" outbound message. In the simple example below, I'm grabbing the patient mrn from the inbound and looking to prefix it in the outbound message (a typical change). How is this accomplished?
Method OnMessage(msgIn As EnsLib.HL7.Message, Output msgOut As EnsLib.HL7.Message) As %Status
set tSC = $$$OK
set patientMRN = msgIn.GetValueAt("PID:3.1")