procedure changes

prescription_changes
hussam al-habibeh 3 years ago
parent 2a44840666
commit 764578f28e

@ -60,6 +60,8 @@ class ProcedureViewModel extends BaseViewModel {
Future getProcedure({int mrn, String patientType}) async {
hasError = false;
await getDoctorProfile();
doctorProfile.doctorID;
//_insuranceCardService.clearInsuranceCard();
setState(ViewState.Busy);
await _procedureService.getProcedure(mrn: mrn);
@ -289,7 +291,6 @@ class ProcedureViewModel extends BaseViewModel {
}
}
getPatientLabOrdersResults(
{PatientLabOrders patientLabOrder,
String procedure,

@ -28,6 +28,7 @@ class ProcedureCard extends StatelessWidget {
this.patient,
this.doctorID,
}) : super(key: key);
@override
Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context);
@ -253,9 +254,9 @@ class ProcedureCard extends StatelessWidget {
fontSize: 12,
),
),
if (entityList.categoryID == 2 ||
entityList.categoryID == 4 &&
doctorID == entityList.doctorID)
if ((entityList.categoryID == 2 ||
entityList.categoryID == 4) &&
doctorID == entityList.doctorID)
InkWell(
child: Icon(DoctorApp.edit),
onTap: onTap,

@ -92,9 +92,7 @@ class ProcedureScreen extends StatelessWidget {
fontSize: 13,
),
AppText(
TranslationBase
.of(context)
.procedure,
TranslationBase.of(context).procedure,
bold: true,
fontSize: 22,
),
@ -102,15 +100,14 @@ class ProcedureScreen extends StatelessWidget {
),
),
if ((patient.patientStatusType != null &&
patient.patientStatusType == 43) ||
patient.patientStatusType == 43) ||
(isFromLiveCare && patient.appointmentNo != null))
InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
AddProcedureHome(
builder: (context) => AddProcedureHome(
patient: patient,
model: model,
)),
@ -192,7 +189,7 @@ class ProcedureScreen extends StatelessWidget {
// 'You Cant Update This Procedure');
},
patient: patient,
doctorID: doctorNameP,
doctorID: model.doctorProfile.doctorID,
),
),
if (model.state == ViewState.ErrorLocal ||

Loading…
Cancel
Save