1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
432 views
by brandon-w-8204 (34.1k points)
edited 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"));
}
by brandon-w-8204 (34.1k points)
...