|
|
|
|
@ -43,7 +43,14 @@ class BaseAppClient {
|
|
|
|
|
bool callLog = true;
|
|
|
|
|
try {
|
|
|
|
|
Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
if (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId; // changed from null; because create update episode not working
|
|
|
|
|
|
|
|
|
|
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 (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId; // changed from null; because create update episode not working
|
|
|
|
|
|
|
|
|
|
String? token = await sharedPref.getString(TOKEN);
|
|
|
|
|
if(!isCustomRequest) {
|
|
|
|
|
|