def getClinicById(id): clinic = ClinicTDG.find(id) if clinic is not None: return dict(clinic) else: return None
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
def clinicExistsById(id): clinic = ClinicTDG.find(id) if clinic is not None: return True return False