Пример #1
0
def newPatientWindow():
    try:
        patientID
    except NameError:
        return render_template("error.html")
    else:
        return render_template("pdata_window.html", pid = patientID, pData = toHTML(patientData))
Пример #2
0
def load():
    global patientID 
    global pData
    global patientData
    patientID = request.args["patientID"]
    if patientID == "Fake Patient 1":
        patientData = fakePatient1
    if patientID == "Fake Patient 2":
        patientData = fakePatient2
    pData = cq.mapPatientData(patientData, fields, token_key)
    return render_template("pdata_template.html", pData = toHTML(patientData))