|
@@ -419,6 +419,7 @@ class MedicalController extends FControllerBase {
|
|
|
return url.startsWith('https://') || url.startsWith('http://');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
Future<Map> uploadData(Map data) async {
|
|
|
if (data['ECG_POINT'] != null && !isUploaded(data['ECG_POINT'])) {
|
|
|
File ecgPointFile =
|
|
@@ -447,6 +448,12 @@ class MedicalController extends FControllerBase {
|
|
|
String? imageUrl = await rpc.storage.upload(imageFile!, fileType: "jpg");
|
|
|
data['ECG12'] = imageUrl ?? '';
|
|
|
}
|
|
|
+ if (data['ECG12_30s'] != null && !isUploaded(data['ECG12_30s'])) {
|
|
|
+
|
|
|
+ final imageFile = UploadUtils.convertBase64ToXFile(data['ECG12_30s']);
|
|
|
+ String? imageUrl = await rpc.storage.upload(imageFile!, fileType: "jpg");
|
|
|
+ data['ECG12_30s'] = imageUrl ?? '';
|
|
|
+ }
|
|
|
return data;
|
|
|
}
|
|
|
|
|
@@ -472,6 +479,12 @@ class MedicalController extends FControllerBase {
|
|
|
Get.back();
|
|
|
}
|
|
|
onSelectExam.emit(this, true);
|
|
|
+ saveCachedRecord();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
print(result);
|
|
|
}
|
|
|
|