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)
def getPatientData(): print(request.args.get("pin")) d = DoctorNotesHelper() # d = DoctorNotesHelper() return jsonify(d.getNote(request.args.get("pin"))['notes'])