|
|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
import 'package:doctor_app_flutter/client/base_app_client.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/procedure/get_ordered_procedure_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/lab_result/FlowChartPage.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
@ -18,19 +21,20 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
final int categoryID;
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
|
|
|
|
|
const ProcedureCard(
|
|
|
|
|
{Key key,
|
|
|
|
|
this.onTap,
|
|
|
|
|
this.entityList,
|
|
|
|
|
this.categoryID,
|
|
|
|
|
this.categoryName,
|
|
|
|
|
this.patient,
|
|
|
|
|
})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
const ProcedureCard({
|
|
|
|
|
Key key,
|
|
|
|
|
this.onTap,
|
|
|
|
|
this.entityList,
|
|
|
|
|
this.categoryID,
|
|
|
|
|
this.categoryName,
|
|
|
|
|
this.patient,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
Map profile = sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
|
|
|
|
|
return Container(
|
|
|
|
|
width: double.maxFinite,
|
|
|
|
|
height: MediaQuery.of(context).size.height * .22,
|
|
|
|
|
@ -188,12 +192,13 @@ class ProcedureCard extends StatelessWidget {
|
|
|
|
|
// entityList.remarks.toString() ?? '',
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// if (entityList.categoryID == 2 ||
|
|
|
|
|
// entityList.categoryID == 4)
|
|
|
|
|
// InkWell(
|
|
|
|
|
// child: Icon(DoctorApp.edit),
|
|
|
|
|
// onTap: onTap,
|
|
|
|
|
// )
|
|
|
|
|
if (entityList.categoryID == 2 ||
|
|
|
|
|
entityList.categoryID == 4 &&
|
|
|
|
|
entityList.doctorName == doctorProfile.doctorName)
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Icon(DoctorApp.edit),
|
|
|
|
|
onTap: onTap,
|
|
|
|
|
)
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
|