|
|
|
@ -17,32 +17,32 @@ class PatientsProvider with ChangeNotifier {
|
|
|
|
final response = await http.post(url,
|
|
|
|
final response = await http.post(url,
|
|
|
|
headers: requestHeaders,
|
|
|
|
headers: requestHeaders,
|
|
|
|
body: json.encode({
|
|
|
|
body: json.encode({
|
|
|
|
"ProjectID": 12,
|
|
|
|
"ProjectID": patient.PatientID,
|
|
|
|
"ClinicID": 17,
|
|
|
|
"ClinicID": patient.ClinicID,
|
|
|
|
"DoctorID": 98129,
|
|
|
|
"DoctorID": patient.DoctorID,
|
|
|
|
"FirstName": "0",
|
|
|
|
"FirstName": patient.FirstName,
|
|
|
|
"MiddleName": "0",
|
|
|
|
"MiddleName": patient.MiddleName,
|
|
|
|
"LastName": "0",
|
|
|
|
"LastName": patient.LastName,
|
|
|
|
"PatientMobileNumber": "0",
|
|
|
|
"PatientMobileNumber": patient.PatientMobileNumber,
|
|
|
|
"PatientIdentificationID": "0",
|
|
|
|
"PatientIdentificationID": patient.PatientIdentificationID,
|
|
|
|
"PatientID": 0,
|
|
|
|
"PatientID": patient.PatientID,
|
|
|
|
"From": "0",
|
|
|
|
"From": patient.From,
|
|
|
|
"To": "0",
|
|
|
|
"To": patient.To,
|
|
|
|
"LanguageID": 2,
|
|
|
|
"LanguageID": patient.LanguageID,
|
|
|
|
"stamp": "2020-03-02T13:56:39.170Z",
|
|
|
|
"stamp": patient.stamp,
|
|
|
|
"IPAdress": "11.11.11.11",
|
|
|
|
"IPAdress":patient.IPAdress,
|
|
|
|
"VersionID": 1.2,
|
|
|
|
"VersionID": patient.VersionID,
|
|
|
|
"Channel": 9,
|
|
|
|
"Channel": patient.Channel,
|
|
|
|
"TokenID": "2Fi7HoIHB0eDyekVa6tCJg==",
|
|
|
|
"TokenID": patient.TokenID,
|
|
|
|
"SessionID": "5G0yXn0Jnq",
|
|
|
|
"SessionID": patient.SessionID,
|
|
|
|
"IsLoginForDoctorApp": true,
|
|
|
|
"IsLoginForDoctorApp": patient.IsLoginForDoctorApp,
|
|
|
|
"PatientOutSA": false
|
|
|
|
"PatientOutSA": patient.PatientOutSA
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
// var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
|
|
|
|
// var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
|
|
|
|
print('Response status: ${response.statusCode}');
|
|
|
|
print('Response status: ${response.statusCode}');
|
|
|
|
print('Response body: ${response.body}');
|
|
|
|
print('Response body: ${response.body}');
|
|
|
|
|
|
|
|
// notifyListeners();
|
|
|
|
return Future.value(json.decode(response.body));
|
|
|
|
return Future.value(json.decode(response.body));
|
|
|
|
notifyListeners();
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
print(error.toString());
|
|
|
|
print(error.toString());
|
|
|
|
print('error');
|
|
|
|
print('error');
|
|
|
|
|