|
|
|
|
@ -8,8 +8,8 @@ import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/vital_sign/patient-vital-sign-history.dart';
|
|
|
|
|
|
|
|
|
|
class UcafService extends LookupService {
|
|
|
|
|
List<GetChiefComplaintResModel> patientChiefComplaintList;
|
|
|
|
|
List<VitalSignHistory> patientVitalSignsHistory;
|
|
|
|
|
late List<GetChiefComplaintResModel> patientChiefComplaintList;
|
|
|
|
|
late List<VitalSignHistory> patientVitalSignsHistory;
|
|
|
|
|
List<GetAssessmentResModel> patientAssessmentList = [];
|
|
|
|
|
List<OrderProcedure> orderProcedureList = [];
|
|
|
|
|
PrescriptionModel? prescriptionList;
|
|
|
|
|
@ -22,13 +22,13 @@ class UcafService extends LookupService {
|
|
|
|
|
body['EpisodeID'] = patient.episodeNo;
|
|
|
|
|
body['DoctorID'] = "";
|
|
|
|
|
|
|
|
|
|
patientChiefComplaintList = null;
|
|
|
|
|
patientChiefComplaintList = [];
|
|
|
|
|
await baseAppClient.post(GET_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
if (patientChiefComplaintList != null) {
|
|
|
|
|
patientChiefComplaintList.clear();
|
|
|
|
|
} else {
|
|
|
|
|
patientChiefComplaintList = new List();
|
|
|
|
|
patientChiefComplaintList = [];
|
|
|
|
|
}
|
|
|
|
|
response['List_ChiefComplaint']['entityList'].forEach((v) {
|
|
|
|
|
patientChiefComplaintList.add(GetChiefComplaintResModel.fromJson(v));
|
|
|
|
|
@ -50,14 +50,14 @@ class UcafService extends LookupService {
|
|
|
|
|
body['InOutPatientType'] = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
patientVitalSignsHistory = null;
|
|
|
|
|
patientVitalSignsHistory = [];
|
|
|
|
|
await baseAppClient.post(
|
|
|
|
|
GET_PATIENT_VITAL_SIGN,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
if (patientVitalSignsHistory != null) {
|
|
|
|
|
patientVitalSignsHistory.clear();
|
|
|
|
|
} else {
|
|
|
|
|
patientVitalSignsHistory = new List();
|
|
|
|
|
patientVitalSignsHistory = [];
|
|
|
|
|
}
|
|
|
|
|
if (response['List_DoctorPatientVitalSign'] != null) {
|
|
|
|
|
response['List_DoctorPatientVitalSign'].forEach((v) {
|
|
|
|
|
@ -86,14 +86,14 @@ class UcafService extends LookupService {
|
|
|
|
|
body['From'] = fromDate;
|
|
|
|
|
body['To'] = toDate;
|
|
|
|
|
|
|
|
|
|
patientVitalSignsHistory = null;
|
|
|
|
|
patientVitalSignsHistory = [];
|
|
|
|
|
await baseAppClient.post(
|
|
|
|
|
GET_PATIENT_VITAL_SIGN_DATA,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
if (patientVitalSignsHistory != null) {
|
|
|
|
|
patientVitalSignsHistory.clear();
|
|
|
|
|
} else {
|
|
|
|
|
patientVitalSignsHistory = new List();
|
|
|
|
|
patientVitalSignsHistory = [];
|
|
|
|
|
}
|
|
|
|
|
if (response['VitalSignsHistory'] != null) {
|
|
|
|
|
response['VitalSignsHistory'].forEach((v) {
|
|
|
|
|
|