Subject:Telco EDI to XML output on optional numeric elements Author:Daniel Huesman Date:03 Mar 2014 08:41 AM
Several elements are defined as typeFM which is ultimatly defined as decimal. When there is nothing sent back from the payer for this element we still see the element definition which causes parsing issues. I've tried making the element properties nillable but that doesn't seem to help. The only thing which works is altering the datatype to string which we'd like to not have to do.
Is there a setting in the SEF file to not generate this documentation of each element? I can't seem to find such a setting in the stylus studio tool.
Thank You.
Example:
<S2315>
<!--FM: Basis Of Reimbursement Determination-->
</S2315>
Subject:Telco EDI to XML output on optional numeric elements Author:Daniel Huesman Date:03 Mar 2014 09:40 AM
The EDI to XML convesion has no issues whatsoever. It's when we parse the XML which flags the field as an error since "" doesn't match the codelist of 0 thru 9.
I'd like to modify the SEF file by turning off the comment or annotation to see if this does the trick but I can't easily seem to find the "Comment=off" options within the studio product.
Subject:Telco EDI to XML output on optional numeric elements Author:Daniel Huesman Date:03 Mar 2014 02:05 PM
That does help yes, but doesn't address the ultimate problem.
S2315 is an optional element, but even with this removing of comments, we still fail on parsing.
With this override, we receive:
" <S2315 />"
which still fails parsing. Ideally if it's not presented with content, I would think the EDI To XML converted would not send the element as output at all???
Since it's an optional element, I may need to go back to see if we can have another fix from the data direct folks.
NOTE: I made the change you recommended, but would you know where in the stylus studio UI I could do the same thing? I've looked all over the place an don't seem to see these sort of options.
Subject:Telco EDI to XML output on optional numeric elements Author:Daniel Huesman Date:04 Mar 2014 07:40 AM
Note: the RESPc.txt file is the EDI input to convert to XML. The opt=yes is used since it was recommended to us for other conversion issues and finally, I found the options your screen shot showed ~ thank you.
Subject:Telco EDI to XML output on optional numeric elements Author:Ivan Pedruzzi Date:04 Mar 2014 09:57 AM
RESPc.txt cannot be converted by EDI to XML using Stylus Studio 1910n as is.
[DDEF0054] FATAL ERROR Unable to determine type of EDI file.
The file is not recognized as a type of EDI data stream that the
XML Converter knows how to handle.
If I remove part of the header which is the following then it works
0555032OKLDX601983512097662 01
opt=yes is really the last resort to get to the data even when the message structure is completely unreliable.
I don't think the EDI transaction is valid.
If element S2315 is present it should have a value from code-list FM.
When enabling code list validation (tbl=yes) XML Converters reports
<<' ' not in code-list FM>>.
One way to workaround the problem would be to post-process the XML using XSLT to get rid of the empty elements which prevent Tibco to parse it.
Subject:Telco EDI to XML output on optional numeric elements Author:Daniel Huesman Date:04 Mar 2014 10:13 AM
Yes I understand the "opt=yes" is a last resort but unfortunately not all healthcare payers were forced to conform. Basically we're stuck dealing with work arounds. Thanks for all your assistance and yes I understand I can get around the mapping issue ideally I'm not a fan of extra code unless others can't deal with it.