Skip to content

Commit

Permalink
Fix Clinical Officers search.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLemayian committed Mar 21, 2019
1 parent 81c6e06 commit 7960966
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/healthtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ $(document).ready(function() {
} else {
// Clinical Officers
for (var k = 0; k < result_no; k++) {
response_html += 'Name: ' + result.hits[k]._source.name + '<br>';
response_html += 'Reg no: ' + result.hits[k]._source.reg_no + '<br>';
response_html += 'Reg date: ' + new Date(result.hits[k]._source.reg_date).toDateString() + '<br>';
response_html += 'Address: ' + result.hits[k]._source.address + '<br>';
response_html += 'Qualification: ' + result.hits[k]._source.qualifications + '<br>';
response_html += 'Name: ' + result.hits[k].name + '<br>';
response_html += 'Reg no: ' + result.hits[k].reg_no + '<br>';
response_html += 'Reg date: ' + new Date(result.hits[k].reg_date).toDateString() + '<br>';
response_html += 'Address: ' + result.hits[k].address + '<br>';
response_html += 'Qualification: ' + result.hits[k].qualifications + '<br>';
if (k < result_no - 1) response_html += '<hr>';
}
}
Expand Down

0 comments on commit 7960966

Please sign in to comment.