small changes

merge-requests/241/head
Elham Rababah 5 years ago
parent 1be8ea7dcb
commit 9aa5ab4228

@ -49,6 +49,9 @@ class BaseAppClient {
if (body['ClinicID'] == null) if (body['ClinicID'] == null)
body['ClinicID'] = doctorProfile?.clinicID; body['ClinicID'] = doctorProfile?.clinicID;
} }
if (body['DoctorID'] == '') {
body['DoctorID'] =null;
}
body['TokenID'] = token ?? ''; body['TokenID'] = token ?? '';
String lang = await sharedPref.getString(APP_Language); String lang = await sharedPref.getString(APP_Language);
if (lang != null && lang == 'ar') if (lang != null && lang == 'ar')

@ -8,17 +8,19 @@ class PostChiefComplaintRequestModel {
bool ispregnant; bool ispregnant;
bool isLactation; bool isLactation;
int numberOfWeeks; int numberOfWeeks;
dynamic doctorID;
PostChiefComplaintRequestModel( PostChiefComplaintRequestModel(
{this.appointmentNo, {this.appointmentNo,
this.episodeID, this.episodeID,
this.patientMRN, this.patientMRN,
this.chiefComplaint, this.chiefComplaint,
this.hopi, this.hopi,
this.currentMedication, this.currentMedication,
this.ispregnant, this.ispregnant,
this.isLactation, this.isLactation,
this.numberOfWeeks}); this.doctorID,
this.numberOfWeeks});
PostChiefComplaintRequestModel.fromJson(Map<String, dynamic> json) { PostChiefComplaintRequestModel.fromJson(Map<String, dynamic> json) {
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];
@ -30,6 +32,7 @@ class PostChiefComplaintRequestModel {
ispregnant = json['ispregnant']; ispregnant = json['ispregnant'];
isLactation = json['isLactation']; isLactation = json['isLactation'];
numberOfWeeks = json['numberOfWeeks']; numberOfWeeks = json['numberOfWeeks'];
doctorID = json['DoctorID'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -43,6 +46,8 @@ class PostChiefComplaintRequestModel {
data['ispregnant'] = this.ispregnant; data['ispregnant'] = this.ispregnant;
data['isLactation'] = this.isLactation; data['isLactation'] = this.isLactation;
data['numberOfWeeks'] = this.numberOfWeeks; data['numberOfWeeks'] = this.numberOfWeeks;
data['DoctorID'] = this.doctorID;
return data; return data;
} }
} }

@ -28,13 +28,14 @@ class GetPatientArrivalListRequestModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
data['From'] = this.from; data['From'] = this.from;
data['To'] = this.to; data['To'] = this.to;
data['DoctorID'] = this.doctorID; data['DoctorID'] = this.doctorID;
data['PageIndex'] = this.pageIndex; data['PageIndex'] = this.pageIndex;
data['PageSize'] = this.pageSize; data['PageSize'] = this.pageSize;
data['ClinicID'] = this.clinicID; data['ClinicID'] = this.clinicID;
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
return data; return data;
} }
} }

@ -552,8 +552,9 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
currentMedication: " currentMedication ", currentMedication: " currentMedication ",
hopi: illnessController.text, hopi: illnessController.text,
isLactation: false, isLactation: false,
ispregnant: true, ispregnant: false,
numberOfWeeks: 22); doctorID: '',
numberOfWeeks: 0);
if (model.patientChiefComplaintList.isEmpty) { if (model.patientChiefComplaintList.isEmpty) {
// TODO: make it postChiefComplaint after it start to work // TODO: make it postChiefComplaint after it start to work
await model.postChiefComplaint(postChiefComplaintRequestModel); await model.postChiefComplaint(postChiefComplaintRequestModel);

Loading…
Cancel
Save