|
@@ -163,7 +163,10 @@ class RegistrationFormController {
|
|
|
RegistrationFormDialog(patient: patientInfo),
|
|
|
barrierDismissible: false,
|
|
|
);
|
|
|
- if (patient != null && result != null) {
|
|
|
+ if (result == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ if (patient != null) {
|
|
|
patient.cardNo = result.cardNo;
|
|
|
patient.patientName = result.patientName;
|
|
|
patient.patientGender = result.patientGender ?? GenderEnum.Unknown;
|
|
@@ -210,16 +213,16 @@ class RegistrationFormController {
|
|
|
PatientDTO? currentPatient = await fillInIdentityInfo(patient);
|
|
|
if (currentPatient != null) {
|
|
|
patient = currentPatient;
|
|
|
+ await createResidentInList(
|
|
|
+ patient: patient,
|
|
|
+ isVital: isVital,
|
|
|
+ );
|
|
|
} else {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- await createResidentInList(
|
|
|
- patient: patient,
|
|
|
- isVital: isVital,
|
|
|
- );
|
|
|
}
|
|
|
|
|
|
/// 提交数据给server 生成登记列表
|