コード例 #1
0
def doctorsList():
    """
    get doctor list
    :return:render page
    """
    ds = DoctorService()
    res, doctors = ds.getAll()
    data = doctors['data']
    return render_template('clerk/doctors.html',
                           **clerkSetting(),
                           doctors=data)
コード例 #2
0
def doctorsCalendar():
    """
    get doctor calendar
    :return: render page
    """
    ds = DoctorService()
    res, doctors = ds.getAll()
    data = doctors['data']
    return render_template('clerk/doctors_calendar.html',
                           **clerkSetting(),
                           doctors=data)
コード例 #3
0
ファイル: views.py プロジェクト: jasonshere/MAPS
def makeAppointment():
    """
    make an appointment
    :return: render page
    """
    ds = DoctorService()
    res, doctors = ds.getAll()
    data = doctors['data']
    return render_template('patient/calendar.html',
                           **patientSetting(),
                           doctors=data)