|
|
|
|
@ -55,22 +55,24 @@ class BaseAppClient {
|
|
|
|
|
|
|
|
|
|
body['DeviceTypeID'] = DeviceTypeID;
|
|
|
|
|
|
|
|
|
|
body['PatientType'] = body.containsKey('PatientType')
|
|
|
|
|
? body['PatientType'] != null ? body['PatientType'] : PATIENT_TYPE
|
|
|
|
|
: PATIENT_TYPE;
|
|
|
|
|
if(!body.containsKey('IsPublicRequest')) {
|
|
|
|
|
body['PatientType'] = body.containsKey('PatientType')
|
|
|
|
|
? body['PatientType'] != null ? body['PatientType'] : PATIENT_TYPE
|
|
|
|
|
: PATIENT_TYPE;
|
|
|
|
|
|
|
|
|
|
body['PatientTypeID'] = body.containsKey('PatientTypeID')
|
|
|
|
|
? body['PatientTypeID'] != null
|
|
|
|
|
? body['PatientTypeID']
|
|
|
|
|
: PATIENT_TYPE_ID
|
|
|
|
|
: PATIENT_TYPE_ID;
|
|
|
|
|
body['PatientTypeID'] = body.containsKey('PatientTypeID')
|
|
|
|
|
? body['PatientTypeID'] != null
|
|
|
|
|
? body['PatientTypeID']
|
|
|
|
|
: PATIENT_TYPE_ID
|
|
|
|
|
: PATIENT_TYPE_ID;
|
|
|
|
|
|
|
|
|
|
if (user != null) {
|
|
|
|
|
body['TokenID'] = token;
|
|
|
|
|
body['PatientID'] =
|
|
|
|
|
body['PatientID'] != null ? body['PatientID'] : user['PatientID'];
|
|
|
|
|
body['PatientOutSA'] = user['OutSA'];
|
|
|
|
|
body['SessionID'] = getSessionId(token);
|
|
|
|
|
if (user != null) {
|
|
|
|
|
body['TokenID'] = token;
|
|
|
|
|
body['PatientID'] =
|
|
|
|
|
body['PatientID'] != null ? body['PatientID'] : user['PatientID'];
|
|
|
|
|
body['PatientOutSA'] = user['OutSA'];
|
|
|
|
|
body['SessionID'] = getSessionId(token);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
|
|