|
@@ -489,21 +489,6 @@ class RegistrationListController {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Future<void> _setCurrentSelectPatientInfo(ResidentModel rowData) async {
|
|
|
- final _patientManager = Get.find<IPatientManager>();
|
|
|
- final PatientDTO? dto = await _patientManager.getDetail(rowData.idNumber);
|
|
|
- if (dto != null) {
|
|
|
- Store.user.currentSelectPatientInfo = dto;
|
|
|
- } else {
|
|
|
- Store.user.currentSelectPatientInfo = PatientDTO(
|
|
|
- cardNo: rowData.idNumber,
|
|
|
- patientName: rowData.name,
|
|
|
- code: rowData.idNumber,
|
|
|
- patientAddress: rowData.homeAddress,
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
void _examDialog(ResidentModel rowData, bool isIntegralDesk) async {
|
|
|
final FEventHandler<bool> onSubmitEvent = FEventHandler<bool>();
|
|
|
|
|
@@ -593,7 +578,8 @@ class RegistrationListController {
|
|
|
batchNumber: rowData.batchNumber ?? '',
|
|
|
),
|
|
|
);
|
|
|
- _setCurrentSelectPatientInfo(rowData);
|
|
|
+ Get.find<IPatientManager>()
|
|
|
+ .switchCurrentPatientByCode(rowData.idNumber);
|
|
|
_examDialog(rowData, isIntegralDesk);
|
|
|
},
|
|
|
"HealthCheck",
|