fix ui issues

merge-requests/700/head
Mohammad Aljammal 3 years ago
parent cf10eba134
commit 6620c79478

@ -5,8 +5,8 @@ const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]";
const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/';
//const BASE_URL = 'https://hmgwebservices.com/';
const BASE_URL = 'https://uat.hmgwebservices.com/';
const BASE_URL = 'https://hmgwebservices.com/';
// const BASE_URL = 'https://uat.hmgwebservices.com/';
const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh";
const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";

@ -4,6 +4,7 @@ class ProcedureTempleteDetailsModel {
int clinicID;
int doctorID;
int templateID;
String templateName;
String procedureID;
bool isActive;
int createdBy;
@ -16,6 +17,9 @@ class ProcedureTempleteDetailsModel {
String aliasN;
String categoryID;
String subGroupID;
String categoryDescription;
String categoryDescriptionN;
String categoryAlias;
dynamic riskCategoryID;
String type = "1";
String remarks;
@ -40,6 +44,10 @@ class ProcedureTempleteDetailsModel {
this.categoryID,
this.subGroupID,
this.riskCategoryID,
this.templateName,
this.categoryDescription,
this.categoryDescriptionN,
this.categoryAlias,
this.remarks,
this.type = "1",
this.selectedType = 0});
@ -63,6 +71,10 @@ class ProcedureTempleteDetailsModel {
categoryID = json['CategoryID'];
subGroupID = json['SubGroupID'];
riskCategoryID = json['RiskCategoryID'];
templateName = json['TemplateName'];
categoryDescription = json['CategoryDescription'];
categoryDescriptionN = json['CategoryDescriptionN'];
categoryAlias = json['CategoryAlias'];
}
Map<String, dynamic> toJson() {
@ -85,6 +97,19 @@ class ProcedureTempleteDetailsModel {
data['CategoryID'] = this.categoryID;
data['SubGroupID'] = this.subGroupID;
data['RiskCategoryID'] = this.riskCategoryID;
data['TemplateName'] = this.templateName;
data['CategoryDescription'] = this.categoryDescription;
data['CategoryDescriptionN'] = this.categoryDescriptionN;
data['CategoryAlias'] = this.categoryAlias;
return data;
}
}
class ProcedureTempleteDetailsModelList {
List<ProcedureTempleteDetailsModel> procedureTemplate;
String templateName;
ProcedureTempleteDetailsModelList(
{this.templateName, ProcedureTempleteDetailsModel template}) {
procedureTemplate.add(template);
}
}

@ -61,7 +61,7 @@ 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);

@ -159,15 +159,14 @@ class _AddSelectedLabOrderState extends State<AddSelectedLabOrder> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
AppText(
TranslationBase.of(context).applyForNewLabOrder,
fontWeight: FontWeight.w700,
fontSize: 20,
),
SizedBox(
width: MediaQuery.of(context).size.width * 0.48,
),
InkWell(
child: Icon(
Icons.close,

@ -189,7 +189,7 @@ class ProcedureScreen extends StatelessWidget {
// 'You Cant Update This Procedure');
},
patient: patient,
doctorID: model.doctorProfile.doctorID,
doctorID: model?.doctorProfile?.doctorID,
),
),
if (model.state == ViewState.ErrorLocal ||

Loading…
Cancel
Save