|
|
|
|
@ -239,7 +239,15 @@ class BaseAppClient {
|
|
|
|
|
|
|
|
|
|
String? token = await sharedPref.getString(TOKEN);
|
|
|
|
|
Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
if (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId;
|
|
|
|
|
|
|
|
|
|
// if (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId;
|
|
|
|
|
|
|
|
|
|
if (profile != null) {
|
|
|
|
|
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
|
|
|
|
|
if (body?['MemberID'] == null)
|
|
|
|
|
body?['MemberID'] = HospitalsService.memberId.isNotEmpty ? HospitalsService.memberId : doctorProfile.doctorID; // changed from null; because create update episode not working
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (profile != null) {
|
|
|
|
|
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
|
|
|
|
|
if (body!['DoctorID'] == null) {
|
|
|
|
|
|