function appendRowToTable()

in src/FhirDashboardJS/js/PatientModule.js [437:450]


function appendRowToTable(table, count, cells)
{
    var row = table.insertRow(-1);
    for (var i = 0; i < cells.length; i++)
    {
        var cell = row.insertCell(-1);
        cell.innerHTML = cells[i];
    }

    if (count) 
    {
        count.innerHTML = table.getElementsByTagName('tr').length-1;
    }
}