refresh method Null safety
- {required String patientId}
Retrieves the current patient instance from the backend and publishes
it. Returns the Patient instance on success or null on error.
Implementation
Future<Patient?> refresh({required final String patientId}) async {
final patient = await getPatient(patientId: patientId);
_sendPatientUpdate(patient: patient);
return patient;
}