03 March, 2015

Javascript code in Mirth channel for removing Pipe Line (|) and Quotation (") remove from string

function isSegmentEmpty(segs)
{
    var data=""+segs;
    data=data.replace(/\|/g,""); // replace pipeline
    data=data.replace(/\"/g,""); // replace quotation
    data=data.trim();
    //WriteErrLog("Insurance Data isSegmentEmpty function: "+data);
    return    data;
}