예제 #1
0
def patient():
    if request.method == 'GET':
        pin = request.args.get('pin')
        dnh = DoctorNotesHelper()
        data = dnh.getNote(pin)
        res = {'message': data['notes'][-1]['message']}
        return jsonify(res)
예제 #2
0
def getPatientData():
    print(request.args.get("pin"))
    d = DoctorNotesHelper()
    # d = DoctorNotesHelper()
    return jsonify(d.getNote(request.args.get("pin"))['notes'])