From 7dde65f8d8ca422c71af56ad39be16963610a5d8 Mon Sep 17 00:00:00 2001 From: Sultan khan <> Date: Sun, 15 Dec 2024 11:10:56 +0300 Subject: [PATCH] MDS change in progress. --- lib/config/config.dart | 493 ++++++++++++------ lib/config/localized_values.dart | 279 ++++++---- lib/core/enum/master_lookup_key.dart | 4 + .../assessment/get_assessment_res_model.dart | 7 +- .../selected_items/my_selected_assement.dart | 4 +- lib/core/service/base/lookup-service.dart | 11 +- .../soap/SOAP_service.dart | 98 ++-- lib/core/viewModel/SOAP_view_model.dart | 13 +- 8 files changed, 617 insertions(+), 292 deletions(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index fe7d9b43..10b23bbd 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -19,81 +19,115 @@ const BASE_URL = 'https://uat.hmgwebservices.com/'; const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh"; const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList"; -const PATIENT_PROGRESS_NOTE_URL = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient"; -const PATIENT_INSURANCE_APPROVALS_URL = "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient"; -const PATIENT_REFER_TO_DOCTOR_URL = "Services/DoctorApplication.svc/REST/ReferToDoctor"; -const PATIENT_GET_DOCTOR_BY_CLINIC_URL = "Services/DoctorApplication.svc/REST/GetDoctorsByClinicID"; - -const PATIENT_GET_DOCTOR_BY_CLINIC_Hospital = "Services/Doctors.svc/REST/SearchDoctorsByTime"; - -const GET_CLINICS_FOR_DOCTOR = 'Services/DoctorApplication.svc/REST/GetClinicsForDoctor'; -const PATIENT_GET_LIST_REFERAL_URL = "Services/Lists.svc/REST/GetList_STPReferralFrequency"; -const PATIENT_GET_CLINIC_BY_PROJECT_URL = "Services/DoctorApplication.svc/REST/GetClinicsByProjectID"; +const PATIENT_PROGRESS_NOTE_URL = + "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient"; +const PATIENT_INSURANCE_APPROVALS_URL = + "Services/DoctorApplication.svc/REST/GetApprovalStatusForInpatient"; +const PATIENT_REFER_TO_DOCTOR_URL = + "Services/DoctorApplication.svc/REST/ReferToDoctor"; +const PATIENT_GET_DOCTOR_BY_CLINIC_URL = + "Services/DoctorApplication.svc/REST/GetDoctorsByClinicID"; + +const PATIENT_GET_DOCTOR_BY_CLINIC_Hospital = + "Services/Doctors.svc/REST/SearchDoctorsByTime"; + +const GET_CLINICS_FOR_DOCTOR = + 'Services/DoctorApplication.svc/REST/GetClinicsForDoctor'; +const PATIENT_GET_LIST_REFERAL_URL = + "Services/Lists.svc/REST/GetList_STPReferralFrequency"; +const PATIENT_GET_CLINIC_BY_PROJECT_URL = + "Services/DoctorApplication.svc/REST/GetClinicsByProjectID"; const PROJECT_GET_INFO = "Services/DoctorApplication.svc/REST/GetProjectInfo"; const GET_CLINICS = "Services/DoctorApplication.svc/REST/GetClinics"; -const GET_REFERRAL_FACILITIES = 'Services/DoctorApplication.svc/REST/GetReferralFacilities'; +const GET_REFERRAL_FACILITIES = + 'Services/DoctorApplication.svc/REST/GetReferralFacilities'; const GET_PROJECTS = 'Services/DoctorApplication.svc/REST/GetProjectInfo'; -const GET_PATIENT_VITAL_SIGN = 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign'; -const GET_PATIENT_VITAL_SIGN_DATA = 'Services/DoctorApplication.svc/REST/GetVitalSigns'; -const GET_PATIENT_LAB_OREDERS = 'Services/DoctorApplication.svc/REST/GetPatientLabOreders'; +const GET_PATIENT_VITAL_SIGN = + 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign'; +const GET_PATIENT_VITAL_SIGN_DATA = + 'Services/DoctorApplication.svc/REST/GetVitalSigns'; +const GET_PATIENT_LAB_OREDERS = + 'Services/DoctorApplication.svc/REST/GetPatientLabOreders'; const GET_PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList'; -const GET_LIVECARE_PENDINGLIST = 'Services/DoctorApplication.svc/REST/GetPendingPatientER'; +const GET_LIVECARE_PENDINGLIST = + 'Services/DoctorApplication.svc/REST/GetPendingPatientER'; const START_LIVE_CARE_CALL = 'LiveCareApi/DoctorApp/CallPatient'; -const LIVE_CARE_STATISTICS_FOR_CERTAIN_DOCTOR_URL = "Lists.svc/REST/DashBoard_GetLiveCareDoctorsStatsticsForCertainDoctor"; +const LIVE_CARE_STATISTICS_FOR_CERTAIN_DOCTOR_URL = + "Lists.svc/REST/DashBoard_GetLiveCareDoctorsStatsticsForCertainDoctor"; -const GET_PRESCRIPTION_REPORT = 'Services/Patients.svc/REST/GetPrescriptionReport'; +const GET_PRESCRIPTION_REPORT = + 'Services/Patients.svc/REST/GetPrescriptionReport'; -const GT_MY_PATIENT_QUESTION = 'Services/DoctorApplication.svc/REST/GtMyPatientsQuestions'; +const GT_MY_PATIENT_QUESTION = + 'Services/DoctorApplication.svc/REST/GtMyPatientsQuestions'; -const PRM_SEARCH_PATIENT = 'Services/Patients.svc/REST/GetPatientInformation_PRM'; +const PRM_SEARCH_PATIENT = + 'Services/Patients.svc/REST/GetPatientInformation_PRM'; const GET_PATIENT = 'Services/DoctorApplication.svc/REST/'; -const GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT = 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient'; +const GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT = + 'Services/DoctorApplication.svc/REST/GetPrescriptionReportForInPatient'; -const GET_MY_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferralPatient'; +const GET_MY_REFERRAL_PATIENT = + 'Services/DoctorApplication.svc/REST/GtMyReferralPatient'; const REFER_TO_DOCTOR = 'Services/DoctorApplication.svc/REST/ReferToDoctor'; -const ADD_REFERRED_DOCTOR_REMARKS = 'Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks'; +const ADD_REFERRED_DOCTOR_REMARKS = + 'Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks'; -const GET_MY_REFERRED_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferredPatient'; +const GET_MY_REFERRED_PATIENT = + 'Services/DoctorApplication.svc/REST/GtMyReferredPatient'; -const GET_MY_REFERRED_OUT_PATIENT = 'Services/DoctorApplication.svc/REST/GtMyReferredOutPatient'; +const GET_MY_REFERRED_OUT_PATIENT = + 'Services/DoctorApplication.svc/REST/GtMyReferredOutPatient'; -const GET_PENDING_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/PendingReferrals'; +const GET_PENDING_REFERRAL_PATIENT = + 'Services/DoctorApplication.svc/REST/PendingReferrals'; -const CREATE_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/CreateReferral'; +const CREATE_REFERRAL_PATIENT = + 'Services/DoctorApplication.svc/REST/CreateReferral'; -const RESPONSE_PENDING_REFERRAL_PATIENT = 'Services/DoctorApplication.svc/REST/RespondReferral'; +const RESPONSE_PENDING_REFERRAL_PATIENT = + 'Services/DoctorApplication.svc/REST/RespondReferral'; const GET_PATIENT_REFERRAL = 'Services/DoctorApplication.svc/REST/GetRefferal'; const POST_UCAF = 'Services/DoctorApplication.svc/REST/PostUCAF'; -const GET_DOCTOR_WORKING_HOURS_TABLE = 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable'; +const GET_DOCTOR_WORKING_HOURS_TABLE = + 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable'; -const GET_PATIENT_LAB_RESULTS = 'Services/DoctorApplication.svc/REST/GetPatientLabResults'; +const GET_PATIENT_LAB_RESULTS = + 'Services/DoctorApplication.svc/REST/GetPatientLabResults'; const LOGIN_URL = 'Services/Sentry.svc/REST/MemberLogIN_New'; -const INSERT_DEVICE_IMEI = 'Services/DoctorApplication.svc/REST/DoctorApp_InsertOrUpdateDeviceDetails'; +const INSERT_DEVICE_IMEI = + 'Services/DoctorApplication.svc/REST/DoctorApp_InsertOrUpdateDeviceDetails'; // 'Services/Sentry.svc/REST/DoctorApplication_INSERTDeviceIMEI'; // const SELECT_DEVICE_IMEI = // 'Services/Sentry.svc/REST/DoctorApplication_SELECTDeviceIMEIbyIMEI'; -const SELECT_DEVICE_IMEI = 'Services/DoctorApplication.svc/REST/DoctorApp_GetDeviceDetailsByIMEI'; +const SELECT_DEVICE_IMEI = + 'Services/DoctorApplication.svc/REST/DoctorApp_GetDeviceDetailsByIMEI'; -const SEND_ACTIVATION_CODE_BY_OTP_NOTIFICATION_TYPE = 'Services/Sentry.svc/REST/DoctorApplication_SendActivationCodebyOTPNotificationType'; +const SEND_ACTIVATION_CODE_BY_OTP_NOTIFICATION_TYPE = + 'Services/Sentry.svc/REST/DoctorApplication_SendActivationCodebyOTPNotificationType'; -const SEND_ACTIVATION_CODE_FOR_DOCTOR_APP = 'Services/DoctorApplication.svc/REST/SendActivationCodeForDoctorApp'; +const SEND_ACTIVATION_CODE_FOR_DOCTOR_APP = + 'Services/DoctorApplication.svc/REST/SendActivationCodeForDoctorApp'; -const SEND_ACTIVATION_CODE_FOR_VERIFICATION_SCREEN = 'Services/DoctorApplication.svc/REST/SendVerificationCode'; -const MEMBER_CHECK_ACTIVATION_CODE_NEW = 'Services/Sentry.svc/REST/MemberCheckActivationCode_New'; +const SEND_ACTIVATION_CODE_FOR_VERIFICATION_SCREEN = + 'Services/DoctorApplication.svc/REST/SendVerificationCode'; +const MEMBER_CHECK_ACTIVATION_CODE_NEW = + 'Services/Sentry.svc/REST/MemberCheckActivationCode_New'; -const CHECK_ACTIVATION_CODE_FOR_DOCTOR_APP = 'Services/DoctorApplication.svc/REST/CheckActivationCodeForDoctorApp'; +const CHECK_ACTIVATION_CODE_FOR_DOCTOR_APP = + 'Services/DoctorApplication.svc/REST/CheckActivationCodeForDoctorApp'; const GET_DOC_PROFILES = 'Services/Doctors.svc/REST/GetDocProfiles'; const TRANSFERT_TO_ADMIN = 'LiveCareApi/DoctorApp/TransferToAdmin'; @@ -101,194 +135,286 @@ const SEND_SMS_INSTRUCTIONS = 'LiveCareApi/DoctorApp/SendSMSInstruction'; const GET_ALTERNATIVE_SERVICE = 'LiveCareApi/DoctorApp/GetAlternativeServices'; const END_CALL = 'LiveCareApi/DoctorApp/EndCall'; const END_CALL_WITH_CHARGE = 'LiveCareApi/DoctorApp/CompleteCallWithCharge'; -const GET_DASHBOARD = 'Services/DoctorApplication.svc/REST/GetDoctorDashboardKPI'; -const GET_SICKLEAVE_STATISTIC = 'Services/DoctorApplication.svc/REST/PreSickLeaveStatistics'; -const ARRIVED_PATIENT_URL = 'Services/DoctorApplication.svc/REST/PatientArrivalList'; +const GET_DASHBOARD = + 'Services/DoctorApplication.svc/REST/GetDoctorDashboardKPI'; +const GET_SICKLEAVE_STATISTIC = + 'Services/DoctorApplication.svc/REST/PreSickLeaveStatistics'; +const ARRIVED_PATIENT_URL = + 'Services/DoctorApplication.svc/REST/PatientArrivalList'; const ADD_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/PostSickLeave'; const GET_SICK_LEAVE = 'Services/Patients.svc/REST/GetPatientSickLeave'; const EXTEND_SICK_LEAVE = 'Services/DoctorApplication.svc/REST/ExtendSickLeave'; -const GET_MASTER_LOOKUP_LIST = 'Services/DoctorApplication.svc/REST/GetMasterLookUpList'; -const GET_COVERING_DOCTORS = 'Services/DoctorApplication.svc/REST/GetCoveringDoctor'; +const GET_MASTER_LOOKUP_LIST = + 'Services/DoctorApplication.svc/REST/GetMasterLookUpList'; +const GET_COVERING_DOCTORS = + 'Services/DoctorApplication.svc/REST/GetCoveringDoctor'; const ADD_RESCHDEULE = 'Services/DoctorApplication.svc/REST/PostRequisition'; -const UPDATE_RESCHDEULE = 'Services/DoctorApplication.svc/REST/PatchRequisition'; -const GET_RESCHEDULE_LEAVE = 'Services/DoctorApplication.svc/REST/GetRequisition'; -const GET_PRESCRIPTION_LIST = 'Services/DoctorApplication.svc/REST/GetPrescription'; - -const POST_PRESCRIPTION_LIST = 'Services/DoctorApplication.svc/REST/PostPrescription'; -const GET_PROCEDURE_LIST = 'Services/DoctorApplication.svc/REST/GetOrderedProcedure'; +const UPDATE_RESCHDEULE = + 'Services/DoctorApplication.svc/REST/PatchRequisition'; +const GET_RESCHEDULE_LEAVE = + 'Services/DoctorApplication.svc/REST/GetRequisition'; +const GET_PRESCRIPTION_LIST = + 'Services/DoctorApplication.svc/REST/GetPrescription'; + +const POST_PRESCRIPTION_LIST = + 'Services/DoctorApplication.svc/REST/PostPrescription'; +const GET_PROCEDURE_LIST = + 'Services/DoctorApplication.svc/REST/GetOrderedProcedure'; const POST_PROCEDURE_LIST = 'Services/DoctorApplication.svc/REST/PostProcedure'; -const GET_PATIENT_IN_PATIENT_LIST = 'Services/DoctorApplication.svc/REST/GetMyInPatient'; +const GET_PATIENT_IN_PATIENT_LIST = + 'Services/DoctorApplication.svc/REST/GetMyInPatient'; -const Verify_Referral_Doctor_Remarks = 'Services/DoctorApplication.svc/REST/VerifyReferralDoctorRemarks'; +const Verify_Referral_Doctor_Remarks = + 'Services/DoctorApplication.svc/REST/VerifyReferralDoctorRemarks'; ///Lab Order const GET_Patient_LAB_ORDERS = 'Services/Patients.svc/REST/GetPatientLabOrders'; -const GET_Patient_LAB_SPECIAL_RESULT = 'Services/Patients.svc/REST/GetPatientLabSpecialResults'; -const SEND_LAB_RESULT_EMAIL = 'Services/Notifications.svc/REST/SendLabReportEmail'; -const GET_Patient_LAB_RESULT = 'Services/Patients.svc/REST/GetPatientLabResults'; -const GET_Patient_LAB_ORDERS_RESULT = 'Services/Patients.svc/REST/GetPatientLabOrdersResults'; -const GET_PATIENT_LAB_ORDERS_RESULT_HISTORY_BY_DESCRIPTION = 'Services/Patients.svc/REST/GetPatientLabOrdersResultsHistoryByDescription'; +const GET_Patient_LAB_SPECIAL_RESULT = + 'Services/Patients.svc/REST/GetPatientLabSpecialResults'; +const SEND_LAB_RESULT_EMAIL = + 'Services/Notifications.svc/REST/SendLabReportEmail'; +const GET_Patient_LAB_RESULT = + 'Services/Patients.svc/REST/GetPatientLabResults'; +const GET_Patient_LAB_ORDERS_RESULT = + 'Services/Patients.svc/REST/GetPatientLabOrdersResults'; +const GET_PATIENT_LAB_ORDERS_RESULT_HISTORY_BY_DESCRIPTION = + 'Services/Patients.svc/REST/GetPatientLabOrdersResultsHistoryByDescription'; // SOAP const GET_ALLERGIES = 'Services/DoctorApplication.svc/REST/GetAllergies'; const POST_EPISODE = 'Services/DoctorApplication.svc/REST/PostEpisode'; -const POST_EPISODE_FOR_IN_PATIENT = 'Services/DoctorApplication.svc/REST/PostEpisodeForInpatient'; +const POST_EPISODE_FOR_IN_PATIENT = + 'Services/DoctorApplication.svc/REST/PostEpisodeForInpatient'; const POST_ALLERGY = 'Services/DoctorApplication.svc/REST/PostAllergies'; const POST_HISTORY = 'Services/DoctorApplication.svc/REST/PostHistory'; -const POST_CHIEF_COMPLAINT = 'Services/DoctorApplication.svc/REST/PostChiefcomplaint'; -const POST_PHYSICAL_EXAM = 'Services/DoctorApplication.svc/REST/PostPhysicalExam'; -const POST_PROGRESS_NOTE = '/Services/DoctorApplication.svc/REST/PostProgressNote'; +const POST_CHIEF_COMPLAINT = + 'Services/DoctorApplication.svc/REST/PostChiefcomplaint'; +const POST_PHYSICAL_EXAM = + 'Services/DoctorApplication.svc/REST/PostPhysicalExam'; +const POST_PROGRESS_NOTE = + '/Services/DoctorApplication.svc/REST/PostProgressNote'; const POST_ASSESSMENT = 'Services/DoctorApplication.svc/REST/PostAssessment'; -const IS_PRESCRIPTION_ORDER_CREATED = 'Services/DoctorApplication.svc/REST/IsPresecriptionOrderCreated'; +const IS_PRESCRIPTION_ORDER_CREATED = + 'Services/DoctorApplication.svc/REST/IsPresecriptionOrderCreated'; const PATCH_ALLERGY = 'Services/DoctorApplication.svc/REST/PatchAllergies'; const PATCH_HISTORY = 'Services/DoctorApplication.svc/REST/PatchHistory'; -const PATCH_CHIEF_COMPLAINT = 'Services/DoctorApplication.svc/REST/PatchChiefcomplaint'; +const PATCH_CHIEF_COMPLAINT = + 'Services/DoctorApplication.svc/REST/PatchChiefcomplaint'; -const PATCH_PHYSICAL_EXAM = 'Services/DoctorApplication.svc/REST/PatchPhysicalExam'; -const PATCH_PROGRESS_NOTE = 'Services/DoctorApplication.svc/REST/PatchProgressNote'; +const PATCH_PHYSICAL_EXAM = + 'Services/DoctorApplication.svc/REST/PatchPhysicalExam'; +const PATCH_PROGRESS_NOTE = + 'Services/DoctorApplication.svc/REST/PatchProgressNote'; const PATCH_ASSESSMENT = 'Services/DoctorApplication.svc/REST/PatchAssessment'; const GET_HISTORY = 'Services/DoctorApplication.svc/REST/GetHistory'; -const GET_CHIEF_COMPLAINT = 'Services/DoctorApplication.svc/REST/GetChiefcomplaint'; +const GET_CHIEF_COMPLAINT = + 'Services/DoctorApplication.svc/REST/GetChiefcomplaint'; const GET_PHYSICAL_EXAM = 'Services/DoctorApplication.svc/REST/GetPhysicalExam'; const GET_PROGRESS_NOTE = 'Services/DoctorApplication.svc/REST/GetProgressNote'; const GET_ASSESSMENT = 'Services/DoctorApplication.svc/REST/GetAssessment'; -const GET_LIST_CATEGORISE = 'Services/DoctorApplication.svc/REST/GetProcedureCategories'; +const GET_LIST_CATEGORISE = + 'Services/DoctorApplication.svc/REST/GetProcedureCategories'; -const GET_CATEGORISE_PROCEDURE = 'Services/DoctorApplication.svc/REST/GetProcedure'; +const GET_CATEGORISE_PROCEDURE = + 'Services/DoctorApplication.svc/REST/GetProcedure'; const UPDATE_PROCEDURE = 'Services/DoctorApplication.svc/REST/PatchProcedure'; -const UPDATE_PRESCRIPTION = 'Services/DoctorApplication.svc/REST/PatchPrescription'; +const UPDATE_PRESCRIPTION = + 'Services/DoctorApplication.svc/REST/PatchPrescription'; const SEARCH_DRUG = 'Services/DoctorApplication.svc/REST/GetMedicationList'; -const DRUG_TO_DRUG = 'Services/DoctorApplication.svc/REST/DrugToDrugInteraction'; +const DRUG_TO_DRUG = + 'Services/DoctorApplication.svc/REST/DrugToDrugInteraction'; const GET_MEDICAL_FILE = 'Services/DoctorApplication.svc/REST/GetMedicalFile'; const GET_FLOORS = 'Services/DoctorApplication.svc/REST/GetFloors'; const GET_WARDS = 'Services/DoctorApplication.svc/REST/GetWards'; -const GET_ROOM_CATEGORIES = 'Services/DoctorApplication.svc/REST/GetRoomCategories'; -const GET_DIAGNOSIS_TYPES = 'Services/DoctorApplication.svc/REST/DiagnosisTypes'; +const GET_ROOM_CATEGORIES = + 'Services/DoctorApplication.svc/REST/GetRoomCategories'; +const GET_DIAGNOSIS_TYPES = + 'Services/DoctorApplication.svc/REST/DiagnosisTypes'; const GET_DIET_TYPES = 'Services/DoctorApplication.svc/REST/DietTypes'; const GET_ICD_CODES = 'Services/DoctorApplication.svc/REST/GetICDCodes'; -const POST_ADMISSION_REQUEST = 'Services/DoctorApplication.svc/REST/PostAdmissionRequest'; -const GET_ITEM_BY_MEDICINE = 'Services/DoctorApplication.svc/REST/GetItemByMedicineCode'; +const POST_ADMISSION_REQUEST = + 'Services/DoctorApplication.svc/REST/PostAdmissionRequest'; +const GET_ITEM_BY_MEDICINE = + 'Services/DoctorApplication.svc/REST/GetItemByMedicineCode'; -const GET_PROCEDURE_VALIDATION = 'Services/DoctorApplication.svc/REST/ValidateProcedures'; -const GET_BOX_QUANTITY = 'Services/DoctorApplication.svc/REST/CalculateBoxQuantity'; +const GET_PROCEDURE_VALIDATION = + 'Services/DoctorApplication.svc/REST/ValidateProcedures'; +const GET_BOX_QUANTITY = + 'Services/DoctorApplication.svc/REST/CalculateBoxQuantity'; ///GET ECG const GET_ECG = "Services/Patients.svc/REST/HIS_GetPatientMuseResults"; -const GET_MY_REFERRAL_INPATIENT = "Services/DoctorApplication.svc/REST/GtMyReferralPatient"; +const GET_MY_REFERRAL_INPATIENT = + "Services/DoctorApplication.svc/REST/GtMyReferralPatient"; -const GET_MY_REFERRAL_OUT_PATIENT = "Services/DoctorApplication.svc/REST/GtMyReferralForOutPatient"; +const GET_MY_REFERRAL_OUT_PATIENT = + "Services/DoctorApplication.svc/REST/GtMyReferralForOutPatient"; -const GET_MY_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargeReferralPatient"; -const GET_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargePatient"; +const GET_MY_DISCHARGE_PATIENT = + "Services/DoctorApplication.svc/REST/GtMyDischargeReferralPatient"; +const GET_DISCHARGE_PATIENT = + "Services/DoctorApplication.svc/REST/GtMyDischargePatient"; // const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus"; -const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus_Async"; +const GET_PAtIENTS_INSURANCE_APPROVALS = + "Services/Patients.svc/REST/GetApprovalStatus_Async"; const GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL'; const GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders'; -const GET_IN_PATIENT_ORDERS = 'Services/DoctorApplication.svc/REST/GetPatientRadResult'; +const GET_IN_PATIENT_ORDERS = + 'Services/DoctorApplication.svc/REST/GetPatientRadResult'; ///Prescriptions -const GET_PRESCRIPTIONS_ALL_ORDERS = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders'; -const GET_PRESCRIPTION_REPORT_NEW = 'Services/Patients.svc/REST/INP_GetPrescriptionReport'; -const SEND_PRESCRIPTION_EMAIL = 'Services/Notifications.svc/REST/SendPrescriptionEmail'; -const GET_PRESCRIPTION_REPORT_ENH = 'Services/Patients.svc/REST/GetPrescriptionReport_enh'; -const UPDATE_PROGRESS_NOTE_FOR_INPATIENT = "Services/DoctorApplication.svc/REST/UpdateProgressNoteForInPatient"; -const CREATE_PROGRESS_NOTE_FOR_INPATIENT = "Services/DoctorApplication.svc/REST/CreateProgressNoteForInPatient"; -const IS_PRINCIPAL_COVERED = "Services/DoctorApplication.svc/REST/IsPrincipalDiagnosisCovered"; -const GET_ICD10DISEASE = "Services/DoctorApplication.svc/REST/GetICD10DiseaseForItemId"; +const GET_PRESCRIPTIONS_ALL_ORDERS = + 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders'; +const GET_PRESCRIPTION_REPORT_NEW = + 'Services/Patients.svc/REST/INP_GetPrescriptionReport'; +const SEND_PRESCRIPTION_EMAIL = + 'Services/Notifications.svc/REST/SendPrescriptionEmail'; +const GET_PRESCRIPTION_REPORT_ENH = + 'Services/Patients.svc/REST/GetPrescriptionReport_enh'; +const UPDATE_PROGRESS_NOTE_FOR_INPATIENT = + "Services/DoctorApplication.svc/REST/UpdateProgressNoteForInPatient"; +const CREATE_PROGRESS_NOTE_FOR_INPATIENT = + "Services/DoctorApplication.svc/REST/CreateProgressNoteForInPatient"; +const IS_PRINCIPAL_COVERED = + "Services/DoctorApplication.svc/REST/IsPrincipalDiagnosisCovered"; +const GET_ICD10DISEASE = + "Services/DoctorApplication.svc/REST/GetICD10DiseaseForItemId"; const GET_SICK_LEAVE_PATIENT = "Services/Patients.svc/REST/GetPatientSickLeave"; -const GET_MY_OUT_PATIENT = "Services/DoctorApplication.svc/REST/GetMyOutPatient"; +const GET_MY_OUT_PATIENT = + "Services/DoctorApplication.svc/REST/GetMyOutPatient"; -const PATIENT_MEDICAL_REPORT_GET_LIST = "Services/Patients.svc/REST/DAPP_ListMedicalReport"; -const PATIENT_MEDICAL_REPORT_GET_TEMPLATE = "Services/Patients.svc/REST/DAPP_GetTemplateByID"; -const PATIENT_MEDICAL_REPORT_INSERT = "Services/Patients.svc/REST/DAPP_InsertMedicalReport"; -const PATIENT_MEDICAL_REPORT_VERIFIED = "Services/Patients.svc/REST/DAPP_VerifiedMedicalReport"; +const PATIENT_MEDICAL_REPORT_GET_LIST = + "Services/Patients.svc/REST/DAPP_ListMedicalReport"; +const PATIENT_MEDICAL_REPORT_GET_TEMPLATE = + "Services/Patients.svc/REST/DAPP_GetTemplateByID"; +const PATIENT_MEDICAL_REPORT_INSERT = + "Services/Patients.svc/REST/DAPP_InsertMedicalReport"; +const PATIENT_MEDICAL_REPORT_VERIFIED = + "Services/Patients.svc/REST/DAPP_VerifiedMedicalReport"; -const GET_PROCEDURE_TEMPLETE = 'Services/Doctors.svc/REST/DAPP_ProcedureTemplateGet'; +const GET_PROCEDURE_TEMPLETE = + 'Services/Doctors.svc/REST/DAPP_ProcedureTemplateGet'; const GET_TEMPLETE_LIST = 'Services/Doctors.svc/REST/DAPP_TemplateGet'; -const GET_PROCEDURE_TEMPLETE_DETAILS = "Services/Doctors.svc/REST/DAPP_ProcedureTemplateDetailsGet"; -const GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP = 'Services/DoctorApplication.svc/REST/GetPendingPatientERForDoctorApp'; +const GET_PROCEDURE_TEMPLETE_DETAILS = + "Services/Doctors.svc/REST/DAPP_ProcedureTemplateDetailsGet"; +const GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP = + 'Services/DoctorApplication.svc/REST/GetPendingPatientERForDoctorApp'; -const DOCTOR_CHECK_HAS_LIVE_CARE = "Services/DoctorApplication.svc/REST/CheckDoctorHasLiveCare"; +const DOCTOR_CHECK_HAS_LIVE_CARE = + "Services/DoctorApplication.svc/REST/CheckDoctorHasLiveCare"; const LIVE_CARE_IS_LOGIN = "LiveCareApi/DoctorApp/UseIsLogin"; -const ADD_REFERRED_REMARKS_NEW = "Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks_New"; -const GET_SPECIAL_CLINICAL_CARE_LIST = "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareList"; -const GET_SPECIAL_CLINICAL_CARE_MAPPING_LIST = "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareMappingList"; - -const INSERT_MEDICAL_REPORT = "Services/Patients.svc/REST/DAPP_InsertMedicalReport_New"; - -const UPDATE_MEDICAL_REPORT = "Services/Patients.svc/REST/DAPP_UpdateMedicalReport"; -const GET_SICK_LEAVE_DOCTOR_APP = "Services/DoctorApplication.svc/REST/GetAllSickLeaves"; +const ADD_REFERRED_REMARKS_NEW = + "Services/DoctorApplication.svc/REST/AddReferredDoctorRemarks_New"; +const GET_SPECIAL_CLINICAL_CARE_LIST = + "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareList"; +const GET_SPECIAL_CLINICAL_CARE_MAPPING_LIST = + "Services/DoctorApplication.svc/REST/GetSpecialClinicalCareMappingList"; + +const INSERT_MEDICAL_REPORT = + "Services/Patients.svc/REST/DAPP_InsertMedicalReport_New"; + +const UPDATE_MEDICAL_REPORT = + "Services/Patients.svc/REST/DAPP_UpdateMedicalReport"; +const GET_SICK_LEAVE_DOCTOR_APP = + "Services/DoctorApplication.svc/REST/GetAllSickLeaves"; const ADD_PATIENT_TO_DOCTOR = "LiveCareApi/DoctorApp/AssignPatientToDoctor"; const REMOVE_PATIENT_FROM_DOCTOR = "LiveCareApi/DoctorApp/BackPatientToQueue"; -const CREATE_DOCTOR_RESPONSE = "Services/DoctorApplication.svc/REST/CreateDoctorResponse"; -const GET_DOCTOR_NOT_REPLIED_COUNTS = "Services/DoctorApplication.svc/REST/DoctorApp_GetDoctorNotRepliedCounts"; -const ALL_SPECIAL_LAB_RESULT = "services/Patients.svc/REST/GetPatientLabSpecialResultsALL"; -const GET_MEDICATION_FOR_IN_PATIENT = "Services/DoctorApplication.svc/REST/Doctor_GetMedicationForInpatient"; -const GET_EPISODE_FOR_INPATIENT = "/Services/DoctorApplication.svc/REST/DoctorApp_GetEpisodeForInpatient"; +const CREATE_DOCTOR_RESPONSE = + "Services/DoctorApplication.svc/REST/CreateDoctorResponse"; +const GET_DOCTOR_NOT_REPLIED_COUNTS = + "Services/DoctorApplication.svc/REST/DoctorApp_GetDoctorNotRepliedCounts"; +const ALL_SPECIAL_LAB_RESULT = + "services/Patients.svc/REST/GetPatientLabSpecialResultsALL"; +const GET_MEDICATION_FOR_IN_PATIENT = + "Services/DoctorApplication.svc/REST/Doctor_GetMedicationForInpatient"; +const GET_EPISODE_FOR_INPATIENT = + "/Services/DoctorApplication.svc/REST/DoctorApp_GetEpisodeForInpatient"; ///Operation Details Services -const GET_RESERVATIONS = "Services/DoctorApplication.svc/REST/DoctorApp_GetReservationDetails"; -const GET_OPERATION_DETAILS = "Services/DoctorApplication.svc/REST/DoctorApp_GetOperationDetails"; -const UPDATE_OPERATION_REPORT = "Services/DoctorApplication.svc/REST/DoctorApp_CreateUpdateOperationReport"; +const GET_RESERVATIONS = + "Services/DoctorApplication.svc/REST/DoctorApp_GetReservationDetails"; +const GET_OPERATION_DETAILS = + "Services/DoctorApplication.svc/REST/DoctorApp_GetOperationDetails"; +const UPDATE_OPERATION_REPORT = + "Services/DoctorApplication.svc/REST/DoctorApp_CreateUpdateOperationReport"; -const NURSING_PROGRESS_NOTE = "Services/DoctorApplication.svc/REST/DoctorApp_GetNursingProgressNote"; -const GET_DIAGNOSIS_FOR_IN_PATIENT = "Services/DoctorApplication.svc/REST/DoctorApp_GetDiagnosisForInPatient"; +const NURSING_PROGRESS_NOTE = + "Services/DoctorApplication.svc/REST/DoctorApp_GetNursingProgressNote"; +const GET_DIAGNOSIS_FOR_IN_PATIENT = + "Services/DoctorApplication.svc/REST/DoctorApp_GetDiagnosisForInPatient"; -const GET_DIABETIC_CHART_VALUES = "Services/DoctorApplication.svc/REST/DoctorApp_GetDiabeticChartValues"; +const GET_DIABETIC_CHART_VALUES = + "Services/DoctorApplication.svc/REST/DoctorApp_GetDiabeticChartValues"; -const GET_PENDING_ORDERS = "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingOrdersForInPatient"; +const GET_PENDING_ORDERS = + "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingOrdersForInPatient"; -const GET_ADMISSION_ORDERS = "/Services/DoctorApplication.svc/REST/DoctorApp_GetAdmissionOrders"; +const GET_ADMISSION_ORDERS = + "/Services/DoctorApplication.svc/REST/DoctorApp_GetAdmissionOrders"; ///Patient Registration Services -const CHECK_PATIENT_FOR_REGISTRATION = "Services/Authentication.svc/REST/CheckPatientForRegisteration"; -const SEND_ACTIVATION_CODE_BY_OTP_NOT_TYPE_FOR_REGISTRATION = "Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationTypeForRegistration"; -const CHECK_ACTIVATION_CODE_FOR_PATIENT = "Services/Authentication.svc/REST/CheckActivationCode"; -const PATIENT_REGISTRATION = "Services/Authentication.svc/REST/PatientRegistration"; +const CHECK_PATIENT_FOR_REGISTRATION = + "Services/Authentication.svc/REST/CheckPatientForRegisteration"; +const SEND_ACTIVATION_CODE_BY_OTP_NOT_TYPE_FOR_REGISTRATION = + "Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationTypeForRegistration"; +const CHECK_ACTIVATION_CODE_FOR_PATIENT = + "Services/Authentication.svc/REST/CheckActivationCode"; +const PATIENT_REGISTRATION = + "Services/Authentication.svc/REST/PatientRegistration"; const GET_PATIENT_INFO = "Services/NHIC.svc/REST/GetPatientInfo"; /// Discharge Summary -const GET_PENDING_DISCHARGE_SUMMARY = "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingDischargeSummary"; -const GET_ALL_DISCHARGE_SUMMARY = "Services/DoctorApplication.svc/REST/DoctorApp_GetDischargeSummary"; +const GET_PENDING_DISCHARGE_SUMMARY = + "Services/DoctorApplication.svc/REST/DoctorApp_GetPendingDischargeSummary"; +const GET_ALL_DISCHARGE_SUMMARY = + "Services/DoctorApplication.svc/REST/DoctorApp_GetDischargeSummary"; -const VTE_ASSESSMENT = "Services/Patients.svc/REST/INP_GetVTEHistoryByTransactionNo"; +const VTE_ASSESSMENT = + "Services/Patients.svc/REST/INP_GetVTEHistoryByTransactionNo"; -const GET_INTERVENTION_MEDICATION = "Services/DoctorApplication.svc/REST/DoctorApp_GetInterventionMedications"; +const GET_INTERVENTION_MEDICATION = + "Services/DoctorApplication.svc/REST/DoctorApp_GetInterventionMedications"; -const GET_INTERVENTION_MEDICATION_HISTORY = "Services/DoctorApplication.svc/REST/DoctorApp_GetInterventionHistory"; +const GET_INTERVENTION_MEDICATION_HISTORY = + "Services/DoctorApplication.svc/REST/DoctorApp_GetInterventionHistory"; -const SET_ACCEPTED_OR_REJECTED = "Services/DoctorApplication.svc/REST/DoctorApp_AcceptOrRejectIntervention"; +const SET_ACCEPTED_OR_REJECTED = + "Services/DoctorApplication.svc/REST/DoctorApp_AcceptOrRejectIntervention"; -const GET_STP_MASTER_LIST = "Services/DoctorApplication.svc/REST/DoctorApp_GetSTPMasterList"; +const GET_STP_MASTER_LIST = + "Services/DoctorApplication.svc/REST/DoctorApp_GetSTPMasterList"; -const DOCTOR_ER_SIGN_ASSESSMENT = "Services/DoctorApplication.svc/REST/DoctorApp_DoctorERSignAssessment"; +const DOCTOR_ER_SIGN_ASSESSMENT = + "Services/DoctorApplication.svc/REST/DoctorApp_DoctorERSignAssessment"; const DOCTOR_SCHEDULE = "api/ScheduledSchedule/GetallSchedulebyUser"; -const DOCTOR_RADIOLOGY_CRITICAL_FINDINGS = "Services/DoctorApplication.svc/REST/FetchRadCriticalFinding"; +const DOCTOR_RADIOLOGY_CRITICAL_FINDINGS = + "Services/DoctorApplication.svc/REST/FetchRadCriticalFinding"; -const ACKNOWLEDGE_RADIOLOGY_CRITICAL_FINDINGS = "Services/DoctorApplication.svc/REST/Acknowledgeradcriticalfindings"; +const ACKNOWLEDGE_RADIOLOGY_CRITICAL_FINDINGS = + "Services/DoctorApplication.svc/REST/Acknowledgeradcriticalfindings"; +/*vida plus API */ - /*vida plus API */ - -const PATIENT_ALLERGIES = 'Services/DoctorApplication.svc/REST/PatientAllergies'; +const PATIENT_ALLERGIES = + 'Services/DoctorApplication.svc/REST/PatientAllergies'; const SEARCH_ALLERGIES = 'Services/DoctorApplication.svc/REST/SearchAllergies'; @@ -298,15 +424,18 @@ const CREATE_HOPI = 'Services/DoctorApplication.svc/REST/CreateHOPI'; const HOPI_DETAILS = 'Services/DoctorApplication.svc/REST/DetailHOPI'; -const POST_CHIEF_COMPLAINT_VP = 'Services/DoctorApplication.svc/REST/PostChiefcomplaint'; +const POST_CHIEF_COMPLAINT_VP = + 'Services/DoctorApplication.svc/REST/PostChiefcomplaint'; -const SEARCH_CHIEF_COMPLAINT_VP = 'Services/DoctorApplication.svc/REST/SearchChiefcomplaint'; +const SEARCH_CHIEF_COMPLAINT_VP = + 'Services/DoctorApplication.svc/REST/SearchChiefcomplaint'; const RESOLVE_ALLERGIES = 'Services/DoctorApplication.svc/REST/ResolveAllergy'; const UPDATE_ALLERGIES = 'Services/DoctorApplication.svc/REST/UpdateAllergy'; -const GET_CHIEF_COMPLAINT_VP = 'Services/DoctorApplication.svc/REST/ChiefComplaintDetails'; +const GET_CHIEF_COMPLAINT_VP = + 'Services/DoctorApplication.svc/REST/ChiefComplaintDetails'; const SEARCH_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/SearchDiagnosis'; @@ -316,56 +445,80 @@ const CONDITION_TYPE = 'Services/DoctorApplication.svc/REST/DiagnosisCondition'; const CREATE_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/CreateDiagnosis'; -const PREVIOUS_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisPreviousDetails'; +const PREVIOUS_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/DiagnosisPreviousDetails'; const AUDIT_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisAudit'; const REMOVE_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisRemove'; -const FAVORITE_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisGetFavourite'; +const FAVORITE_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/DiagnosisGetFavourite'; -const ADD_TO_FAVORITE_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisAddFavourite'; +const ADD_TO_FAVORITE_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/DiagnosisAddFavourite'; -const MAKE_PREVIOUS_AS_CURRENT_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/ContinuePreviousEpisode'; +const MAKE_PREVIOUS_AS_CURRENT_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/ContinuePreviousEpisode'; -const SEARCH_PHYSICAL_EXAMINATION = 'Services/DoctorApplication.svc/REST/SearchPhysicalExam'; +const SEARCH_PHYSICAL_EXAMINATION = + 'Services/DoctorApplication.svc/REST/SearchPhysicalExam'; -const GET_GENERAL_SPECIALITY = 'Services/DoctorApplication.svc/REST/GetGeneralSpeciality'; +const GET_GENERAL_SPECIALITY = + 'Services/DoctorApplication.svc/REST/GetGeneralSpeciality'; -const GET_SPECIALITY_DETAILS = 'Services/DoctorApplication.svc/REST/SearchGeneralSpeciality'; +const GET_SPECIALITY_DETAILS = + 'Services/DoctorApplication.svc/REST/SearchGeneralSpeciality'; -const POST_PHYSICAL_EXAMINATION = 'Services/DoctorApplication.svc/REST/PostPhysicalExam'; +const POST_PHYSICAL_EXAMINATION = + 'Services/DoctorApplication.svc/REST/PostPhysicalExam'; -const GET_PROGRESS_NOTE_NEW = 'Services/DoctorApplication.svc/REST/GetProgressNote'; +const GET_PROGRESS_NOTE_NEW = + 'Services/DoctorApplication.svc/REST/GetProgressNote'; -const GET_LIST_OF_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisDetailsSearch'; +const GET_LIST_OF_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/DiagnosisDetailsSearch'; const EDIT_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/EditDiagnosis'; -const RESOLVE_DIAGNOSIS = 'Services/DoctorApplication.svc/REST/DiagnosisResolve'; -const GET_CLINIC = 'Services/DoctorApplication.svc/REST/GetDoctorClinicsForVidaPlus'; +const RESOLVE_DIAGNOSIS = + 'Services/DoctorApplication.svc/REST/DiagnosisResolve'; +const GET_CLINIC = + 'Services/DoctorApplication.svc/REST/GetDoctorClinicsForVidaPlus'; -const CONTINUE_EPISODE_VP = 'Services/DoctorApplication.svc/REST/ContinueEpisode'; +const CONTINUE_EPISODE_VP = + 'Services/DoctorApplication.svc/REST/ContinueEpisode'; -const UPDATE_CHIEF_COMPLAINT = 'Services/DoctorApplication.svc/REST/UpdateChiefComplaint'; +const UPDATE_CHIEF_COMPLAINT = + 'Services/DoctorApplication.svc/REST/UpdateChiefComplaint'; -const EPISODE_BY_CHIEF_COMPLAINT = 'Services/DoctorApplication.svc/REST/EpisodeByChiefcomplaint'; +const EPISODE_BY_CHIEF_COMPLAINT = + 'Services/DoctorApplication.svc/REST/EpisodeByChiefcomplaint'; const GET_EDIT_ALLERGIES = 'Services/DoctorApplication.svc/REST/GetAllergy'; -const GET_HOME_MEDICATION = 'Services/DoctorApplication.svc/REST/GetHomeMedication'; +const GET_HOME_MEDICATION = + 'Services/DoctorApplication.svc/REST/GetHomeMedication'; + +const SEARCH_CURRENT_MEDICATION = + 'Services/DoctorApplication.svc/REST/SearchFormulary'; -const SEARCH_CURRENT_MEDICATION = 'Services/DoctorApplication.svc/REST/SearchFormulary'; +const SEARCH_CURRENT_MEDICATION_DETAILS = + 'Services/DoctorApplication.svc/REST/GetFormularyMaster'; -const SEARCH_CURRENT_MEDICATION_DETAILS = 'Services/DoctorApplication.svc/REST/GetFormularyMaster'; +const REMOVE_CURRENT_MEDICATION = + 'Services/DoctorApplication.svc/REST/DeleteHomeMedication'; -const REMOVE_CURRENT_MEDICATION = 'Services/DoctorApplication.svc/REST/DeleteHomeMedication'; +const ADD_CURRENT_MEDICATION = + 'Services/DoctorApplication.svc/REST/AddHomeMedication'; -const ADD_CURRENT_MEDICATION = 'Services/DoctorApplication.svc/REST/AddHomeMedication'; +const CREATE_PROGRESS_NOTE = + 'Services/DoctorApplication.svc/REST/PostProgressNote'; -const CREATE_PROGRESS_NOTE = 'Services/DoctorApplication.svc/REST/PostProgressNote'; +const GET_PATIENT_CLINIC = + 'Services/DoctorApplication.svc/REST/GetPatientConditionProgress'; -const GET_PATIENT_CLINIC = 'Services/DoctorApplication.svc/REST/GetPatientConditionProgress'; +const IS_MORPHOLOGY = 'Services/DoctorApplication.svc/REST/Ismorphology'; var selectedPatientType = 1; @@ -390,8 +543,26 @@ var SERVICES_PATIANT2 = [ "List_MyReferralPatient", "patientArrivalList" ]; -var SERVICES_PATIANT_HEADER = ["My OutPatient", "My InPatient", "Discharge", "Referred", "Referral Discharge", "Tomorrow", "Referral", "Arrival Patient"]; -var SERVICES_PATIANT_HEADER_AR = ["المريض الخارجي", "المريض المنوم", "المريض المعافى", "المريض المحول الي", "المريض المحال المعافى", "مريض الغد", "المريض المحول مني", "المريض الواصل"]; +var SERVICES_PATIANT_HEADER = [ + "My OutPatient", + "My InPatient", + "Discharge", + "Referred", + "Referral Discharge", + "Tomorrow", + "Referral", + "Arrival Patient" +]; +var SERVICES_PATIANT_HEADER_AR = [ + "المريض الخارجي", + "المريض المنوم", + "المريض المعافى", + "المريض المحول الي", + "المريض المحال المعافى", + "مريض الغد", + "المريض المحول مني", + "المريض الواصل" +]; const PRIMARY_COLOR = 0xff515B5D; diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index fca9679f..5133d231 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -20,7 +20,10 @@ const Map> localizedValues = { "ar": "ليس لديك أي جدول" }, "verify": {"en": "VERIFY", "ar": "تحقق"}, - "pharmacy-intervention": {"en": "Pharmacy Intervention", "ar": "التدخل الصيدلاني"}, + "pharmacy-intervention": { + "en": "Pharmacy Intervention", + "ar": "التدخل الصيدلاني" + }, "referralDoctor": {"en": "Referral Doctor", "ar": "الطبيب المُحول إليه"}, "referringClinic": {"en": "Referring Clinic", "ar": "العيادة المُحول إليها"}, "frequency": {"en": "Frequency", "ar": "تكرر"}, @@ -85,7 +88,10 @@ const Map> localizedValues = { }, "searchMedicineNameHere": {"en": "Search Medicine ", "ar": "ابحث هنا"}, "youCanFind": {"en": "You can find ", "ar": "تستطيع ان تجد "}, - "medicineSearchResult": {"en": "as a search result for", "ar": "كنتيجة بحث عن"}, + "medicineSearchResult": { + "en": "as a search result for", + "ar": "كنتيجة بحث عن" + }, "qr": {"en": "QR", "ar": "QR"}, "reader": {"en": "Reader", "ar": "قارىء رمز ال"}, "startScanning": {"en": "Start Scanning", "ar": "بدء المسح"}, @@ -673,9 +679,8 @@ const Map> localizedValues = { }, "updateAssessmentDetails": { "en": "Update Assessment Details", - "ar":"تحديث تفاصيل التقييم" + "ar": "تحديث تفاصيل التقييم" }, - "progressNoteSOAP": {"en": "Progress Note", "ar": "ملاحظة التقدم"}, "addProgressNote": {"en": "Add Progress Note", "ar": "أضف ملاحظة التقدم"}, "createdBy": {"en": "Created By :", "ar": "أضيفت عن طريق: "}, @@ -1141,94 +1146,192 @@ const Map> localizedValues = { "VTE_Type": {"en": "VTE Type", "ar": "VTE Type"}, "pharmacology": {"en": "Pharmacology", "ar": "علم العقاقير"}, "reasonsThrombo": {"en": "Reasons Thrombo", "ar": "أسباب ثرومبو"}, - "youDoNotHaveFavoriteTemplate": {"en": "You Don't Have Favorite Template", "ar": "ليس لديك وصفة طبية مفضلة"}, + "youDoNotHaveFavoriteTemplate": { + "en": "You Don't Have Favorite Template", + "ar": "ليس لديك وصفة طبية مفضلة" + }, "pleaseSelectItem": {"en": "please Select Item", "ar": "الرجاء اختيار عنصر"}, - "searchFavoriteTemplate": {"en": "search Favorites Template", "ar": "البحث في قالب المفضلة"}, + "searchFavoriteTemplate": { + "en": "search Favorites Template", + "ar": "البحث في قالب المفضلة" + }, "sorryNoMatch": {"en": "Sorry No Match", "ar": "عذرا لا يوجد تطابق"}, - "thousandIsTheMAXForTheStrength": {"en": "1000 Is The MAX For The Strength", "ar": "ألف هو القيمة الأعلى"}, - "strengthCanNotBeZero": {"en": "Strength Can't Be Zero", "ar": "القوة لا يمكن أن تكون صفر "}, - "old": {"en": "Old", "ar":"القديمه"}, - "orderTypeDescription": {"en": "Order Type Description", "ar":"وصف نوع الطلب"}, - "doseDetails": {"en": "Dose Details", "ar":"تفاصيل الجرعة"}, - "selectCondition": {"en": "Select Condition", "ar":"قم بتحديد الشرط"}, - "yourOrderAddedSuccessfully": {"en": "Your Order Added Successfully", "ar":"تم إضافة طلبك بنجاح"}, - "youCannotAddOnlySpaces": {"en": "You Can't Add Only Spaces", "ar":""}, - "conditionDescription": {"en": "Condition Description", "ar":"لا يمكنك إضافة مسافات فقط"}, - "doctorSchedule": {"en": "Doctor Schedule", "ar":"جدول الطبيب"}, - "doctorRota": {"en": "Doctor Rota", "ar":"دوران الطبيب"}, - "dateFrom": {"en": "Date From", "ar":"التاريخ من"}, - "searchFindSchedule": {"en": "Search and find out the doctor’s schedule ", "ar":"بحث ومعرفة جدول الطبيب"}, - "onePrimaryDiagnosis": {"en": "There has to be at-least 1 principal diagnosis", "ar":"يجب أن يكون هناك تشخيص رئيسي واحد على الأقل"}, - "principalDiagnosisCannot": {"en": "Principal Diagnosis cannot modify once the order created", "ar":"لا يمكن تعديل التشخيص الرئيسي بمجرد إنشاء الطلب"}, - "afterOrderCreation": {"en": "After order created, you cannot modify the principal diagnosis, Do you want to continue?", "ar":"بعد إنشاء الطلب، لا يمكنك تعديل التشخيص الأساسي، هل تريد المتابعة؟"}, - "principalCoveredOrNot": {"en": "Principal Diagnosis is not covered for this patient", "ar":"لا يتم تغطية التشخيص الرئيسي لهذا المريض"}, - "complexDiagnosis": {"en": "Complex Diagnosis", "ar":"التشخيص المعقد"}, - "noComplaintsFound": {"en": "No Chief Complaints added, please add it from the button above", "ar":"لم تتم إضافة شكاوى رئيسية ، يرجى إضافتها من الزر أعلاه"}, - "noKnownAllergies": {"en": "No Known Allergies", "ar":"لا يوجد حساسية معروفة"}, - - - "addChiefComplaint": {"en": "Add Chief Complaints*", "ar":"إضافة الشكاوى الرئيسية*"}, - "myFavoriteList": {"en": "My Favourite List", "ar":"قائمتي المفضلة"}, - "generalList": {"en": "General list", "ar":"قائمة عامة"}, - "specialList": {"en": "Special List", "ar":"قائمة خاصة"}, - "enterChiefCompliants": {"en": "Enter Chief Compliants", "ar":"أدخل رئيس الامتثال"}, - "previousChiefCompaints": {"en": "Previous Chief Compaints", "ar":"رئيس الرسامين السابق"}, - "listOfActiveEpisodes": {"en": "List of active episodes , select one to procedd", "ar":"قائمة الحلقات النشطة ، حدد واحدة لتقديمها"}, - "select": {"en": "Select", "ar":"اختار"}, - "resolve": {"en": "Resolve", "ar":"حسم"}, - "audit": {"en": "Audit", "ar":"مراجعه الحسابات"}, - "delete": {"en": "Delete", "ar":"حذف"}, - "acute": {"en": "Acute", "ar":"شديد"}, - "chronic": {"en": "Acute", "ar":"مزمن"}, - "subAcute": {"en": "sub-acute", "ar":"شبه الحاد"}, - "addDiagnosis": {"en": "Add Diagnosis", "ar":"إضافة تشخيص"}, - "showAllDiagnosis": {"en": "Show all diagnosis", "ar":"عرض جميع التشخيصات"}, - "makeCurrentDiagnosis": {"en": "Make Current Diagnosis", "ar":"جعل التشخيص الحالي"}, - "mappedDiagnosis": {"en": "Mapped Diagnosis", "ar":"التشخيص المعين"}, - "previousDiagnosis": {"en": "Previous Diagnosis", "ar":"التشخيص السابق"}, - "addNewDiagnosis": {"en": "Add New Diagnosis", "ar":"إضافة تشخيص جديد"}, - "currentDiagnosis": {"en": "Current Diagnosis", "ar":"التشخيص الحالي"}, - "progressNoteType": {"en": "Progress Note Type", "ar":"نوع ملاحظة التقدم"}, - "doctorProgressNote": {"en": "Doctor Progress Note", "ar":"مذكرة تقدم الطبيب"}, - "addYourNote": {"en": "Add Your Note", "ar":"أضف ملاحظتك"}, - "saveAsDraft": {"en": "Save As Draft", "ar":"حفظ كمسودة"}, - "nurseNote": {"en": "Nurse Note", "ar":"ملاحظة الممرضة"}, - "patientCondition": {"en": "Patient Condition", "ar":"حالة المريض"}, - "examinationPart": {"en": "Examination Part", "ar":"جزء الامتحان"}, - "historyOfIllness": {"en": "History of Present Illness*", "ar":"تاريخ المرض الحالي*"}, - "historyTakenFrom": {"en": "History taken from", "ar":"التاريخ مأخوذ من"}, - "familySpecify": {"en": "Family, Specify", "ar":"العائلة، حدد"}, - "otherSpecify": {"en": "Other, Specify", "ar":"أخرى، حدد"}, - "physicalExamination": {"en": "Physical Examination", "ar":"الفحص البدني"}, - "addPhysicalExamination": {"en": "Add Physical Examination", "ar":"إضافة الفحص البدني"}, - "noPhysicalExamination": {"en": "No Physical Examination added, please add it from the button above", "ar":"لم يتم إضافة فحص بدني ، يرجى إضافته من الزر أعلاه"}, - "noProgressNote": {"en": "No Diagnosis added, please add it from the button above", "ar":"لم يتم إضافة تشخيص ، يرجى إضافته من الزر أعلاه"}, - "mild": {"en": "Mild", "ar":"خفيف"}, - "moderate": {"en": "Moderate", "ar":"معتدل"}, - "remarksCanNotBeEmpty": {"en": "Remarks Can Not Be Empty", "ar":"لا يمكن أن تكون الملاحظات فارغة"}, - "kindlySelectCategory": {"en": "Kindly Select Any Diagnosis Category", "ar":"يرجى اختيار أي فئة تشخيص"}, - "noRemarks": {"en": "No Remarks", "ar":"لا ملاحظات"}, - "event": {"en": "Event: ", "ar":"حدث: "}, - "editDiagnosis": {"en": "Edit Diagnosis ", "ar":"تحرير التشخيص"}, - "selectedDiagnosis": {"en": "Kindly Select Diagnosis", "ar":"يرجى اختيار التشخيص: "}, - "selectConditionFirst": {"en": "Kindly Select Diagnosis Condition", "ar":"يرجى اختيار حالة التشخيص: "}, - "deletedRemarks": {"en": "Deleted Remarks: ", "ar":"ملاحظات محذوفة: "}, - "newValue": {"en": "New Value: ", "ar":"قيمة جديدة: "}, - "fieldName": {"en": "Field Name: ", "ar":"اسم الحقل: "}, - "noChangeRecorded": {"en": "No Change Recorded Unable To Perform Edit", "ar":"لم يتم تسجيل أي تغيير، غير قادر على إجراء التحرير"}, - "oldValue": {"en": "Old Value: ", "ar":"القيمة القديمة: "}, - "favoriteDiagnosis": {"en": "Favorite Diagnosis", "ar":"التشخيص المفضل"}, - "addToFavorite": {"en": "Add To Favorite", "ar":"إضافة إلى المفضلة"}, - "noDiagnosisFound": {"en": "No Diagnosis added, please add it from the button above", "ar":"لم يتم إضافة تشخيص ، يرجى إضافته من الزر أعلاه"}, + "thousandIsTheMAXForTheStrength": { + "en": "1000 Is The MAX For The Strength", + "ar": "ألف هو القيمة الأعلى" + }, + "strengthCanNotBeZero": { + "en": "Strength Can't Be Zero", + "ar": "القوة لا يمكن أن تكون صفر " + }, + "old": {"en": "Old", "ar": "القديمه"}, + "orderTypeDescription": { + "en": "Order Type Description", + "ar": "وصف نوع الطلب" + }, + "doseDetails": {"en": "Dose Details", "ar": "تفاصيل الجرعة"}, + "selectCondition": {"en": "Select Condition", "ar": "قم بتحديد الشرط"}, + "yourOrderAddedSuccessfully": { + "en": "Your Order Added Successfully", + "ar": "تم إضافة طلبك بنجاح" + }, + "youCannotAddOnlySpaces": {"en": "You Can't Add Only Spaces", "ar": ""}, + "conditionDescription": { + "en": "Condition Description", + "ar": "لا يمكنك إضافة مسافات فقط" + }, + "doctorSchedule": {"en": "Doctor Schedule", "ar": "جدول الطبيب"}, + "doctorRota": {"en": "Doctor Rota", "ar": "دوران الطبيب"}, + "dateFrom": {"en": "Date From", "ar": "التاريخ من"}, + "searchFindSchedule": { + "en": "Search and find out the doctor’s schedule ", + "ar": "بحث ومعرفة جدول الطبيب" + }, + "onePrimaryDiagnosis": { + "en": "There has to be at-least 1 principal diagnosis", + "ar": "يجب أن يكون هناك تشخيص رئيسي واحد على الأقل" + }, + "principalDiagnosisCannot": { + "en": "Principal Diagnosis cannot modify once the order created", + "ar": "لا يمكن تعديل التشخيص الرئيسي بمجرد إنشاء الطلب" + }, + "afterOrderCreation": { + "en": + "After order created, you cannot modify the principal diagnosis, Do you want to continue?", + "ar": "بعد إنشاء الطلب، لا يمكنك تعديل التشخيص الأساسي، هل تريد المتابعة؟" + }, + "principalCoveredOrNot": { + "en": "Principal Diagnosis is not covered for this patient", + "ar": "لا يتم تغطية التشخيص الرئيسي لهذا المريض" + }, + "complexDiagnosis": {"en": "Complex Diagnosis", "ar": "التشخيص المعقد"}, + "noComplaintsFound": { + "en": "No Chief Complaints added, please add it from the button above", + "ar": "لم تتم إضافة شكاوى رئيسية ، يرجى إضافتها من الزر أعلاه" + }, + "noKnownAllergies": { + "en": "No Known Allergies", + "ar": "لا يوجد حساسية معروفة" + }, + "addChiefComplaint": { + "en": "Add Chief Complaints*", + "ar": "إضافة الشكاوى الرئيسية*" + }, + "myFavoriteList": {"en": "My Favourite List", "ar": "قائمتي المفضلة"}, + "generalList": {"en": "General list", "ar": "قائمة عامة"}, + "specialList": {"en": "Special List", "ar": "قائمة خاصة"}, + "enterChiefCompliants": { + "en": "Enter Chief Compliants", + "ar": "أدخل رئيس الامتثال" + }, + "previousChiefCompaints": { + "en": "Previous Chief Compaints", + "ar": "رئيس الرسامين السابق" + }, + "listOfActiveEpisodes": { + "en": "List of active episodes , select one to procedd", + "ar": "قائمة الحلقات النشطة ، حدد واحدة لتقديمها" + }, + "select": {"en": "Select", "ar": "اختار"}, + "resolve": {"en": "Resolve", "ar": "حسم"}, + "audit": {"en": "Audit", "ar": "مراجعه الحسابات"}, + "delete": {"en": "Delete", "ar": "حذف"}, + "acute": {"en": "Acute", "ar": "شديد"}, + "chronic": {"en": "Acute", "ar": "مزمن"}, + "subAcute": {"en": "sub-acute", "ar": "شبه الحاد"}, + "addDiagnosis": {"en": "Add Diagnosis", "ar": "إضافة تشخيص"}, + "showAllDiagnosis": {"en": "Show all diagnosis", "ar": "عرض جميع التشخيصات"}, + "makeCurrentDiagnosis": { + "en": "Make Current Diagnosis", + "ar": "جعل التشخيص الحالي" + }, + "mappedDiagnosis": {"en": "Mapped Diagnosis", "ar": "التشخيص المعين"}, + "previousDiagnosis": {"en": "Previous Diagnosis", "ar": "التشخيص السابق"}, + "addNewDiagnosis": {"en": "Add New Diagnosis", "ar": "إضافة تشخيص جديد"}, + "currentDiagnosis": {"en": "Current Diagnosis", "ar": "التشخيص الحالي"}, + "progressNoteType": {"en": "Progress Note Type", "ar": "نوع ملاحظة التقدم"}, + "doctorProgressNote": { + "en": "Doctor Progress Note", + "ar": "مذكرة تقدم الطبيب" + }, + "addYourNote": {"en": "Add Your Note", "ar": "أضف ملاحظتك"}, + "saveAsDraft": {"en": "Save As Draft", "ar": "حفظ كمسودة"}, + "nurseNote": {"en": "Nurse Note", "ar": "ملاحظة الممرضة"}, + "patientCondition": {"en": "Patient Condition", "ar": "حالة المريض"}, + "examinationPart": {"en": "Examination Part", "ar": "جزء الامتحان"}, + "historyOfIllness": { + "en": "History of Present Illness*", + "ar": "تاريخ المرض الحالي*" + }, + "historyTakenFrom": {"en": "History taken from", "ar": "التاريخ مأخوذ من"}, + "familySpecify": {"en": "Family, Specify", "ar": "العائلة، حدد"}, + "otherSpecify": {"en": "Other, Specify", "ar": "أخرى، حدد"}, + "physicalExamination": {"en": "Physical Examination", "ar": "الفحص البدني"}, + "addPhysicalExamination": { + "en": "Add Physical Examination", + "ar": "إضافة الفحص البدني" + }, + "noPhysicalExamination": { + "en": "No Physical Examination added, please add it from the button above", + "ar": "لم يتم إضافة فحص بدني ، يرجى إضافته من الزر أعلاه" + }, + "noProgressNote": { + "en": "No Diagnosis added, please add it from the button above", + "ar": "لم يتم إضافة تشخيص ، يرجى إضافته من الزر أعلاه" + }, + "mild": {"en": "Mild", "ar": "خفيف"}, + "moderate": {"en": "Moderate", "ar": "معتدل"}, + "remarksCanNotBeEmpty": { + "en": "Remarks Can Not Be Empty", + "ar": "لا يمكن أن تكون الملاحظات فارغة" + }, + "kindlySelectCategory": { + "en": "Kindly Select Any Diagnosis Category", + "ar": "يرجى اختيار أي فئة تشخيص" + }, + "noRemarks": {"en": "No Remarks", "ar": "لا ملاحظات"}, + "event": {"en": "Event: ", "ar": "حدث: "}, + "editDiagnosis": {"en": "Edit Diagnosis ", "ar": "تحرير التشخيص"}, + "selectedDiagnosis": { + "en": "Kindly Select Diagnosis", + "ar": "يرجى اختيار التشخيص: " + }, + "selectConditionFirst": { + "en": "Kindly Select Diagnosis Condition", + "ar": "يرجى اختيار حالة التشخيص: " + }, + "deletedRemarks": {"en": "Deleted Remarks: ", "ar": "ملاحظات محذوفة: "}, + "newValue": {"en": "New Value: ", "ar": "قيمة جديدة: "}, + "fieldName": {"en": "Field Name: ", "ar": "اسم الحقل: "}, + "noChangeRecorded": { + "en": "No Change Recorded Unable To Perform Edit", + "ar": "لم يتم تسجيل أي تغيير، غير قادر على إجراء التحرير" + }, + "oldValue": {"en": "Old Value: ", "ar": "القيمة القديمة: "}, + "favoriteDiagnosis": {"en": "Favorite Diagnosis", "ar": "التشخيص المفضل"}, + "addToFavorite": {"en": "Add To Favorite", "ar": "إضافة إلى المفضلة"}, + "noDiagnosisFound": { + "en": "No Diagnosis added, please add it from the button above", + "ar": "لم يتم إضافة تشخيص ، يرجى إضافته من الزر أعلاه" + }, "areYouSureYouWantToDeleteDiagnosis": { "en": "Are you sure you want to delete diagnosis", "ar": "هل أنت متأكد من أنك تريد حذف التشخيص" }, - "activate": {"en": "Activate", "ar":"فعل"}, - "resolved": {"en": "Resolved", "ar":"تم الحل"}, - "diagnosisAlreadyDeleted": {"en": "Diagnosis Already Deleted", "ar":"تم حذف التشخيص بالفعل"}, - "diagnosisAlreadyResolved": {"en": "Diagnosis Already Resolved", "ar":"تم حل التشخيص بالفعل"}, - "selectReaction": {"en": "Select Reaction", "ar":"حدد رد الفعل"}, - "progressNoteCanNotBeEmpty": {"en": "Progress Note Can Not Be Empty", "ar":"ملاحظة التقدم لا يمكن أن تكون فارغة"}, - + "activate": {"en": "Activate", "ar": "فعل"}, + "resolved": {"en": "Resolved", "ar": "تم الحل"}, + "diagnosisAlreadyDeleted": { + "en": "Diagnosis Already Deleted", + "ar": "تم حذف التشخيص بالفعل" + }, + "diagnosisAlreadyResolved": { + "en": "Diagnosis Already Resolved", + "ar": "تم حل التشخيص بالفعل" + }, + "selectReaction": {"en": "Select Reaction", "ar": "حدد رد الفعل"}, + "progressNoteCanNotBeEmpty": { + "en": "Progress Note Can Not Be Empty", + "ar": "ملاحظة التقدم لا يمكن أن تكون فارغة" + }, + "morphologyCode": {"en": "Morphology Code", "ar": "كود الشكل"}, }; diff --git a/lib/core/enum/master_lookup_key.dart b/lib/core/enum/master_lookup_key.dart index 04608719..c6c2b49c 100644 --- a/lib/core/enum/master_lookup_key.dart +++ b/lib/core/enum/master_lookup_key.dart @@ -21,6 +21,7 @@ enum MasterKeysService { MedicationIndications, AdmissionRequestType, DiagnosisSelectionType, + MorphologyCode } extension SelectedMasterKeysService on MasterKeysService { @@ -89,6 +90,9 @@ extension SelectedMasterKeysService on MasterKeysService { case MasterKeysService.DiagnosisSelectionType: return 2024; break; + case MasterKeysService.MorphologyCode: + return 1097; + break; } } } diff --git a/lib/core/model/SOAP/assessment/get_assessment_res_model.dart b/lib/core/model/SOAP/assessment/get_assessment_res_model.dart index fb92f994..4d4e4b59 100644 --- a/lib/core/model/SOAP/assessment/get_assessment_res_model.dart +++ b/lib/core/model/SOAP/assessment/get_assessment_res_model.dart @@ -14,6 +14,7 @@ class GetAssessmentResModel { String? icdCode10ID; int? patientMRN; String? remarks; + String? morphologyCode; GetAssessmentResModel( {this.appointmentNo, @@ -30,7 +31,8 @@ class GetAssessmentResModel { this.episodeId, this.icdCode10ID, this.patientMRN, - this.remarks}); + this.remarks, + this.morphologyCode}); GetAssessmentResModel.fromJson(Map json) { appointmentNo = json['appointmentNo']; @@ -48,6 +50,7 @@ class GetAssessmentResModel { icdCode10ID = json['icdCode10ID']; patientMRN = json['patientMRN']; remarks = json['remarks']; + morphologyCode = json['morphologyCode']; } Map toJson() { @@ -67,6 +70,8 @@ class GetAssessmentResModel { data['icdCode10ID'] = this.icdCode10ID; data['patientMRN'] = this.patientMRN; data['remarks'] = this.remarks; + data['morphologyCode'] = this.morphologyCode; + return data; } } diff --git a/lib/core/model/SOAP/selected_items/my_selected_assement.dart b/lib/core/model/SOAP/selected_items/my_selected_assement.dart index f6be0059..54c40c8f 100644 --- a/lib/core/model/SOAP/selected_items/my_selected_assement.dart +++ b/lib/core/model/SOAP/selected_items/my_selected_assement.dart @@ -11,6 +11,7 @@ class MySelectedAssessment { int? doctorID; String? doctorName; String? icdCode10ID; + String? morphologyCode; MySelectedAssessment( {this.selectedICD, @@ -22,5 +23,6 @@ class MySelectedAssessment { this.createdOn, this.doctorID, this.doctorName, - this.icdCode10ID}); + this.icdCode10ID, + this.morphologyCode}); } diff --git a/lib/core/service/base/lookup-service.dart b/lib/core/service/base/lookup-service.dart index b9f6a69f..02e85d89 100644 --- a/lib/core/service/base/lookup-service.dart +++ b/lib/core/service/base/lookup-service.dart @@ -54,8 +54,10 @@ class LookupService extends BaseService { List listOfSpeciality = []; List listOfAdmissionType = []; List listOfDiagnosisSelectionTypes = []; + List morphologyList = []; - Future getMasterLookup(MasterKeysService masterKeys, {String searchKey = ""}) async { + Future getMasterLookup(MasterKeysService masterKeys, + {String searchKey = ""}) async { hasError = false; Map body = { "MasterInput": masterKeys.getMasterKeyService(), @@ -212,8 +214,11 @@ class LookupService extends BaseService { listOfDiagnosisSelectionTypes.add(v); }); break; + case MasterKeysService.MorphologyCode: + morphologyList.clear(); + entryList.forEach((v) { + morphologyList.add(v); + }); } } - - } diff --git a/lib/core/service/patient_medical_file/soap/SOAP_service.dart b/lib/core/service/patient_medical_file/soap/SOAP_service.dart index 1c40631e..e0ece46c 100644 --- a/lib/core/service/patient_medical_file/soap/SOAP_service.dart +++ b/lib/core/service/patient_medical_file/soap/SOAP_service.dart @@ -1,5 +1,6 @@ import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/shared_pref_kay.dart'; +import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart'; import 'package:doctor_app_flutter/core/model/SOAP/Allergy/get_allergies_res_model.dart'; import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_res_model.dart'; import 'package:doctor_app_flutter/core/model/SOAP/allergy/get_allergies_list_vida_plus.dart'; @@ -88,6 +89,7 @@ class SOAPService extends LookupService { Map conditionTypeList = {}; List icdVersionList = []; bool showAuditBottomSheet = false; + bool isMorphology_ = false; int? episodeID; bool isPrescriptionOrder = false; @@ -458,17 +460,16 @@ class SOAPService extends LookupService { }); } - Future addAllergies( - AllergiesListVidaPlus allergy, PatiantInformtion patientInfo, bool isNoKnown) async { - if(!isNoKnown){ - allergy.allergyReactionDTOs!.forEach((value) { - value.patientID = patientInfo.patientMRN; - value.pomrid = int.parse(patientInfo.pomrId!); - value.allergyReactionMappingID = 1; - value.severity = value.severity ?? 1; - }); - -} + Future addAllergies(AllergiesListVidaPlus allergy, + PatiantInformtion patientInfo, bool isNoKnown) async { + if (!isNoKnown) { + allergy.allergyReactionDTOs!.forEach((value) { + value.patientID = patientInfo.patientMRN; + value.pomrid = int.parse(patientInfo.pomrId!); + value.allergyReactionMappingID = 1; + value.severity = value.severity ?? 1; + }); + } var request = { "patientsAllergyRevisionID": allergy.allergyRevisionID, "patientMRN": patientInfo.patientMRN, @@ -490,15 +491,15 @@ class SOAPService extends LookupService { "allergyTypeID": allergy.allergyTypeID, }; - if(isNoKnown){ - request['isAllergy'] ='NO_KNOWN_ALLERGIES'; + if (isNoKnown) { + request['isAllergy'] = 'NO_KNOWN_ALLERGIES'; request['allergyName'] = "No Known Allergies"; - request['userType'] ='DOCTOR'; - request['allergyTypeID'] = request['allergyID'] = 0; + request['userType'] = 'DOCTOR'; + request['allergyTypeID'] = request['allergyID'] = 0; request['isActive'] = true; - request['remarks'] =""; - request['isActivePatientsAllergy'] =true; - request['patientsAllergyReactionsDTOs'] =[]; + request['remarks'] = ""; + request['isActivePatientsAllergy'] = true; + request['patientsAllergyReactionsDTOs'] = []; } hasError = false; @@ -688,10 +689,9 @@ class SOAPService extends LookupService { "pomrId": patient.pomrId, "patientMRN": patient.patientMRN, "chiefComplaint": cheifComplaint, - } ], - "setupId":await sharedPref.getString(DOCTOR_SETUP_ID) + "setupId": await sharedPref.getString(DOCTOR_SETUP_ID) }; hasError = false; await baseAppClient.post(POST_CHIEF_COMPLAINT_VP, @@ -737,13 +737,13 @@ class SOAPService extends LookupService { .forEach((v) => searchDiagnosisList.add(SearchDiagnosis.fromJson(v))); _processData(); }, onFailure: (String error, int statusCode) { - clearSearchResult(); + clearSearchResult(); hasError = true; super.error = error; }, body: request); } - clearSearchResult(){ + clearSearchResult() { searchDiagnosisList.clear(); icdVersionList.clear(); } @@ -865,7 +865,7 @@ class SOAPService extends LookupService { // "endRow": 10, // "isSelected": true, // "ProjectID": 313 - "hospitalGroupId": await sharedPref.getString(DOCTOR_SETUP_ID), + "hospitalGroupId": await sharedPref.getString(DOCTOR_SETUP_ID), "hospitalId": patient.projectId, "patientId": patient.patientId, "patientPomrId": patient.pomrId, @@ -1253,8 +1253,12 @@ class SOAPService extends LookupService { return success; } - Future createProgressNote(PatiantInformtion patient, String? clinicID, - String conditionType, String note, ) async { + Future createProgressNote( + PatiantInformtion patient, + String? clinicID, + String conditionType, + String note, + ) async { Map request = { "planNote": note, "PatientMRN": patient.patientMRN, @@ -1358,8 +1362,9 @@ class SOAPService extends LookupService { var success = false; await baseAppClient.post(GET_PATIENT_CLINIC, onSuccess: (dynamic response, int statusCode) { - response['ListPatientConditionProgress']['resultData'].forEach((v) => v['PATIENT_CONDITION'].forEach( - (item) => patientConditionList.add(PatientCondition.fromJson(item)))); + response['ListPatientConditionProgress']['resultData'].forEach((v) => + v['PATIENT_CONDITION'].forEach((item) => + patientConditionList.add(PatientCondition.fromJson(item)))); success = false; }, onFailure: (String error, int statusCode) { success = false; @@ -1398,18 +1403,18 @@ class SOAPService extends LookupService { }, body: request); } - continueEpisodeVidaPlusFromPrevious( - PatiantInformtion patient, ChiefComplains chiefComplaint, String chiefComplainTemplateId) async { + continueEpisodeVidaPlusFromPrevious(PatiantInformtion patient, + ChiefComplains chiefComplaint, String chiefComplainTemplateId) async { List> chiefComplaintList = []; var listofComplain = { - chiefComplaint.chiefComplain :chiefComplainTemplateId + chiefComplaint.chiefComplain: chiefComplainTemplateId }; Map request = { "appointmentId": patient.appointmentNo, "projectId": patient.projectId, "setupId": await sharedPref.getString(DOCTOR_SETUP_ID), - "chiefComplain":listofComplain + "chiefComplain": listofComplain }; hasError = false; await baseAppClient.post(CONTINUE_EPISODE_VP, @@ -1430,7 +1435,7 @@ class SOAPService extends LookupService { "PatientName": patient.firstName! + ' ' + patient.lastName!, "addedChiefComplaintCreateDtos": [], "removedChiefComplaintIds": [chiefComplaint.chiefComplainId], - "setupId": await sharedPref.getString(DOCTOR_SETUP_ID), + "setupId": await sharedPref.getString(DOCTOR_SETUP_ID), }; hasError = false; await baseAppClient.post(UPDATE_CHIEF_COMPLAINT, @@ -1448,7 +1453,7 @@ class SOAPService extends LookupService { Map request = { "patientId": patient.patientId, "clinicId": patient.clinicId, - "setupId": await sharedPref.getString(DOCTOR_SETUP_ID), + "setupId": await sharedPref.getString(DOCTOR_SETUP_ID), }; hasError = false; await baseAppClient.post(EPISODE_BY_CHIEF_COMPLAINT, @@ -1552,4 +1557,31 @@ class SOAPService extends LookupService { super.error = error; }, body: finalRequest); } + + Future isMorphology(String icd10Code) async { + hasError = false; + await baseAppClient.post(IS_MORPHOLOGY, + onSuccess: (dynamic response, int statusCode) { + print("Success"); + + isMorphology_ = response['Ismorphology']; + }, onFailure: (String error, int statusCode) { + hasError = true; + super.error = error; + }, body: {"selectedIcdCode": icd10Code}); + } + + Future getMorphologyDiagnosis() async { + hasError = false; + await baseAppClient.post(GET_MASTER_LOOKUP_LIST, + onSuccess: (dynamic response, int statusCode) { + print("Success"); + + setMasterLookupInCorrectArray(response['MasterLookUpList']['entityList'], + MasterKeysService.MorphologyCode); + }, onFailure: (String error, int statusCode) { + hasError = true; + super.error = error; + }, body: {"MasterInput": 1097}); + } } diff --git a/lib/core/viewModel/SOAP_view_model.dart b/lib/core/viewModel/SOAP_view_model.dart index 7a6baa46..5814653f 100644 --- a/lib/core/viewModel/SOAP_view_model.dart +++ b/lib/core/viewModel/SOAP_view_model.dart @@ -571,6 +571,8 @@ class SOAPViewModel extends BaseViewModel { return MasterKeyModel(); case MasterKeysService.DiagnosisSelectionType: return MasterKeyModel(); + case MasterKeysService.MorphologyCode: + return MasterKeyModel(); } } @@ -1016,8 +1018,8 @@ class SOAPViewModel extends BaseViewModel { setState(ViewState.Idle); } - addAllergies( - AllergiesListVidaPlus request, PatiantInformtion patientInfo, {bool isNoKnown =false}) async { + addAllergies(AllergiesListVidaPlus request, PatiantInformtion patientInfo, + {bool isNoKnown = false}) async { setState(ViewState.BusyLocal); await _SOAPService.addAllergies(request, patientInfo, isNoKnown); if (_SOAPService.hasError) { @@ -1134,10 +1136,11 @@ class SOAPViewModel extends BaseViewModel { setState(ViewState.Idle); } - continueEpisodeVidaPlusFromPrevious( - PatiantInformtion patient, ChiefComplains chiefComplaint, String chiefComplainTemplateId) async { + continueEpisodeVidaPlusFromPrevious(PatiantInformtion patient, + ChiefComplains chiefComplaint, String chiefComplainTemplateId) async { setState(ViewState.BusyLocal); - await _SOAPService.continueEpisodeVidaPlusFromPrevious(patient, chiefComplaint,chiefComplainTemplateId ); + await _SOAPService.continueEpisodeVidaPlusFromPrevious( + patient, chiefComplaint, chiefComplainTemplateId); if (_SOAPService.hasError) { error = _SOAPService.error; setState(ViewState.ErrorLocal);