Hi,
I have a bad problem: I have a channel receving HL7 Messages like this :
MSH|^~\&|RIS|RIS|AOB HL7 Gateway|AOB|||ORM^O01|1|P|2.3.1||||||8859/1
PID|||10104665^^^AOB~XXXXXX45E66C351W^^^CF||Duck^R ocker||19770703|M|||VIA COLOMBA ANTONIETTI 14^^092009^092^00043^ITALIA^P~^^^^^^H||555-1234~|||||XXXXXX45E66C351W^^^AOB|||||092009|||0003 1
PV1|||||||||||||||||||2070011966^^^AOB|||||||||||| ||||||||||||||||||||V
ORC|SN|^AOB|42251^RIS|2070011970|SC||^^^2007012912 1400||20070129123242|^00009038||^[email protected]|dhe_s p||||^dhe_sp
OBR||^AOB|42251^RIS|8706^8706 - FAR^MedTrak^8706^8706 - FAR^RIS|||||||||\F\\F\R0\F\\F\|||^[email protected]||358 45|35742|69013||||CR|||^^^20070129121400||||^\F\\F \R0\F\\F\
inside my transformer I have to fill some information (ORC-2 and OBR-2) and to answer with an outbound hl7 message which is similar to the inbound above, but of a different type:
MSH|^~\&|RIS|RIS|AOB HL7 Gateway|AOB|||ORR^O02|1|P|2.3.1||||||8859/1
MSA|AA|1||||
PID|||10104665^^^AOB~XXXXXX45E66C351W^^^CF||Duck^R ocker||19770703|M|||VIA COLOMBA ANTONIETTI 14^^092009^092^00043^ITALIA^P~^^^^^^H||555-1234~|||||XXXXXX45E66C351W^^^AOB|||||092009|||0003 1
PV1|||||||||||||||||||2070011966^^^AOB|||||||||||| ||||||||||||||||||||V
ORC|SN|123^AOB|42251^RIS|2070011970|SC||^^^2007012 9121400||20070129123242|^00009038||^[email protected]|dh e_sp||||^dhe_sp
OBR||123^AOB|42251^RIS|8706^8706 - FAR^MedTrak^8706^8706 - FAR^RIS|||||||||\F\\F\R0\F\\F\|||^[email protected]||358 45|35742|69013||||CR|||^^^20070129121400||||^\F\\F \R0\F\\F\
The problem is that I am working with the msg object, that if I have unserstood correctli it is the incoming message representation object and,after the trasformations, the message that will be sent. I am not able to change the message type from ORM^O01 to ORR^O02 inside this object. I have tried to delete all the MSH segment and to subsitute it to an XML new one; it was the only way to change the MSH-9 fields. But after the transmission I see that the XML representation of the transformed message always starts with:
<ORM_O01 xmlns="urn:hl7-org:v2xml">
so the message type is always ORM^O01.
Finally, is there a way, with the msg oblect, to add the MSA segment correctly and change the message type from ORM^O01 to ORM^O02??
What can I should do??
Thanks in advance,
asulis
I have a bad problem: I have a channel receving HL7 Messages like this :
MSH|^~\&|RIS|RIS|AOB HL7 Gateway|AOB|||ORM^O01|1|P|2.3.1||||||8859/1
PID|||10104665^^^AOB~XXXXXX45E66C351W^^^CF||Duck^R ocker||19770703|M|||VIA COLOMBA ANTONIETTI 14^^092009^092^00043^ITALIA^P~^^^^^^H||555-1234~|||||XXXXXX45E66C351W^^^AOB|||||092009|||0003 1
PV1|||||||||||||||||||2070011966^^^AOB|||||||||||| ||||||||||||||||||||V
ORC|SN|^AOB|42251^RIS|2070011970|SC||^^^2007012912 1400||20070129123242|^00009038||^[email protected]|dhe_s p||||^dhe_sp
OBR||^AOB|42251^RIS|8706^8706 - FAR^MedTrak^8706^8706 - FAR^RIS|||||||||\F\\F\R0\F\\F\|||^[email protected]||358 45|35742|69013||||CR|||^^^20070129121400||||^\F\\F \R0\F\\F\
inside my transformer I have to fill some information (ORC-2 and OBR-2) and to answer with an outbound hl7 message which is similar to the inbound above, but of a different type:
MSH|^~\&|RIS|RIS|AOB HL7 Gateway|AOB|||ORR^O02|1|P|2.3.1||||||8859/1
MSA|AA|1||||
PID|||10104665^^^AOB~XXXXXX45E66C351W^^^CF||Duck^R ocker||19770703|M|||VIA COLOMBA ANTONIETTI 14^^092009^092^00043^ITALIA^P~^^^^^^H||555-1234~|||||XXXXXX45E66C351W^^^AOB|||||092009|||0003 1
PV1|||||||||||||||||||2070011966^^^AOB|||||||||||| ||||||||||||||||||||V
ORC|SN|123^AOB|42251^RIS|2070011970|SC||^^^2007012 9121400||20070129123242|^00009038||^[email protected]|dh e_sp||||^dhe_sp
OBR||123^AOB|42251^RIS|8706^8706 - FAR^MedTrak^8706^8706 - FAR^RIS|||||||||\F\\F\R0\F\\F\|||^[email protected]||358 45|35742|69013||||CR|||^^^20070129121400||||^\F\\F \R0\F\\F\
The problem is that I am working with the msg object, that if I have unserstood correctli it is the incoming message representation object and,after the trasformations, the message that will be sent. I am not able to change the message type from ORM^O01 to ORR^O02 inside this object. I have tried to delete all the MSH segment and to subsitute it to an XML new one; it was the only way to change the MSH-9 fields. But after the transmission I see that the XML representation of the transformed message always starts with:
<ORM_O01 xmlns="urn:hl7-org:v2xml">
so the message type is always ORM^O01.
Finally, is there a way, with the msg oblect, to add the MSA segment correctly and change the message type from ORM^O01 to ORM^O02??
What can I should do??
Thanks in advance,
asulis
Comment