Sidebar

Can I replace the payer id extension with the insurance id number

0 votes
314 views
asked Jul 9, 2015 by brandon-w-8204 (33,270 points)
edited Jul 9, 2015 by brandon-w-8204
I have a ccd with payer information but the number for the extension is a Centricity internal id vs the real insurance id number. Can this be updated.

1 Answer

0 votes

Yes this can be replaced using a for loop and a database query.

var payerCount = message.getCount('/ClinicalDocument/component/structuredBody/component[section/code/@code="48768-6"]/section/entry');
 
for (var i=1 ; i <= payerCount ; i++) {
   var insid = message.getNode('/ClinicalDocument/component/structuredBody/component[section/code/@code="48768-6"]/section/entry[' + i + ']/act/id/@extension');
   var queryResult = qie.doQuery(
      "dbName",
      "select IDNO from insuranc where INSID = '" + insid + "'");
      message.setNode('/ClinicalDocument/component/structuredBody/component[section/code/@code="48768-6"]/section/entry[' + i + ']/act/id/@extension', queryResult.getNode("idno"));
}
answered Jul 9, 2015 by brandon-w-8204 (33,270 points)
...