Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can't find<segment_name>as a direct child Error while creating HL7file

Hi,
Error 1:
I am trying to create HL7 file with the following segments
MSH|^~\&|||||||MFN^M02||T|2.3|
MFE|UPD|||
MFI|REF||||
STF|||^^^^^||||||||||^^^^^||||||||||
in this i got an error i.e., Exception in component tHL7Output_2
ca.uhn.hl7v2.HL7Exception: Can't find MFE as a direct child
Error 2:
I am trying to create HL7 file with the following segments
MSH|^~\&|||||||ADT^A04|||2.3|
EVN|A04|||01|
PID|1||||^^||||||^^^^||^|^||||||||||||||||||||||^|^||^|^|^|||^|||||^^^^|||^|||||||||||||||||
PV1|1||||||^^^^^||^^^^^||
NK1||^^||^^^^|||||
IN1|1||||^^^^|||||||||||^^|1||^^^^|Y||||||||||||||||||||
ZS1|^|^|^|^|^|^|^|^|^|^|^|^|^||
in this i got an error i.e., Can't find ZS1 as a direct child.

Please help me anyone regarding this,
Thanks in Advance,
Thirupathi
Labels (2)
2 Replies
Anonymous
Not applicable
Author

I guess your file looks like you break a couple of rules.
http://www.hl7.org/implement/standards/index.cfm?ref=quicklinks
I would say, take a look into the standard and start with the examples and check the way you are trying to fill the segment fields.
Only an example what I am talking about:
The standard tells us the 4. field should be filled by the internal patient number but in your example there a lot but no patient number.
Segments starting with Z are country specific segments and I am not sure if you have to declare them?
Anonymous
Not applicable
Author

Hi,
Thankyou for giving reply,
And I can able to generate ADT-A04 HL7 message with the following segments using Mirth tool.
MSH|^~\&|||||||ADT^A04|||2.3|
EVN|A04|||01|
PID|1||||^^||||||^^^^||^|^||||||||||||||||||||||^|^||^|^|^|||^|||||^^^^|||^|||||||||||||||||
PV1|1||||||^^^^^||^^^^^||
NK1||^^||^^^^|||||
IN1|1||||^^^^|||||||||||^^|1||^^^^|Y||||||||||||||||||||
ZS1|^|^|^|^|^|^|^|^|^|^|^|^|^||

But when i am tried with Talend i got an error i.e, Can't find ZS1 as a direct child.

Please could anyone help me regarding this.
Thank's in Advance,
Thirupathi