Exemplo n.º 1
0
def getClinicById(id):
    clinic = ClinicTDG.find(id)
    if clinic is not None:
        return dict(clinic)
    else:
        return None
Exemplo n.º 2
0
def updateClinic(id, name, address):
    ClinicTDG.update(id, name, address)
    updatedClinic = ClinicTDG.find(id)
    if ((updatedClinic.name == name) & (updatedClinic.address == address)):
        return True
    return False
Exemplo n.º 3
0
def clinicExistsById(id):
    clinic = ClinicTDG.find(id)
    if clinic is not None:
        return True
    return False