amida-tech / blue-button

Blue Button (CCDA/CMS Blue Button/etc) to JSON Parser.
Other
49 stars 44 forks source link

Issue after importing this in my Ionic application - (ERROR TypeError: match.type is not a function) #254

Open bhushanbaviskar opened 6 years ago

bhushanbaviskar commented 6 years ago

I am trying to parse CCDA documents in my Ionic application. After adding this library in my Ionic Application, I am able to parse C32 type of CCD documents, but it fails for other types of documents such as 'ccda'.

On console, I get following error -

TypeError: match.type is not a function

at ParserNF.isNullFlavor (vendor.js:166540)
at vendor.js:99392
at Array.map (<anonymous>)
at ParserNF.Parser.run (vendor.js:99391)
at Object.<anonymous> (vendor.js:165884)
at Array.forEach (<anonymous>)
at Object.componentInstance.run (vendor.js:165883)
at vendor.js:99398
at Array.map (<anonymous>)
at Parser.run (vendor.js:99391)`

I am struggling with this issue since last couple of weeks and not able to solve it yet. Any help would be appreciated. Thanks. Bhushan