|
@@ -15,15 +15,18 @@ import 'package:vitalapp/store/store.dart';
|
|
|
|
|
|
class SelfCareAbilityAssessmentView
|
|
|
extends GetView<SelfCareAbilityAssessmentController> {
|
|
|
- SelfCareAbilityAssessmentView({super.key});
|
|
|
+ SelfCareAbilityAssessmentView({
|
|
|
+ super.key,
|
|
|
+ this.physicalExamNumber,
|
|
|
+ });
|
|
|
final _examManager = Get.find<IExamManager>();
|
|
|
ExamDTO? currentSelfCareAbilityAssessmentExam;
|
|
|
+ final String? physicalExamNumber;
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
return Scaffold(
|
|
|
body: FutureBuilder(
|
|
|
- future: getExamData(
|
|
|
- Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ?? ''),
|
|
|
+ future: getExamData(physicalExamNumber ?? ''),
|
|
|
builder: (context, snapshot) {
|
|
|
if (snapshot.connectionState == ConnectionState.waiting) {
|
|
|
return Center(child: CircularProgressIndicator());
|
|
@@ -60,7 +63,7 @@ class SelfCareAbilityAssessmentView
|
|
|
callBack: (key, templateCode, data) async {
|
|
|
await createBasicCheckup(
|
|
|
Store.user.currentSelectPatientInfo?.code ?? '',
|
|
|
- Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ?? '',
|
|
|
+ physicalExamNumber ?? '',
|
|
|
key,
|
|
|
data,
|
|
|
);
|