models/QRCode.js
/*
  parse a list of database records to string
  */
parse a list of database records to string
parse a list of database records to string
static parseRecordsToString(records)
 {
    var res = "";
    for (var idx = 0; idx < records.length; idx++) {
        res += records[idx].year + " "
            + records[idx].month + " "
            + records[idx].day + " "
            + records[idx].time + " " 
            + records[idx].general + " "
            + records[idx].dia + " "
            + records[idx].eat + " "
            + records[idx].pain + " "
            + records[idx].oral + " "
            + records[idx].appetite + " "
            + records[idx].activity + " "
            + records[idx].weight + " " 
            + records[idx].fatigue + " "
            + records[idx].hypertension + " "
            + records[idx].eczema + " "
            + records[idx].liver + " "
            + records[idx].vision + " "
            + records[idx].raceheart + " "
            + records[idx].muscle + " "
            + records[idx].joint + " "
            + records[idx].breath + " "
            + records[idx].exercise + " "
            + records[idx].comments + ", ";
    } 
    return res;
 }
static parseRecordsToString ( records ) { var res = "" ; for ( var idx = 0 ; idx < records . length ; idx ++ ) { res += records [ idx ] . year + " " + records [ idx ] . month + " " + records [ idx ] . day + " " + records [ idx ] . time + " " + records [ idx ] . general + " " + records [ idx ] . dia + " " + records [ idx ] . eat + " " + records [ idx ] . pain + " " + records [ idx ] . oral + " " + records [ idx ] . appetite + " " + records [ idx ] . activity + " " + records [ idx ] . weight + " " + records [ idx ] . fatigue + " " + records [ idx ] . hypertension + " " + records [ idx ] . eczema + " " + records [ idx ] . liver + " " + records [ idx ] . vision + " " + records [ idx ] . raceheart + " " + records [ idx ] . muscle + " " + records [ idx ] . joint + " " + records [ idx ] . breath + " " + records [ idx ] . exercise + " " + records [ idx ] . comments + ", " ; } return res ; }
parse a list of database records to string
parse a list of database records to string