Question Nimisha Joseph · Dec 6, 2023

Raw HL7 message content into an EnsLib.HL7.Message

Hi there,

I'm working on a project where I retrieve RawHL7 message(ORU R01 2.3.1) content from a database in a BPL. I've created a context object of type Enslib.HL7.Message, and I need to populate it with the contents from the RawHL7 message so that I can use this context object as source for my DTL transformation.

Does anyone have suggestions on the best approach to achieve this? I'm looking for guidance on how to efficiently transfer the data from the RawHL7 message to the context object.

Thanks in advance for your help!

Product version: Ensemble 2018.1

Comments

Mary George · Dec 6, 2023

Hi @Nimisha Joseph ,

Try this code :

Set HL7Msg = #class(EnsLib.HL7.Message).ImportFromString(RawHL7,.tSC)

0
Enrico Parisi · Feb 8, 2024

If you change:

w x

With:

Do $system.OBJ.DisplayError(tSC)

What do you get in the terminal?

0