{"version":3,"sources":["util/IntlMessages.js","index.js","assets/images/logo.png","assets/images/logo_spintplus.png","services/httpService.js","app/routes/psp/management/scrollContent.js","../node_modules/jsdom/lib/jsdom sync","../node_modules/parse5/lib sync","components/dashboard/Common/CardMenu.js","components/dashboard/Common/CardHeader/index.js","constants/ActionTypes.js","assets/images/psp/kpi/remodulin.PNG","assets/images/psp/kpi/iclusig.PNG","assets/images/psp/kpi/kalbitor.PNG","assets/images/psp/kpi/galafold.PNG","assets/images/psp/kpi/remodulin-img1.PNG","assets/images/psp/kpi/iclusig-img1.PNG","reducers/Base.js","reducers/Settings.js","constants/ThemeColors.js","app/routes/psp/manage/data/mails.js","reducers/Mail.js","reducers/Auth.js","app/routes/psp/managepharma/data/mails.js","reducers/PharmaMail.js","reducers/Prescription.js","reducers/Management.js","reducers/Home.js","reducers/Impact.js","reducers/Institution.js","api/api.js","actions/Auth.js","sagas/Auth.js","sagas/index.js","store/index.js","containers/themes/cyanTheme.js","lngProvider/entries/en-US.js","lngProvider/index.js","lngProvider/entries/es_ES.js","components/Progress/index.js","containers/SignIn.js","app/routes/psp/timeline/data.js","app/routes/psp/timeline/index.js","components/CircularProgress/index.js","util/asyncComponent.js","components/Footer/index.js","components/AppNotification/NotificationItem.js","components/AppNotification/data.js","components/AppNotification/index.js","constants/setupMenu.js","containers/AppLayout/Horizontal/Header/TopNav/Menu.js","components/UserInfo/UserInfoPopup.js","components/Form/Controls/styles/index.js","components/Form/Controls/select-autocomplete/index.js","components/Form/Controls/input/index.js","components/Form/Controls/ButtonAsync/index.js","app/routes/psp/patient/Components/NewPatientDialog.js","actions/Setting.js","components/UserInfo/PasswordChangeForm.js","containers/AppLayout/Horizontal/Header/InsideNavHeader.js","components/Navigation/NavMenuItem.js","components/Navigation/NavCollapse.js","components/Navigation/NavSection.js","components/Navigation/index.js","containers/SideBar/SideBarContent.js","containers/SideBar/index.js","containers/AppLayout/AppLayouts.js","containers/AppLayout/Horizontal/InsideHeaderNav.js","containers/Relogin.js","app/routes/psp/doctor/Components/ProcessTable.js","app/routes/psp/doctor/Components/DoctorTable.js","components/CardBox/index.js","util/Auxiliary.js","components/Widget/index.js","app/routes/psp/doctor/data.js","app/routes/psp/doctor/Components/NewPatientDialog.js","app/routes/psp/doctor/Components/DoctorProfile.js","app/routes/psp/data.js","app/routes/psp/doctor/index.js","components/InfoCard/index.js","app/routes/psp/patient/Components/AttachedFile.js","app/routes/psp/patient/Components/RadFileDialog.js","app/routes/psp/patient/Components/FollowUpTable.js","app/routes/psp/patient/Components/ClinicHistoryFile.js","app/routes/psp/patient/Components/ClinicHistoryTable.js","app/routes/psp/patient/Components/PatientProfile.js","app/routes/psp/patient/index.js","components/Form/Controls/DialogConfirm/index.js","components/Form/DialogAsync/index.js","components/Form/Table/index.js","components/DlgNurses/index.js","app/routes/psp/patient3/patientTable.js","components/JaasModule/PatientList/index.js","app/routes/psp/patient3/index.js","components/Form/Controls/checkbox/index.js","components/Form/Controls/datepicker/index.js","app/routes/psp/management/GeneralImpact/EducationLevelSurvey/Form.js","app/routes/psp/management/GeneralImpact/EducationLevelSurvey/Table.js","actions/Impact.js","app/routes/psp/management/GeneralImpact/EducationLevelSurvey/index.js","components/patientMap/map.js","components/patientMap/index.js","app/routes/psp/patient3/detail/PatientInfo.js","app/routes/psp/patient3/detail/HousingInfo.js","app/routes/psp/patient3/detail/TutorInfo.js","app/routes/psp/patient3/detail/ClinicHistory/ClinicHistoryTable.js","components/DownloadButton/index.js","app/routes/psp/patient3/detail/ClinicHistory/FileTable.js","app/routes/psp/patient3/detail/ClinicHistory/AdditionalMedicationsTable.js","app/routes/psp/patient3/detail/ClinicHistory/index.js","app/routes/psp/patient3/detail/PatientFollowUp/ImpactTable.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/RadicadoInsuranceTable.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/InsuranceAuthorizationTable.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/RadicadoOLFTable.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/DeliveryDetail.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/DeliveryTable.js","app/routes/psp/patient3/detail/PatientFollowUp/ProcessDetail/index.js","services/blobService.js","components/Form/file-upload/index.js","components/Form/CardFileUpload/index.js","components/Form/DialogGeneric/index.js","app/routes/psp/patient3/detail/PatientFollowUp/FormulaInfo/index.js","app/routes/psp/patient3/detail/PatientFollowUp/ReduceFormula/index.js","app/routes/psp/patient3/detail/PatientFollowUp/index.js","app/routes/psp/patient3/detail/index.js","api/apiPatient.js","app/routes/psp/patient2/index.js","app/routes/psp/patient2/create.js","components/Form/Controls/switch/index.js","app/routes/psp/patient2/create2.js","components/Form/Controls/select/index.js","app/routes/psp/patient2/test.js","app/routes/psp/manage/data/folders.js","app/routes/psp/manage/data/labels.js","app/routes/psp/manage/data/options.js","components/mail/MailList/MailListItem/index.js","components/mail/MailList/index.js","components/mail/Compose/index.js","components/AppModuleHeader/index.js","components/mail/MailDetail/ConsentDialog.js","components/mail/MailDetail/FormulaDialog.js","components/mail/MailDetail/ClinicalHistory.js","components/mail/MailDetail/index.js","actions/Mail.js","app/routes/psp/manage/index.js","app/routes/psp/management/data.js","app/routes/psp/management/sideBar.js","app/routes/psp/management/dialogEndImpact.js","app/routes/psp/management/BtnCancelFormula.js","app/routes/psp/management/BtnActivatePatient.js","app/routes/psp/management/BtnCreatePrescription.js","app/routes/psp/management/btnDropout.js","app/routes/psp/management/searchHeader.js","app/routes/psp/management/labelsSection.js","components/Form/Controls/dateTimePicker/index.js","app/routes/psp/management/ManageContent/DialogRescheduleImpact.js","app/routes/psp/management/ManageContent/DialogPlanningImpact.js","app/routes/psp/management/ManageContent/PrescriptionList.js","app/routes/psp/management/PrescriptionDetail/components/ContactPlanning.js","app/routes/psp/management/PrescriptionDetail/components/NameAndLabelsContent.js","app/routes/psp/management/PrescriptionDetail/components/ContactInfo.js","app/routes/psp/management/PrescriptionDetail/components/ContactPatientForm.js","app/routes/psp/management/PrescriptionDetail/components/DialogDoctorAuthorization.js","app/routes/psp/management/PrescriptionDetail/components/StartEndImpact.js","components/JaasModule/IsOnlyTracingBox/formEdit.js","components/JaasModule/IsOnlyTracingBox/index.js","components/PdfViewer/index.js","app/routes/psp/management/Impact/Consent/Form.js","actions/PharmaMails.js","actions/Institution.js","app/routes/psp/management/Impact/Consent/audioForm.js","app/routes/psp/management/Impact/Consent/index.js","app/routes/psp/management/Impact/Formula/ApproveFormula.js","app/routes/psp/management/Impact/Formula/FormulaForm.js","app/routes/psp/management/Impact/Formula/index.js","app/routes/psp/management/Impact/ClinicalHistory/index.js","app/routes/psp/management/Impact/PatientInfo/index.js","app/routes/psp/management/Impact/Education/index.js","app/routes/psp/management/Impact/NursePlan/index.js","app/routes/psp/management/Impact/AdditionalMedications/FormCRU.js","app/routes/psp/management/Impact/AdditionalMedications/TableAM.js","app/routes/psp/management/Impact/AdditionalMedications/index.js","app/routes/psp/management/Impact/FirstImpact.js","app/routes/psp/management/GeneralImpact/RadicacionInsurance/NoRadicado.js","app/routes/psp/management/GeneralImpact/RadicacionInsurance/Form.js","app/routes/psp/management/GeneralImpact/RadicacionInsurance/Table.js","app/routes/psp/management/GeneralImpact/RadicacionInsurance/index.js","components/Form/DialogAlert/index.js","app/routes/psp/management/GeneralImpact/InsuranceAuthorization/FormAddNewPharmacy.js","app/routes/psp/management/GeneralImpact/InsuranceAuthorization/Form.js","app/routes/psp/management/GeneralImpact/InsuranceAuthorization/Table.js","app/routes/psp/management/GeneralImpact/InsuranceAuthorization/index.js","app/routes/psp/management/GeneralImpact/RadicadoOLF/Form.js","app/routes/psp/management/GeneralImpact/RadicadoOLF/Table.js","app/routes/psp/management/GeneralImpact/RadicadoOLF/index.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/DeliveryDetail/Form.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/DeliveryDetail/Table.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/DeliveryDetail/index.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/Form.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/Table.js","app/routes/psp/management/GeneralImpact/MedicineDelivery/index.js","app/routes/psp/management/GeneralImpact/Alert/TableComments.js","app/routes/psp/management/GeneralImpact/Alert/Form.js","app/routes/psp/management/GeneralImpact/Alert/Table.js","app/routes/psp/management/GeneralImpact/Alert/index.js","app/routes/psp/management/GeneralImpact/Dosage/Form.js","app/routes/psp/management/GeneralImpact/Dosage/Table.js","app/routes/psp/management/GeneralImpact/Dosage/Dialog.js","app/routes/psp/management/GeneralImpact/Dosage/index.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/AdverseEvent/Pharmacovigilance/index.js","components/Form/Controls/switchYesNo/index.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/AdverseEvent/Technovigilance/index.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/TableComments.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/FormDetail.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/AddAdverseEvent.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/Tabs.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/Dlg.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/FormAdd.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/Table.js","app/routes/psp/management/GeneralImpact/ClinicalFinding/index.js","app/routes/psp/management/GeneralImpact/MorisKySurvey/Form.js","app/routes/psp/management/GeneralImpact/MorisKySurvey/Table.js","app/routes/psp/management/GeneralImpact/MorisKySurvey/index.js","app/routes/psp/management/GeneralImpact/MedicineConsumption/Form.js","app/routes/psp/management/GeneralImpact/MedicineConsumption/FormRemodulin.js","app/routes/psp/management/GeneralImpact/MedicineConsumption/Table.js","app/routes/psp/management/GeneralImpact/MedicineConsumption/Indicator.js","app/routes/psp/management/GeneralImpact/MedicineConsumption/index.js","app/routes/psp/management/GeneralImpact/HealingMaterial/Form.js","app/routes/psp/management/GeneralImpact/HealingMaterial/Table.js","app/routes/psp/management/GeneralImpact/HealingMaterial/index.js","app/routes/psp/management/GeneralImpact/CatheterStatus/Table.js","components/Form/UploadFileForm/index.js","app/routes/psp/management/GeneralImpact/CatheterStatus/PhotographicRecord/Table.js","app/routes/psp/management/GeneralImpact/CatheterStatus/PhotographicRecord/index.js","app/routes/psp/management/GeneralImpact/CatheterStatus/Form.js","app/routes/psp/management/GeneralImpact/CatheterStatus/TabComponent.js","app/routes/psp/management/GeneralImpact/CatheterStatus/Dlg.js","app/routes/psp/management/GeneralImpact/CatheterStatus/index.js","app/routes/psp/management/GeneralImpact/InfusionPumps/Form.js","app/routes/psp/management/GeneralImpact/InfusionPumps/Table.js","app/routes/psp/management/GeneralImpact/InfusionPumps/index.js","app/routes/psp/management/GeneralImpact/ProductStatus/Form.js","app/routes/psp/management/GeneralImpact/ProductStatus/Table.js","app/routes/psp/management/GeneralImpact/ProductStatus/index.js","app/routes/psp/management/GeneralImpact/HealthData/form.js","app/routes/psp/management/GeneralImpact/HealthData/index.js","app/routes/psp/management/Impact/Dosage/FormCRU.js","app/routes/psp/management/Impact/Dosage/TableAM.js","app/routes/psp/management/Impact/Dosage/index.js","components/JaasModule/PatientStateBox/table.js","components/JaasModule/PatientStateBox/barriersModal.js","components/JaasModule/PatientStateBox/formAdd.js","components/JaasModule/PatientStateBox/index.js","app/routes/psp/management/GeneralImpact/TracingDelivery/Form.js","app/routes/psp/management/GeneralImpact/TracingDelivery/mediaModal.js","app/routes/psp/management/GeneralImpact/TracingDelivery/Table.js","app/routes/psp/management/GeneralImpact/TracingDelivery/indicator.js","app/routes/psp/management/GeneralImpact/TracingDelivery/index.js","app/routes/psp/management/GeneralImpact/Diagnosis/TableD.js","app/routes/psp/management/GeneralImpact/Diagnosis/FormD.js","app/routes/psp/management/GeneralImpact/Diagnosis/mediaModal.js","app/routes/psp/management/GeneralImpact/Diagnosis/tableTestDisease.js","app/routes/psp/management/GeneralImpact/Diagnosis/formTestDisease.js","app/routes/psp/management/GeneralImpact/Diagnosis/tableFamiliar.js","app/routes/psp/management/GeneralImpact/Diagnosis/formFamiliar.js","app/routes/psp/management/GeneralImpact/Diagnosis/index.js","app/routes/psp/management/GeneralImpact/AdverseReaction/mediaModal.js","app/routes/psp/management/GeneralImpact/AdverseReaction/TableAdverseReaction.js","app/routes/psp/management/GeneralImpact/AdverseReaction/formAdverseReaction.js","app/routes/psp/management/GeneralImpact/AdverseReaction/index.js","app/routes/psp/management/GeneralImpact/ControlExam/mediaModal.js","app/routes/psp/management/GeneralImpact/ControlExam/tableCE.js","app/routes/psp/management/GeneralImpact/ControlExam/formCE.js","app/routes/psp/management/GeneralImpact/ControlExam/index.js","app/routes/psp/management/GeneralImpact/PharmacotherapeuticRisk/table.js","components/Form/Controls/RadioGroupYesNo/index.js","app/routes/psp/management/GeneralImpact/PharmacotherapeuticRisk/form.js","app/routes/psp/management/GeneralImpact/PharmacotherapeuticRisk/dialog.js","app/routes/psp/management/GeneralImpact/PharmacotherapeuticRisk/index.js","app/routes/psp/management/GeneralImpact/index.js","components/AdverseEvent/QueryAdverseEvent/FormEdit/CommentTable.js","components/AdverseEvent/QueryAdverseEvent/FormEdit/index.js","components/AdverseEvent/QueryAdverseEvent/btnAdd/index.js","components/AdverseEvent/QueryAdverseEvent/btnAddFollowUp/index.js","components/AdverseEvent/QueryAdverseEvent/index.js","components/AdverseEvent/ConcomitantMedication/Form.js","components/AdverseEvent/ConcomitantMedication/index.js","components/AdverseEvent/BtnNullify/index.js","app/routes/psp/management/AdverseEventDetail/Pharmacovigilance/addknownAdverseEvent.js","app/routes/psp/management/AdverseEventDetail/Pharmacovigilance/index.js","components/AdverseEvent/Technovigilance/index.js","app/routes/psp/management/AdverseEventDetail/index.js","app/routes/psp/management/EventTrainingDetail/components/resources.js","app/routes/psp/management/EventTrainingDetail/components/feedback.js","app/routes/psp/management/EventTrainingDetail/index.js","app/routes/psp/management/PrescriptionDetail/prescriptionDetail.js","app/routes/psp/management/ManageContent/index.js","app/routes/psp/management/index.js","app/routes/psp/managepharma/data/folders.js","app/routes/psp/managepharma/data/labels.js","app/routes/psp/managepharma/data/options.js","app/routes/psp/managepharma/components/MailList/MailListItem/index.js","app/routes/psp/managepharma/components/MailList/index.js","app/routes/psp/managepharma/components/MailDetail/index.js","app/routes/psp/managepharma/index.js","app/routes/psp/kpi/productLine/data.js","components/ContainerHeader/index.js","app/routes/psp/kpi/productLine/index.js","app/routes/psp/kpi/productLine/remodulin/data.js","app/routes/psp/kpi/productLine/remodulin/index.js","app/routes/psp/kpi/productLine/iclusig/data.js","app/routes/psp/kpi/productLine/iclusig/index.js","app/routes/psp/kpi/impacts/data.js","app/routes/psp/kpi/impacts/index.js","app/routes/psp/kpi/pharmacoVigilance/data.js","app/routes/psp/kpi/pharmacoVigilance/index.js","app/routes/psp/pharmacovigilant/data.js","components/dashboard/Common/UserDetailCell.js","components/dashboard/Common/UserDetailTable.js","app/routes/psp/pharmacovigilant/index.js","app/routes/psp/managerCalendar/Components/events.js","app/routes/psp/managerCalendar/Components/AddEventDialog.js","app/routes/psp/managerCalendar/index.js","app/routes/psp/impactPlanning/Calendar/DialogPlanningImpact.js","app/routes/psp/impactPlanning/Calendar/DialogRescheduleImpact.js","app/routes/psp/impactPlanning/Calendar/DialogImpactInfo.js","app/routes/psp/impactPlanning/Calendar/dlgEventTraining/resources/table.js","components/Form/inputFile/index.js","app/routes/psp/impactPlanning/Calendar/dlgEventTraining/resources/form.js","app/routes/psp/impactPlanning/Calendar/dlgEventTraining/resources/index.js","app/routes/psp/impactPlanning/Calendar/dlgEventTraining/index.js","app/routes/psp/impactPlanning/Calendar/index.js","app/routes/psp/impactPlanning/index.js","app/routes/psp/adverseEvent/index.js","app/routes/psp/adverseEvent/detail/Pharmacovigilance/index.js","app/routes/psp/adverseEvent/detail/BtnProcess/ProcessTable.js","app/routes/psp/adverseEvent/detail/BtnProcess/DialogReject.js","app/routes/psp/adverseEvent/detail/BtnProcess/DialogCausality.js","app/routes/psp/adverseEvent/detail/BtnProcess/Dlg.js","app/routes/psp/adverseEvent/detail/BtnProcess/index.js","app/routes/psp/adverseEvent/detail/index.js","services/fileService.js","app/routes/psp/reports/impacts.js","app/routes/psp/reports/controlPanel.js","app/routes/psp/reports/remodulinPumps.js","app/routes/psp/reports/downloadReportFile.js","app/routes/psp/reports/bcrHemograma.js","app/routes/psp/reports/expirationReport.js","app/routes/psp/reports/moriskyInfo.js","app/routes/psp/reports/pendingRSVariables.js","app/routes/psp/reports/suspendedPatients.js","app/routes/psp/reports/externalReport/table.js","app/routes/psp/reports/externalReport/form.js","app/routes/psp/reports/externalReport/index.js","app/routes/psp/reports/feedbackEventTraining.js","app/routes/psp/reports/index.js","components/Reports/downloadReportFile.js","app/routes/pspGeneric/reports/prescriptions.js","services/formatNumber.js","app/routes/pspGeneric/reports/deliveries.js","app/routes/pspGeneric/components/dlgCoachComment.js","app/routes/pspGeneric/reports/impacts.js","app/routes/pspGeneric/reports/prescriptionsTotal.js","app/routes/pspGeneric/reports/index.js","app/routes/psp/reports/controlPanelRepKam.js","app/routes/psp/reports/ProcessDetail/RadicadoInsuranceTable.js","app/routes/psp/reports/ProcessDetail/InsuranceAuthorizationTable.js","app/routes/psp/reports/ProcessDetail/RadicadoOLFTable.js","app/routes/psp/reports/ProcessDetail/DeliveryDetail.js","app/routes/psp/reports/ProcessDetail/DeliveryTable.js","app/routes/psp/reports/ProcessDetail/index.js","app/routes/psp/reports/indexRepKam.js","constants/regexConstants.js","app/routes/psp/patientPA/addPatient/addPatient.js","app/routes/psp/patientPA/addPatient/index.js","app/routes/psp/patientPA/patientComment/addComment.js","app/routes/psp/patientPA/patientComment/index.js","app/routes/psp/patientPA/index.js","app/routes/psp/patientPA/detail/patientInfo/customTabs.js","app/routes/psp/patientPA/detail/patientInfo/index.js","app/routes/psp/patientPA/detail/impacts/form.js","app/routes/psp/patientPA/detail/impacts/impactList.js","app/routes/psp/patientPA/detail/impacts/index.js","app/routes/psp/patientPA/detail/index.js","app/routes/psp/patient-management/ChangeNurse/nurseTable.js","app/routes/psp/patient-management/ChangeNurse/index.js","app/routes/psp/patient-management/btnActivatePatient.js","app/routes/psp/patient-management/index.js","app/routes/pspGeneric/prescriptions/addPatient/index.js","app/routes/pspGeneric/prescriptions/addPrescription/index.js","app/routes/pspGeneric/prescriptions/scheduleImpact/index.js","app/routes/pspGeneric/impactDetail/startEndImpact/index.js","app/routes/pspGeneric/impactDetail/patientBox.js","app/routes/pspGeneric/deliveries/AddDelivery/index.js","app/routes/pspGeneric/deliveries/index.js","app/routes/pspGeneric/impactDetail/deliveryBox.js","app/routes/pspGeneric/impactDetail/prescriptionBox.js","app/routes/pspGeneric/dlgStates/index.js","app/routes/pspGeneric/impactDetail/prescriptionStateBox.js","app/routes/pspGeneric/impacts/index.js","app/routes/pspGeneric/impactDetail/impactBox.js","app/routes/pspGeneric/impactDetail/index.js","app/routes/pspGeneric/prescriptions/index.js","components/CardTotal/index.js","components/CustomChart/index.js","app/routes/pspGeneric/dashboard/optionsCharts.js","app/routes/pspGeneric/dashboard/index.js","app/routes/pspGeneric/dashboard-migration/optionsCharts.js","app/routes/pspGeneric/dashboard-migration/causalTable.js","app/routes/pspGeneric/dashboard-migration/index.js","app/routes/psp/dashboard/dlgDoctorDetail.js","app/routes/psp/dashboard/topDoctorTable.js","app/routes/psp/dashboard/optionsCharts.js","app/routes/psp/dashboard/patientByEpsAndStateGraph.js","app/routes/psp/dashboard/chartLogisticOperator.js","app/routes/psp/dashboard/index.js","app/routes/psp/patientPA/DashboardPA/optionsCharts.js","app/routes/psp/patientPA/DashboardPA/index.js","app/routes/psp/patientPA/dashboardOperative/optionsCharts.js","app/routes/psp/patientPA/dashboardOperative/index.js","app/routes/psp/patientPA/dashboardClinical/optionsCharts.js","app/routes/psp/patientPA/dashboardClinical/index.js","components/ProtectedRoute/index.js","app/routes/Institution/home/modalConcent.js","app/routes/Institution/home/dlgAddNewPatient.js","app/routes/Institution/details/modalForm/nextFollowUp.js","app/routes/Institution/home/index.js","app/routes/Institution/details/modalForm/patientDataForm.js","app/routes/Institution/details/cards/patientData.js","app/routes/Institution/details/modalForm/assistanceForm.js","app/routes/Institution/details/cards/assistance.js","app/routes/Institution/details/modalForm/procedureForm.js","app/routes/Institution/details/cards/procedure.js","app/routes/Institution/details/modalForm/endingForm.js","app/routes/Institution/details/modalForm/dlgDownloadImpactFile.js","app/routes/Institution/details/cards/ending.js","app/routes/Institution/details/cards/nextFollowUp.js","app/routes/Institution/details/index.js","app/routes/index.js","containers/AppLayout/index.js","containers/App.js","services/logService.js","MainApp.js","reducers/index.js","app/routes/psp/home/components/TableBox/index.js","app/routes/psp/home/components/TableBoxRow/index.js","app/routes/psp/home/components/NewPatientIndicator/index.js","app/routes/psp/home/data.js","app/routes/psp/home/index.js","components/ReportBox/index.js","components/dashboard/eCommerce/YearlyProfitChart.js","app/routes/psp/services/userService.js","constants/Enums.js","actions/Base.js","actions/Management.js","api/apiList.js","actions/Home.js","components/CustomLineChart/index.js","assets/images/psp/logos/psp_profile_logo-default.png","util/CustomScrollbars.js"],"names":["injectIntl","props","withRef","IntlGetText","id","useIntl","formatMessage","rootEl","document","getElementById","MainApp","require","default","ReactDOM","render","module","exports","get","axios","post","put","patch","delete","ScrollContent","children","width","heightMin","heightMax","classParent","classContent","undefined","className","style","height","webpackEmptyContext","req","e","Error","code","keys","resolve","CardMenu","options","IntlMessages","menuState","anchorEl","handleRequestClose","Menu","open","onClose","MenuListProps","paddingTop","paddingBottom","map","option","MenuItem","key","onClick","CardHeader","useState","setMenuState","heading","subHeading","styleName","defaultProps","TOGGLE_COLLAPSED_NAV","DRAWER_TYPE","FIXED_DRAWER","COLLAPSED_DRAWER","WINDOW_WIDTH","SWITCH_LANGUAGE","HORIZONTAL_NAVIGATION","HORIZONTAL_MENU_POSITION","INSIDE_THE_HEADER","SHOW_MESSAGE","HIDE_MESSAGE","ON_TOGGLE_DRAWER","HANDLE_REQUEST_CLOSE","SIGNIN_USER","SIGNIN_USER_SUCCESS","SIGNOUT_USER","SIGNOUT_USER_SUCCESS","INIT_URL","SIGNIN_RELOGIN","ON_SHOW_LOADER","ON_HIDE_LOADER","GET_ALL_MAIL","FETCH_ALL_MAIL","FETCH_ALL_MAIL_SUCCESS","GET_IMPORTANT_MAIL","GET_NAV_FILTERS","GET_NAV_LABELS","GET_NAV_FOLDER","GET_READ_MAIL","GET_STARRED_MAIL","GET_UNIMPORTANT_MAIL","GET_UNREAD_MAIL","GET_UNSELECTED_ALL_MAIL","GET_UNSTARRED_MAIL","ON_ALL_MAIL_SELECT","ON_FOLDER_MENU_ITEM_SELECT","ON_FOLDER_SELECT","ON_IMPORTANT_SELECT","ON_LABEL_MENU_ITEM_SELECT","ON_LABEL_SELECT","ON_MAIL_CHECKED","ON_MAIL_SELECT","ON_MAIL_SEND","ON_OPTION_MENU_ITEM_SELECT","ON_OPTION_MENU_SELECT","ON_START_SELECT","SEARCH_MAIL","ON_DELETE_MAIL","SET_CURRENT_MAIL_NULL","ON_COMPOSE_MAIL","PHARMA_GET_ALL_MAIL","PHARMA_FETCH_ALL_MAIL","PHARMA_FETCH_ALL_MAIL_SUCCESS","PHARMA_GET_IMPORTANT_MAIL","PHARMA_GET_NAV_FILTERS","PHARMA_GET_NAV_LABELS","PHARMA_GET_NAV_FOLDER","PHARMA_GET_READ_MAIL","PHARMA_GET_STARRED_MAIL","PHARMA_GET_UNIMPORTANT_MAIL","PHARMA_GET_UNREAD_MAIL","PHARMA_GET_UNSELECTED_ALL_MAIL","PHARMA_GET_UNSTARRED_MAIL","PHARMA_ON_ALL_MAIL_SELECT","PHARMA_ON_FOLDER_MENU_ITEM_SELECT","PHARMA_ON_FOLDER_SELECT","PHARMA_ON_IMPORTANT_SELECT","PHARMA_ON_LABEL_MENU_ITEM_SELECT","PHARMA_ON_LABEL_SELECT","PHARMA_ON_MAIL_CHECKED","PHARMA_ON_MAIL_SELECT","PHARMA_ON_MAIL_SEND","PHARMA_ON_OPTION_MENU_ITEM_SELECT","PHARMA_ON_OPTION_MENU_SELECT","PHARMA_ON_START_SELECT","PHARMA_SEARCH_MAIL","PHARMA_ON_DELETE_MAIL","PHARMA_SET_CURRENT_MAIL_NULL","PHARMA_ON_COMPOSE_MAIL","PHARMA_PATIENT_CONTACT_SAVE","PHARMA_PROCESS_STATE_CHANGE","PHARMA_HANDLE_REQUEST_CLOSE","UPDATE_SEARCH","PROCESS_STATE_CHANGE","PATIENT_CONTACT_SAVE","CURRENT_MENU_ITEM_ID","MANAGE_SEARCH_PRESCRIPTIONS","LOAD_MANAGE_MODULE","SELECT_PRODUCT_LINE","SELECT_PRESCRIPTION_STATE","SET_PRESCRIPTION_STATE","LOAD_PRESCRIPTIONS","SELECT_PRESCRIPTION","SET_LOADER_MANAGE_MODULE","SHOW_ALERT_MESSAGE","LOAD_PATIENT_INFO","UPDATE_SELECTED_PRESCRIPTION","REMOVE_SELECTED_PRESCRIPTION","ADD_PRESCRIPTION_GO_TRACING","SET_PRESCRIPTION_ID","SET_LOADER","LOAD_NEW_PATIENTS","LOAD_HOME","SET_CONSENT_PATH","SET_CONSENT_URL","LOAD_INFO_IMPACT","SET_IMPACT_START_DATE","SET_CLINICAL_HISTORY_STATE","SET_FORM_FORMULA_DONE","SET_FORMULA_MEDICINE_QUANTITY","ON_START_IMPACT","CALL_RELOAD_ALERTS","CALL_RELOAD_PATIENT_DATA","CALL_RELOAD_CONSUMPTION_TRACING","SET_HISTORY_DATA","SET_HEALTH_DATA","SET_RELOAD_DOSAGE","INSTITUTION_SET_CI_INFO","INIT_STATE","loader","state","action","type","payload","initialSettings","navCollapsed","drawerType","themeColor","darkTheme","window","innerWidth","navigationStyle","horizontalNavPosition","locale","languageId","name","icon","settings","hasPatient","time","from","lastname","avatar","email","doctorName","contactList","title","desc","to","subject","date","message","read","starred","important","hasAttachments","labels","states","selected","folder","searchMail","noContentFoundMessage","alertMessage","showMessage","drawerState","allMail","mails","optionName","currentMail","user","selectedMails","selectedFolder","composeMail","labelMenuState","folderMenuState","optionMenuState","folderMails","filter","mail","length","selectedMail","filterMails","includes","splice","indexOf","concat","labelSelected","stateSelected","deleted","searchMails","toLowerCase","initURL","authUser","localStorage","getItem","userInfo","removeItem","console","log","prescriptionId","selectedMenuItem","searchText","prescriptionsByMenuItem","prescriptionSearchResult","selectedPrescriptionId","selectedPrescription","productLines","selectedProductLine","prescriptionStates","selectedPrescriptionState","updateStateInPrescriptionList","stateId","index","findIndex","x","data","updatePatientInPrescriptionList","patient","updatePrescriptionInPrescriptionList","prescription","removePrescriptionInPrescriptionList","menuItemId","newArray","prescriptions","alertType","newPatients","consentPath","consentSigned","patientFullName","referralConsentFile","impactStartDate","impactEndDate","expeditionDateFormula","clinicalHistoryStateDone","startImpact","fileCHVariableGroupId","reloadAlerts","reloadPatientData","reloadConsumptionTracing","isCIRequired","ciDisplayable","historyData","audioUrl","medicineQuantity","healthData","reloadDosageInfo","ciInstitution","ciSignedDocument","getTokenInfo","token","JSON","parse","refreshToken","uri","fetch","method","body","headers","Authorization","then","response","json","getToken","username","password","process","stringify","relogin","userSignOut","userSignInSuccess","showAuthMessage","setInitUrl","url","showAuthLoader","signInUserWithEmailPassword","signInReloginWithEmail","signOut","signInUser","signOutUser","signInRelogin","rootSaga","signInUserWithEmailPasswordRequest","a","infoAuth","catch","error","signReloginRequest","signOutRequest","call","authInfo","userName","setItem","takeEvery","all","fork","getState","authSagas","history","createBrowserHistory","routeMiddleware","routerMiddleware","sagaMiddleware","createSagaMiddleware","middlewares","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","baseTheme","palette","primary","light","cyan","main","dark","contrastText","secondary","green","status","danger","typography","button","fontWeight","textAlign","genericTheme","imgLogin","src","alt","pageTitle","footerText","Date","getFullYear","favicon","spintPlusTheme","EnLang","messages","enMessages","AppLocale","en","enLang","es","saMessages","Progress","useSelector","base","zIndex","viewBox","cx","cy","r","fill","strokeWidth","strokeMiterlimit","SignIn","theme","useTheme","msgLoginInvalid","setEmail","setPassword","showPassword","setShowPassword","dispatch","useDispatch","auth","useEffect","setTimeout","push","TextField","label","fullWidth","onChange","event","target","value","defaultValue","margin","Input","endAdornment","InputAdornment","position","IconButton","aria-label","edge","Button","variant","color","NotificationManager","createData","stage","ManageStatus","TableHead","TableRow","TableCell","align","TableBody","n","PatientsTimeline","setOpen","Card","CardBody","noValidate","autoComplete","FormControl","InputLabel","htmlFor","display","CardTitle","CircularProgress","asyncComponent","importComponent","component","Nprogress","start","this","mounted","Component","done","setState","rows","ready","Footer","NotificationItem","notification","location","href","size","notifications","image","AppNotification","CustomScrollbars","menuSuperAdmin","link","roles","RoleEnum","superAdmin","menuIaluril","nurse","rep","consultation","kpi_survey","genericMenu","callAgent","callAgentManager","setupMenu","psp_manager","nursemanagerconsultant","nurse_procedure","psp_coordinator","msl","patient_assignment","visitor","kam","pharmacovigilance","institutionManager","institutionMenu","institution","getMenuByRole","role","shardKey","ShardKeyEnum","ialuril","seranestcr","pintPharma","ullkupuy","boidor","cmedi","phg","jaasielvalentech","sanando","jaasielmegalabs","jaasielcipla","jaasielsophia","jaasielprocaps","jaasielgt","jaasielhb","jaasielaltadis","akompaname","jaasielServier","atulado","operando","recordati","celltrion","uronorte","farmaDeColombia","isRole","getMenuItems","menu","item","self","find","y","LiMenu","pathname","mainMenu","getElementsByClassName","i","onclick","j","classList","contains","remove","toggle","subMenuLi","activeLi","querySelector","activeNav","closest","add","parentNav","el","selector","matchesFn","parent","some","fn","parentElement","getUserInfo","withRouter","UserInfoPopup","handleOpenCPM","profileLogo","setProfileLogo","customProfileLogo","result","RoleList","getRoleName","styled","StyledFormControl","StyledAutoSelectInputLabel","stylesReactSelect","clearIndicator","provided","cursor","indicatorSeparator","dropdownIndicator","placeholder","fontFamily","selectProps","control","borderRadius","border","borderBottom","boxShadow","borderColor","valueContainer","paddingLeft","components","Option","innerProps","newInnerProps","onMouseMove","onMouseOver","ReactSelect","required","errorobj","isClearable","isError","errorMessage","hasOwnProperty","Fragment","valueKey","styles","isSearchable","filterOption","createFilter","ignoreAccents","menuPortal","FormHelperText","getCboValue","items","getCboValues","idList","FormSelectAutoComplete","useFormContext","disabled","newData","setNewData","newOptions","Array","isArray","onBlur","isDisabled","FormInput","as","InputLabelProps","helperText","ButtonAsync","executing","setExecuting","otherProps","onRealClick","validationSchema","yup","shape","cboInsurance","nullable","cboInstitution","cboDoctor","cboProduct","defaultValues","comment","DialogContainer","handleClickOpen","dialogTitle","Dialog","disableBackdropClick","DialogTitle","NewPatientTest5","methods","useHistory","fnSetLoader","setLoader","handleSubmit","errors","setValue","watch","insurances","setInsurance","institutions","setInstitution","doctors","setDoctor","products","setProduct","insuranceValue","institutionValue","doctorValue","productValue","callApi","getInsuranceList","getProductList","getInstitutionList","getDoctorList","cboHandleChange","prescriptionSaveSuccess","setSelectedPrescription","getPrescriptions","loadPrescriptions","reloadPage","onSubmit","obj","insuranceId","parseFloat","institutionId","doctorId","productId","callApiAsync","postNewPatientAlert","DialogContent","Grid","container","spacing","xs","md","lg","multiline","DialogActions","NewPatient","reset","useForm","resolver","yupResolver","toggleCollapsedNav","isNavCollapsed","passwordMustMatch","PasswordChangeForm","openCPM","handleCloseCPM","handleChangePassword","currentPassword","newPassword","matches","confirmPassword","oneOf","d","maxWidth","alignItems","direction","justify","uinfo","setUserInfo","appNotification","setAppNotification","setOpenCPM","postChangePassword","succeeded","success","forEach","AppBar","Toolbar","disableGutters","getRoleUser","toUpperCase","Dropdown","isOpen","DropdownToggle","tag","data-toggle","DropdownMenu","right","Avatar","NavMenuItem","List","NavCollapse","isExpandable","React","isUrlInChildren","listen","MenuCollapse","ListItem","MenuItemChildren","Collapse","in","timeout","disablePadding","NavSection","Navigation","menuItems","SideBarContent","navigationMenus","addEventListener","updateWindowWidth","drawerStyle","Drawer","classes","paper","AppLayouts","InsideHeaderNav","isIOS","isMobile","Relogin","company","setCompany","companyFilter","setCompanyFilter","emailTotalList","setEmailTotalList","emailList","setEmailList","msgError","msgUserUnauthorized","getReloginInfo","enterprise","enterpriseKey","marginTop","medicin","urgency","ProcessTable","DoctorTable","Link","CardBox","cardStyle","childrenStyle","headerOutside","headingStyle","Auxiliary","Widget","rating","deals","NewPatientDialog","product","handleChange","DialogContentText","Select","input","DoctorProfile","marginBottom","Tabs","Tab","doctorColumns","sort","city","specialty","phone","numProcess","numPatient","actions","class","patientColumns","patients","sex","eps","doctor","datatableConfig","textLabels","noMatch","toolTip","columnHeaderTooltip","column","pagination","next","previous","rowsPerPage","displayRows","toolbar","search","downloadCsv","print","viewColumns","filterTable","titleAria","selectedRows","text","deleteAria","DoctorList","columns","filterType","download","selectableRows","hexToRgb","hex","alpha","replace","parseInt","slice","repeat","g","b","InfoCard","onClickBox","backgroundColor","subTitle","AttachedFile","RadFileDialog","detail","FollowUpTable","ClinicHistoryFile","ClinicHistoryTable","PatientProfile","indicatorColor","textColor","scrollButtons","FormControlLabel","Checkbox","PatientList","DialogConfirmAsync","openDialog","onAcceptClickAsync","DlgConfirmCustomAsync","titleTextId","titleText","DialogConfirm","onAcceptClick","DlgAsync","closeDialog","onSubmitAsync","allowEdit","dateColumn","textId","format","customBodyRender","tableMeta","updateValue","dayjs","defaultCol","numberCol","fnFormat","defaultOptions","getTextLabels","minimalOptions","Table","DlgNurses","nurses","openDlg","setOpenDlg","PatientsTable","patientStateList","FnActionsColRender","getObj","rowData","searchable","rowObj","customSearch","loadData","setPatientStateList","isConsultant","getPatientStateList","Tooltip","placement","PatientStateList","openDlgState","setOpenDlgState","currentRow","setCurrentRow","newState","setNewState","dlgConfirmInfo","setDlgConfirmInfo","isNurse","msgActivateText","msgActivateTitle","msgChangeStateTitle","msgChangeStateConfirm","onSubmitState","Number","stateItem","dlgInfo","fullName","PatientStateEnum","active","death","dropout","postActivatePatientFromDropOut","DialogAsync","row","stateList","getSateList","setData","isJaasModuleConfig","isJaasModule","getPatientList","FormCheckBox","chkProps","checked","MuiDatePicker","autoOk","inputVariant","okLabel","cancelLabel","FormDatePicker","dateProps","utils","DayjsUtils","getItemValue","answer","FormCreateUpdate","openCRU","impactId","handleCreateUpdate","readOnly","isBoidor","finding","educationLevelSurveyDetail","questionKey","educationLevelSurveyId","survey","questionList","itemKey","itemData","TableAM","handleOpenCRU","handleOpenDel","setCurrentRowObj","currentImpact","handleClick","tableData","rowIndex","handleClickDelete","setConsentPath","loadInfoImpact","infoImpact","setImpactStartDate","sethistoryData","setFormFormulaDone","setFormulaMedicineQuantity","callStartImpact","callReloadAlerts","callReloadPatientData","reload","callReloadConsumptionTracing","setHealthData","setReloadDosage","reloadDosage","EducationLevelSurvey","management","impact","msgConsentRequired","educationLevelSurveyList","setEducationLevelSurveyList","currentRowObj","setOpenCRU","openDeleteDialog","setOpenDeleteDialog","handleRequestCloseCRU","handleRequestCloseDel","getEducationLevelSurveyList","dataList","postCreateUpdateEducationLevelSurvey","warning","Form","deleteEducationLevelSurvey","Map","Mapcenter","Mapzoom","geoInfo","setGeoInfo","queryView","ref","useRef","setMap","zoom","setZoom","center","setCenter","markers","setMarkers","deleteMarkers","setMapOnAll","latLng","toJSON","marker","google","maps","Marker","panTo","placeMarkerAndPanTo","onIdle","m","getZoom","getCenter","current","eventName","clearListeners","addListener","PatientMap","mapProps","lat","lng","apiKey","calculateAge","brithday","isValid","diff","PatientInfo","stateProvinceList","documentTypeList","insuranceList","patientData","insuranceData","birthCityList","setBirthCityList","cityList","setCityList","openMap","setopenMap","documentTypeListLoaded","stateProvinceListLoaded","birthCityListLoaded","cityListLoaded","insuranceListLoaded","loadForm","setLoadForm","genderItems","genderList","educationalLevelItems","educationalLevelList","stratumItems","StratumList","affiliationTypeItems","AffiliationTypeList","regimeList","RegimeList","civilStatusList","CivilStatusList","apiFunc","callActionApi","lastName","birthday","age","birthstateProvinceId","birthCityId","gender","documentTypeId","cellphone","stateProvinceId","cityId","address","educationalLevel","profession","civilStatus","stratum","hospitalized","regime","affiliationType","documentTypeIdValue","birthstateProvinceValue","stateProvinceIdValue","birthCityIdValue","cityIdValue","ageValue","insuranceIdValue","geoDataLat","geoDataLng","isNaN","getCitiesByStateProvinceId","handleMapRequestClose","disableFuture","background","chkHandleChange","HousingForm","housingData","housingTypeList","HousingTypeList","supportNetList","SupportNetList","housingType","aqueduct","sewerage","electricity","toilet","wasteCollection","cookingArea","rooms","bathRoom","laundryArea","supportNet","petsInUnsuitableConditions","animalType","petsNumber","TutorInfo","tutorData","relationshipList","RelationshipList","civilStatusItems","relationship","variableGroupTypeList","VariableGroupTypeList","textYes","textNo","controlType","ControlTypeEnum","dateTime","checkbox","DownloadButton2","fileLink","buttonProps","createElement","setAttribute","appendChild","click","removeChild","DownloadButton","keyMsg","finalIcon","FileTable","AdditionalMedicationsTable","lastPrescriptionId","measurementUnit","lifeTime","getAdditionalMedications","ClinicalHistoryDetail","patientId","getCHPatientDetail","paraclinicList","variableGroupFileList","ImpactTable","impacts","impactTypeList","setImpactTypeList","getProductsAndStates","isImpactType","radicadoInsuranceCode","radicadoInsuranceDate","DeliveryDetail","deliveryDetailList","setDeliveryDetailList","deliveryDetail","ProcessDetail","currentPrescriptionId","radicadoInsuranceList","setRadicadoInsuranceList","authorizationList","setAuthorizationList","radicadoOLFList","setRadicadoOLFList","deliveryList","setDeliveryList","getGetProcessDetailPatient","radicadoInsurance","authorization","radicadoOLF","delivery","RadicadoInsuranceTable","InsuranceAuthorizationTable","RadicadoOLFTable","DeliveryTable","upload","file","callback","extension","substr","lastIndexOf","originalName","fileName","valueOf","Math","random","toFixed","substring","getSas","codeSas","blockBlobClient","BlockBlobClient","maxSingleShotSize","objToSend","connectionStringSecret","containerName","permissionRequired","permissionMinutes","convertFileIfHEIC","endsWith","heic2any","blob","toType","quality","convertedBlobs","convertedBlob","newFile","File","FileUploadWithOriginalName","setResult","finalId","getMilliseconds","handleFileChange","files","CardFileUpload","setFile","actionApi","actionApiInfo","showDownload","fileResult","setFileResult","msgSuccess","msgFileWarning","resetControlFile","elementFile","clearFile","onSaveFileAsync","tempFilename","fileResponse","filenameResult","minWidth","hidden","DlgGeneric","FormulaInfo","productBehavior","setProductBehavior","FormulaType","MIPRES","formulaType","setFormulaType","formulaTypeText","prescriptionTypeText","stateProvince","expeditionDate","attentionScope","disease","medicineAmount","durationTreatment","pharmaceuticalQuantity","pharmaceuticalUnit","administrationRoute","additionalGuidelines","dosageUnit","dosageQuantity","dosageInfusionRate","dosageSupplyFrequency","setText","field","getFormulaReadOnly","CustomBehaviorId","DialogGeneric","ProductBehavior","remodulin","dacepton","ReduceFormula","formulaData","setFormulaData","companyList","setCompanyList","visitTargetIdList","setVisitTargetIdList","diseaseList","setDiseaseList","productList","setProductList","unitList","setUnitList","unitDurationList","setUnitDurationList","dosageUnitList","setDosageUnitList","attentionScopeList","setAttentionScopeList","visitTargetIdListLoaded","diseaseListLoaded","setStateProvinceList","treatmentType","setTreatmentType","SupplyFrequencyList","typeError","companyId","visitTargetId","diseaseId","period","supplyFrequency","unitTime","attentionScopeId","deliveryRecord","dosageUnitId","quantity","profilaxis","productIdValue","medicineAmountValue","attentionScopeIdValue","treatmentList","TreatmentTypeList","getDInfo","prop","dosage","getAllStateProvince","getGetHealthDataByPrescriptionId","dosageUnitTimeList","dosageDurationUnitTimeList","dosageUList","durationTreatmentUnitId","supplyFrequencyUnitId","numberDeliveries","getDiseasesByProductId","PharmaceuticalUnitList","updatePharmaceuticalQuantity","selectedDisease","offlabel","cboTreatmentTypeChange","postFormulaFile","PatientFollowUp","prescriptionList","setPrescriptionList","impactList","setImpactList","openDlgFormula","setOpenDlgFormula","openDlgReduceFormula","setOpenDlgReduceFormula","setCurrentPrescriptionId","isOnlyTrace","isOnlyTracing","isDirectTracingConfig","isDirectTracing","getPrescriptionByPatient","getImpactsByPrescription","getValues","loadImpacts","Container","patientName","justifyContent","PatientDetail","currentTab","setCurrentTab","setDocumentTypeList","setInsuranceList","setPatientData","setInsuranceData","setTutorData","setHousingData","patientStateList2","getPatientInfo","insuranceInfo","housing","tutor","getAllDocumentType","getStateText","HousingInfo","ClinicHistory","patientApiUrl","getAllPatient","http","PatientList2","loading","setLoading","setError","fetchData","PatientAdd","register","example","inputRef","FormSwitch","Switch","cboCity","PatientTest","cities","setCity","cityValue","getAllCity","padding","MuiSelect","FormSelect","nameV","selV","selAutoV","txtDateV","numberData","handle","MailListItem","onMailSelect","onMailChecked","onStartSelect","stopPropagation","fontSize","charAt","MailList","ComposeMail","cc","bcc","onMailSend","Modal","ModalHeader","rowsMax","Moment","AppModuleHeader","ConsentDialog","tool","Tools","Pencil","lineColor","lineWidth","FormulaDialog","ClinicalHistory","MailDetail","showDetail","selectedDate","currentTarget","handleClickCIBox","handleClickFMBox","handleDateChange","onProcessStateChange","onImportantSelect","onSavePatientContact","onGoBack","currentState","nextState","evt","DateTimePicker","showTabs","leftArrowIcon","rightArrowIcon","handleMailRequestClose","getAllMail","getUnselectedAllMail","hideMailLoader","setCurrentMailNull","Manage","setAnchorEl","MailSideBar","handleGetNavFolders","getNavLabels","folders","getNavFolders","handleFolderMenuItemSelect","folderId","onFolderMenuItemSelect","handleLabelMenuItemSelect","onMailLabelMenuItemSelect","handleProcessStateChange","labelid","handleOptionMenuItemSelect","getMailNavLabels","handleMailChecked","handleStartSelect","handleImportantSelect","handleMailSelect","handlePatientSaveContact","onPatientContactSave","handleSetCurrentProcessNull","handleToggleDrawer","onSearchMail","indeterminate","selectAll","displayMail","Compose","Snackbar","anchorOrigin","vertical","horizontal","autoHideDuration","ContentProps","NavLabels","menuItem","handler","selectedLabelID","setSelectedLabelID","labelByType","SideBar","sidebarState","setSidebarState","isNurseProcedure","onSelectItem","itemId","isMount","setSelectedPrescriptionState","setSelectedProductLine","updateManageSearch","handleGetMenuItems","FolderType","tracing","adverseEvents","inProcess","DialogEndImpact","callEndImpact","nursingNote","BtnCancelFormula","stateToAssign","openDlgEndImpact","setOpenDlgEndImpact","onNewFormulationAsync","postPrescriptionNewFormulation","info","PrescripStateEnum","cancelled","btnClass","btnIconClass","dlgTitle","dlgText","formulated","BtnActivatePatient","dosageStartDate","medicalSuspension","suspension","voluntarySuspension","postActivatePatient","updateSelectedPrescription","updatePrescription","BtnCreatePrescription","postAddNewPrescription","completedSuccessfully","BtnDropout","isUllkupuy","isPhg","postDropoutAsync","postSetDropoutState","SearchHeader","isOnlyTracingPatient","onToggleDrawer","forcedTermination","LabelsSection","adverseEventStateList","AdverseEventStateList","trainingStateList","TrainingStateList","txtOnTime","txtDelayed","txtFollowUp","ShowEventTrainingState","trainingsAndEvents","eventTraining","productLine","productLineId","adverseEvent","adverseEventTypeId","followUpId","isOnTime","impactTypeId","typeId","MuiDateTimePicker","hideTabs","FormDateTimePicker","DialogRescheduleImpact","callRescheduleImpact","commentsList","prescription2","msgValidation","setPrescription","planningDate","breachId","breachComment","isBreach","firstImpactDate","disablePast","DialogPlanningImpact","callPlanImpact","getImpactTypeList","folderType","PrescriptionList","prescriptionsList","setPrescriptionsList","openDlgPlanning","setOpenDlgPlanning","setCommentsList","prescriptionReschedule","setPrescriptionReschedule","msgNoPlanned","GetCommentsByType","handleRequestCloseDlgPlanning","postPlanImpact","fristImpact","postRescheduleImpact","getPatientName","onClickDate","creationDate","trainingDate","ContactPlanning","isHospitalized","dataForm","postPlanningFirstImpact","addPrescriptionAndGoToTracing","NameAndLabelsContent","contactPlace","InfoItem","description","ContactInfo","ContactPatientForm","successSaveMsg","contactInfo","postAddContactDetails","setPatient","DialogDoctorAuthorization","sendDoctorAuth","handleDoctorAuthDialog","GetNewState","radicacionEPS","authorized","radicacionOLF","delivered","endDate","min","minDate","DialogStartImpact","startDate","StartEndImpact","callStartImpactAction","handleImpactStarted","postImpactStartImpact","postImpactEndImpact","newPrescriptionState","FormPatientState","callBack","openDlgConfirm","setOpenDlgConfirm","objInfo","setObjInfo","settingList","setting","postSaveChangeAsync","postUpdateConfig","IsOnlyTracingBox","PdfViewer","tutorName","when","is","tutorLastName","tutorDocumentTypeId","tutorDocument","getDataForm","CIForm","infoConsent","setInfoConsent","loadedCities","loadedDiseases","getInfoConsent","setInstitutionInfo","institutionInfo","AudioForm","audioUri","onSubmit2","urlAudio","postConsentAddAudio","sketch","setSketch","reSign","setReSign","reSignReload","setReSignReload","loadCi","setLoadCi","canUndo","sign","toDataURL","postConsentSaveSign","isGeneric","c","startIcon","postConsentAddExisting","PrescriptionId","useStyles","makeStyles","extendedIcon","marginRight","DialogReject","ApproveFormula","reloadFormulaData","setOpenDialog","openDialogReject","setOpenDialogReject","handleRequestCloseReject","reject","commentRejected","postApproveFormula","approved","setPrescriptionState","formulatedWithErrors","postCancelFormula","getProductBehavior","customBehaviorId","FormulaForm","prescriptionTypeList","PrescriptionTypeList","supplyFrequencyList","isMounted","useIsMounted","prescriptionType","administrationRouteId","max","companyIdValue","diseaseIdValue","administrationRouteIdValue","visitTargetIdValue","formulaTypeValue","setDisabled","administrationRouteIdList","setAdministrationRouteIdList","productListLoaded","formulaDataLoaded","getGetFormula","institutionList","administrationRouteList","DurationTreatmentList","FormulaTypeList","dosageId","postSaveFormula","cboPrescriptionTypeChange","dtpHandleChange","cboProductChange","FormDinamic","variableDetail","variableGroupValue","setVariableDetail","setvariableGroups","variableGroups","msgAtLeastOneValidation","select","selectOptions","number","objRes","objKeys","Object","atLeastOne","itemValue","paraclinicId","variableGroupId","postClinicHistory","clinicalHistoryState","updateVariableGroups","postClinicHistoryFile","setClearFile","cboVariableGroup","loadClinicHistoryList","getClinicHistoryList","hasData","getClinicHistoryDetail","calculateAgeInMonths","PatientForm","documentTypeListComplete","isOperando","ods","initials","ageMonth","neighborhood","occupation","OccupationList","occupationOther","frequentMeansContact","FrequentMeansContactList","disposeRemnants","DisposeRemnantsList","disposeRemnantsOther","ageMonthValue","occupationValue","disposeRemnantsValue","isHiddenInputVisible","setHiddenInputVisible","isHiddenInputVisibleRemnants","setHiddenInputVisibleRemnants","getInitials","split","word","join","nameInitials","lastNameInitials","selectedDocumentType","regexText","regularExpression","messageValidation","validationMessage","RegExp","test","postPatientSave","isRequired","postPatientSaveHousing","TutorForm","postPatientSaveTutor","setValue2","loadPatientData","documents","setDocuments","getEducationalMaterial","filePath","NursePlanForm","nursingPlan","setNursingPlan","diagnostic","goal","activities","evaluationResultsDate","evaluationResults","postCreateUpdateNursingPlan","NursePlan","getNursingPlans","FormCRU","rowObj2","additionalMedicationsList","setCurrentObj","setproduct","concomitantValue","setConcomitantValue","diagnosticList","setDiagnosticList","boolList","MedicineTypeList","BoolList","treatmentTypeList","concomitantTreatmentTypeList","diagnosticTypeList","DiagnosticTypeList","timeUnitList","setTimeUnitList","diagnosticListLoaded","dataLoaded","controlExamUnitTypeSelect","setControlExamUnitTypeSelect","medicineType","concomitant","diagnosticProductlineId","activePrinciple","supplyFrequencytimeUnit","concomitantDiagnostic","treatmentStartDate","treatmentEndDate","concomitantDate","diagnostStartDate","diagnostEndDate","lifeTimeValue","medicineTypeValue","isOwnMedicine","concomitantDiagnosticwatch","concomitantDiagnosticValue","DosageUnitTimeId","cie","diagnosticType","diagnosticStarDate","diagnosticEndDate","dosageUnitTimeId","idImpact","getGetHealthData","getProductlineByProductIdData","getProductlineByProductId","getDiagnosticByProductData","getDiagnosticByProduct","getFormulaInfo","getTimeUnitSelect","getControlExamSelects","cboMedicineTypeChange","lifeTimeText","AdditionalMedicationsDialog","additionalMedications","setAdditionalMedications","setAdditionalMedicationsList","getMedication","postCreateUpdateAdditionalMedication","deleteAdditionalMedication","ShowBox","boxName","uiResult","FirstImpact","getInfoImpact","Consent","Formula","Education","AdditionalMedications","AlertNoRadicado","postGenerateAlert","prescriptionState","radicacionEPSNonEffective","noAuthorized","radicado","radicacionDate","excludeEmptyString","radicacionPoint","attentionScopeText","hasAuthorizations","CustomTable","handleClickContinue","showBtnCotinue","existAuthorizationsInImpact","radicadoList","InsuranceAuthorizationDialog","setRadicadoList","getRadicadoInsuranceList","postCreateUpdateRadicadoInsurance","authorizationWithInconsistencies","postPrescriptionSetState","deleteRadicadoInsurance","list","DialogAlert","FormAddNewPharmacy","marketChainIdValue","setVisitTargetList","visitTargetList","setValueNamePharmacy","marketChainId","postAddPharmacy","marketChainList","authorizations","setAuthorizations","formLoaded","setFormLoaded","isAddPharmacy","openAddNewPharmacy","setOpenAddNewPharmacy","authorizationDate","expirationDate","newPharmacyName","prescriptionMedicineAmount","radicadoInsuranceState","RadicadoInsuranceState","reduce","prev","curr","getMedicineAmount","getPharmacyByMarketChain","hasRadicacionesOLF","sm","objId","updateFileInObj","postAddFileInsuranceAuthorization","deliveryNumber","scheduledDeliveries","marketChains","setMarketChains","openDialogAlert","setOpenDialogAlert","openDlgAlertInconsistences","setOpenDlgAlertInconsistences","getInsuranceAuthorization","getMarketChainList","dataId","postCreateUpdateInsuranceAuthorization","insuranceAuthorizationList","handleRequestCloseDlgAlert","deleteInsuranceAuthorization","getItemAuthorizations","getAuthorizations","insuranceAuthorizationId","radicadoDate","deliveryDate","insuranceAuthorizationIdValue","RadicadoLogisticOperatorState","deliveryNotMade","hasDeliveries","authorizationId","radicacionList","radicadas","deliveries","postAddFileRadicadoOLF","existRadicacionOLFInImpact","radicaciones","openDlgNoRadicado","setOpenDlgNoRadicado","loadRadicadOLF","getRadicadoOLFList","isNew","postCreateUpdateRadicadoOLF","radicacionOLFNonEffective","incompleteDelivery","handleRequestCloseDlgNoRadicado","deleteRadicadoOLF","lotNumber","removeItemInList","getItemList","isAlert","radicadoAmount","deliveryAmount","incompleteDeliveryAlert","setIncompleteDeliveryAlert","msgFileValidation","msgMedicineAmountValid","radicadoLogisticOperatorId","commentAlert","radicadoId","radicadoLogisticOperatorIdValue","isEdit","incompleteAlert","medicineDeliveryDetail","radicadoOLFId","postAddFileMedicineDelivery","existDeliveriesInImpact","MedicineDeliveryDialog","getMedicineDeliveryList","deliveriesList","postCreateUpdateMedicineDelivery","formulaAmount","totalDeliveries","deleteMedicineDelivery","rowInfo","alertStateList","AlertStateList","alertTypeList","AlertTypeList","alertCommentList","setAlertCommentList","currentComment","setCurrentComment","newComment","loadComments","alertId","getCommentsByAlert","alertState","postAddCommentToAlert","TableComments","objComment","AlertStateEnum","pending","AlertDialog","alertList","setAlertList","loadAlerts","getAlertList","dosageInfo","pendingInfusionRate","infusionRate","productBehaviorId","patientWeight","medicineConcentration","quantityValue","weight","getDosageUnitList","getWeight","showAddButton","getRowObj","isRemodulin","colVal","DosageDialog","loadDosage","postCreateUpdateDosage","newId","pendingInfusion","dosageList","dosageInCurrentImpact","Dosage","msgWeightRequired","setDosageInfo","getDosageInfo","Farmacovigilance","foreamSeriousnessList","ForeamSeriousnessList","foreamDenouementList","ForeamDenouementList","yesNoNotKnowList","YesNoNotKnowList","yesNoNAList","YesNoNAList","questionsYesNo","reactionList","setAdverseEvent","adverseEventType","adverseEventStartDate","descriptionAdverseEvent","denouement","seriousness","reactionDecreased","reactionReappeared","anotherRelevantStory","getAdverseEventByClinicalFinding","adverseReaction","result0","questionsYesNoAnswered","reactionsSelected","postAdverseEventPartialSave","AdverseEventStateEnum","inconsistentReport","AntSwitch","withStyles","root","switchBase","grey","transform","common","white","opacity","thumb","track","SwitchYesNo","swProps","Typography","Technovigilance","foreiaDetectionList","ForeiaDetectionList","foreiaClassificationList","ForeiaClassificationList","foreiaDenouementList","ForeiaDenouementList","eventDate","operatingArea","usedMoreThanOnce","detection","classification","denouementOther","reportedToManufacturer","reportedToManufacturerDate","availableForEvaluation","sentToManufacturer","sentToManufacturerDate","authorizesDisclosure","reportedToManufacturerValue","sentToManufacturerValue","denouementValue","ForeiaDenouementEnum","other","technovigilance","TableComment","FormDetail","reloadData","commentList","setCommentList","reloadWhenClosing","setReloadWhenClosing","patientStates","setPatientStates","clinicalFindingStateList","ClinicalFindingStateList","medicalSuspensionReasonList","MedicalSuspensionReasonList","ClinicalFindingStateEnum","closed","patientState","contactDoctor","medicalSuspensionReason","setEditComment","getCommentsByClinicalFinding","medicalSuspensionReasonValue","clinicalFindingId","postAddCommentToClinicalFinding","DialogAdd","adverseEventTypeList","setAdverseEventTypeList","getAdverseEventTypeList","AddAdverseEvent","generateAdverseEventReload","customProductBehaviorId","postGenerateAdverseEvent","onClickHandler","AdverseEventTypeEnum","ComponentTabs","adverseEventStatus","annulled","Pharmacovigilance","Dlg","FormAdd","openDlgAdd","clinicalFindingTypeList","ClinicalFindingTypeList","msgEndDate","contactDoctorValue","patientStateValue","postAddClinicalFinding","handleOpenDlgAdd","ClinicalFinding","clinicalFindingList","setClinicalFindingList","setOpenDlgAdd","getClinicalFinding","moriskyOptionsQuestion8List","MoriskyOptionsQuestion8List","moriskySurveyDetail","moriskySurveyId","getItemAnswer","MoriskySurvey","morisKySurveyList","setMorisKySurveyList","getMoriskySurveyList","postCreateUpdateMoriskySurvey","deleteMoriskySurvey","medicineList","currentMedicine","setCurrentMedicine","getCurrent","realConsumption","medicationLoss","openingDateRequired","medicineDeliveryDetailId","medicine","endDateRequired","realConsumptionInvalid","realConsumptionValue","medicationLossValue","getConsumptionMax","mgsMax","v","o","openingDate","medicineDeliveryDetailIdValue","msg","FormRemodulin","Indicator","indicatorInfo","msgDays","getIndicador","p","ceil","projectedConsumption","days","projectedConsumptionDays","getIndicadorProjectedConsumption","getEndDate","MedicineConsumption","msgInvalidAddOperation","consumptionList","setConsumptionList","setMedicineList","setIndicatorInfo","getMedicineConsumptionList","getGetIndicators","getMedicineList","existMedicineInImpact","medicineConsumption","postCreateUpdateMedicineConsumption","deleteMedicineConsumption","supplyTypeList","supplyActionTypeList","SupplyActionTypeList","supplyTypeId","amount","positive","tipo","HealingMaterial","setSupplyTypeList","healingMaterialList","setHealingMaterialList","getSupplyAditionalMedicationsList","getSupplyTypeList","postCreateUpdateSupplyAditionalMedications","deleteSupplyAditionalMedications","generalStatusList","GeneralStatusList","getStatus","UploadFileForm","impactFileTypeList","ImpactFileTypeList","impactFileType","clear","TableFiles","getFileType","PhotographicRecord","currentObj","fileList","setFileList","getImpactFileList","ImpactFileTypeEnum","remodulinCatheter","remodulinPump","visit","postAddImpactFile","deleteImpactFile","evaScaleList","insertionDate","catheterStatus","evapainScale","infusionSystemStatus","infusionPumpStatus","TabComponent","existItemsInImpact","InfusionPumps","remodulinTrackingList","setRemodulinTrackinList","getRemodulinTrackingList","postCreateUpdateRemodulinTracking","deleteRemodulinTracking","remodulinPumpStateList","RemodulinPumpStateList","serial","model","remodulinPumpList","setRemodulinPumpList","getRemodulinPumpList","postCreateUpdateRemodulinPump","deleteRemodulinPump","productStatusList","setProductStatusList","getProductStatusList","postCreateUpdateProductStatus","deleteProductStatus","HealthDataForm","tracingDeliveryList","setTracingDeliveryList","setPharmaceuticalQuantityData","setMedicineAmountData","medicineQuantityValue","getTracingDeliverList","temp","sanitizedMedicineAmountValue","String","pharmaceuticalQuantityCal","medicineAmountCal","updateMedicineAmount","postSaveHealthData","HealthData","loadDeliverHealthData","formulaCode","formulaStartDate","setDosageList","msgPrescriptionRequired","loadDosageTable","getDosageV2","getUnitListTime","getUnitDurationListTime","postCreateUpdateDosageV2","deleteDosage","PatientStateTable","currentImpactId","patientStatusId","BarriersModal","lastState","barrierList","setBarrierList","currentBarrierId","setCurrentBarrierId","currentBarrierComment","setCurrentBarrierComment","currentBarrierName","setCurrentBarrierName","openBridgeModal","setOpenBridgeModal","textBridgeModal","setTextBridgeModal","barrierFlag","setBarrierFlag","openBarrierModal","setOpenBarrierModal","textCommentBarrier","handleOpenBridgeModal","handleCloseBridgeModal","handleOpenBarrierModal","barrierId","PatientJaasModuleEnum","SUSPENDED","IMPOSSIBLE_CONTACT","RETIRED","ACTIVE","BarrierFlagEnum","ACTIVE_INACTIVE","INACTIVE_INACTIVE","INACTIVE_ACTIVE","getBarrierList","idSelected","barrierName","updateBarrierFunction","postUpdateBarrier","patientStateParentList","setPatientStateParentList","isLoaded","setIsLoaded","lastStateParent","setLastStateParent","parentStates","getParentIdById","parentId","stateParent","stateParentValue","hasState","isBehringer","behringer","onSubmitCallBack","postPatientAssignState","PatientStateBox","patientStateLogList","setPatientStateLogList","setLastState","getPatientStateLog","oplList","currentObjEdit","pharmaAmount","deliverHealthData","barrier","oplLabelId","marketchainId","estimatedDeliveryDate","rrdc","psp","marketchainDeliveryId","deliveryPoint","amountDelivery","amountPharmaceutical","pendingFormatAmount","pendingFormatDate","pendingFormatEndDate","amountPharmaceuticalValue","amountDeliveryPharmaceuticalValue","finalAmount","marketChainDeliveryId","phamaceuticalQuantity","record","barrierOptionsId","handleRequestCloseTmp","startOf","MediaModal","loadTable","edit","postTracingDeliveryFile","setCurrentObjEdit","setEdit","maxId","getMaxId","openModal","TracingDelivery","setOplList","setPharmaAmount","loadDeliveryData","getPharmaAmount","getGetCities","getMarketChainListTD","getGetCompanies","postCreateUpdateTracingDelivery","BarrierList","TableD","handleOpenFamiliar","handleOpenTestDisease","gap","openModalFamiliar","openModalTestDisease","FormD","openD","testInstitution","setTestInstitution","diagnosisSubDiagnosis","setDiagnosisSubDiagnosis","testConfitmationList","companyTestConfirmationEnum","diagnosisDate","companyTestConfirmation","orphanDisease","diagnosisConfirmed","personId","isConfirmed","companyTestConfirmationId","getDiagnosisSelects","diseasesSelect","postDiagnosisFile","TableTestDisease","FormTestDisease","openTestDisease","loadDiagnosisTable","setTestDisease","testDiseaseTable","setTestDiseaseTable","diagnosisConfirmationMode","setDiagnosisConfirmationMode","diseaseConfirmationTestSelect","setDiseaseConfirmationTestSelect","watchTestDisease","diagnosisConfirmation","existRecords","updatedList","entry","diseaseConfirmationTestId","newEntry","diseaseConfirmationTestTx","diagnosisConfirmationTypeId","dataToSend","diagnosisRecordConfirmationTests","diagnosisRecordId","saveDiagnosisRecordConfirmationTests","GetDiagnosisRecordConfirmationTestByDiagnosisRecordId","handleDelete","DeleteDiagnosticRecordConfirmationTestCommand","isMulti","TableFamiliar","FormFamiliar","openFamiliar","setFamilyHistory","familiarTable","setFamiliarTable","familyHistory","watchFamilyHistory","familyHistoryTx","familyHistoryIds","saveFamilyHistoryIds","familyHistoryTable","DeleteFamilyHistoryCommand","diagnosisFamilyHistoryList","Diagnosis","setOpenD","openFamiliarDialog","setOpenFamiliarDialog","openTestDiseaseDialog","setOpenTestDiseaseDialog","diagnosisTableData","setDiagnosisTableData","getDiagnosisRecordByPersonId","SaveDiagnosisRecord","handleCreateUpdateTestDisease","postAdverseReactionFile","TableAdverseReaction","openFile","setFileOpen","openFileModal","outcomeId","FormAdverseReaction","openForm","adverseReactionTypes","setAdverseReactionTypes","adverseReactionOutcomes","adverseReactionOutcomeEnum","isEditable","setIsEditable","reactionDate","adverseReactionTypesFn","getAdverseReactionTypes","adverseReactionOutcomesEnum","RECOVERED","EventDate","Description","TypeId","OutcomeId","AdverseReaction","setOpenForm","adverseReactionTableData","setAdverseReactionTableData","getAdverseReactionByPersonId","saveAdverseReaction","postControlExamFile","TableCE","FormCE","openCE","controlExamSelect","setControlExamSelect","entityProviderTypeList","entityProviderTypeEnum","entityProviderType","padCode","otherwise","controlExamUnitType","controlExamDate","units","entityProviderTypeValue","controlExamId","entityProviderTypeId","examDate","padcode","controlExamUnitTypeId","ControlExam","setOpenCE","controlExamTable","setControlExamTable","getControlExamTable","saveControlExamRecord","TablePT","handleOpenPT","pharmacotherapeuticRiskLevelText","pharmacotherapeuticRiskLevelDescreiption","FormRadioGroupYesNo","radioProps","FormLabel","RadioGroup","selectedValue","Radio","FormPT","onlyRead","administrativeLimitations","socialDeterminants","healthcareAccessLimitations","inadequateMedicationUse","pharmaTreatmentFollowUp","therapeuticAdherence","multiPathology","patieRenalHepaticAlternt","polypharmacy","treatmentIneffectiveness","hospitalReadmissions","urgentConsults","disability","pharmaTreatmentFollowU","PharmacotherapeuticRiskDialog","loadPharmacotherapeutic","pharmacotherapeuticData","riskLevelData","setPharmacotherapeuticData","openPT","setOpenPT","riskLevel","seRiskLevel","successNotification","handleRequestClosePT","postPharmacotherapeuticRisk","getLastRiskLevel","getLastPharmacotherapeuticRiskLevel","PharmacotherapeuticRisk","getPharmacotherapeuticRisk","setDeliverHealthData","isTracingDeliveryBoxConfig","isTracingDeliveryBox","isPSPBoxesPhg","getBoolSetting","SettingsEnum","hideBoxes","NewFormulation","Alert","RadicacionInsurance","InsuranceAuthorization","RadicadoOLF","ProductStatus","iclusig","MorisKySurvey","CatheterStatus","isPharmacotherapeuticRisk","CommentTable","queryAdverseEventStateList","QueryAdverseEventStateList","editable","FormComment","query","reloadQueries","queryAdverseEventTypeList","QueryAdverseEventTypeList","assignedToNurse","queryId","getCommentsByQuery","setCboValue","setString","setBool","queryAdverseEventId","queryState","postCreateUpdateCommentToQuery","callBackAsync","QueryAdverseEventTypeEnum","BtnAddQuery","loadQueries","adverseEventId","postCreateUpdateQueryAdverseEvent","setIsDone","descriptionQuery","postAdverseEventCreateFollowUpQuery","BtnAddFollowUp","isDone","allowAdd","QueryAdverseEventStateEnum","QueryAdverseEvent","queryAdverseEventList","isPharmacovigilanceProfile","notAllowEdit","resolved","FormEdit","sentToRegulator","verified","showBtnFollowUp","handleCreateUpdateAsync","sciList","SciList","sci","indication","concomitantMedicationList","loadConcomitants","msgLifeTime","postConcomitantMedicationSave","BtnNullify","onNullifyAsync","postAdverseEventNullify","AddKnownAdverseEvent","postAddKnownAdverseEvent","reloadAdverseEvent","knownAdverseEvents","setKnownAdverseEvents","followUpList","setFollowUpList","setConcomitantMedicationList","dlgConfirm","setDlgConfirm","objSendFormat","setObjSendFormat","genderrList","ciomsTypeList","CiomsTypeList","isNurseProfile","msgConcomitantsNotValid","reportSource","country","patientBirthDate","documentType","initialsPatientName","healthRegisterHolder","healthRegister","medicineLotNumber","medicineExpirationDate","startTherapy","endTherapy","therapyDays","studyIdentificationCode","reportType","CiomsTypeEnum","clearErrors","typeValue","knownAdverseEventsValue","setDate","getConcomitantMedicationList","getKnownAdverseEvent","tradename","genericName","unitAge","getEventsFollowUp","areMedicationsValid","postAdverseEventSave","callSentFormatAsync","postAdverseEventUpdateState","onBtnSendSubmit","pendingToVerify","pendingQuery","foreamDisabled","regulator","ciomsDisabled","partner","foreamLetterFile","ConcomitantMedication","causeOptionsList","setCauseOptionsList","reportedToManufacturerState","setReportedToManufacturerState","sentToManufacturerState","setSentToManufacturerState","deviceSerial","causes","notificationDate","deviceModel","deviceReference","manufacturer","distributorImporter","reporterName","reporterProfession","reporterArea","reporterStateProvince","reporterCity","causeOptions","objData","AdverseEventDetail","setQueryAdverseEventList","getQueryAdverseEventList","getAdverseEventGetDetail","processData","eventTrainingInfo","eventTrainingFile","TrainingResourceTypeEnum","video","Resources","Feedback","refreshEventTrainingInfo","msgFeedbackValidation","eventTrainingId","postAddUpdateFeedback","EventTrainingDetail","setEventTrainingInfo","getEventTrainingDetail","msgDoctorSuccess","doctorAuthDialog","setDoctorAuthDialog","handleDoctorAuth","accept","postDoctorAuthorization","removeSelectedPrescription","patientAuthDialog","setPatientAuthDialog","handlePatientAuth","sendPatientAuth","handlePatientAuthDialog","postPatientAuthorization","doctorAccepted","patientAccepted","GeneralImpact","ContentDetail","getHeight","defaultHeight","ArrowBack","ManageContent","Management","loadManageModule","aria-owns","aria-haspopup","attachments","attachment","preview","ManagePharma","pharma","dataProgramAdherence","uv","getUrlString","path","sub","ContainerHeader","match","subPath","Breadcrumb","BreadcrumbItem","arr","getDisplayString","COLORS","CustomizedLabel","stroke","dy","textAnchor","PureComponent","top","left","bottom","dataKey","strokeDasharray","innerRadius","outerRadius","YearlyProfitChart","chartId","centerText","chartType","hoverBorderColor","hoverBorderWidth","dataControl","rotation","cutoutPercentage","dataPharmaceuticalAdherence","pv","amt","dataActivePatients","CustomizedLabel2","activeDot","paddingAngle","data1","data2","data3","b1","b2","l1","l2","l3","verticalAlign","barSize","data7","layout","chartData","newEvents","about","redirectTo","eventsInProgress","suspensionPatients","newArticlesData","UserDetailCell","color2","tabIndex","UserDetailTable","tableStyle","Pharmacovigilant","ReportBox","price","subHeadingColor","maxBarSize","CustomLineChart","borderWidth","pointBackgroundColor","pointBorderWidth","pointRadius","pointHoverBorderColor","lineTension","gridLinesDisplay","gridLineWidth","shadowColor","allDay","end","AddEventDialog","localizer","momentLocalizer","moment","ManagerCalendar","currentEvt","setCurrentEvent","idx","events","defaultDate","week","work_week","day","month","yesterday","tomorrow","today","agenda","noEventsInRange","showMore","onSelectEvent","msgActionNotAllowed","impactStateList","ImpactStateList","ImpactStateEnum","patientCode","impactType","getData","eventId","trainingResourceTypeList","TrainingResourceTypeList","linkValue","f","openDlgDelete","setOpenDlgDelete","postAddUpdateResource","deleteEventTrainingResource","DlgEventTraining","handleEventTraining","productLineList","setProductLineList","msgStateValidation","productlineId","TrainingStateEnum","planned","prototype","addHours","h","setHours","getHours","getImpactState","getEvents","PlanningTypeEnum","impactState","CalendarPlanning","openDlgInfo","setOpenDlgInfo","openDlgTraining","setOpenDlgTraining","currentNurseId","setCurrentNurseId","eventList","setEventList","nurseList","setNurseList","prescriptionsForPlanningList","setPrescriptionsForPlanningList","isPSPCoordinator","IsPspManager","getPlannedImpactsByNurseId","getPlannedImpacts","getUserByRole","getNurses","getPrescriptionsForPlanning","postAddUpdateEventTraining","paddingRight","selectedOption","planning","eventPropGetter","colorState","DialogImpactInfo","ImpactPlanning","Calendar","PharmacovigilanceHome","getAdverseEventList","followUp","adverseEventTypeColor","productLineColor","primaryReporter","reportingProfession","reportingEmail","causality","ciomsReportSource","setString2","setDate2","frequency","isForeamDisabled","isCiomsDisabled","descriptionAdverseEvent2","adverseEventState","getStates","neww","postAdverseEventReject","DialogCausality","causalities","setCausalities","getAllCausality","causalityId","postAdverseEventRegisterCausality","getBtnFormatName","getFormatType","FormatTypeEnum","foream","foreia","adverseEventRefresh","setProcessData","openDlgReject","setOpenDlgReject","openDlgCausality","setOpenDlgCausality","lastStates","setLastStates","getProcessDataByAdverseEvent","lastStateVerificationId","getLastStates","refreshData","onUpdateState","onAproveAsync","onGenerateFormatAsync","formatType","postAdverseEventGenerateFormat","onGenerateCiomsAsync","cioms","onSentToRegulatorAsync","onSentToPartnerAsync","sentToPartner","anyPendingQuery","generatedFoream","generatedForeia","showBtnGenerateFormat","showBtnSendToRegulator","generatedCioms","registeredCausality","showBtnCausality","showBtnGenerateCioms","showBtnSendToPartner","BtnProcess","downloadFile","fileDto","ImpactReport","dateRange","reportData","setReportData","getImpactReport","getImpactReportFile","ControlPanelReport","getControlPanelReport","getIclusigCols","galafold","getGalafoldCols","getControlPanelReportFile","RemodulinPumpsReport","getRemodulinPumpReport","getRemodulinPumpReportFile","DownloadReportFile","BCRHemogramaReport","getReportBCRHema","getDateCol","ExpirationReport","getExpirationReport","ExpirationReportTypeEnum","formula","MoriskyInfo","getMoriskyExtended","getMoriskyExtendedReport","PendingRSVariables","getReportPendingRSVariables","SuspendedPatients","postSuspendedOrDeceased","postSuspendedOrDeceasedFile","getAllExternalReports","deleteExternalReport","ExternalReports","report","putExternalReport","patchExternalReport","FeedbackEventTraining","getEventTrainingReport","Reports","reportId","setDateRange","maxEndDate","setMaxEndDate","minEndDate","setMinEndDate","disabledEndDate","setDisabledEndDate","trigger","reportValue","startDateValue","showReport","isCelltrion","isUllpukuy","isJaasielModule","isReportMorisky","reportMorisky","ReportEnum","behringerReport","year","lastDayOfMonth","endOf","filteredReports","ReportListGeneric","woundClinic","generalJaasiel","ReportListPint","isPatientAssignment","isCoordinator","isManager","getReportList","controlPanelRemodulin","controlPanelIclusig","controlPanelGalafold","pendingRSVariables","suspendedPatients","externalReports","maxDate","range","rangeFormated","clinicHistory","getClinicHistoryReportFile","surveyMorisky","getSuveyMoriskyReportFile","patientsReport","GetPatientsTotalFile","getConsumptionReportFile","remodulinPumps","catherChange","getCatheterChangeReportFile","bcrHemograma","pspCube","getCubeReportFile","formulaExpiration","authorizationExpiration","deliveryExpiration","supplyReport","getConsolidatedSupplyReport","morisky","doseChange","getDoseChangeReportFile","feedbackEventTraining","postControlPanelDeliveries","remodulinVials","postRemodulinVialsReport","getWoundClinicReportFile","getGeneralJaasielReportFile","getBehringerReportFile","celltrionReport","getCelltrionReportFile","PrescripctionsReport","getPrescriptionReportFile","dataTable","currencyFormat","Intl","NumberFormat","DeliveriesReport","currentLocale","getDeliveriesReportFile","DlgCoachComment","coordComment","coordCommentDate","coordinator","postCoordinatorComment","ImpactsReport","setCurrentImpact","openDlgComment","setOpenDlgComment","getImpactsReportFile","bottonIcon","PrescripctionsTotalReport","GetPrescriptionsTotalReportFile","ReportList","reportItem","ReportListEnum","getAction","setCurrentPatientId","setOpenDlgDetail","getControlPanelReportRepKam","getRemodulinCols","getControlPanelReportFileRepKam","handleCloseDlg","openDlgDetail","currentPatientId","RegexConstants","alphanumeric","numeric","AddPatient","repList","isAddNewPatient","setIsAddNewPatient","doctorList","setDoctorList","typeList","contextList","operationList","contactableList","managementDate","contactable","operation","notRequired","nurseId","repIdValue","operationValue","patientList","contextValue","institutionState","GetPatientList","loadDoctorList","repId","getDoctorPAList","getPatientEdit","getInsurancePAList","updateExternalIdHandle","addNewPatientHandle","PatientOperationEnum","externalId","patchUpdateExternalId","postAddPatientPA","create","isConsult","BtnAddPatient","setRepList","setPatients","addTest","loadPatients","getPatientPAListToSync","getUserList","getRepList","AddComment","requestCloseDlg","patientComment","postAddPatientComment","DlgComments","isRep","openDlgAddComment","setOpenDlgAddComment","getPatientCommentList","PatientPAList","useLocation","openDlgActive","setOpenDlgActive","openDlgEdit","setOpenDlgEdit","openDlgComments","setOpenDlgComments","openDlgReport","setOpenDlgReport","yearList","years","getYears","monthList","activatePatientText","editText","detailText","commentText","yearRequiredText","montRequiredText","dateTypeList","dateType","subtract","institutional","unreadComments","getPatientPAList","hasPendingComments","patientStateId","UserStatePAEnum","pendingVerification","hasComments","onDownload","getPatientPAReportList","onFilter","patchActivatePatient","getProp","getPropDashboard","dashBoard","CustomInput","labelId","isDashboard","CustomTabs","isValidUrl","URL","urlValidationText","commentRequiredText","trim","ImpactList","getImpactPAList","postAddUpdateImpactPA","PatientPADetail","getPatientPAInfo","NurseTable","DlgChangeNurse","currentNurses","setCurrentNurses","setNurses","openDeleteDlg","setOpenDeleteDlg","postAddNurseToPrescription","getNursesByPrescription","onDeleteAsync","deleteNurseToPrescription","nursePrescriptionId","onActivePatient","PatientManagement","openDlgNurse","setOpenDlgNurse","openDlgActivate","setOpenDlgActivate","handleCloseDlgActivate","getPatientListManagement","getUserByRoles","ChangeNurse","postActivatePatientByPrescriptionId","AddPrescription","documentTypes","patientInfo","setPatientInfo","getPatientInfoV2","postPatientAdd","dlgAddPatient","setDlgAddPatient","unitValue","statusId","marketchains","prescriptionStatusList","prescriptionInfo","setPrescriptionInfo","getPrescriptionInfo","setUnitValue","postPrescriptionAdd","ScheduleImpact","idPlannedImpact","datePlanningImpact","postScheduleImpact","setImpactEndDate","postStartImpact","postEndImpact","PatientBox","openDlgPatient","setOpenDlgPatient","AddDelivery","setIsAddPharmacy","deliveryModeList","DeliveryModeList","deliveryMode","newPharmacyNameValue","dispensingPointId","postDeliveryAdd","DlgDeliveries","openDlgAddDelivery","setOpenDlgAddDelivery","currentDelivery","setCurrentDelivery","dlgTitleText","medicineText","getMedicineDeliveryListV2","getDeliveriesCount","DeliveryBox","remaining","PrescriptionBox","openDlgPrescription","setOpenDlgPrescription","stateLogList","setStateLogList","statusList","setStatusList","getPrescriptionStateLog","getPrescriptionStatusList","postPrescriptionChangeState","PrescriptionStateBox","DlgImpacts","getImpactsByPrescriptionV2","openDlgImpacts","setOpenDlgImpacts","ImpactDetail","loadImpactInfo","getImpactInfo","Prescriptions","currentPrescription","setCurrentPrescription","openDlgAddImpact","setOpenDlgAddImpact","openDlgScheduleImpact","setOpenDlgScheduleImpact","page","count","setStateList","userList","setUserList","filterDateType","userId","filterDateTypeId","setFilterTable","impactEditId","xhrRequest","sortOrder","postPrescriptionsList","filterSubmit","getWith","rowsPerPageOptions","serverSide","onTableChange","tableState","changePage","getOptions","CardTotal","subtitleId","ChartComponent","highcharts","Highcharts","formatCurrency","total","decimals","unit","round","totalizationChart","keyValuePairData","stateTypeText","totalizationText","totalText","Key","Value","credits","enabled","chart","subtitle","plotOptions","pie","innerSize","depth","showInLegend","allowPointSelect","dataLabels","tooltip","formatter","numberFormat","percentage","series","totalizationByDateChart","detailEffectiveChart","causalNotEffectiveChart","monitoringStatusText","plotBackgroundColor","plotBorderWidth","plotShadow","accessibility","point","valueSuffix","legend","colorByPoint","productLineChart","familyText","categories","xAxis","yAxis","visible","causalNotEffectiveMoneyChart","deliveryModeChart","amountText","marketchainChart","clientText","getPropArray","Dashboard","olfList","setOlfList","executiveActionList","setExecutiveActionList","totalInfo","setTotalInfo","chartCausalNotEffectiveTitle","chartCausalNotEffectiveMoneyTitle","chartRecoverableTitle","chartRecoverableMoneyTitle","olfId","executiveActionId","getDashboardFilters","filters","users","executiveActions","filterDateTypeIds","marketchainIds","insuranceIds","stateIds","userIds","executiveActionIds","productIds","postDashboard","CustomChart","eficaciaDetailChart","totalChart","causalChart","causalText","operatorChart","recoveriesChart","CausalTable","dataFormated","totalFiniched","fnSetLoader2","totalMIPRES","setTotalMIPRES","eficaciaRecovery","setEficaciaRecovery","byCausal","setByCausal","byOperator","setByOperator","byProductLine","setByProductLine","chartTotalData","setChartTotalData","impactsInfo","setImpactsInfo","agentList","setAgentList","recoveriesDefaultText","recoveriesEficaciaText","recoveriesUnrecoverableText","recoveryFilterList","getDashboardMigrationFilters","causalIds","agentId","recoveryFilterIds","recoveryFilterId","dashboardGetTotalMIPRES","dashboardGetEficaciaRecoveries","dashboardGetByCausal","dashboardGetByOperator","dashboardGetByProductLine","dashboardGetTotal","dashboardGetImpactsInfo","getTotalDataItem","DlgDetail","TopDoctorTable","detailData","setDetailData","meta","onRowClick","rowMeta","getDoctorDetail","pieChart","labelFormatter","columnChart","showLegend","xInfo","multiColumnChart","stacking","multiColumnList","patientByNurseChart","typeChart","pointNameText","pointValueText","patientsByStateChart","distributionPatientsByRegion","treatmentDeviceChart","distributionPatientStatesandRegionChart","patientDistributionByEpsAndStateChart","logisticChartbyRegional","getTypeTreatmentDoctor","PatientByEpsAndStateGraph","epsOptions","resetSelectEps","msgWarning","epsList","epsFilter","objFilter","epsIds","getPatientDistributionByEpsAndState","onChangeEpsFilter","closeMenuOnSelect","ChartLogisticOperator","ipsOptions","ipsFilter","ipsIds","getPatientByIpsAndRegion","onChangeIpsFilter","setTypeChart","selectEps","setSelectEps","selectEpsTop","setSelectEpsTop","selectOpl","setSelectOpl","selectOplTop","setSelectOplTop","patientByEpsAndStateData","setPatientByEpsAndStateData","patientByOplAndRegionData","setPatientByOplAndRegionData","setResetSelectEps","postDashboardNurse","patientDistributionByEpsAndState","multiColumnDataCategories","topData","chartOplByRegional","objDate","multiColumnVerticalChart","topDoctors","enrollChart","enrollData","yAxisTitle","serie1Title","serie2Title","headerFormat","pointFormat","footerFormat","shared","useHTML","created","registered","responsive","rules","condition","chartOptions","titleTextKey","tooltipKey","yAxisTitleKey","DashboardPA","getDashboardPA","patientCount","QuestionChart","instillationText","crosshair","pointPadding","inside","MultiLineChart","dataChart","serie1","name1","serie2","name2","serie3","name3","reversed","line","radius","fillColor","symbol","MultiColumnChart","monthChart","DashboardOperative","getDashboardOperative","chartPrescriptionByYear","onFilterDoctor","YesNoChart","yesNoQuestionData","cycleIdValue","questionIdValue","cycleName","questionNumber","instillationName","yes","no","questionData","LineChart","hover","getQuestionTitle","isConsecutive","numberArray","apply","validateFilter","instillations","inst","instM","DashboardClinical","cycleList","setCycleList","setInstitutionList","instillationList","setInstillationList","currentCycle","setCurrentCycle","currentQuestion","setCurrentQuestion","dateFilter","setDateFilter","msgFilterNoValid","cycleId","questionId","context","loadCycleList","isFirstRender","getCyclesQuery","cycles","s","getDashboardClinical","cycle","contextId","getInstitutionsList","instillation","ProtectedRoute","rest","isRoleUser","modalState","ModalConcent","openDlgSignCompany","setOpenDlgSignCompany","modalStatus","setModalStatus","msgSignRequired","getInstitutionInfo","signature","postSignByCompany","DlgAddNewPatient","newPatientList","setNewPatientList","postAddIntitutionImpact","getNewPatientList","NextFollowUpForm","impactInfo","setImpactInfo","followInfo","startDateAndTime","attendingNurseNew","procedureToMake","planingDate","anyPlanned","InstitutionHome","openDlgAddPatient","setOpenDlgAddPatient","openDlgConfirmationModal","setOpenDlgConfirmationModal","openDlgNextFollowUp","setOpenDlgNextFollowUp","isInstitutionManager","patientInstitutionStateList","PatientInstitutionStateList","dlgConfirmationCloseModal","companyIds","reloadTable","getIntitutionImpacts","getInstitutions","impactRow","impactDate","PatientInstitutionStateEnum","finished","activatePatient","postIntitutionActivatePatient","PatientDataForm","getInstitutionPatientInfo","insurance","treatment","birthdayDate","PatientData","AssistanceForm","attendingNurse","postIntitutionStartImpact","Assistance","ProcedureForm","galleryObj","setGalleryObj","imageList","setImageList","currentImg","setCurrentImg","caseDescription","evidencePhoto","getInstitutionImpactFiles","postIntitutionSaveProcess","postAddInstitutionImpactFile","institutionImpactId","renderCustomControls","getCurrentIndex","deleteInstitutionImpactFile","original","Procedure","EndingForm","setStateFinished","patientSign","setPatientSign","nurseSign","setNurseSign","signOpt","setSignOpt","exitState","setExitState","msgPatientSignRequired","msgNurseSignRequired","msgPendingSignatureFile","patientSignatureOptions","stated","patientFinishedStateList","PatientFinishedStateList","endingDateAndTime","patientCC","nurseCC","nurseNotes","exitReason","patientSignatureOption","signedDocument","patientSignatureOptValue","exitOptValue","patientDocument","nurseDocument","patientSignature","nurseSignature","isFinished","postIntitutionEndImpact","DlgDownloadImpactFile","impactFile","Ending","openDlgDownload","setOpenDlgDownload","NextFollowUp","allowPlanning","InstitutionDetails","stateFinished","getInstitutionImpactInfo","Divider","getDate","allowEnd","manager","PatientPA","PatientList3","PatientAdd2","ProductLine","Remodulin","Iclusig","KpiImpacts","AdverseEvent","ReportsRepKam","DashboardNurse","DashboardMigration","KpiPharmacoVigilance","AppLayout","Layout","RestrictedRoute","App","__MUI_USE_NEXT_TYPOGRAPHY_VARIANTS__","applyTheme","createMuiTheme","currentAppLocale","ThemeProvider","MomentUtils","init","store","initialState","createStore","combineReducers","router","connectRouter","Base","Settings","Mail","Auth","PharmaMail","Prescription","home","Home","Impact","Institution","applyMiddleware","run","configureStore","requestsToRefresh","isRefreshRequesting","interceptors","use","originalRequest","config","_retry","tokenInfo","API_URL","res","defaults","cb","error23","finally","Promise","logger","request","TableBox","TableBoxRow","setSelectedMenuItem","NewPatientIndicator","patientIndicator","setPatientIndicator","getActivePatientsIndicator","showErrorMessage","TableHome","NewPatientsBox","inProcessDataList","setInProcessDataList","tracingDataList","setTracingDataList","adverseEventList","setAdverseEventList","eventTrainingList","setEventTrainingList","loadHome","loadNewPatients","maintainAspectRatio","fontColor","canvas","ctx","getContext","_stroke","save","shadowBlur","shadowOffsetX","shadowOffsetY","arguments","restore","Chart","pluginService","beforeDraw","font","fillStyle","textBaseline","textX","measureText","textY","fillText","datasets","rolename","getRole","settingKey","getSettingValue","isFullList","onlyTracing","jaasielModule","pharmacotherapeuticRis","none","patientOutOfProgram","Invalidated","inProgress","NoMIPRES","notResolved","nonContactablePatient","queryVerified","rejected","initial","damage","lifeThreatening","requireIntervention","hospitalization","malformation","noDamage","inactive","preRegister","PATIENTDEAD","NOTRECOVERED","RECOVEREDSEQUELS","RECOVERING","prescriptionStateId","urlApi","urlApiV2","urlApiJM","handleError","err","callActionApiAsync","constructor","prescripctionId","additionalMedicationId","isFile","fileId","pointBorderColor","scales","xAxes","ticks","gridLines","drawBorder","yAxes","suggestedMin","beginAtZero","fillOpacity","pointHoverBackgroundColor","pointHoverBorderWidth","pointHoverRadius","renderTrackHorizontal"],"mappings":"0FAAA,mFAIeA,iBADO,SAAAC,GAAK,OAAI,kBAAC,IAAqBA,KACZ,CACvCC,SAAS,IAGJ,IAAMC,EAAc,SAACC,GAAD,OAAQC,cAAUC,cAAc,CAAEF,S,61wHCR7D,4CAGMG,EAASC,SAASC,eAAe,aAG1B,WAEX,IAAMC,EAAUC,EAAQ,MAAaC,QACrCC,IAASC,OACP,kBAACJ,EAAD,MACAH,IAcJO,I,2MCzBAC,EAAOC,QAAU,0qF,mBCAjBD,EAAOC,QAAU,8/H,uYCAjB,sBAEe,KACbC,IAAKC,IAAMD,IACXE,KAAMD,IAAMC,KACZC,IAAKF,IAAME,IACXC,MAAOH,IAAMG,MACbC,OAAQJ,IAAMI,S,qECSDC,IAbO,SAAC,GAA0B,IAAzBC,EAAwB,EAAxBA,SAAavB,EAAW,4BACpCwB,EAA4CxB,EAA5CwB,MAAOC,EAAqCzB,EAArCyB,UAAWC,EAA0B1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AAIM,cAAgB,GACpBJ,EAAQ7O,MAAMxpG,KAAM04G,WACpBP,EAAIQ,WAEC,CACL3oH,OAAQA,EACRspH,SAAU,CACR,CACEn8G,MAAOA,EACPlB,MAAM,EACNk9E,YAAaA,EACbujC,YAAa,GACbx0G,YAAaA,EACb4wE,YAAaA,EACbmjC,iBAAkBA,EAClBljC,qBAAsBA,EACtBC,iBAAkBA,EAClBC,YAAaA,EACb0jC,0BAA2B5jC,EAC3BG,sBAAuBA,EACvB0jC,sBAAuB,EACvBC,iBAAkB,EAClBlpH,KAAMikF,MA4CM/yF,QAASA,EAAST,OAAQA,M,sCCjGhDlB,EAAOC,QAAU,8gB,gCCAjB,8BAYe6d,IATU,SAAC5e,GAAD,OACrB,kBAAC,aAAD,iBACQA,EADR,CAGI06H,sBACI,SAAA16H,GAAK,OACL,yCAASA,EAAT,CAAgB+B,MAAO,CAACqb,QAAS,QAAStb,UAAU,6B","file":"static/js/main.4a7ba52c.chunk.js","sourcesContent":["import React from 'react';\r\nimport {FormattedMessage, injectIntl, useIntl} from 'react-intl';\r\n\r\nconst InjectMassage = props => ;\r\nexport default injectIntl(InjectMassage, {\r\n withRef: false\r\n});\r\n\r\nexport const IntlGetText = (id) => useIntl().formatMessage({ id });\r\n\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\n\r\nconst rootEl = document.getElementById('app-site');\r\n\r\n// Create a reusable render method that we can call more than once\r\nlet render = () => {\r\n // Dynamically import our main App component, and render it\r\n const MainApp = require('./MainApp').default;\r\n ReactDOM.render(\r\n ,\r\n rootEl\r\n );\r\n};\r\n\r\nif (module.hot) {\r\n module.hot.accept('./MainApp', () => {\r\n const MainApp = require('./MainApp').default;\r\n render(\r\n ,\r\n rootEl\r\n );\r\n });\r\n}\r\n\r\nrender();\r\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABBCAYAAAFTH/0qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR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Sw/7XFwTRi61nvDgddhOrMWPmvI7X5PfG5KaIomjQmdTunmDQjYC6rbFs6S7Mq1khFKuOcwXZowJnzpUYOCrgeAcBlgpSbybQiKM0RQgO4cgFfTewa6QP4Log0R1k0m56j//acpHFsA4K0iKdhNhEwTI3aDOB2DToRYFyz1RqfOHgdn3ni14gRI0aMGDFixIgRI0aM/F+AAQCHvPSDFa3BpwAAAABJRU5ErkJggg==\"","import axios from \"axios\";\r\n\r\nexport default {\r\n get: axios.get,\r\n post: axios.post,\r\n put: axios.put,\r\n patch: axios.patch,\r\n delete: axios.delete,\r\n};\r\n","import React from \"react\";\r\nimport CustomScrollbars from 'util/CustomScrollbars';\r\n\r\nconst ScrollContent = ({children, ...props}) => {\r\n const { width, heightMin, heightMax, classParent} = props;\r\n const classContent = classParent === undefined ? \"module-list mail-list\" : classParent;\r\n return (\r\n
\r\n = 1200 ? heightMax : heightMin}}>\r\n {children}\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default ScrollContent;","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 1825;","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 1857;","import React from 'react';\r\nimport Menu from '@material-ui/core/Menu';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport IntlMessages from 'util/IntlMessages';\r\n\r\nconst CardMenu = (props) => {\r\n\r\n const options = [\r\n ,\r\n ,\r\n ,\r\n \r\n ];\r\n const {menuState, anchorEl, handleRequestClose} = props;\r\n return (\r\n \r\n {options.map(option =>\r\n \r\n {option}\r\n ,\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default CardMenu;","import React, { useState } from \"react\";\r\nimport CardMenu from \"../CardMenu\";\r\n\r\nconst CardHeader = (props) => {\r\n const [menuState, setMenuState] = useState(false);\r\n\r\n const handleRequestClose = () => {\r\n setMenuState(false);\r\n };\r\n\r\n const { heading, subHeading } = props;\r\n let { styleName } = props;\r\n\r\n return (\r\n
\r\n
\r\n

{heading}

\r\n {subHeading &&

{subHeading}

}\r\n
\r\n\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default CardHeader;\r\nCardHeader.defaultProps = {\r\n styleName: \"\",\r\n subHeading: \"\",\r\n};\r\n","// Customizer const\r\nexport const TOGGLE_COLLAPSED_NAV = \"toggle_collapse_menu\";\r\nexport const DRAWER_TYPE = \"drawer_type\";\r\nexport const FIXED_DRAWER = \"fixed_drawer\";\r\nexport const COLLAPSED_DRAWER = \"collapsible\";\r\nexport const MINI_DRAWER = \"mini_drawer\";\r\nexport const WINDOW_WIDTH = \"window-width\";\r\nexport const SWITCH_LANGUAGE = \"switch-language\";\r\n\r\nexport const HORIZONTAL_NAVIGATION = \"horizontal_navigation\";\r\n\r\nexport const HORIZONTAL_MENU_POSITION = \"horizontal_menu_position\";\r\nexport const INSIDE_THE_HEADER = \"inside_the_header\";\r\n\r\n\r\nexport const SHOW_MESSAGE = \"show_message\";\r\nexport const HIDE_MESSAGE = \"hide_message\";\r\n\r\n\r\nexport const ON_TOGGLE_DRAWER = \"on_toggle_drawer\";\r\nexport const HANDLE_REQUEST_CLOSE = \"handle_request_close\";\r\nexport const HIDE_CONTACT_LOADER = \"hide_contact_loader\";\r\n\r\n//Auth const\r\nexport const SIGNIN_USER = \"signin_user\";\r\nexport const SIGNIN_USER_SUCCESS = \"signin_user_success\";\r\nexport const SIGNOUT_USER = \"signout_user\";\r\nexport const SIGNOUT_USER_SUCCESS = \"signout_user_success\";\r\nexport const INIT_URL = \"init_url\";\r\nexport const SIGNIN_RELOGIN = \"signin_relogin\";\r\n\r\n\r\nexport const ON_SHOW_LOADER = \"on_show_loader\";\r\nexport const ON_HIDE_LOADER = \"on_hide_loader\";\r\n\r\n\r\n//// Mail Module const\r\n\r\nexport const ADD_LABEL = \"ADD_LABEL\";\r\nexport const GET_ALL_MAIL = \"get_all_mail\";\r\nexport const FETCH_ALL_MAIL = \"fetch_all_mail\";\r\nexport const FETCH_ALL_MAIL_SUCCESS = \"fetch_all_mail_success\";\r\nexport const GET_IMPORTANT_MAIL = \"get_important_mail\";\r\nexport const GET_NAV_FILTERS = \"get_nav_filters\";\r\nexport const GET_NAV_LABELS = \"get_nav_labels\";\r\nexport const GET_NAV_FOLDER = \"get_nav_folder\";\r\nexport const GET_READ_MAIL = \"get_read_mail\";\r\nexport const GET_STARRED_MAIL = \"get_starred_mail\";\r\nexport const GET_UNIMPORTANT_MAIL = \"get_unimportant_mail\";\r\nexport const GET_UNREAD_MAIL = \"get_unread_mail\";\r\nexport const GET_UNSELECTED_ALL_MAIL = \"get_unselected_all_mail\";\r\nexport const GET_UNSTARRED_MAIL = \"get_unstarred_mail\";\r\nexport const ON_ALL_MAIL_SELECT = \"on_all_mail_select\";\r\nexport const ON_FOLDER_MENU_ITEM_SELECT = \"on_folder_menu_item_select\";\r\nexport const ON_FOLDER_SELECT = \"on_folder_select\";\r\nexport const ON_IMPORTANT_SELECT = \"on_important_select\";\r\nexport const ON_LABEL_MENU_ITEM_SELECT = \"on_label_menu_item_select\";\r\nexport const GET_MARK_AS_START = \"get_mark_as_start\";\r\nexport const ON_LABEL_SELECT = \"on_label_select\";\r\nexport const ON_MAIL_CHECKED = \"on_mail_checked\";\r\nexport const ON_MAIL_SELECT = \"on_mail_select\";\r\nexport const ON_MAIL_SEND = \"on_mail_send\";\r\nexport const ON_OPTION_MENU_ITEM_SELECT = \"on_option_menu_item_select\";\r\nexport const ON_OPTION_MENU_SELECT = \"on_option_menu_select\";\r\nexport const ON_START_SELECT = \"on_start_select\";\r\nexport const SEARCH_MAIL = \"search_mail\";\r\nexport const ON_DELETE_MAIL = \"on_delete_mail\";\r\nexport const SET_CURRENT_MAIL_NULL = \"set_current_mail_null\";\r\nexport const ON_COMPOSE_MAIL = \"on_compose_mail\";\r\n\r\n//// PHARMA\r\n\r\nexport const PHARMA_ADD_LABEL = \"pharma_ADD_LABEL\";\r\nexport const PHARMA_GET_ALL_MAIL = \"pharma_get_all_mail\";\r\nexport const PHARMA_FETCH_ALL_MAIL = \"pharma_fetch_all_mail\";\r\nexport const PHARMA_FETCH_ALL_MAIL_SUCCESS = \"pharma_fetch_all_mail_success\";\r\nexport const PHARMA_GET_IMPORTANT_MAIL = \"pharma_get_important_mail\";\r\nexport const PHARMA_GET_NAV_FILTERS = \"pharma_get_nav_filters\";\r\nexport const PHARMA_GET_NAV_LABELS = \"pharma_get_nav_labels\";\r\nexport const PHARMA_GET_NAV_FOLDER = \"pharma_get_nav_folder\";\r\nexport const PHARMA_GET_READ_MAIL = \"pharma_get_read_mail\";\r\nexport const PHARMA_GET_STARRED_MAIL = \"pharma_get_starred_mail\";\r\nexport const PHARMA_GET_UNIMPORTANT_MAIL = \"pharma_get_unimportant_mail\";\r\nexport const PHARMA_GET_UNREAD_MAIL = \"pharma_get_unread_mail\";\r\nexport const PHARMA_GET_UNSELECTED_ALL_MAIL = \"pharma_get_unselected_all_mail\";\r\nexport const PHARMA_GET_UNSTARRED_MAIL = \"pharma_get_unstarred_mail\";\r\nexport const PHARMA_ON_ALL_MAIL_SELECT = \"pharma_on_all_mail_select\";\r\nexport const PHARMA_ON_FOLDER_MENU_ITEM_SELECT =\r\n \"pharma_on_folder_menu_item_select\";\r\nexport const PHARMA_ON_FOLDER_SELECT = \"pharma_on_folder_select\";\r\nexport const PHARMA_ON_IMPORTANT_SELECT = \"pharma_on_important_select\";\r\nexport const PHARMA_ON_LABEL_MENU_ITEM_SELECT =\r\n \"pharma_on_label_menu_item_select\";\r\nexport const PHARMA_GET_MARK_AS_START = \"pharma_get_mark_as_start\";\r\nexport const PHARMA_ON_LABEL_SELECT = \"pharma_on_label_select\";\r\nexport const PHARMA_ON_MAIL_CHECKED = \"pharma_on_mail_checked\";\r\nexport const PHARMA_ON_MAIL_SELECT = \"pharma_on_mail_select\";\r\nexport const PHARMA_ON_MAIL_SEND = \"pharma_on_mail_send\";\r\nexport const PHARMA_ON_OPTION_MENU_ITEM_SELECT =\r\n \"pharma_on_option_menu_item_select\";\r\nexport const PHARMA_ON_OPTION_MENU_SELECT = \"pharma_on_option_menu_select\";\r\nexport const PHARMA_ON_START_SELECT = \"pharma_on_start_select\";\r\nexport const PHARMA_SEARCH_MAIL = \"pharma_search_mail\";\r\nexport const PHARMA_ON_DELETE_MAIL = \"pharma_on_delete_mail\";\r\nexport const PHARMA_SET_CURRENT_MAIL_NULL = \"pharma_set_current_mail_null\";\r\nexport const PHARMA_ON_COMPOSE_MAIL = \"pharma_on_compose_mail\";\r\nexport const PHARMA_PATIENT_CONTACT_SAVE = \"pharma_on_patient_save\";\r\nexport const PHARMA_PROCESS_STATE_CHANGE = \"pharma_on_patient_state\";\r\nexport const PHARMA_HANDLE_REQUEST_CLOSE = \"pharma_handle_request_close\";\r\n\r\nexport const UPDATE_SEARCH = \"update_search\";\r\n\r\n// Manage PSP\r\n\r\nexport const PROCESS_STATE_CHANGE = \"process_state_change\";\r\nexport const PATIENT_CONTACT_SAVE = \"patient_contact_save\";\r\n\r\n//Management\r\n\r\nexport const CURRENT_MENU_ITEM_ID = \"current_menu_item_id\";\r\nexport const MANAGE_SEARCH_PRESCRIPTIONS = \"manage_search_prescriptions\";\r\nexport const LOAD_MANAGE_MODULE = \"load_manage_module\";\r\nexport const SELECT_PRODUCT_LINE = \"select_product_line\";\r\nexport const SELECT_PRESCRIPTION_STATE = \"select_prescription_state\";\r\nexport const SET_PRESCRIPTION_STATE = \"set_prescription_state\";\r\nexport const LOAD_PRESCRIPTIONS = \"load_prescriptions\";\r\nexport const SELECT_PRESCRIPTION = \"select_prescription\";\r\nexport const SET_LOADER_MANAGE_MODULE = \"set_loader_manage_module\";\r\nexport const SHOW_ALERT_MESSAGE = \"show_alert_message\";\r\nexport const LOAD_PATIENT_INFO = \"load_patient_info\";\r\nexport const UPDATE_SELECTED_PRESCRIPTION = \"update_selected_prescription\";\r\nexport const REMOVE_SELECTED_PRESCRIPTION = \"remove_selected_prescription\";\r\nexport const ADD_PRESCRIPTION_GO_TRACING = \"add_prescription_go_tracing\";\r\n\r\n//\r\nexport const SET_PRESCRIPTION_ID = \"set_prescription_id\";\r\n\r\n// Base\r\n\r\nexport const SET_LOADER = \"set_loader\";\r\n\r\n//Home\r\nexport const LOAD_NEW_PATIENTS = \"load_new_patients\";\r\nexport const LOAD_HOME = \"load_home\";\r\n\r\n//Impact\r\n\r\nexport const SET_CONSENT_PATH = \"set_conset_path\";\r\nexport const SET_CONSENT_URL = \"set_conset_url\";\r\nexport const LOAD_INFO_IMPACT = \"load_info_impact\";\r\nexport const SET_IMPACT_START_DATE = \"set_impact_start_date\";\r\nexport const SET_CLINICAL_HISTORY_STATE = \"set_clinical_history_state\";\r\nexport const SET_FORM_FORMULA_DONE = \"set_form_formula_done\";\r\nexport const SET_FORMULA_MEDICINE_QUANTITY = \"set_formula_medicine_quantity\";\r\nexport const ON_START_IMPACT = \"on_start_impact\";\r\nexport const CALL_RELOAD_ALERTS = \"call_reload_alerts\";\r\nexport const CALL_RELOAD_PATIENT_DATA = \"call_reload_patient_data\";\r\nexport const CALL_RELOAD_CONSUMPTION_TRACING = \"call_reload_consumtion_tracing\";\r\nexport const SET_HISTORY_DATA = \"set_history_data\";\r\nexport const SET_HEALTH_DATA = \"set_health_data\";\r\nexport const SET_RELOAD_DOSAGE = \"set_reload_dosage\";\r\n\r\n\r\n//Institution context \r\nexport const INSTITUTION_SET_CI_INFO = \"institution_set_ci_info\";\r\n//End Institution context","module.exports = __webpack_public_path__ + \"static/media/remodulin.86c65993.PNG\";","module.exports = __webpack_public_path__ + \"static/media/iclusig.22c49a6f.PNG\";","module.exports = __webpack_public_path__ + \"static/media/kalbitor.e0105cef.PNG\";","module.exports = __webpack_public_path__ + \"static/media/galafold.10d54c97.PNG\";","module.exports = __webpack_public_path__ + \"static/media/remodulin-img1.0a6e86c1.PNG\";","module.exports = __webpack_public_path__ + \"static/media/iclusig-img1.bb7ccf88.PNG\";","import {\r\n SET_LOADER\r\n } from \"constants/ActionTypes\";\r\n \r\n const INIT_STATE = {\r\n loader: false,\r\n };\r\n \r\n export default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case SET_LOADER: {\r\n return {\r\n ...state,\r\n loader: action.payload\r\n };\r\n } \r\n default:\r\n return state;\r\n }\r\n };\r\n ","import {\r\n DRAWER_TYPE,\r\n FIXED_DRAWER,\r\n HORIZONTAL_MENU_POSITION,\r\n INSIDE_THE_HEADER,\r\n SWITCH_LANGUAGE,\r\n TOGGLE_COLLAPSED_NAV,\r\n HORIZONTAL_NAVIGATION,\r\n WINDOW_WIDTH,\r\n} from \"constants/ActionTypes\";\r\nimport { CYAN } from \"constants/ThemeColors\";\r\n\r\nconst initialSettings = {\r\n navCollapsed: false,\r\n drawerType: FIXED_DRAWER,\r\n themeColor: CYAN,\r\n darkTheme: false,\r\n width: window.innerWidth,\r\n navigationStyle: HORIZONTAL_NAVIGATION,\r\n horizontalNavPosition: INSIDE_THE_HEADER,\r\n locale: {\r\n languageId: \"spanish\",\r\n locale: \"es\",\r\n name: \"Spanish\",\r\n icon: \"es\",\r\n },\r\n};\r\n\r\nconst settings = (state = initialSettings, action) => {\r\n switch (action.type) {\r\n case \"@@router/LOCATION_CHANGE\":\r\n return {\r\n ...state,\r\n navCollapsed: false,\r\n };\r\n case TOGGLE_COLLAPSED_NAV:\r\n return {\r\n ...state,\r\n navCollapsed: !state.navCollapsed,\r\n };\r\n case DRAWER_TYPE:\r\n return {\r\n ...state,\r\n drawerType: action.drawerType,\r\n };\r\n case WINDOW_WIDTH:\r\n return {\r\n ...state,\r\n width: action.width,\r\n };\r\n case SWITCH_LANGUAGE:\r\n return {\r\n ...state,\r\n locale: action.payload\r\n };\r\n\r\n case HORIZONTAL_MENU_POSITION:\r\n return {\r\n ...state,\r\n horizontalNavPosition: action.payload,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default settings;\r\n","export const CYAN = \"cyan\";\r\n\r\n\r\n","import React from \"react\";\r\n\r\nexport default [\r\n {\r\n id: \"15453ba60d3baa5daaf\",\r\n hasPatient: false,\r\n time: \"2020/07/06\",\r\n from: {\r\n name: \"Nuevo\",\r\n lastname: \"Paciente\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5],\r\n states: [],\r\n selected: false,\r\n folder: 0,\r\n },\r\n {\r\n id: \"15453ba60d3baa584df\",\r\n hasPatient: true,\r\n time: \"2020/07/14\",\r\n from: {\r\n name: \"Alicia\",\r\n lastname: \"Muñoz\",\r\n avatar: \"\",\r\n email: \"alex.rodriguez@outlook.com\",\r\n doctorName: \"Dr. Alex Rodriguez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n alex.rodriguez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-3205864578\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dr. Alex Rodriguez\",\r\n date: \"2020/07/21\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 0],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 0,\r\n },\r\n {\r\n id: \"154asda0d3baa5daaf\",\r\n hasPatient: false,\r\n time: \"2020/07/17\",\r\n from: {\r\n name: \"Nuevo\",\r\n lastname: \"Paciente\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"Dra. Julia Ramirez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n julia.ramirez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6],\r\n states: [],\r\n selected: false,\r\n folder: 0,\r\n },\r\n // En tramite\r\n {\r\n id: \"157697ba60d3baa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/13\",\r\n from: {\r\n name: \"Helena\",\r\n lastname: \"Ruiz\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 4],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 1,\r\n },\r\n {\r\n id: \"157697ba665763baa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/16\",\r\n from: {\r\n name: \"Juan\",\r\n lastname: \"Diaz\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 10],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 1,\r\n },\r\n {\r\n id: \"157697b5d3baa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/21\",\r\n from: {\r\n name: \"Jose\",\r\n lastname: \"Caicedo\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 11],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 1,\r\n },\r\n // SEGUIMIENTOS\r\n {\r\n id: \"1575468656d3baa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/22\",\r\n from: {\r\n name: \"Martha\",\r\n lastname: \"Perez\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 16],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 2,\r\n },\r\n {\r\n id: \"157656d3baa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/22\",\r\n from: {\r\n name: \"Andres\",\r\n lastname: \"Garcia\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 14],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 2,\r\n },\r\n {\r\n id: \"15765665776aa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/22\",\r\n from: {\r\n name: \"Raul\",\r\n lastname: \"Hernandez\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 15],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 2,\r\n },\r\n // EVENTOS ADVERSOS\r\n {\r\n id: \"2342342342gedf\",\r\n hasPatient: true,\r\n time: \"2020/07/10\",\r\n from: {\r\n name: \"Luis\",\r\n lastname: \"Dominguez\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 18],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 3,\r\n },\r\n {\r\n id: \"157666f96aa5daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/15\",\r\n from: {\r\n name: \"Ignacio\",\r\n lastname: \"Andrade\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 18],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 3,\r\n },\r\n {\r\n id: \"1576355ad521daaf\",\r\n hasPatient: true,\r\n time: \"2020/07/21\",\r\n from: {\r\n name: \"Sergio\",\r\n lastname: \"Perez\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Dra. Victoria Lopez\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 18],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 3,\r\n },\r\n // CAPACITACIÓN\r\n {\r\n id: \"adad4543asd2\",\r\n hasPatient: true,\r\n time: \"2020/07/24\",\r\n from: {\r\n name: \"Actualizaciones del\",\r\n lastname: \"medicamento\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 20],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 4,\r\n },\r\n {\r\n id: \"ddddds545444s\",\r\n hasPatient: true,\r\n time: \"2020/07/29\",\r\n from: {\r\n name: \"Actualizaciones del\",\r\n lastname: \"medicamento\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 20],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 4,\r\n },\r\n {\r\n id: \"dddddsd454ghnh144s\",\r\n hasPatient: true,\r\n time: \"2020/07/31\",\r\n from: {\r\n name: \"Encuentro de\",\r\n lastname: \"salud\",\r\n avatar: \"\",\r\n email: \"victoria.lopez@outlook.com\",\r\n doctorName: \"Dra. Victoria Lopez\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n victoria.lopez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"\",\r\n date: \"2020\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [19],\r\n states: [0, 7, 8],\r\n selected: false,\r\n folder: 4,\r\n },\r\n];\r\n","import {\r\n FETCH_ALL_MAIL_SUCCESS,\r\n GET_ALL_MAIL,\r\n GET_IMPORTANT_MAIL,\r\n GET_NAV_FILTERS,\r\n GET_NAV_FOLDER,\r\n GET_NAV_LABELS,\r\n GET_READ_MAIL,\r\n GET_STARRED_MAIL,\r\n GET_UNIMPORTANT_MAIL,\r\n GET_UNREAD_MAIL,\r\n GET_UNSELECTED_ALL_MAIL,\r\n GET_UNSTARRED_MAIL,\r\n HANDLE_REQUEST_CLOSE,\r\n ON_ALL_MAIL_SELECT,\r\n ON_COMPOSE_MAIL,\r\n ON_DELETE_MAIL,\r\n ON_FOLDER_MENU_ITEM_SELECT,\r\n ON_FOLDER_SELECT,\r\n ON_HIDE_LOADER,\r\n ON_IMPORTANT_SELECT,\r\n ON_LABEL_MENU_ITEM_SELECT,\r\n ON_LABEL_SELECT,\r\n ON_MAIL_CHECKED,\r\n ON_MAIL_SELECT,\r\n ON_MAIL_SEND,\r\n ON_OPTION_MENU_SELECT,\r\n ON_START_SELECT,\r\n ON_TOGGLE_DRAWER,\r\n SEARCH_MAIL,\r\n SET_CURRENT_MAIL_NULL,\r\n SHOW_MESSAGE,\r\n UPDATE_SEARCH,\r\n FETCH_ALL_MAIL,\r\n PROCESS_STATE_CHANGE,\r\n PATIENT_CONTACT_SAVE,\r\n} from \"constants/ActionTypes\";\r\nimport mails from \"app/routes/psp/manage/data/mails\";\r\n\r\nconst INIT_STATE = {\r\n searchMail: \"\",\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"\",\r\n showMessage: false,\r\n drawerState: false,\r\n anchorEl: null,\r\n // allMail: [], only for prod\r\n allMail: mails,\r\n optionName: \"None\",\r\n loader: false,\r\n currentMail: null,\r\n user: {\r\n name: \"Robert Johnson\",\r\n email: \"robert@example.com\",\r\n avatar: \"https://via.placeholder.com/150x150\",\r\n },\r\n selectedMails: 0,\r\n selectedFolder: 0,\r\n composeMail: false,\r\n labelMenuState: false,\r\n folderMenuState: false,\r\n optionMenuState: false,\r\n // folderMails: [], //only for prod\r\n folderMails: mails.filter((mail) => mail.folder === 0),\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case GET_ALL_MAIL: {\r\n let mails = state.allMail.map((mail) =>\r\n mail.folder === state.selectedFolder\r\n ? {\r\n ...mail,\r\n selected: true,\r\n }\r\n : mail\r\n );\r\n return {\r\n ...state,\r\n selectedMails: mails.length,\r\n optionName: \"All\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n loader: false,\r\n };\r\n }\r\n case FETCH_ALL_MAIL: {\r\n return {\r\n ...state,\r\n loader: false,\r\n folderMails: state.allMail.filter((mail) => mail.folder === 0),\r\n };\r\n }\r\n case FETCH_ALL_MAIL_SUCCESS: {\r\n return {\r\n ...state,\r\n loader: false,\r\n allMail: action.payload,\r\n folderMails: action.payload.filter((mail) => mail.folder === 0),\r\n };\r\n }\r\n case GET_IMPORTANT_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.important) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n optionName: \"Important\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_NAV_FILTERS: {\r\n const filterMails = state.allMail.filter((mail) => {\r\n if (action.payload.id === 0 && mail.starred) {\r\n return mail;\r\n } else if (action.payload.id === 1 && mail.important) {\r\n return mail;\r\n } else return null;\r\n });\r\n return {\r\n ...state,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n loader: true,\r\n folderMails: filterMails,\r\n };\r\n }\r\n case ON_FOLDER_SELECT: {\r\n return { ...state, folderMenuState: !state.folderMenuState };\r\n }\r\n case GET_NAV_LABELS: {\r\n const filterMails = state.allMail.filter((mail) =>\r\n mail.labels.includes(action.payload.id)\r\n );\r\n return {\r\n ...state,\r\n loader: true,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n folderMails: filterMails,\r\n };\r\n }\r\n case GET_READ_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.read) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Read\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_STARRED_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.starred) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Stared\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_UNIMPORTANT_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.important) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Unimportant\",\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_UNREAD_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.read) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Unread\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_UNSELECTED_ALL_MAIL: {\r\n let mails = state.allMail.map((mail) =>\r\n mail.folder === state.selectedFolder\r\n ? {\r\n ...mail,\r\n selected: false,\r\n }\r\n : mail\r\n );\r\n return {\r\n ...state,\r\n selectedMails: 0,\r\n optionName: \"None\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case GET_UNSTARRED_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.starred) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n optionName: \"UnStarred\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case HANDLE_REQUEST_CLOSE: {\r\n return {\r\n ...state,\r\n composeMail: false,\r\n showMessage: false,\r\n folderMenuState: false,\r\n labelMenuState: false,\r\n optionMenuState: false,\r\n };\r\n }\r\n case ON_ALL_MAIL_SELECT: {\r\n return { ...state };\r\n }\r\n case ON_FOLDER_MENU_ITEM_SELECT: {\r\n const mails = state.allMail.map((mail) =>\r\n mail.selected && mail.folder === state.selectedFolder\r\n ? { ...mail, folder: action.payload, selected: false }\r\n : mail\r\n );\r\n\r\n return {\r\n ...state,\r\n selectedMails: 0,\r\n allMail: mails,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Mail has been moved successfully\",\r\n showMessage: true,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case ON_IMPORTANT_SELECT: {\r\n action.payload.important = !action.payload.important;\r\n return {\r\n ...state,\r\n alertMessage: action.payload.important\r\n ? \"Mail Mark as Important\"\r\n : \"Mail Remove as Important\",\r\n showMessage: true,\r\n folderMails: state.folderMails.map((mail) =>\r\n mail.id === action.payload.id ? action.payload : mail\r\n ),\r\n };\r\n }\r\n case ON_LABEL_MENU_ITEM_SELECT: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n if (mail.selected && mail.folder === state.selectedFolder) {\r\n if (mail.labels.includes(action.payload.id)) {\r\n mail.labels.splice(mail.labels.indexOf(action.payload.id), 1);\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n currentMail.labels = mail.labels;\r\n }\r\n return { ...mail, labels: mail.labels };\r\n } else {\r\n mail.labels = mail.labels.concat(action.payload.id);\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n currentMail.labels = mail.labels;\r\n }\r\n return { ...mail, labels: mail.labels };\r\n }\r\n } else {\r\n return mail;\r\n }\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Label Updated Successfully\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PROCESS_STATE_CHANGE: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n const labelSelected = action.payload[0].id;\r\n\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n if (mail.labels.includes(labelSelected)) {\r\n mail.labels.splice(mail.labels.indexOf(labelSelected), 1);\r\n currentMail.labels = mail.labels;\r\n } else {\r\n mail.labels = mail.labels.concat(labelSelected);\r\n currentMail.labels = mail.labels;\r\n }\r\n\r\n const stateSelected = action.payload[0].id;\r\n if (!mail.states.includes(stateSelected)) {\r\n mail.states = mail.states.concat(stateSelected);\r\n currentMail.states = mail.states;\r\n }\r\n\r\n return { ...mail, labels: mail.labels, states: mail.states };\r\n } else {\r\n return mail;\r\n }\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Operación exitosa\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PATIENT_CONTACT_SAVE: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n mail.from.name = action.payload.name ?? mail.from.name;\r\n mail.from.lastname = action.payload.lastname ?? mail.from.lastname;\r\n mail.hasPatient = action.payload.hasPatient ?? mail.hasPatient;\r\n mail.date = action.payload.date ?? mail.date;\r\n mail.folder = action.payload.folder ?? mail.folder;\r\n }\r\n return { ...mail };\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n alertMessage: \"Operación exitosa\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case ON_LABEL_SELECT: {\r\n return { ...state, labelMenuState: !state.labelMenuState };\r\n }\r\n case ON_MAIL_CHECKED: {\r\n action.payload.selected = !action.payload.selected;\r\n let selectedMail = 0;\r\n const mails = state.folderMails.map((mail) => {\r\n if (mail.selected) {\r\n selectedMail++;\r\n }\r\n if (mail.id === action.payload.id) {\r\n if (mail.selected) {\r\n selectedMail++;\r\n }\r\n return action.payload;\r\n } else {\r\n return mail;\r\n }\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n folderMails: mails,\r\n };\r\n }\r\n\r\n case ON_MAIL_SELECT: {\r\n return {\r\n ...state,\r\n loader: true,\r\n currentMail: action.payload,\r\n };\r\n }\r\n case ON_MAIL_SEND: {\r\n return {\r\n ...state,\r\n alertMessage: \"Mail Sent Successfully\",\r\n showMessage: true,\r\n folderMails: state.allMail.concat(action.payload),\r\n allMail: state.allMail.concat(action.payload),\r\n };\r\n }\r\n case ON_OPTION_MENU_SELECT: {\r\n return { ...state, optionMenuState: !state.optionMenuState };\r\n }\r\n case GET_NAV_FOLDER: {\r\n const filterMails = state.allMail.filter(\r\n (mail) => mail.folder === action.payload.id\r\n );\r\n return {\r\n ...state,\r\n selectedFolder: action.payload.id,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n currentMail: null,\r\n loader: true,\r\n folderMails: filterMails,\r\n };\r\n }\r\n\r\n case ON_START_SELECT: {\r\n action.payload.starred = !action.payload.starred;\r\n return {\r\n ...state,\r\n alertMessage: action.payload.starred\r\n ? \"Mail Mark as Star\"\r\n : \"Mail Remove as Star\",\r\n showMessage: true,\r\n folderMails: state.folderMails.map((mail) =>\r\n mail.id === action.payload.id ? action.payload : mail\r\n ),\r\n };\r\n }\r\n\r\n case SEARCH_MAIL: {\r\n if (action.payload === \"\") {\r\n return {\r\n ...state,\r\n folderMails: state.allMail.filter((mail) => !mail.deleted),\r\n };\r\n } else {\r\n const searchMails = state.allMail.filter(\r\n (mail) =>\r\n !mail.deleted &&\r\n mail.subject.toLowerCase().indexOf(action.payload.toLowerCase()) >\r\n -1\r\n );\r\n return {\r\n ...state,\r\n folderMails: searchMails,\r\n };\r\n }\r\n }\r\n\r\n case UPDATE_SEARCH: {\r\n return { ...state, searchMail: action.payload };\r\n }\r\n case ON_HIDE_LOADER: {\r\n return { ...state, loader: false };\r\n }\r\n case ON_TOGGLE_DRAWER: {\r\n return { ...state, drawerState: !state.drawerState };\r\n }\r\n case SET_CURRENT_MAIL_NULL: {\r\n return { ...state, currentMail: null };\r\n }\r\n case ON_DELETE_MAIL: {\r\n const mails = state.allMail.map((mail) =>\r\n mail.selected && mail.folder === state.selectedFolder\r\n ? { ...mail, folder: 4, selected: false }\r\n : mail\r\n );\r\n\r\n return {\r\n ...state,\r\n alertMessage: \"Mail Deleted Successfully\",\r\n showMessage: true,\r\n selectedMails: 0,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case ON_COMPOSE_MAIL: {\r\n return { ...state, composeMail: true };\r\n }\r\n case SHOW_MESSAGE: {\r\n return {\r\n ...state,\r\n alertMessage: action.payload,\r\n showMessage: true,\r\n loader: false,\r\n };\r\n }\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","import {\r\n HIDE_MESSAGE,\r\n INIT_URL,\r\n ON_HIDE_LOADER,\r\n ON_SHOW_LOADER,\r\n SHOW_MESSAGE,\r\n SIGNIN_USER_SUCCESS,\r\n SIGNOUT_USER_SUCCESS,\r\n} from \"constants/ActionTypes\";\r\n\r\nconst INIT_STATE = {\r\n loader: false,\r\n alertMessage: \"\",\r\n showMessage: false,\r\n initURL: \"\",\r\n authUser: localStorage.getItem(\"user_id\"),\r\n userInfo: {},\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case SIGNIN_USER_SUCCESS: {\r\n return {\r\n ...state,\r\n loader: false,\r\n authUser: action.payload.authUser,\r\n userInfo: action.payload.userInfo\r\n };\r\n }\r\n case INIT_URL: {\r\n return {\r\n ...state,\r\n initURL: action.payload,\r\n };\r\n }\r\n case SIGNOUT_USER_SUCCESS: {\r\n localStorage.removeItem(\"user_role\");\r\n return {\r\n ...state,\r\n authUser: null,\r\n userInfo: null,\r\n loader: false,\r\n };\r\n }\r\n\r\n case SHOW_MESSAGE: {\r\n return {\r\n ...state,\r\n alertMessage: action.payload,\r\n showMessage: true,\r\n loader: false,\r\n };\r\n }\r\n case HIDE_MESSAGE: {\r\n return {\r\n ...state,\r\n alertMessage: \"\",\r\n showMessage: false,\r\n loader: false,\r\n };\r\n } \r\n case ON_SHOW_LOADER: {\r\n return {\r\n ...state,\r\n loader: true,\r\n };\r\n }\r\n case ON_HIDE_LOADER: {\r\n return {\r\n ...state,\r\n loader: false,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n};\r\n","import React from \"react\";\r\n\r\nexport default [\r\n //NUEVOS\r\n {\r\n //NUEVOS\r\n id: \"15453ba243baa5daaf\",\r\n hasPatient: false,\r\n time: \"2020/07/13\",\r\n from: {\r\n name: \"M.\",\r\n lastname: \"L.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n julia.ramirez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5],\r\n states: [],\r\n selected: false,\r\n folder: 0,\r\n },\r\n {\r\n id: \"153basd553baa5daaf\",\r\n hasPatient: false,\r\n time: \"2020/07/13\",\r\n from: {\r\n name: \"S.\",\r\n lastname: \"R.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n julia.ramirez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5],\r\n states: [],\r\n selected: false,\r\n folder: 0,\r\n },\r\n {\r\n id: \"dasda42423ss\",\r\n hasPatient: false,\r\n time: \"2020/07/17\",\r\n from: {\r\n name: \"J.\",\r\n lastname: \"O.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n contactList: [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n julia.ramirez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n ],\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6],\r\n states: [],\r\n selected: false,\r\n folder: 0,\r\n },\r\n // En tramite\r\n {\r\n id: \"dasda42ddas4423ss\",\r\n hasPatient: false,\r\n time: \"2020/07/10\",\r\n from: {\r\n name: \"P.\",\r\n lastname: \"R.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 7],\r\n states: [],\r\n selected: false,\r\n folder: 1,\r\n },\r\n {\r\n id: \"dasda4hhhr4as4423ss\",\r\n hasPatient: false,\r\n time: \"2020/07/13\",\r\n from: {\r\n name: \"M.\",\r\n lastname: \"G.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 4],\r\n states: [],\r\n selected: false,\r\n folder: 1,\r\n },\r\n {\r\n id: \"dasda4hhhr4as4423ss\",\r\n hasPatient: false,\r\n time: \"2020/07/16\",\r\n from: {\r\n name: \"J.\",\r\n lastname: \"R.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 1],\r\n states: [],\r\n selected: false,\r\n folder: 1,\r\n },\r\n // Suspendidos/Fallecidos\r\n {\r\n id: \"dasda4h454as4423ss\",\r\n hasPatient: false,\r\n time: \"2020/07/10\",\r\n from: {\r\n name: \"L.\",\r\n lastname: \"D.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 11],\r\n states: [],\r\n selected: false,\r\n folder: 2,\r\n },\r\n {\r\n id: \"aja8nbnd\",\r\n hasPatient: false,\r\n time: \"2020/07/15\",\r\n from: {\r\n name: \"I.\",\r\n lastname: \"A.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [6, 10],\r\n states: [],\r\n selected: false,\r\n folder: 2,\r\n },\r\n {\r\n id: \"aja8nbndd3d\",\r\n hasPatient: false,\r\n time: \"2020/07/21\",\r\n from: {\r\n name: \"S.\",\r\n lastname: \"P.\",\r\n avatar: \"\",\r\n email: \"julia.ramirez@outlook.com\",\r\n doctorName: \"A M\",\r\n },\r\n to: [\r\n {\r\n name: \"me\",\r\n email: \"robert.johnson@example.com\",\r\n },\r\n ],\r\n subject: \"Evento adverso\",\r\n date: \"\",\r\n message: \"\",\r\n read: true,\r\n starred: false,\r\n important: false,\r\n hasAttachments: false,\r\n labels: [5, 10],\r\n states: [],\r\n selected: false,\r\n folder: 2,\r\n },\r\n];\r\n","import {\r\n PHARMA_FETCH_ALL_MAIL_SUCCESS,\r\n PHARMA_GET_ALL_MAIL,\r\n PHARMA_GET_IMPORTANT_MAIL,\r\n PHARMA_GET_NAV_FILTERS,\r\n PHARMA_GET_NAV_FOLDER,\r\n PHARMA_GET_NAV_LABELS,\r\n PHARMA_GET_READ_MAIL,\r\n PHARMA_GET_STARRED_MAIL,\r\n PHARMA_GET_UNIMPORTANT_MAIL,\r\n PHARMA_GET_UNREAD_MAIL,\r\n PHARMA_GET_UNSELECTED_ALL_MAIL,\r\n PHARMA_GET_UNSTARRED_MAIL,\r\n PHARMA_HANDLE_REQUEST_CLOSE,\r\n PHARMA_ON_ALL_MAIL_SELECT,\r\n PHARMA_ON_COMPOSE_MAIL,\r\n PHARMA_ON_DELETE_MAIL,\r\n PHARMA_ON_FOLDER_MENU_ITEM_SELECT,\r\n PHARMA_ON_FOLDER_SELECT,\r\n ON_HIDE_LOADER,\r\n PHARMA_ON_IMPORTANT_SELECT,\r\n PHARMA_ON_LABEL_MENU_ITEM_SELECT,\r\n PHARMA_ON_LABEL_SELECT,\r\n PHARMA_ON_MAIL_CHECKED,\r\n PHARMA_ON_MAIL_SELECT,\r\n PHARMA_ON_MAIL_SEND,\r\n PHARMA_ON_OPTION_MENU_SELECT,\r\n PHARMA_ON_START_SELECT,\r\n ON_TOGGLE_DRAWER,\r\n PHARMA_SEARCH_MAIL,\r\n PHARMA_SET_CURRENT_MAIL_NULL,\r\n SHOW_MESSAGE,\r\n UPDATE_SEARCH,\r\n PHARMA_FETCH_ALL_MAIL,\r\n PHARMA_PROCESS_STATE_CHANGE,\r\n PHARMA_PATIENT_CONTACT_SAVE,\r\n} from \"constants/ActionTypes\";\r\nimport mails from \"app/routes/psp/managepharma/data/mails\";\r\n\r\nconst INIT_STATE = {\r\n searchMail: \"\",\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"\",\r\n showMessage: false,\r\n drawerState: false,\r\n anchorEl: null,\r\n // allMail: [], only for prod\r\n allMail: mails,\r\n optionName: \"None\",\r\n loader: false,\r\n currentMail: null,\r\n user: {\r\n name: \"Robert Johnson\",\r\n email: \"robert@example.com\",\r\n avatar: \"https://via.placeholder.com/150x150\",\r\n },\r\n selectedMails: 0,\r\n selectedFolder: 0,\r\n composeMail: false,\r\n labelMenuState: false,\r\n folderMenuState: false,\r\n optionMenuState: false,\r\n // folderMails: [], //only for prod\r\n folderMails: mails.filter((mail) => mail.folder === 0),\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case PHARMA_GET_ALL_MAIL: {\r\n let mails = state.allMail.map((mail) =>\r\n mail.folder === state.selectedFolder\r\n ? {\r\n ...mail,\r\n selected: true,\r\n }\r\n : mail\r\n );\r\n return {\r\n ...state,\r\n selectedMails: mails.length,\r\n optionName: \"All\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n loader: false,\r\n };\r\n }\r\n case PHARMA_FETCH_ALL_MAIL: {\r\n return {\r\n ...state,\r\n loader: false,\r\n folderMails: state.allMail.filter((mail) => mail.folder === 0),\r\n };\r\n }\r\n case PHARMA_FETCH_ALL_MAIL_SUCCESS: {\r\n return {\r\n ...state,\r\n loader: false,\r\n allMail: action.payload,\r\n folderMails: action.payload.filter((mail) => mail.folder === 0),\r\n };\r\n }\r\n case PHARMA_GET_IMPORTANT_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.important) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n optionName: \"Important\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_NAV_FILTERS: {\r\n console.log(\"-----------\", action.payload);\r\n const filterMails = state.allMail.filter((mail) => {\r\n if (action.payload.id === 0 && mail.starred) {\r\n return mail;\r\n } else if (action.payload.id === 1 && mail.important) {\r\n return mail;\r\n } else return null;\r\n });\r\n //console.log(\"-----------\", filterMails);\r\n return {\r\n ...state,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n loader: true,\r\n folderMails: filterMails,\r\n };\r\n }\r\n case PHARMA_ON_FOLDER_SELECT: {\r\n return { ...state, folderMenuState: !state.folderMenuState };\r\n }\r\n case PHARMA_GET_NAV_LABELS: {\r\n const filterMails = state.allMail.filter((mail) =>\r\n mail.labels.includes(action.payload.id)\r\n );\r\n return {\r\n ...state,\r\n loader: true,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n folderMails: filterMails,\r\n };\r\n }\r\n case PHARMA_GET_READ_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.read) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Read\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_STARRED_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (mail.starred) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Stared\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_UNIMPORTANT_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.important) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Unimportant\",\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_UNREAD_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.read) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n allMail: mails,\r\n optionName: \"Unread\",\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_UNSELECTED_ALL_MAIL: {\r\n let mails = state.allMail.map((mail) =>\r\n mail.folder === state.selectedFolder\r\n ? {\r\n ...mail,\r\n selected: false,\r\n }\r\n : mail\r\n );\r\n return {\r\n ...state,\r\n selectedMails: 0,\r\n optionName: \"None\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_GET_UNSTARRED_MAIL: {\r\n let selectedMail = 0;\r\n let mails = state.allMail.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n );\r\n mails = mails.map((mail) => {\r\n if (!mail.starred) {\r\n selectedMail++;\r\n return { ...mail, selected: true };\r\n }\r\n return { ...mail, selected: false };\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n optionName: \"UnStarred\",\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_HANDLE_REQUEST_CLOSE: {\r\n return {\r\n ...state,\r\n composeMail: false,\r\n showMessage: false,\r\n folderMenuState: false,\r\n labelMenuState: false,\r\n optionMenuState: false,\r\n };\r\n }\r\n case PHARMA_ON_ALL_MAIL_SELECT: {\r\n return { ...state };\r\n }\r\n case PHARMA_ON_FOLDER_MENU_ITEM_SELECT: {\r\n const mails = state.allMail.map((mail) =>\r\n mail.selected && mail.folder === state.selectedFolder\r\n ? { ...mail, folder: action.payload, selected: false }\r\n : mail\r\n );\r\n\r\n return {\r\n ...state,\r\n selectedMails: 0,\r\n allMail: mails,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Mail has been moved successfully\",\r\n showMessage: true,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_ON_IMPORTANT_SELECT: {\r\n action.payload.important = !action.payload.important;\r\n return {\r\n ...state,\r\n alertMessage: action.payload.important\r\n ? \"Mail Mark as Important\"\r\n : \"Mail Remove as Important\",\r\n showMessage: true,\r\n folderMails: state.folderMails.map((mail) =>\r\n mail.id === action.payload.id ? action.payload : mail\r\n ),\r\n };\r\n }\r\n case PHARMA_ON_LABEL_MENU_ITEM_SELECT: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n if (mail.selected && mail.folder === state.selectedFolder) {\r\n console.log(\"selected\", currentMail);\r\n if (mail.labels.includes(action.payload.id)) {\r\n mail.labels.splice(mail.labels.indexOf(action.payload.id), 1);\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n currentMail.labels = mail.labels;\r\n }\r\n return { ...mail, labels: mail.labels };\r\n } else {\r\n mail.labels = mail.labels.concat(action.payload.id);\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n currentMail.labels = mail.labels;\r\n }\r\n return { ...mail, labels: mail.labels };\r\n }\r\n } else {\r\n return mail;\r\n }\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Label Updated Successfully\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_PROCESS_STATE_CHANGE: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n const labelSelected = action.payload[0].id;\r\n\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n if (mail.labels.includes(labelSelected)) {\r\n mail.labels.splice(mail.labels.indexOf(labelSelected), 1);\r\n currentMail.labels = mail.labels;\r\n } else {\r\n mail.labels = mail.labels.concat(labelSelected);\r\n currentMail.labels = mail.labels;\r\n }\r\n\r\n const stateSelected = action.payload[0].id;\r\n if (!mail.states.includes(stateSelected)) {\r\n mail.states = mail.states.concat(stateSelected);\r\n currentMail.states = mail.states;\r\n }\r\n\r\n return { ...mail, labels: mail.labels, states: mail.states };\r\n } else {\r\n return mail;\r\n }\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n alertMessage: \"Operación exitosa\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_PATIENT_CONTACT_SAVE: {\r\n let currentMail = state.currentMail;\r\n const mails = state.allMail.map((mail) => {\r\n if (currentMail !== null && mail.id === currentMail.id) {\r\n mail.from.name = action.payload.name ?? mail.from.name;\r\n mail.from.lastname = action.payload.lastname ?? mail.from.lastname;\r\n mail.hasPatient = action.payload.hasPatient ?? mail.hasPatient;\r\n mail.date = action.payload.date ?? mail.date;\r\n mail.folder = action.payload.folder ?? mail.folder;\r\n }\r\n return { ...mail };\r\n });\r\n\r\n return {\r\n ...state,\r\n currentMail: currentMail,\r\n alertMessage: \"Operación exitosa\",\r\n showMessage: true,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_ON_LABEL_SELECT: {\r\n return { ...state, labelMenuState: !state.labelMenuState };\r\n }\r\n case PHARMA_ON_MAIL_CHECKED: {\r\n action.payload.selected = !action.payload.selected;\r\n let selectedMail = 0;\r\n const mails = state.folderMails.map((mail) => {\r\n if (mail.selected) {\r\n selectedMail++;\r\n }\r\n if (mail.id === action.payload.id) {\r\n if (mail.selected) {\r\n selectedMail++;\r\n }\r\n return action.payload;\r\n } else {\r\n return mail;\r\n }\r\n });\r\n return {\r\n ...state,\r\n selectedMails: selectedMail,\r\n folderMails: mails,\r\n };\r\n }\r\n\r\n case PHARMA_ON_MAIL_SELECT: {\r\n return {\r\n ...state,\r\n loader: true,\r\n currentMail: action.payload,\r\n };\r\n }\r\n case PHARMA_ON_MAIL_SEND: {\r\n return {\r\n ...state,\r\n alertMessage: \"Mail Sent Successfully\",\r\n showMessage: true,\r\n folderMails: state.allMail.concat(action.payload),\r\n allMail: state.allMail.concat(action.payload),\r\n };\r\n }\r\n case PHARMA_ON_OPTION_MENU_SELECT: {\r\n return { ...state, optionMenuState: !state.optionMenuState };\r\n }\r\n case PHARMA_GET_NAV_FOLDER: {\r\n const filterMails = state.allMail.filter(\r\n (mail) => mail.folder === action.payload.id\r\n );\r\n return {\r\n ...state,\r\n selectedFolder: action.payload.id,\r\n noContentFoundMessage: \"No hay pacientes en este espacio\",\r\n currentMail: null,\r\n loader: true,\r\n folderMails: filterMails,\r\n };\r\n }\r\n\r\n case PHARMA_ON_START_SELECT: {\r\n action.payload.starred = !action.payload.starred;\r\n return {\r\n ...state,\r\n alertMessage: action.payload.starred\r\n ? \"Mail Mark as Star\"\r\n : \"Mail Remove as Star\",\r\n showMessage: true,\r\n folderMails: state.folderMails.map((mail) =>\r\n mail.id === action.payload.id ? action.payload : mail\r\n ),\r\n };\r\n }\r\n\r\n case PHARMA_SEARCH_MAIL: {\r\n if (action.payload === \"\") {\r\n return {\r\n ...state,\r\n folderMails: state.allMail.filter((mail) => !mail.deleted),\r\n };\r\n } else {\r\n const searchMails = state.allMail.filter(\r\n (mail) =>\r\n !mail.deleted &&\r\n mail.subject.toLowerCase().indexOf(action.payload.toLowerCase()) >\r\n -1\r\n );\r\n return {\r\n ...state,\r\n folderMails: searchMails,\r\n };\r\n }\r\n }\r\n\r\n case UPDATE_SEARCH: {\r\n return { ...state, searchMail: action.payload };\r\n }\r\n case ON_HIDE_LOADER: {\r\n return { ...state, loader: false };\r\n }\r\n case ON_TOGGLE_DRAWER: {\r\n return { ...state, drawerState: !state.drawerState };\r\n }\r\n case PHARMA_SET_CURRENT_MAIL_NULL: {\r\n return { ...state, currentMail: null };\r\n }\r\n case PHARMA_ON_DELETE_MAIL: {\r\n const mails = state.allMail.map((mail) =>\r\n mail.selected && mail.folder === state.selectedFolder\r\n ? { ...mail, folder: 4, selected: false }\r\n : mail\r\n );\r\n\r\n return {\r\n ...state,\r\n alertMessage: \"Mail Deleted Successfully\",\r\n showMessage: true,\r\n selectedMails: 0,\r\n allMail: mails,\r\n folderMails: mails.filter(\r\n (mail) => mail.folder === state.selectedFolder\r\n ),\r\n };\r\n }\r\n case PHARMA_ON_COMPOSE_MAIL: {\r\n return { ...state, composeMail: true };\r\n }\r\n case SHOW_MESSAGE: {\r\n return {\r\n ...state,\r\n alertMessage: action.payload,\r\n showMessage: true,\r\n loader: false,\r\n };\r\n }\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","import {\r\n SET_PRESCRIPTION_ID,\r\n } from \"constants/ActionTypes\";\r\n\r\n const INIT_STATE = {\r\n prescriptionId:7,\r\n };\r\n\r\n export default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case SET_PRESCRIPTION_ID: {\r\n return {\r\n ...state,\r\n prescriptionId: action.payload,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n };\r\n ","import {\r\n CURRENT_MENU_ITEM_ID,\r\n ON_HIDE_LOADER,\r\n ON_TOGGLE_DRAWER,\r\n MANAGE_SEARCH_PRESCRIPTIONS,\r\n LOAD_MANAGE_MODULE,\r\n SELECT_PRODUCT_LINE,\r\n SELECT_PRESCRIPTION_STATE,\r\n SET_PRESCRIPTION_STATE,\r\n LOAD_PRESCRIPTIONS,\r\n SELECT_PRESCRIPTION,\r\n SET_LOADER_MANAGE_MODULE,\r\n SHOW_ALERT_MESSAGE,\r\n LOAD_PATIENT_INFO,\r\n UPDATE_SELECTED_PRESCRIPTION,\r\n REMOVE_SELECTED_PRESCRIPTION,\r\n ADD_PRESCRIPTION_GO_TRACING\r\n } from \"constants/ActionTypes\";\r\n \r\nconst INIT_STATE = {\r\n selectedMenuItem: 0,\r\n loader: false,\r\n drawerState: false,\r\n searchText: \"\",\r\n prescriptionsByMenuItem:[],\r\n prescriptionSearchResult:[],\r\n selectedPrescriptionId:0,\r\n selectedPrescription:null,\r\n productLines:[],\r\n selectedProductLine:-1,\r\n prescriptionStates:[],\r\n selectedPrescriptionState:-1,\r\n alertMessage:null\r\n };\r\n \r\nconst updateStateInPrescriptionList = (state, stateId) => {\r\n const { prescriptionsByMenuItem, selectedPrescription } = state;\r\n let index = prescriptionsByMenuItem.findIndex((x)=> x.id === selectedPrescription.id);\r\n let data = [...prescriptionsByMenuItem];\r\n data[index] = {...data[index], stateId};\r\n return data;\r\n};\r\n\r\nconst updatePatientInPrescriptionList = (state, patient) => {\r\n const { prescriptionsByMenuItem, selectedPrescription } = state;\r\n let index = prescriptionsByMenuItem.findIndex((x)=> x.id === selectedPrescription.id);\r\n let data = [...prescriptionsByMenuItem];\r\n data[index] = {...data[index], patient};\r\n return data;\r\n};\r\n\r\nconst updatePrescriptionInPrescriptionList = (state, prescription) => {\r\n const { prescriptionsByMenuItem, selectedPrescription } = state;\r\n let index = prescriptionsByMenuItem.findIndex((x)=> x.id === selectedPrescription.id);\r\n let data = [...prescriptionsByMenuItem];\r\n data[index] = prescription;\r\n return data;\r\n};\r\n\r\nconst removePrescriptionInPrescriptionList = (state) => {\r\n const { prescriptionsByMenuItem, selectedPrescription } = state;\r\n let index = prescriptionsByMenuItem.findIndex((x)=> x.id === selectedPrescription.id);\r\n let data = [...prescriptionsByMenuItem];\r\n data.splice(index,1);\r\n return data;\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case CURRENT_MENU_ITEM_ID: {\r\n return { ...state, \r\n selectedMenuItem: action.payload.menuItemId\r\n };\r\n }\r\n case ON_HIDE_LOADER: {\r\n return { ...state, loader: false };\r\n }\r\n case ON_TOGGLE_DRAWER: {\r\n return { ...state, drawerState: !state.drawerState };\r\n }\r\n case MANAGE_SEARCH_PRESCRIPTIONS: {\r\n // let result = state.prescriptionsByMenuItem;\r\n\r\n // if (action.payload && action.payload !== \"\") {\r\n // const text = action.payload.toLowerCase();\r\n // result = result.filter((item) => item.doctor.name.toLowerCase().indexOf(text) > -1 \r\n // && item.productLineName.toLowerCase().indexOf(text) > -1\r\n // && (item.patientName && item.patientName.toLowerCase().indexOf(text) > -1)\r\n // && (item.patientCode && item.patientCode.toLowerCase().indexOf(text) > -1)\r\n // );\r\n // }\r\n \r\n // return {\r\n // ...state,\r\n // searchText: action.payload,\r\n // prescriptionSearchResult: result,\r\n // };\r\n return { ...state, searchText: action.payload };\r\n }\r\n case LOAD_MANAGE_MODULE: {\r\n return { ...state, \r\n productLines: action.payload.productLines,\r\n prescriptionStates: action.payload.prescriptionStates\r\n };\r\n }\r\n case SELECT_PRODUCT_LINE: {\r\n return { ...state, selectedProductLine: state.selectedProductLine === action.payload ? -1 : action.payload };\r\n }\r\n case SELECT_PRESCRIPTION_STATE: {\r\n return { ...state, selectedPrescriptionState: state.selectedPrescriptionState === action.payload ? -1 : action.payload };\r\n }\r\n case SET_PRESCRIPTION_STATE: {\r\n const newArray = updateStateInPrescriptionList(state, action.payload);\r\n return { ...state, prescriptionsByMenuItem: newArray, selectedPrescription: { ...state.selectedPrescription, stateId: action.payload }};\r\n }\r\n case LOAD_PRESCRIPTIONS: {\r\n return { ...state, \r\n prescriptionsByMenuItem: action.payload.prescriptions,\r\n selectedMenuItem: action.payload.menuItemId,\r\n //selectedPrescriptionId: 0\r\n };\r\n }\r\n case SELECT_PRESCRIPTION: {\r\n // return { ...state, selectedPrescription: { doctor: action.payload.doctor, patient: action.payload.patient, ...action.payload } };\r\n return { ...state, selectedPrescription: action.payload };\r\n }\r\n case SET_LOADER_MANAGE_MODULE: {\r\n return { ...state, loader: action.payload };\r\n }\r\n case SHOW_ALERT_MESSAGE: {\r\n return { ...state, alertMessage: action.payload.message, alertType: action.payload.alertType };\r\n }\r\n case LOAD_PATIENT_INFO: {\r\n const newArray = updatePatientInPrescriptionList(state, action.payload);\r\n return { ...state, prescriptionsByMenuItem: newArray, selectedPrescription: { ...state.selectedPrescription, patient: action.payload }};\r\n }\r\n case UPDATE_SELECTED_PRESCRIPTION: {\r\n const newArray = updatePrescriptionInPrescriptionList(state, action.payload);\r\n return { ...state, prescriptionsByMenuItem: newArray, selectedPrescription: action.payload};\r\n }\r\n case REMOVE_SELECTED_PRESCRIPTION: {\r\n const newArray = removePrescriptionInPrescriptionList(state);\r\n return { ...state, prescriptionsByMenuItem: newArray, selectedPrescription: null};\r\n }\r\n case ADD_PRESCRIPTION_GO_TRACING: {\r\n const { prescription, menuItemId } = action.payload;\r\n const newArray = updatePrescriptionInPrescriptionList(state, prescription);\r\n return { ...state, prescriptionsByMenuItem: newArray, selectedPrescription: prescription, selectedMenuItem: menuItemId};\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n };\r\n ","import {\r\n LOAD_NEW_PATIENTS,\r\n LOAD_HOME\r\n } from \"constants/ActionTypes\";\r\n \r\nconst INIT_STATE = {\r\n newPatients:[],\r\n productLines:[],\r\n prescriptionStates:[],\r\n };\r\n \r\n\r\n export default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case LOAD_NEW_PATIENTS: {\r\n return { ...state, newPatients: action.payload };\r\n }\r\n case LOAD_HOME: {\r\n return { ...state, \r\n productLines: action.payload.productLines,\r\n prescriptionStates: action.payload.prescriptionStates\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n };\r\n ","import {\r\n SET_CONSENT_PATH,\r\n SET_CONSENT_URL,\r\n LOAD_INFO_IMPACT,\r\n SET_IMPACT_START_DATE,\r\n SET_CLINICAL_HISTORY_STATE,\r\n SET_FORM_FORMULA_DONE,\r\n SET_FORMULA_MEDICINE_QUANTITY,\r\n ON_START_IMPACT,\r\n CALL_RELOAD_ALERTS,\r\n CALL_RELOAD_PATIENT_DATA,\r\n CALL_RELOAD_CONSUMPTION_TRACING,\r\n SET_HISTORY_DATA, /* ================ */\r\n SET_HEALTH_DATA,\r\n SET_RELOAD_DOSAGE,\r\n } from \"constants/ActionTypes\";\r\n \r\nconst INIT_STATE = {\r\n consentPath: null,\r\n consentSigned: false,\r\n patientFullName: null,\r\n referralConsentFile: null,\r\n impactStartDate: null,\r\n impactEndDate: null,\r\n expeditionDateFormula: null,\r\n clinicalHistoryStateDone: false,\r\n startImpact:false,\r\n //file clinic history variableGroupId\r\n fileCHVariableGroupId: 0,\r\n reloadAlerts:false,\r\n reloadPatientData:false,\r\n reloadConsumptionTracing:false,\r\n isCIRequired: false,\r\n ciDisplayable: null,\r\n historyData : false, /* ================ */\r\n audioUrl: null,\r\n medicineQuantity: null,\r\n healthData: null,\r\n reloadDosageInfo: false,\r\n };\r\n \r\nexport default (state = INIT_STATE, {type, payload}) => {\r\n switch (type) {\r\n case SET_CONSENT_PATH: {\r\n const consentSigned = payload || state.audioUrl ? true : false;\r\n return { ...state, \r\n consentPath: payload,\r\n audioUrl: null,\r\n consentSigned: consentSigned\r\n };\r\n }\r\n case SET_CONSENT_URL: {\r\n const consentSigned = payload || state.consentPath ? true : false;\r\n return { ...state, \r\n audioUrl: payload,\r\n consentPath: null,\r\n consentSigned: consentSigned\r\n };\r\n }\r\n case LOAD_INFO_IMPACT: {\r\n const consentSigned = payload.audioUrl || payload.consentPath ? true : false;\r\n return { ...state, ...payload, consentSigned: consentSigned };\r\n }\r\n case SET_IMPACT_START_DATE: {\r\n return { ...state, \r\n impactStartDate: payload,\r\n };\r\n }\r\n case SET_CLINICAL_HISTORY_STATE: {\r\n return { ...state, clinicalHistoryStateDone: payload};\r\n }\r\n case SET_HISTORY_DATA: { /* ================ */\r\n return { ...state, historyData: payload};\r\n }\r\n case SET_FORM_FORMULA_DONE: {\r\n return { ...state, expeditionDateFormula: payload};\r\n }\r\n case SET_FORMULA_MEDICINE_QUANTITY: {\r\n return { ...state, medicineQuantity: payload};\r\n }\r\n case ON_START_IMPACT: {\r\n return { ...state, startImpact: payload};\r\n }\r\n case CALL_RELOAD_ALERTS: {\r\n return { ...state, reloadAlerts: payload};\r\n }\r\n case CALL_RELOAD_PATIENT_DATA: {\r\n return { ...state, reloadPatientData: payload};\r\n }\r\n case CALL_RELOAD_CONSUMPTION_TRACING: {\r\n return { ...state, reloadConsumptionTracing: payload};\r\n }\r\n case SET_HEALTH_DATA: {\r\n return { ...state, healthData: payload};\r\n }\r\n case SET_RELOAD_DOSAGE: {\r\n return { ...state, reloadDosageInfo: payload};\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n};\r\n ","import {\r\n INSTITUTION_SET_CI_INFO\r\n } from \"constants/ActionTypes\";\r\n \r\nconst INIT_STATE = {\r\n ciInstitution: null, \r\n ciSignedDocument: null,\r\n };\r\n \r\nexport default (state = INIT_STATE, {type, payload}) => {\r\n switch (type) {\r\n case INSTITUTION_SET_CI_INFO: {\r\n return { ...state, \r\n ciInstitution: payload.ciInstitution,\r\n ciSignedDocument: payload.ciSignedDocument\r\n };\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n};","const API_URL = process.env.REACT_APP_API_URL;\r\n\r\nfunction getTokenInfo(){\r\n var userInfo = localStorage.getItem(\"userInfo\");\r\n if(userInfo){\r\n userInfo = JSON.parse(userInfo);\r\n return { token : userInfo.token, refreshToken : userInfo.refreshToken};\r\n }\r\n return { token : \"\", refreshToken : \"\"};\r\n}\r\n\r\nfunction post(uri, data) {\r\n const { token } = getTokenInfo();\r\n\r\n return fetch(uri, {\r\n method: \"POST\",\r\n body: data,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `bearer ${token}`,\r\n },\r\n }).then((response) => response.json());\r\n}\r\n\r\nfunction get(uri, data) {\r\n const { token } = getTokenInfo();\r\n\r\n return fetch(uri, {\r\n method: \"GET\",\r\n body: data,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `bearer ${token}`,\r\n },\r\n }).then((response) => response.json());\r\n}\r\n\r\nexport function getToken(username, password) {\r\n const uri = `${API_URL}/Token/`;\r\n\r\n return fetch(uri, {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n username,\r\n password,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n }).then((response) => response.json());\r\n}\r\n\r\nexport function relogin(username) {\r\n const uri = `${API_URL}/Relogin/`;\r\n return post(uri, JSON.stringify({ username }));\r\n}\r\n\r\nexport function changePassword(oldPassword, newPassword) {\r\n const uri = `${API_URL}/changepassword`;\r\n return fetch(uri, {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n oldPassword,\r\n newPassword,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n }).then((response) => response.json());\r\n}\r\n\r\nexport function revokeToken() {\r\n const uri = `${API_URL}/Token/revoke`;\r\n return post(uri);\r\n}\r\n\r\nexport function getPatients() {\r\n const uri = `${API_URL}/Patient`;\r\n return get(uri);\r\n}\r\n","import {\r\n HIDE_MESSAGE,\r\n INIT_URL,\r\n ON_HIDE_LOADER,\r\n ON_SHOW_LOADER,\r\n SHOW_MESSAGE,\r\n SIGNIN_USER,\r\n SIGNIN_USER_SUCCESS,\r\n SIGNOUT_USER,\r\n SIGNOUT_USER_SUCCESS,\r\n SIGNIN_RELOGIN\r\n} from \"constants/ActionTypes\";\r\n\r\nexport const userSignIn = (user) => {\r\n return {\r\n type: SIGNIN_USER,\r\n payload: user,\r\n };\r\n};\r\n\r\nexport const reloginSignIn = (user) => {\r\n return {\r\n type: SIGNIN_RELOGIN,\r\n payload: user,\r\n };\r\n};\r\n\r\nexport const userSignOut = () => {\r\n return {\r\n type: SIGNOUT_USER,\r\n };\r\n};\r\n\r\nexport const userSignInSuccess = (authUser) => {\r\n return {\r\n type: SIGNIN_USER_SUCCESS,\r\n payload: authUser,\r\n };\r\n};\r\nexport const userSignOutSuccess = () => {\r\n return {\r\n type: SIGNOUT_USER_SUCCESS,\r\n };\r\n};\r\n\r\nexport const showAuthMessage = (message) => {\r\n return {\r\n type: SHOW_MESSAGE,\r\n payload: message,\r\n };\r\n};\r\n\r\n\r\nexport const setInitUrl = (url) => {\r\n return {\r\n type: INIT_URL,\r\n payload: url,\r\n };\r\n};\r\n\r\nexport const showAuthLoader = () => {\r\n return {\r\n type: ON_SHOW_LOADER,\r\n };\r\n};\r\n\r\nexport const hideMessage = () => {\r\n return {\r\n type: HIDE_MESSAGE,\r\n };\r\n};\r\nexport const hideAuthLoader = () => {\r\n return {\r\n type: ON_HIDE_LOADER,\r\n };\r\n};\r\n","import { all, call, fork, put, takeEvery } from \"redux-saga/effects\";\r\nimport { getToken, revokeToken, relogin } from \"../api/api\";\r\n\r\nimport {\r\n SIGNIN_USER,\r\n SIGNOUT_USER,\r\n SIGNIN_RELOGIN\r\n} from \"constants/ActionTypes\";\r\nimport {\r\n showAuthMessage,\r\n userSignInSuccess,\r\n userSignOutSuccess,\r\n} from \"actions/Auth\";\r\n\r\nconst signInUserWithEmailPasswordRequest = async (email, password) =>\r\n await getToken(email, password)\r\n .then((infoAuth) => infoAuth)\r\n .catch((error) => error);\r\n\r\nconst signReloginRequest = async (username) =>\r\n await relogin(username)\r\n .then((infoAuth) => infoAuth)\r\n .catch((error) => error);\r\n\r\nconst signOutRequest = async () =>\r\n await revokeToken()\r\n .then((authUser) => undefined)\r\n .catch((error) => error);\r\n\r\nfunction* signInUserWithEmailPassword({ payload }) {\r\n const { email, password } = payload;\r\n try {\r\n const authInfo = yield call(\r\n signInUserWithEmailPasswordRequest,\r\n email,\r\n password\r\n );\r\n authInfo.userName = authInfo.userName ?? \"User\";\r\n if (authInfo.token) {\r\n localStorage.setItem(\"user_id\", authInfo.userName);\r\n localStorage.setItem(\"userInfo\", JSON.stringify(authInfo));\r\n yield put(\r\n userSignInSuccess({\r\n authUser: authInfo.userName ?? \"User\",\r\n userInfo: authInfo\r\n })\r\n );\r\n } else {\r\n //authInfo.message ? authInfo.message : authInfo.error\r\n yield put(showAuthMessage(\"401\"));\r\n }\r\n } catch (error) {\r\n yield put(showAuthMessage(error));\r\n }\r\n}\r\n\r\nfunction* signInReloginWithEmail({ payload }) {\r\n const { username } = payload;\r\n try {\r\n const authInfo = yield call(\r\n signReloginRequest,\r\n username\r\n );\r\n\r\n if (authInfo.token) {\r\n localStorage.setItem(\"user_id\", authInfo.userName);\r\n localStorage.setItem(\"userInfo\", JSON.stringify(authInfo));\r\n yield put(\r\n userSignInSuccess({\r\n authUser: authInfo.userName,\r\n userInfo: authInfo\r\n })\r\n );\r\n } else {\r\n //authInfo.message ? authInfo.message : authInfo.error\r\n yield put(showAuthMessage(\"401\"));\r\n }\r\n } catch (error) {\r\n yield put(showAuthMessage(error));\r\n }\r\n}\r\n\r\nfunction* signOut() {\r\n try {\r\n const signOutUser = yield call(signOutRequest);\r\n if (signOutUser === undefined) {\r\n localStorage.removeItem(\"user_id\");\r\n localStorage.removeItem(\"userInfo\");\r\n yield put(userSignOutSuccess(signOutUser));\r\n } else {\r\n yield put(showAuthMessage(signOutUser.message));\r\n }\r\n } catch (error) {\r\n yield put(showAuthMessage(error));\r\n }\r\n}\r\n\r\nexport function* signInUser() {\r\n yield takeEvery(SIGNIN_USER, signInUserWithEmailPassword);\r\n}\r\n\r\nexport function* signOutUser() {\r\n yield takeEvery(SIGNOUT_USER, signOut);\r\n}\r\n\r\nexport function* signInRelogin() {\r\n yield takeEvery(SIGNIN_RELOGIN, signInReloginWithEmail);\r\n}\r\n\r\nexport default function* rootSaga() {\r\n yield all([\r\n fork(signInUser),\r\n fork(signOutUser),\r\n fork(signInRelogin),\r\n ]);\r\n}\r\n","import {all} from 'redux-saga/effects';\r\nimport authSagas from './Auth';\r\n\r\nexport default function* rootSaga(getState) {\r\n yield all([\r\n authSagas()\r\n ]);\r\n}\r\n","import {applyMiddleware, compose, createStore} from 'redux';\r\nimport reducers from '../reducers/index';\r\nimport {createBrowserHistory} from 'history'\r\nimport {routerMiddleware} from 'connected-react-router';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport rootSaga from '../sagas/index';\r\n\r\n\r\nconst history = createBrowserHistory();\r\nconst routeMiddleware = routerMiddleware(history);\r\nconst sagaMiddleware = createSagaMiddleware();\r\n\r\nconst middlewares = [sagaMiddleware, routeMiddleware];\r\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n\r\n\r\nexport default function configureStore(initialState) {\r\n const store = createStore(reducers(history), initialState,\r\n composeEnhancers(applyMiddleware(...middlewares)));\r\n\r\n sagaMiddleware.run(rootSaga);\r\n\r\n if (module.hot) {\r\n // Enable Webpack hot module replacement for reducers\r\n module.hot.accept('../reducers/index', () => {\r\n const nextRootReducer = require('../reducers/index');\r\n store.replaceReducer(nextRootReducer);\r\n });\r\n }\r\n return store;\r\n}\r\nexport {history};\r\n","import cyan from '@material-ui/core/colors/cyan';\r\nimport green from '@material-ui/core/colors/green';\r\n\r\nconst baseTheme = {\r\n palette: {\r\n primary: {\r\n light: cyan[300],\r\n main: cyan[500],\r\n dark: cyan[700],\r\n contrastText: '#fff'\r\n },\r\n secondary: {\r\n light: green[300],\r\n main: green['A200'],\r\n dark: green[700],\r\n contrastText: '#fff'\r\n }\r\n },\r\n status: {\r\n danger: 'orange',\r\n },\r\n typography: {\r\n button: {\r\n fontWeight: 400,\r\n textAlign: 'capitalize'\r\n },\r\n },\r\n \r\n};\r\n\r\nexport const genericTheme = {\r\n ...baseTheme,\r\n imgLogin:{\r\n src:require(\"assets/images/logo.png\"),\r\n alt:\"intelcare\",\r\n title:\"intelcare\"\r\n },\r\n pageTitle:'PSP - Intelcare',\r\n footerText:'Intelcare @ '+new Date().getFullYear(),\r\n favicon: \"/favicon.ico\"\r\n};\r\n\r\nexport const spintPlusTheme = {\r\n ...baseTheme,\r\n imgLogin:{\r\n src:require(\"assets/images/logo_spintplus.png\"),\r\n alt:\"Pint Acompaña\",\r\n title:\"Pint Acompaña\"\r\n },\r\n pageTitle:'PSP - PintPharma',\r\n footerText:'PintPharma @ '+new Date().getFullYear(),\r\n favicon: \"/favicon_pint.ico\"\r\n};","import enMessages from '../locales/en_US.json';\r\n\r\nconst EnLang = {\r\n messages: {\r\n ...enMessages\r\n },\r\n locale: 'en-US',\r\n};\r\nexport default EnLang;\r\n","import enLang from './entries/en-US';\r\nimport esLang from './entries/es_ES';\r\n\r\n\r\nconst AppLocale = {\r\n en: enLang,\r\n es: esLang,\r\n};\r\n\r\nexport default AppLocale;\r\n","import saMessages from '../locales/es_ES.json';\r\n\r\nconst saLang = {\r\n messages: {\r\n ...saMessages\r\n },\r\n locale: 'es',\r\n};\r\nexport default saLang;\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst Progress = ({className}) => \r\n{ \r\n const { loader } = useSelector(({ base }) => base);\r\n\r\n return (loader &&
\r\n \r\n \r\n \r\n
)\r\n};\r\nexport default Progress;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport Input from '@material-ui/core/Input';\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport InputAdornment from '@material-ui/core/InputAdornment';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport Button from \"@material-ui/core/Button\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport { hideMessage, showAuthLoader, userSignIn } from \"actions/Auth\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { MdVisibility, MdVisibilityOff } from \"react-icons/md\";\r\n\r\nconst SignIn = (props) => {\r\n const theme = useTheme();\r\n const msgLoginInvalid = IntlGetText(\"login.loginInvalid\");\r\n const [email, setEmail] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [showPassword, setShowPassword] = useState(false);\r\n const dispatch = useDispatch();\r\n const { loader, alertMessage, showMessage, authUser } = useSelector(\r\n ({ auth }) => auth\r\n );\r\n\r\n useEffect(() => {\r\n if (showMessage) {\r\n setTimeout(() => {\r\n dispatch(hideMessage());\r\n }, 100);\r\n }\r\n if (authUser !== null) {\r\n props.history.push(\"/\");\r\n }\r\n }, [showMessage, authUser, props.history, dispatch]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n

\r\n \r\n

\r\n
\r\n\r\n
\r\n
\r\n
\r\n }\r\n fullWidth\r\n onChange={(event) => setEmail(event.target.value)}\r\n defaultValue={email}\r\n margin=\"normal\"\r\n className=\"mt-1 my-sm-3\"\r\n />\r\n }\r\n fullWidth\r\n onChange={(event) => setPassword(event.target.value)}\r\n defaultValue={password}\r\n margin=\"normal\"\r\n className=\"mt-1 my-sm-3\"\r\n endAdornment={\r\n \r\n setShowPassword(!showPassword)}\r\n edge=\"end\"\r\n >\r\n {showPassword ? : }\r\n \r\n \r\n }\r\n />\r\n
\r\n {\r\n dispatch(showAuthLoader());\r\n dispatch(userSignIn({ email, password }));\r\n }}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {loader && (\r\n
\r\n \r\n
\r\n )}\r\n {showMessage &&\r\n NotificationManager.error(\r\n alertMessage === \"401\" ? msgLoginInvalid : alertMessage\r\n )}\r\n {/* */}\r\n
\r\n );\r\n};\r\n\r\nexport default SignIn;\r\n","import React from \"react\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n\r\nlet id = 0;\r\n\r\nfunction createData(date, stage, status) {\r\n id += 1;\r\n return { id, date, stage, status };\r\n}\r\n\r\nconst data = [\r\n createData(\r\n \"2020/05/22\",\r\n
\r\n Formulación\r\n
,\r\n
Aprobado
\r\n ),\r\n createData(\r\n \"2020/06/07\",\r\n
\r\n Radicación EPS\r\n
,\r\n
Aprobado
\r\n ),\r\n createData(\r\n \"2020/06/25\",\r\n
\r\n Autorización\r\n
,\r\n
Aprobado
\r\n ),\r\n createData(\r\n \"2020/07/14\",\r\n
\r\n Radicación OLF\r\n
,\r\n
Pendiente
\r\n ),\r\n createData(\r\n \"-/-/-\",\r\n
Entrega
,\r\n
-
\r\n ),\r\n];\r\n\r\nfunction ManageStatus() {\r\n return (\r\n
\r\n \r\n \r\n \r\n Fecha\r\n Estado\r\n Etapa\r\n \r\n \r\n \r\n {data.map((n) => {\r\n return (\r\n \r\n {n.date}\r\n {n.status}\r\n {n.stage}\r\n \r\n );\r\n })}\r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default ManageStatus;\r\n","import React, { useState } from \"react\";\r\n\r\nimport { Card, CardBody, CardTitle } from \"reactstrap\";\r\n\r\nimport ManageStatus from \"./data\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Input from \"@material-ui/core/Input\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n\r\nconst PatientsTimeline = () => {\r\n const [open, setOpen] = useState(false);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Buscar\r\n \r\n \r\n setOpen(true)}\r\n >\r\n \r\n \r\n \r\n }\r\n />\r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n Seguimiento al proceso del paciente:{\" \"}\r\n Alicia Muñoz Diaz\r\n

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default PatientsTimeline;\r\n","import React from \"react\";\r\n\r\nconst CircularProgress = ({ className }) => (\r\n
\r\n \r\n \r\n \r\n
\r\n);\r\n\r\nexport default CircularProgress;\r\n","import React, {Component} from 'react';\r\nimport Nprogress from 'nprogress';\r\nimport ReactPlaceholder from 'react-placeholder';\r\nimport 'nprogress/nprogress.css';\r\nimport 'react-placeholder/lib/reactPlaceholder.css';\r\nimport CircularProgress from \"../components/CircularProgress/index\";\r\n\r\nexport default function asyncComponent(importComponent) {\r\n class AsyncFunc extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n component: null\r\n };\r\n }\r\n\r\n componentWillMount() {\r\n Nprogress.start();\r\n }\r\n\r\n componentWillUnmount() {\r\n this.mounted = false;\r\n }\r\n\r\n async componentDidMount() {\r\n this.mounted = true;\r\n const {default: Component} = await importComponent();\r\n Nprogress.done();\r\n if (this.mounted) {\r\n this.setState({\r\n component: \r\n });\r\n }\r\n }\r\n\r\n render() {\r\n const Component = this.state.component ||\r\n
\r\n \r\n
;\r\n return (\r\n \r\n {Component}\r\n \r\n );\r\n }\r\n }\r\n\r\n return AsyncFunc;\r\n}\r\n","import React from \"react\";\r\nimport { useTheme } from '@material-ui/core/styles';\r\n\r\nconst Footer = () => {\r\n const theme = useTheme();\r\n return (\r\n
\r\n {theme.footerText}\r\n
\r\n );\r\n};\r\nexport default Footer;\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nconst NotificationItem = ({ notification }) => {\r\n const { icon, title, time } = notification;\r\n return (\r\n
  • \r\n
    \r\n

    {title}

    \r\n {\r\n window.location.href = \"/app/doctor\";\r\n }}\r\n size=\"small\"\r\n className=\"jr-btn jr-btn-xs mb-0\"\r\n >\r\n \r\n {\" \"}\r\n \r\n {time}\r\n \r\n
    \r\n
  • \r\n );\r\n};\r\n\r\nexport default NotificationItem;\r\n","export const notifications = [\r\n {\r\n image: \"https://via.placeholder.com/150x150\",\r\n title: \"La Dra. Julia Ramirez tiene un nuevo paciente para tratamiento\",\r\n time: \"4:10 PM\",\r\n icon: \"zmdi-alert-triangle text-orange\",\r\n },\r\n];\r\n","import React from 'react';\r\n\r\nimport NotificationItem from './NotificationItem';\r\nimport {notifications} from './data';\r\nimport CustomScrollbars from 'util/CustomScrollbars';\r\n\r\nconst AppNotification = () => {\r\n return (\r\n \r\n
      \r\n {notifications.map((notification, index) => )\r\n }\r\n
    \r\n
    \r\n )\r\n};\r\n\r\nexport default AppNotification;\r\n\r\n","import React from \"react\";\r\nimport { RoleEnum, ShardKeyEnum } from \"constants/Enums\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\n\r\nconst menuSuperAdmin = [\r\n {\r\n link: \"/app/relogin\",\r\n name: \"core.Relogin\",\r\n roles: [RoleEnum.superAdmin]\r\n }\r\n];\r\n\r\nconst menuIaluril = [\r\n {\r\n link: \"/app/patientPA\",\r\n name: \"psp.menu.patients\",\r\n roles: [RoleEnum.nurse, RoleEnum.rep, RoleEnum.consultation]\r\n },\r\n {\r\n link: \"/app/impactPlanning\",\r\n name: \"psp.menu.impactPlanning\",\r\n roles: [RoleEnum.nurse, RoleEnum.consultation]\r\n },\r\n {\r\n link: \"/app/patientPA/dashboard\",\r\n name: \"patientPA.dashboard\",\r\n roles: [RoleEnum.nurse, RoleEnum.rep, RoleEnum.consultation]\r\n },\r\n {\r\n link: \"/app/patientPA/clinicalDashboard\",\r\n name: \"patientPA.dashboardClinial\",\r\n roles: [RoleEnum.nurse, RoleEnum.consultation, RoleEnum.kpi_survey]\r\n }\r\n];\r\n\r\nconst genericMenu = [\r\n {\r\n link: \"/app/prescriptions\",\r\n name: \"core.prescriptions\",\r\n roles: [RoleEnum.callAgent, RoleEnum.callAgentManager]\r\n },\r\n {\r\n link: \"/app/dashboard-migration\",\r\n name: \"core.dashboard\",\r\n roles: [RoleEnum.callAgent, RoleEnum.callAgentManager]\r\n },\r\n {\r\n link: \"/app/reportList\",\r\n name: \"menu.reports\",\r\n roles: [RoleEnum.callAgent, RoleEnum.callAgentManager]\r\n },\r\n];\r\n\r\nconst setupMenu = [\r\n {\r\n link: \"/app/home\",\r\n name: \"psp.menu.home\",\r\n roles: [RoleEnum.nurse]\r\n },\r\n {\r\n link: \"/app/dashboardKPI\",\r\n name: \"core.dashboard\",\r\n roles: [RoleEnum.nurse, RoleEnum.psp_manager, RoleEnum.nursemanagerconsultant]\r\n },\r\n {\r\n link: \"/app/management\",\r\n name: \"psp.menu.manage\",\r\n roles: [RoleEnum.nurse, RoleEnum.nurse_procedure]\r\n },\r\n {\r\n link: \"/app/impactPlanning\",\r\n name: \"psp.menu.impactPlanning\",\r\n roles: [RoleEnum.nurse, RoleEnum.nurse_procedure, RoleEnum.psp_manager, RoleEnum.psp_coordinator]\r\n },\r\n {\r\n link: \"/app/patient\",\r\n name: \"psp.menu.patients\",\r\n roles: [RoleEnum.nurse, RoleEnum.psp_manager, RoleEnum.psp_coordinator, RoleEnum.msl, RoleEnum.consultation, RoleEnum.nursemanagerconsultant]\r\n },\r\n {\r\n link: \"/app/reports\",\r\n name: \"menu.reports\",\r\n roles: [RoleEnum.psp_manager, RoleEnum.psp_coordinator, RoleEnum.msl, RoleEnum.patient_assignment]\r\n },\r\n {\r\n link: \"/app/reportsRepKam\",\r\n name: \"menu.reports\",\r\n roles: [RoleEnum.visitor, RoleEnum.kam]\r\n },\r\n {\r\n link: \"/app/patient/management\",\r\n name: \"menu.patientManagement\",\r\n roles: [RoleEnum.psp_manager, RoleEnum.psp_coordinator, RoleEnum.patient_assignment]\r\n },\r\n {\r\n link: \"/app/adverseEvent\",\r\n name: \"psp.menu.adverseEvents\",\r\n roles: [RoleEnum.pharmacovigilance]\r\n },\r\n {\r\n link: \"/app/institutionHome\",\r\n name: \"core.institutions\",\r\n roles: [RoleEnum.institutionManager]\r\n }\r\n];\r\n\r\nconst institutionMenu = [\r\n {\r\n link: \"/app/institutionHome\",\r\n name: \"psp.menu.home\",\r\n roles: [RoleEnum.institutionManager, RoleEnum.institution]\r\n }\r\n];\r\n \r\nconst getMenuByRole = (role, shardKey) =>{\r\n if(shardKey === ShardKeyEnum.ialuril || shardKey === ShardKeyEnum.seranestcr)\r\n return menuIaluril.filter(x=>x.roles.indexOf(role) !== -1);\r\n\r\n if(role === RoleEnum.institution)\r\n return institutionMenu.filter(x=>x.roles.indexOf(role) !== -1); \r\n\r\n if(shardKey === ShardKeyEnum.pintPharma || \r\n shardKey === ShardKeyEnum.ullkupuy || \r\n shardKey === ShardKeyEnum.boidor || \r\n shardKey === ShardKeyEnum.cmedi || \r\n shardKey === ShardKeyEnum.phg || \r\n shardKey === ShardKeyEnum.jaasielvalentech || \r\n shardKey === ShardKeyEnum.sanando || \r\n shardKey === ShardKeyEnum.jaasielmegalabs || \r\n shardKey === ShardKeyEnum.jaasielcipla ||\r\n shardKey === ShardKeyEnum.jaasielsophia ||\r\n shardKey === ShardKeyEnum.jaasielprocaps ||\r\n shardKey === ShardKeyEnum.jaasielgt ||\r\n shardKey === ShardKeyEnum.jaasielhb ||\r\n shardKey === ShardKeyEnum.jaasielaltadis||\r\n shardKey === ShardKeyEnum.akompaname||\r\n shardKey === ShardKeyEnum.jaasielServier ||\r\n shardKey === ShardKeyEnum.atulado ||\r\n shardKey === ShardKeyEnum.operando ||\r\n shardKey === ShardKeyEnum.recordati ||\r\n shardKey === ShardKeyEnum.celltrion ||\r\n shardKey === ShardKeyEnum.uronorte ||\r\n shardKey === ShardKeyEnum.farmaDeColombia\r\n )\r\n return setupMenu.filter(x=>x.roles.indexOf(role) !== -1);\r\n\r\n if(role === RoleEnum.superAdmin)\r\n return menuSuperAdmin.filter(x=>x.roles.indexOf(role) !== -1);\r\n \r\n return genericMenu.filter(x=>x.roles.indexOf(role) !== -1);\r\n}\r\n\r\nconst isRole = (userInfo, role) => userInfo.roles.indexOf(role) !== -1;\r\n\r\nexport const getMenuItems = (userInfo) => {\r\n let menu = [];\r\n if(!userInfo)\r\n return menu;\r\n \r\n userInfo.roles.map(x=>{\r\n menu = menu.concat(getMenuByRole(x,userInfo.shardKey));\r\n });\r\n\r\n const uniqueLinks = menu.map(item => item.link)\r\n .filter((value, index, self) => self.indexOf(value) === index);\r\n\r\n const result = uniqueLinks.map(x=>menu.find(y=>y.link===x));\r\n return result;\r\n}\r\n\r\nexport const getInitURL =(userInfo)=>{\r\n if(isRole(userInfo, RoleEnum.nurse_procedure))\r\n return \"/app/management\";\r\n\r\n if(userInfo.shardKey === ShardKeyEnum.ialuril || userInfo.shardKey === ShardKeyEnum.seranestcr){\r\n if(isRole(userInfo, RoleEnum.kpi_survey))\r\n return \"/app/patientPA/clinicalDashboard\";\r\n return \"/app/patientPA\";\r\n }\r\n else if(isRole(userInfo, RoleEnum.superAdmin))\r\n return \"/app/relogin\";\r\n else if(isRole(userInfo, RoleEnum.nursemanagerconsultant))\r\n return \"/app/dashboardKPI\";\r\n else if(isRole(userInfo, RoleEnum.pharmacovigilance))\r\n return \"/app/adverseEvent\";\r\n else if(isRole(userInfo, RoleEnum.psp_manager) || isRole(userInfo, RoleEnum.psp_coordinator) || isRole(userInfo, RoleEnum.msl))\r\n return \"/app/patient\";\r\n else if(isRole(userInfo, RoleEnum.callAgent) || isRole(userInfo, RoleEnum.callAgentManager))\r\n return \"/app/prescriptions\";\r\n else if(isRole(userInfo, RoleEnum.visitor) || isRole(userInfo, RoleEnum.kam))\r\n return \"/app/reportsRepKam\";\r\n else if(isRole(userInfo, RoleEnum.institution) || isRole(userInfo, RoleEnum.institutionManager))\r\n return \"/app/institutionHome\";\r\n return \"/app/home\";\r\n}\r\n\r\nexport const TestMenu = () => {\r\n let menu = getMenuByRole(RoleEnum.nurse);\r\n console.log(\"***********---Nurse Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n \r\n menu = getMenuByRole(RoleEnum.nurse, ShardKeyEnum.ialuril);\r\n console.log(\"***********---Nurse ialuril Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n \r\n menu = getMenuByRole(RoleEnum.psp_manager);\r\n console.log(\"***********---psp_manager Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n\r\n \r\n menu = getMenuByRole(RoleEnum.pharmacovigilance);\r\n console.log(\"***********---pharmacovigilance Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n \r\n menu = getMenuByRole(RoleEnum.visitor);\r\n console.log(\"***********---visitor Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n\r\n \r\n menu = getMenuByRole(RoleEnum.kam);\r\n console.log(\"***********---KAM Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n\r\n menu = getMenuByRole(RoleEnum.msl, ShardKeyEnum.pintPharma);\r\n console.log(\"***********---MSL Menu---***********\");\r\n menu.map(x=>{\r\n console.log(IntlGetText(x.name)+\" - \"+x.link)\r\n });\r\n return (<>);\r\n}\r\n\r\n\r\n\r\n\r\n","import React, { Component } from \"react\";\r\nimport { NavLink, withRouter } from \"react-router-dom\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { getMenuItems, TestMenu } from \"constants/setupMenu\";\r\n\r\n\r\nconst LiMenu = ({userInfo}) => {\r\n const data = getMenuItems(userInfo);\r\n \r\n return data.map((x,index)=>{\r\n return(\r\n
  • \r\n \r\n \r\n \r\n \r\n \r\n
  • \r\n );\r\n })\r\n}\r\n\r\nclass Menu extends Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n role: \"\"\r\n };\r\n }\r\n\r\n\r\n async componentDidMount() {\r\n const { history } = this.props;\r\n\r\n const pathname = `#${history.location.pathname}`; // get current path\r\n const mainMenu = document.getElementsByClassName(\"nav-item\");\r\n for (let i = 0; i < mainMenu.length; i++) {\r\n mainMenu[i].onclick = function() {\r\n for (let j = 0; j < mainMenu.length; j++) {\r\n if (mainMenu[j].classList.contains(\"active\")) {\r\n mainMenu[j].classList.remove(\"active\");\r\n }\r\n }\r\n this.classList.toggle(\"active\");\r\n };\r\n }\r\n const subMenuLi = document.getElementsByClassName(\"nav-arrow\");\r\n for (let i = 0; i < subMenuLi.length; i++) {\r\n subMenuLi[i].onclick = function() {\r\n for (let j = 0; j < subMenuLi.length; j++) {\r\n if (subMenuLi[j].classList.contains(\"active\")) {\r\n subMenuLi[j].classList.remove(\"active\");\r\n }\r\n }\r\n this.classList.toggle(\"active\");\r\n };\r\n }\r\n const activeLi = document.querySelector('a[href=\"' + pathname + '\"]'); // select current a element\r\n try {\r\n const activeNav = this.closest(activeLi, \"ul\"); // select closest ul\r\n if (activeNav.classList.contains(\"sub-menu\")) {\r\n this.closest(activeNav, \"li\").classList.add(\"active\");\r\n } else {\r\n this.closest(activeLi, \"li\").classList.add(\"active\");\r\n }\r\n const parentNav = this.closest(activeNav, \".nav-item\");\r\n if (parentNav) {\r\n parentNav.classList.add(\"active\");\r\n }\r\n } catch (e) {}\r\n }\r\n\r\n closest(el, selector) {\r\n try {\r\n let matchesFn;\r\n // find vendor prefix\r\n [\r\n \"matches\",\r\n \"webkitMatchesSelector\",\r\n \"mozMatchesSelector\",\r\n \"msMatchesSelector\",\r\n \"oMatchesSelector\",\r\n ].some(function(fn) {\r\n if (typeof document.body[fn] === \"function\") {\r\n matchesFn = fn;\r\n return true;\r\n }\r\n return false;\r\n });\r\n\r\n let parent;\r\n\r\n // traverse parents\r\n while (el) {\r\n parent = el.parentElement;\r\n if (parent && parent[matchesFn](selector)) {\r\n return parent;\r\n }\r\n el = parent;\r\n }\r\n } catch (e) {}\r\n\r\n return null;\r\n }\r\n\r\n render() {\r\n return(\r\n
    \r\n {/* */}\r\n
      \r\n \r\n
    \r\n
    \r\n );\r\n // if(getUserInfo() && getUserInfo().shardKey === ShardKeyEnum.ialuril){\r\n // return(\r\n //
    \r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    \r\n //
    \r\n // )\r\n // }\r\n // return (\r\n //
    \r\n // {this.state.role === \"nurse\" && (\r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n {/*
    • \r\n \r\n \r\n \r\n \r\n \r\n
    • \r\n
    • \r\n \r\n \r\n \r\n \r\n \r\n
    • \r\n
    • \r\n \r\n Pacientes2\r\n \r\n
    • \r\n
    • \r\n \r\n Add Patient\r\n \r\n
    • */}\r\n //
    \r\n // )}\r\n\r\n // {this.state.role === \"pharma\" && (\r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    \r\n // )}\r\n\r\n // {this.state.role === \"manager\" && (\r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n\r\n //
        \r\n //
      • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
      • \r\n\r\n //
      • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
      • \r\n\r\n //
      • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
      • \r\n //
      \r\n //
    • \r\n\r\n //
    • \r\n // \r\n // Médicos\r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // Pacientes\r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // Calendario\r\n // \r\n //
    • \r\n //
    \r\n // )}\r\n // {this.state.role === \"pharmacovigilance\" && \r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    \r\n // }\r\n // {this.state.role === \"psp_manager\" && \r\n //
      \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    • \r\n // \r\n // \r\n // \r\n // \r\n // \r\n //
    • \r\n //
    \r\n // }\r\n //
    \r\n // );\r\n }\r\n}\r\n\r\nexport default withRouter(Menu);","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { userSignOut } from \"actions/Auth\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { RoleList } from \"constants/Enums\";\r\n\r\nconst UserInfoPopup = ({ handleOpenCPM }) => {\r\n const [profileLogo, setProfileLogo] = useState(require(\"assets/images/psp/logos/psp_profile_logo-default.png\"));\r\n const dispatch = useDispatch();\r\n\r\n const userInfo = getUserInfo();\r\n\r\n const getRoleName = () =>{\r\n var result = RoleList().find(x=>userInfo.roles.find(y=>y===x.id));\r\n if(result) return result.name;\r\n return \"notification.error\";\r\n };\r\n\r\n useEffect(()=>{\r\n if(!userInfo)\r\n return;\r\n \r\n if(userInfo.customProfileLogo)\r\n setProfileLogo(userInfo.customProfileLogo);\r\n },[]);\r\n \r\n return (\r\n
    \r\n
    \r\n \r\n
    \r\n

    {userInfo.userName}

    \r\n {getRoleName()}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {\r\n dispatch(userSignOut());\r\n }}\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default UserInfoPopup;\r\n","import styled from \"styled-components\";\r\nimport { InputLabel, FormControl } from \"@material-ui/core\";\r\n\r\nexport const StyledInputLabel = styled(InputLabel)`\r\n && {\r\n .req-label {\r\n color: #f44336;\r\n }\r\n }\r\n`;\r\n\r\nexport const StyledFormControl = styled(FormControl)`\r\n && {\r\n width: 100%;\r\n display: block;\r\n position: relative;\r\n }\r\n`;\r\n\r\nexport const StyledAutoSelectInputLabel = styled(InputLabel)`\r\n && {\r\n position: relative;\r\n .req-label {\r\n color: #f44336;\r\n }\r\n transform: translate(0, 1.5px) scale(0.75);\r\n transform-origin: top left;\r\n }\r\n`;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport Select, { createFilter } from \"react-select\";\r\nimport { StyledFormControl, StyledAutoSelectInputLabel } from \"../styles\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport \"./index.css\";\r\n\r\nconst stylesReactSelect = {\r\n clearIndicator: (provided, state) => ({\r\n ...provided,\r\n cursor: \"pointer\",\r\n }),\r\n indicatorSeparator: (provided, state) => ({\r\n ...provided,\r\n margin: 0,\r\n }),\r\n dropdownIndicator: (provided, state) => ({\r\n ...provided,\r\n cursor: \"pointer\",\r\n }),\r\n placeholder: (provided, state) => ({\r\n ...provided,\r\n fontFamily: \"Roboto, Helvetica, Arial, sans-serif\",\r\n color: state.selectProps.error ? \"#f44336\" : \"rgba(0, 0, 0, 0.54)\",\r\n }),\r\n control: (provided, state) => ({\r\n ...provided,\r\n borderRadius: 0,\r\n border: 0,\r\n borderBottom: state.selectProps.error\r\n ? \"1px solid #f44336\"\r\n : \"1px solid rgba(0,0,0,0.87)\",\r\n boxShadow: \"none\",\r\n \":hover\": {\r\n borderColor: state.selectProps.error ? \"1px solid #f44336\" : \"inherit\",\r\n boxShadow: state.selectProps.error ? \"1px solid #f44336\" : \"none\",\r\n },\r\n }),\r\n valueContainer: (provided, state) => ({\r\n ...provided,\r\n paddingLeft: 0,\r\n }),\r\n};\r\n\r\nconst components = {\r\n Option,\r\n};\r\n\r\nfunction Option(props) {\r\n const { onMouseMove, onMouseOver, ...newInnerProps } = props.innerProps;\r\n return (\r\n
    \r\n {props.children}\r\n
    \r\n );\r\n}\r\n\r\nexport const ReactSelect = (props) => {\r\n const { label, options, required, errorobj, value, isClearable, name } = props;\r\n\r\n let isError = false;\r\n let errorMessage = \"\";\r\n if (errorobj && errorobj.hasOwnProperty(name)) { \r\n isError = true;\r\n errorMessage = errorobj[name].message;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {label} {required ? * : null}\r\n \r\n \r\n ({ ...provided, zIndex: 9999 })\r\n }}\r\n menuPortalTarget={document.body}\r\n {...props} \r\n />\r\n {isError && (\r\n {errorMessage}\r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nfunction FormSelectAutoComplete(props) {\r\n const { control } = useFormContext();\r\n const { name, defaultValue, value, options, disabled, onChange, ...selectProps } = props;\r\n\r\n const [newData, setNewData] = useState([]);\r\n \r\n useEffect(() => {\r\n const optionList = options == undefined || options == null || !Array.isArray(options) ? [] : options;\r\n const newOptions = optionList.map((data, index) => ({\r\n label: data.name,\r\n value: data.id,\r\n }));\r\n setNewData(newOptions);\r\n }, [options]);\r\n\r\n return (\r\n \r\n (\r\n {\r\n onChange(value);\r\n if(props.onChange)\r\n props.onChange(value);\r\n }} \r\n value={value} \r\n isDisabled={disabled} \r\n {...selectProps}\r\n />\r\n )}\r\n \r\n />\r\n \r\n );\r\n}\r\n\r\nexport const getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nexport const getCboValues = (items, idList) => { \r\n if(!idList)\r\n return [];\r\n \r\n var response = idList.map(id=>{\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : undefined;\r\n })\r\n\r\n return response.filter(x=> x !== undefined);\r\n};\r\n\r\nexport default FormSelectAutoComplete;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\n// import \"./index.css\";\r\n\r\nfunction FormInput(props) {\r\n const { control } = useFormContext();\r\n const { name, label, required, errorobj } = props;\r\n\r\n let isError = false;\r\n let errorMessage = \"\";\r\n if (errorobj && errorobj.hasOwnProperty(name)) {\r\n isError = true;\r\n errorMessage = errorobj[name].message;\r\n }\r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default FormInput;\r\n","import React, { useState } from \"react\";\r\nimport { Button } from \"@material-ui/core\";\r\n\r\nconst ButtonAsync = ({children, ...props}) => {\r\n const [executing, setExecuting] = useState(false);\r\n \r\n const {\r\n disabled,\r\n onClick,\r\n ...otherProps\r\n } = props;\r\n\r\n const onRealClick = async (event) => {\r\n setExecuting(true);\r\n try {\r\n await onClick();\r\n } finally {\r\n setExecuting(false);\r\n }\r\n };\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport default ButtonAsync;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n IconButton \r\n} from \"@material-ui/core\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport FormSelectAutoComplete from \"../../../../../components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"../../../../../components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getInsuranceList,\r\n getInstitutionList,\r\n getDoctorList,\r\n getProductList,\r\n postNewPatientAlert,\r\n getPrescriptions\r\n} from \"../../../../../api/apiList\";\r\nimport { setSelectedPrescription, loadPrescriptions, showErrorMessage } from \"actions/Management\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\n\r\nconst validationSchema = yup.object().shape({\r\n cboInsurance: yup\r\n .object()\r\n .shape({value:yup.string().required()})\r\n .required()\r\n .nullable(),\r\n cboInstitution: yup\r\n .object()\r\n .shape({value:yup.string().required()})\r\n .required()\r\n .nullable(),\r\n cboDoctor: yup\r\n .object()\r\n .shape({value:yup.string().required()})\r\n .required()\r\n .nullable(),\r\n cboProduct: yup\r\n .object()\r\n .shape({value:yup.string().required()})\r\n .required()\r\n .nullable(),\r\n});\r\n\r\nconst defaultValues = {\r\n cboInsurance:\"\",\r\n cboInstitution:\"\",\r\n cboDoctor:\"\",\r\n cboProduct:\"\",\r\n comment:\"\",\r\n};\r\n\r\nconst DialogContainer = ({children, ...props}) => {\r\n const {open, handleClickOpen, handleRequestClose, dialogTitle } = props;\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n {dialogTitle}\r\n {children}\r\n \r\n
    \r\n );\r\n}\r\n\r\nconst NewPatient = () =>{\r\n const [open, setOpen] = useState(false);\r\n const handleClickOpen = () => setOpen(true);\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n setOpen(false);\r\n }\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(validationSchema) });\r\n const { reset } = methods;\r\n\r\n return (\r\n \r\n }> \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst NewPatientTest5 = ({handleRequestClose, methods}) => { \r\n let history = useHistory();\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n \r\n const { handleSubmit, errors, setValue, watch } = methods; \r\n\r\n const [insurances, setInsurance] = useState([]);\r\n const [institutions, setInstitution] = useState([]);\r\n const [doctors, setDoctor] = useState([]);\r\n const [products, setProduct] = useState([]);\r\n\r\n const insuranceValue = watch(\"cboInsurance\");\r\n const institutionValue = watch(\"cboInstitution\");\r\n const doctorValue = watch(\"cboDoctor\");\r\n const productValue = watch(\"cboProduct\"); \r\n\r\n useEffect(() => {\r\n callApi(getInsuranceList, setInsurance, fnSetLoader);\r\n callApi(getProductList, setProduct, fnSetLoader); \r\n callApi(getInstitutionList, setInstitution, fnSetLoader);\r\n callApi(getDoctorList, setDoctor, fnSetLoader);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n \r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n const callGetPrescriptions = () => {\r\n callApi(\r\n ()=> getPrescriptions(0),\r\n (data)=>{\r\n dispatch(loadPrescriptions(data, 0));\r\n history.push('/app/management');\r\n }, \r\n fnSetLoader\r\n );\r\n };\r\n\r\n const prescriptionSaveSuccess = (data) => {\r\n handleRequestClose();\r\n if(getUserInfo().shardKey === ShardKeyEnum.ialuril || getUserInfo().shardKey === ShardKeyEnum.seranestcr){\r\n //history.push('/app/patientPA');\r\n history.push({\r\n pathname: '/app/patientPA',\r\n state: { reloadPage: new Date() }\r\n });\r\n return;\r\n }\r\n\r\n dispatch(setSelectedPrescription(data));\r\n callGetPrescriptions();\r\n };\r\n\r\n const onSubmit = async (data, e) => {\r\n var obj ={\r\n insuranceId: parseFloat(data.cboInsurance.value),\r\n institutionId: parseFloat(data.cboInstitution.value),\r\n doctorId: parseFloat(data.cboDoctor.value),\r\n productId: parseFloat(data.cboProduct.value),\r\n comment: data.comment,\r\n };\r\n\r\n await callApiAsync(() => postNewPatientAlert(obj), prescriptionSaveSuccess, fnSetLoader);\r\n };\r\n\r\n return ( \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={insurances}\r\n required={true}\r\n name=\"cboInsurance\"\r\n value={insuranceValue} \r\n onChange={cboHandleChange(\"cboInsurance\")}\r\n errorobj={errors} \r\n />\r\n \r\n \r\n }\r\n options={institutions}\r\n required={true}\r\n name=\"cboInstitution\"\r\n value={institutionValue} \r\n onChange={cboHandleChange(\"cboInstitution\")}\r\n errorobj={errors} \r\n />\r\n \r\n \r\n }\r\n options={doctors}\r\n required={true}\r\n name=\"cboDoctor\"\r\n value={doctorValue} \r\n onChange={cboHandleChange(\"cboDoctor\")}\r\n errorobj={errors} \r\n />\r\n \r\n \r\n }\r\n options={products}\r\n required={true}\r\n name=\"cboProduct\"\r\n value={productValue} \r\n onChange={cboHandleChange(\"cboProduct\")}\r\n errorobj={errors} \r\n />\r\n \r\n \r\n }\r\n name=\"comment\"\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n fullWidth\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n
    \r\n );\r\n}\r\n\r\nexport default NewPatient;\r\n","import {\r\n DRAWER_TYPE,\r\n HORIZONTAL_MENU_POSITION,\r\n SWITCH_LANGUAGE,\r\n TOGGLE_COLLAPSED_NAV,\r\n WINDOW_WIDTH\r\n} from 'constants/ActionTypes';\r\n\r\nexport function toggleCollapsedNav(isNavCollapsed) {\r\n return {type: TOGGLE_COLLAPSED_NAV, isNavCollapsed};\r\n}\r\n\r\nexport function setDrawerType(drawerType) {\r\n return {type: DRAWER_TYPE, drawerType};\r\n}\r\n\r\nexport function updateWindowWidth(width) {\r\n return {type: WINDOW_WIDTH, width};\r\n}\r\n\r\nexport function setHorizontalMenuPosition(navigationPosition) {\r\n return {\r\n type: HORIZONTAL_MENU_POSITION,\r\n payload: navigationPosition\r\n };\r\n}\r\n\r\nexport function switchLanguage(locale) {\r\n return {\r\n type: SWITCH_LANGUAGE,\r\n payload: locale\r\n };\r\n}\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nconst passwordMustMatch = ;\r\nconst PasswordChangeForm =({ openCPM, handleCloseCPM, handleChangePassword })=>{\r\n \r\n const defaultValues = {\r\n currentPassword: \"\",\r\n newPassword: \"\",\r\n confirmPassword: \"\"\r\n };\r\n \r\n const validationSchema = {\r\n currentPassword: yup.string()\r\n .required(),\r\n newPassword: yup.string()\r\n .matches(/.{4,}/g, IntlGetText(\"PasswordValidation.PasswordTooShort\"))\r\n .required(),\r\n confirmPassword: yup.string()\r\n .oneOf([yup.ref('newPassword'), null], passwordMustMatch)\r\n .required()\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n useEffect(()=>{\r\n if(openCPM){\r\n setTimeout(150);\r\n }\r\n },[openCPM]);\r\n\r\n const onSubmit = async (d, e) => {\r\n await handleChangePassword(d.currentPassword, d.newPassword);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n
    \r\n { !false &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n export default PasswordChangeForm;","import React, { useEffect, useState } from \"react\";\r\nimport { Link, withRouter } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Toolbar from \"@material-ui/core/Toolbar\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Dropdown, DropdownMenu, DropdownToggle } from \"reactstrap\";\r\nimport AppNotification from \"../../../../components/AppNotification\";\r\nimport CardHeader from \"components/dashboard/Common/CardHeader/index\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport Menu from \"./TopNav/Menu\";\r\nimport UserInfoPopup from \"components/UserInfo/UserInfoPopup\";\r\nimport NewPatientDialog from \"app/routes/psp/patient/Components/NewPatientDialog\";\r\nimport { toggleCollapsedNav } from \"actions/Setting\";\r\nimport PasswordChangeForm from 'components/UserInfo/PasswordChangeForm';\r\nimport { postChangePassword, callApiAsync } from \"api/apiList\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { getRoleUser, getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { RoleEnum, ShardKeyEnum } from \"constants/Enums\";\r\nimport { useTheme } from '@material-ui/core/styles';\r\n\r\nconst InsideNavHeader = (props) => {\r\n const [profileLogo, setProfileLogo] = useState(require(\"assets/images/psp/logos/psp_profile_logo-default.png\"));\r\n const theme = useTheme();\r\n const { userInfo } = useSelector(({ auth }) => auth);\r\n const dispatch = useDispatch();\r\n const [uinfo, setUserInfo] = useState(false);\r\n const [appNotification, setAppNotification] = useState(false);\r\n\r\n const [openCPM, setOpenCPM] = useState(false);\r\n const handleOpenCPM = () => setOpenCPM(true);\r\n const handleCloseCPM = () => setOpenCPM(false);\r\n\r\n const isNurseProfile = () =>{\r\n const userLogued = getRoleUser();\r\n const role = userLogued.role.toUpperCase();\r\n return role === RoleEnum.nurse;\r\n };\r\n\r\n const onAppNotificationSelect = () => {\r\n setAppNotification(!appNotification);\r\n };\r\n\r\n const onUserInfoSelect = () => {\r\n setUserInfo(!uinfo);\r\n };\r\n const onToggleCollapsedNav = (e) => {\r\n dispatch(toggleCollapsedNav());\r\n };\r\n const messages = [];\r\n messages[\"success\"] = IntlGetText(\"changePasswordModal.success\");\r\n messages[\"PasswordRequiresLower\"] = IntlGetText(\"PasswordValidation.PasswordRequiresLower\");\r\n messages[\"PasswordTooShort\"] = IntlGetText(\"PasswordValidation.PasswordTooShort\");\r\n messages[\"PasswordRequiresDigit\"] = IntlGetText(\"PasswordValidation.PasswordRequiresDigit\");\r\n messages[\"PasswordMismatch\"] = IntlGetText(\"PasswordValidation.PasswordMismatch\");\r\n \r\n const handleChangePassword = async (currentPassword, newPassword) => {\r\n await callApiAsync(\r\n () => postChangePassword({currentPassword, newPassword}),\r\n (response) => {\r\n if (!response.succeeded){\r\n response.errors.forEach(e => \r\n {\r\n NotificationManager.error(messages[e]);\r\n });\r\n }\r\n else\r\n {\r\n NotificationManager.success(messages[\"success\"]);\r\n handleCloseCPM();\r\n }\r\n }\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n const userInfo = getUserInfo();\r\n if(!userInfo)\r\n return;\r\n\r\n if(userInfo.customProfileLogo)\r\n setProfileLogo(userInfo.customProfileLogo);\r\n },[]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n
      \r\n {isNurseProfile() && getUserInfo() && getUserInfo().shardKey !== ShardKeyEnum.ialuril && getUserInfo().shardKey !== ShardKeyEnum.seranestcr &&\r\n
    • \r\n \r\n
    • \r\n }\r\n {userInfo.role === \"nurse\" && (\r\n
    • \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
    • \r\n )}\r\n
    • \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n
    • \r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default withRouter(InsideNavHeader);\r\n","import React from 'react';\r\nimport {List} from '@material-ui/core';\r\nimport {NavLink} from 'react-router-dom';\r\n\r\nimport IntlMessages from \"../../util/IntlMessages\";\r\n\r\nconst NavMenuItem = props => {\r\n const {name, icon, link} = props;\r\n\r\n return (\r\n \r\n \r\n {!!icon && (\r\n \r\n )}\r\n \r\n \r\n \r\n )\r\n};\r\n\r\nexport default NavMenuItem;","import React, {useEffect} from 'react';\r\nimport {Collapse, List, ListItem} from '@material-ui/core';\r\nimport IconExpandLess from '@material-ui/icons/ExpandLess';\r\nimport IconExpandMore from '@material-ui/icons/ExpandMore';\r\nimport {useHistory} from 'react-router-dom';\r\n\r\nimport IntlMessages from \"../../util/IntlMessages\";\r\nimport NavSection from \"./NavSection\";\r\nimport NavMenuItem from \"./NavMenuItem\";\r\n\r\nconst NavCollapse = props => {\r\n const history = useHistory();\r\n\r\n const {name, icon, children = []} = props;\r\n const isExpandable = children && children.length > 0;\r\n const [open, setOpen] = React.useState(false);\r\n\r\n useEffect(() => {\r\n if (isUrlInChildren(props, history.location.pathname)) {\r\n setOpen(true);\r\n } else {\r\n setOpen(false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n function handleClick() {\r\n setOpen(!open)\r\n }\r\n\r\n history.listen((location, action) => {\r\n if (isUrlInChildren(props, location.pathname)) {\r\n setOpen(true);\r\n } else {\r\n setOpen(false);\r\n }\r\n });\r\n\r\n /**\r\n * Check if the given url can be found\r\n * in one of the given parent's children\r\n *\r\n * @param parent\r\n * @param url\r\n * @returns {boolean}\r\n */\r\n function isUrlInChildren(parent, url) {\r\n if (!parent.children) {\r\n return false;\r\n }\r\n\r\n for (let i = 0; i < parent.children.length; i++) {\r\n if (parent.children[i].children) {\r\n if (isUrlInChildren(parent.children[i], url)) {\r\n return true;\r\n }\r\n }\r\n\r\n if (parent.children[i].link === url || url.includes(parent.children[i].link)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n\r\n const MenuCollapse = (\r\n \r\n {/* Display an icon if any */}\r\n {!!icon && (\r\n \r\n )}\r\n \r\n {/* Display the expand menu if the item has children */}\r\n {isExpandable && !open && }\r\n {isExpandable && open && }\r\n \r\n );\r\n\r\n const MenuItemChildren = isExpandable ? (\r\n \r\n \r\n {\r\n children.map((item, index) => {\r\n switch (item.type) {\r\n case 'section' :\r\n return ;\r\n case 'collapse' :\r\n return ;\r\n case 'item' :\r\n return ;\r\n default:\r\n return ;\r\n }\r\n })\r\n }\r\n \r\n \r\n ) : null;\r\n\r\n return (\r\n
    \r\n {MenuCollapse}\r\n {MenuItemChildren}\r\n
    \r\n )\r\n};\r\n\r\nexport default NavCollapse;","import React from 'react';\r\nimport {List} from '@material-ui/core';\r\n\r\nimport IntlMessages from \"../../util/IntlMessages\";\r\nimport NavMenuItem from \"./NavMenuItem\";\r\nimport NavCollapse from \"./NavCollapse\";\r\n\r\nconst NavSection = props => {\r\n const {name, icon, children = []} = props;\r\n const isExpandable = children && children.length > 0;\r\n\r\n const MenuCollapse = (\r\n \r\n {/* Display an icon if any */}\r\n {!!icon && (\r\n \r\n )}\r\n \r\n \r\n );\r\n\r\n const MenuItemChildren = isExpandable ? (\r\n \r\n {\r\n children.map((item, index) => {\r\n switch (item.type) {\r\n case 'section' :\r\n return ;\r\n case 'collapse' :\r\n return ;\r\n case 'item' :\r\n return ;\r\n default:\r\n return ;\r\n }\r\n })\r\n }\r\n \r\n ) : null;\r\n\r\n return (\r\n
    \r\n {MenuCollapse}\r\n {MenuItemChildren}\r\n
    \r\n )\r\n};\r\n\r\nexport default NavSection;","import React from 'react';\r\nimport {List} from '@material-ui/core';\r\nimport NavMenuItem from \"./NavMenuItem\";\r\nimport NavSection from \"./NavSection\";\r\nimport NavCollapse from \"./NavCollapse\";\r\n\r\nconst Navigation = props => {\r\n const {menuItems} = props;\r\n return (\r\n \r\n {\r\n menuItems.map((item, index) => {\r\n switch (item.type) {\r\n case 'section' :\r\n return ;\r\n case 'collapse' :\r\n return ;\r\n case 'item' :\r\n return ;\r\n default:\r\n return ;\r\n }\r\n })\r\n }\r\n \r\n )\r\n};\r\n\r\nexport default Navigation;","import React, { Component } from \"react\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\nimport Navigation from \"../../components/Navigation\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { getMenuItems } from \"constants/setupMenu\";\r\n\r\n\r\nconst getMenuList = (userInfo) => {\r\n return getMenuItems(userInfo).map(x=>({\r\n name: x.name,\r\n link: x.link,\r\n type: \"item\"\r\n }));\r\n}\r\n\r\nclass SideBarContent extends Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n role: \"\",\r\n navigationMenus: [],\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n const navigationMenus = [\r\n {\r\n name: \"core.menu\",//\"Pint Acompaña\",\r\n type: \"section\",\r\n children: getMenuList(getUserInfo())\r\n },\r\n ];\r\n\r\n this.setState({ navigationMenus: navigationMenus });\r\n\r\n // let navigationMenus = [];\r\n // const userInfo = getUserInfo();\r\n // const isRole = (role) => userInfo.roles.indexOf(role) !== -1;\r\n\r\n // console.log(\"menu-userInfo\",userInfo);\r\n // console.log(\"menu-userInfo.roles\",userInfo.roles);\r\n // console.log(\"menu-userInfo.roles-isKam\",userInfo.roles.indexOf(RoleEnum.kam) !== -1);\r\n // console.log(\"menu-userInfo.roles-isPspManager\",userInfo.roles.indexOf(RoleEnum.psp_manager) !== -1);\r\n \r\n // if(getUserInfo() && getUserInfo().shardKey === ShardKeyEnum.ialuril){\r\n // navigationMenus = [\r\n // {\r\n // name: \"Pint Acompaña\",\r\n // type: \"section\",\r\n // children: [\r\n // {\r\n // name: \"psp.menu.patients\",\r\n // type: \"item\",\r\n // link: \"/app/patientPA\",\r\n // },\r\n // {\r\n // name: \"psp.menu.impactPlanning\",\r\n // type: \"item\",\r\n // link: \"/app/impactPlanning\",\r\n // },\r\n // ],\r\n // },\r\n // ];\r\n // }\r\n // else if (role === \"nurse\") {\r\n // navigationMenus = [\r\n // {\r\n // name: \"Pint Acompaña\",\r\n // type: \"section\",\r\n // children: [\r\n // {\r\n // name: \"psp.menu.home\",\r\n // type: \"item\",\r\n // link: \"/app/home\",\r\n // },\r\n // {\r\n // name: \"psp.menu.manage\",\r\n // type: \"item\",\r\n // link: \"/app/management\",\r\n // },\r\n // {\r\n // name: \"psp.menu.patients\",\r\n // type: \"item\",\r\n // link: \"/app/patient\",\r\n // },\r\n // {\r\n // name: \"psp.menu.doctors\",\r\n // type: \"item\",\r\n // link: \"/app/doctor\",\r\n // },\r\n // ],\r\n // },\r\n // ];\r\n // } else if (role === \"pharma\") {\r\n // navigationMenus = [\r\n // {\r\n // name: \"Pint Acompaña\",\r\n // type: \"section\",\r\n // children: [\r\n // {\r\n // name: \"psp.menu.home\",\r\n // type: \"item\",\r\n // link: \"/app/pharmacovigilant\",\r\n // },\r\n // {\r\n // name: \"psp.menu.manage\",\r\n // type: \"item\",\r\n // link: \"/app/managepharma\",\r\n // },\r\n // ],\r\n // },\r\n // ];\r\n // } else if (role === \"psp_manager\") {\r\n // navigationMenus = [\r\n // {\r\n // name: \"Pint Acompaña\",\r\n // type: \"section\",\r\n // children: [\r\n // {\r\n // name: \"psp.menu.patients\",\r\n // type: \"item\",\r\n // link: \"/app/patient\",\r\n // },\r\n // {\r\n // name: \"psp.menu.impactPlanning\",\r\n // type: \"item\",\r\n // link: \"/app/impactPlanning\",\r\n // },\r\n // {\r\n // name: \"menu.reports\",\r\n // type: \"item\",\r\n // link: \"/app/reports\",\r\n // },\r\n // {\r\n // name: \"menu.patientManagement\",\r\n // type: \"item\",\r\n // link: \"/app/patient/management\",\r\n // }\r\n // ],\r\n // },\r\n // ];\r\n // } else if (role === \"manager\") {\r\n // navigationMenus = [\r\n // {\r\n // name: \"Pint Acompaña\",\r\n // type: \"section\",\r\n // children: [\r\n // {\r\n // name: \"kpi.title\",\r\n // type: \"collapse\",\r\n // icon: \"network\",\r\n // children: [\r\n // {\r\n // name: \"kpi.productLine\",\r\n // type: \"item\",\r\n // link: \"/app/kpi/productLine\",\r\n // },\r\n // {\r\n // name: \"kpi.impacts\",\r\n // type: \"item\",\r\n // link: \"/app/kpi/impacts\",\r\n // },\r\n // {\r\n // name: \"kpi.impacts.PharmacoVigilance\",\r\n // type: \"item\",\r\n // link: \"/app/kpi/pharmacoVigilance\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Médicos\",\r\n // type: \"item\",\r\n // link: \"/app/doctor\",\r\n // },\r\n // {\r\n // name: \"Pacientes\",\r\n // type: \"item\",\r\n // link: \"/app/patient/\",\r\n // },\r\n // {\r\n // name: \"Calendario\",\r\n // type: \"item\",\r\n // link: \"/app/manager-calendar/\",\r\n // },\r\n // ],\r\n // },\r\n // ];\r\n // }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default SideBarContent;\r\n","import React, {useEffect} from 'react';\r\nimport {useDispatch, useSelector} from 'react-redux';\r\nimport {withRouter} from 'react-router-dom';\r\nimport Drawer from '@material-ui/core/Drawer';\r\nimport UserInfo from 'components/UserInfo';\r\nimport {COLLAPSED_DRAWER, FIXED_DRAWER, HORIZONTAL_NAVIGATION} from 'constants/ActionTypes';\r\nimport {toggleCollapsedNav, updateWindowWidth} from 'actions/Setting';\r\nimport SideBarContent from \"./SideBarContent\";\r\n\r\nconst SideBar = () => {\r\n const dispatch = useDispatch();\r\n const {navCollapsed, drawerType, width, navigationStyle} = useSelector(({settings}) => settings);\r\n\r\n useEffect(() => {\r\n window.addEventListener('resize', () => {\r\n dispatch(updateWindowWidth(window.innerWidth))\r\n });\r\n }, [dispatch]);\r\n\r\n const onToggleCollapsedNav = (e) => {\r\n dispatch(toggleCollapsedNav());\r\n };\r\n\r\n let drawerStyle = drawerType.includes(FIXED_DRAWER) ? 'd-xl-flex' : drawerType.includes(COLLAPSED_DRAWER) ? '' : 'd-flex';\r\n let type = 'permanent';\r\n if (drawerType.includes(COLLAPSED_DRAWER) || (drawerType.includes(FIXED_DRAWER) && width < 1200)) {\r\n type = 'temporary';\r\n }\r\n\r\n if (navigationStyle === HORIZONTAL_NAVIGATION) {\r\n drawerStyle = '';\r\n type = 'temporary';\r\n }\r\n\r\n return (\r\n
    \r\n \r\n {/* */}\r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\n\r\nexport default withRouter(SideBar);\r\n\r\n","import InsideHeaderNav from \"./Horizontal/InsideHeaderNav\";\r\n\r\nconst AppLayouts = {\r\n InsideHeaderNav\r\n};\r\nexport default AppLayouts;\r\n","import React from \"react\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Footer from \"components/Footer\";\r\nimport { isIOS, isMobile } from \"react-device-detect\";\r\nimport InsideNavHeader from \"./Header/InsideNavHeader\";\r\nimport SideBar from \"../../SideBar\";\r\n\r\nconst Horizontal = (props) => {\r\n if (isIOS && isMobile) {\r\n document.body.classList.add(\"ios-mobile-view-height\");\r\n } else if (document.body.classList.contains(\"ios-mobile-view-height\")) {\r\n document.body.classList.remove(\"ios-mobile-view-height\");\r\n }\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n
    {props.children}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default withRouter(Horizontal);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport { showAuthLoader, reloginSignIn, setInitUrl } from \"actions/Auth\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport { callApi, getReloginInfo } from \"api/apiList\";\r\n\r\n\r\nconst Relogin = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { loader, alertMessage, showMessage } = useSelector(\r\n ({ auth }) => auth\r\n );\r\n\r\n const [company, setCompany] = useState([])\r\n const [companyFilter, setCompanyFilter] = useState(\"\")\r\n const [emailTotalList, setEmailTotalList] = useState([])\r\n const [emailList, setEmailList] = useState([])\r\n\r\n const msgError = IntlGetText(\"core.operationError\");\r\n const msgUserUnauthorized = IntlGetText(\"core.userUnauthorized\");\r\n\r\n const defaultValues = {};\r\n const validationSchema = {\r\n company: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n email: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = handleSubmit((data) => {\r\n const obj = {\r\n username: data.email.value,\r\n };\r\n dispatch(setInitUrl(\"/\"));\r\n dispatch(showAuthLoader());\r\n dispatch(reloginSignIn(obj));\r\n });\r\n\r\n useEffect(() => {\r\n callApi(getReloginInfo,\r\n (data) => {\r\n setCompany(data.enterprise)\r\n setEmailTotalList(data.user)\r\n setEmailList(data.user);\r\n },\r\n fnSetLoader\r\n )\r\n }, [])\r\n\r\n useEffect(() => {\r\n if(!companyFilter){\r\n setEmailList(emailTotalList);\r\n return;\r\n }\r\n let filter = emailTotalList.filter((x) => x.enterpriseKey === companyFilter)\r\n setEmailList(filter);\r\n }, [companyFilter])\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n }\r\n options={company}\r\n margin=\"normal\"\r\n required={true}\r\n onChange={(e) => setCompanyFilter(!e ? null : e.value)}\r\n errorobj={errors}\r\n />\r\n
    \r\n }\r\n options={emailList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {loader && (\r\n
    \r\n \r\n
    \r\n )}\r\n {showMessage && NotificationManager.error(alertMessage === \"401\" ? msgUserUnauthorized : msgError)}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default Relogin;\r\n","import React from \"react\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n\r\nlet id = 0;\r\n\r\nfunction createData(date, medicin, urgency, status) {\r\n id += 1;\r\n return { id, date, medicin, urgency, status };\r\n}\r\n\r\nconst data = [\r\n createData(\r\n \"2020/07/22\",\r\n
    Remodulin
    ,\r\n
    Alta
    ,\r\n
    Nuevo
    \r\n ),\r\n];\r\n\r\nfunction ProcessTable() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n Estado\r\n Fecha\r\n Medicamento\r\n Urgencia\r\n \r\n \r\n \r\n {data.map((n) => {\r\n return (\r\n \r\n {n.status}\r\n {n.date}\r\n {n.medicin}\r\n {n.urgency}\r\n \r\n );\r\n })}\r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default ProcessTable;\r\n","import React from \"react\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nlet id = 0;\r\n\r\nfunction createData(name, medicin, status) {\r\n id += 1;\r\n return { id, name, medicin, status };\r\n}\r\n\r\nconst data = [\r\n createData(\r\n \"Alicia Muñoz Diaz\",\r\n
    Remodulin
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Andres Perez\",\r\n
    Remodulin
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Luis Piñeres\",\r\n
    Iclusig
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Adriana Mesa\",\r\n
    Remodulin
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Lucía Medina\",\r\n
    Remodulin
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Cristian Ricaurte\",\r\n
    Iclusig
    ,\r\n
    Activo
    \r\n ),\r\n createData(\r\n \"Hernán Soto\",\r\n
    Remodulin
    ,\r\n
    En suspensión
    \r\n ),\r\n];\r\n\r\nexport function DoctorTable() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n Nombre\r\n Medicamento\r\n \r\n \r\n \r\n \r\n {data.map((n) => {\r\n return (\r\n \r\n {n.status}\r\n {n.name}\r\n {n.medicin}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default DoctorTable;\r\n","import React from 'react';\r\n\r\nconst CardBox = ({heading, children, styleName, cardStyle, childrenStyle, headerOutside, headingStyle}) => {\r\n\r\n return (\r\n
    \r\n {headerOutside &&\r\n
    \r\n

    {heading}

    \r\n {children.length > 1 &&
    {children[0]}
    }\r\n
    \r\n }\r\n\r\n
    \r\n {!headerOutside &&\r\n (heading &&\r\n
    \r\n

    {heading}

    \r\n {children.length > 1 &&
    {children[0]}
    }\r\n
    \r\n )}\r\n
    \r\n {children.length > 1 ? children[1] : children}\r\n
    \r\n
    \r\n
    \r\n )\r\n};\r\n\r\nexport default CardBox;\r\n\r\nCardBox.defaultProps = {\r\n cardStyle: '',\r\n headingStyle: '',\r\n childrenStyle: '',\r\n styleName: 'col-lg-6 col-sm-12'\r\n};","const Auxiliary = (props) => props.children;\r\n\r\nexport default Auxiliary;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport {Card, CardTitle} from \"reactstrap\";\r\n\r\nconst Widget = ({children, styleName, title}) => {\r\n\r\n return (\r\n \r\n {title ? {title} : null}\r\n {children}\r\n \r\n )\r\n};\r\n\r\n\r\nexport default Widget;\r\nWidget.defaultProps = {\r\n styleName: '',\r\n};\r\n\r\nWidget.propTypes = {\r\n title: PropTypes.string,\r\n extra: PropTypes.node,\r\n cover: PropTypes.node,\r\n actions: PropTypes.node,\r\n children: PropTypes.node.isRequired\r\n};\r\n","import React from \"react\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\n\r\nconst userImageList = [\r\n {\r\n id: 1,\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 2,\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 3,\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 4,\r\n image: \"https://via.placeholder.com/150x150\",\r\n name: \"Mila Alba\",\r\n rating: \"5.0\",\r\n deals: \"27 Deals\",\r\n },\r\n];\r\n\r\nexport const aboutList = [\r\n {\r\n id: 1,\r\n title: \"Works at\",\r\n icon: \"city-alt\",\r\n userList: \"\",\r\n desc: [\"G-axon Tech Pvt. Ltd.\"],\r\n },\r\n {\r\n id: 2,\r\n title: \"Birthday\",\r\n icon: \"cake\",\r\n userList: \"\",\r\n desc: [\"Oct 25, 1984\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Went to\",\r\n icon: \"graduation-cap\",\r\n userList: \"\",\r\n desc: [\"Oxford University\"],\r\n },\r\n {\r\n id: 4,\r\n title: \"Lives in London\",\r\n icon: \"home\",\r\n userList: \"\",\r\n desc: [\"From Switzerland\"],\r\n },\r\n {\r\n id: 5,\r\n title: \"4 Family Members\",\r\n icon: \"group-work\",\r\n userList: [\r\n
      \r\n {userImageList.map((user, index) => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    ,\r\n ],\r\n desc: \"\",\r\n },\r\n];\r\n\r\nexport const eventList = [\r\n {\r\n id: 1,\r\n image: \"https://via.placeholder.com/575x480\",\r\n title: \"Sundance Film Festival.\",\r\n address: \"Downsview Park, Toronto, Ontario\",\r\n date: \"Feb 23, 2019\",\r\n },\r\n {\r\n id: 2,\r\n image: \"https://via.placeholder.com/575x480\",\r\n title: \"Underwater Musical Festival.\",\r\n address: \"Street Sacramento, Toronto, Ontario\",\r\n date: \"Feb 24, 2019\",\r\n },\r\n {\r\n id: 3,\r\n image: \"https://via.placeholder.com/575x480\",\r\n title: \"Village Feast Fac\",\r\n address: \"Union Street Eureka\",\r\n date: \"Oct 25, 2019\",\r\n },\r\n];\r\n\r\nexport const contactList = [\r\n {\r\n id: 1,\r\n title: \"Email\",\r\n icon: \"email\",\r\n desc: [\r\n \r\n julia.ramirez@outlook.com\r\n ,\r\n ],\r\n },\r\n {\r\n id: 2,\r\n title: \"Institución\",\r\n icon: \"city-alt\",\r\n desc: [\"Institución\"],\r\n },\r\n {\r\n id: 3,\r\n title: \"Teléfono\",\r\n icon: \"phone\",\r\n desc: [\"+57-314225458\"],\r\n },\r\n];\r\n\r\nexport const friendList = [\r\n {\r\n id: 1,\r\n image: \"https://via.placeholder.com/150x150\",\r\n name: \"Chelsea Johns\",\r\n status: \"online\",\r\n },\r\n {\r\n id: 2,\r\n image: \"https://via.placeholder.com/150x150\",\r\n name: \"Ken Ramirez\",\r\n status: \"offline\",\r\n },\r\n {\r\n id: 3,\r\n image: \"https://via.placeholder.com/150x150\",\r\n name: \"Chelsea Johns\",\r\n status: \"away\",\r\n },\r\n {\r\n id: 4,\r\n image: \"https://via.placeholder.com/150x150\",\r\n name: \"Ken Ramirez\",\r\n status: \"away\",\r\n },\r\n];\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport Input from \"@material-ui/core/Input\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Select from \"@material-ui/core/Select\";\r\n\r\nclass NewPatientDialog extends React.Component {\r\n state = {\r\n open: false,\r\n urgency: \"\",\r\n product: \"\",\r\n };\r\n\r\n handleChange = (name) => (event) => {\r\n this.setState({ [name]: event.target.value });\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n NUEVO PACIENTE\r\n \r\n \r\n \r\n Nuevo paciente\r\n \r\n \r\n Seleccione la información para reportar\r\n \r\n
    \r\n
    \r\n \r\n Urgencia\r\n }\r\n >\r\n Alta\r\n Normal\r\n \r\n \r\n
    \r\n
    \r\n \r\n Medicamento\r\n }\r\n >\r\n Remodulin\r\n Iclusig\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default NewPatientDialog;\r\n","import React, { useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport ProcessTable from \"./ProcessTable\";\r\nimport DoctorTable from \"./DoctorTable\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport Auxiliary from \"../../../../../util/Auxiliary\";\r\nimport Widget from \"components/Widget\";\r\nimport Tabs from \"@material-ui/core/Tabs\";\r\nimport Tab from \"@material-ui/core/Tab\";\r\nimport { contactList } from \"./../data\";\r\nimport NewPatientDialog from \"./NewPatientDialog\";\r\n\r\nconst DoctorProfile = () => {\r\n const [value, setValue] = useState(0);\r\n const { userInfo } = useSelector(({ auth }) => auth);\r\n\r\n const handleChange = (event, value) => {\r\n setValue(value);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n

    \r\n Dra. Julia Ramirez\r\n

    \r\n

    Oncología

    \r\n
    \r\n
    \r\n
    \r\n
      \r\n
    • \r\n {userInfo.role === \"doctor\" && }\r\n
    • \r\n
    • \r\n \r\n 7\r\n \r\n Pacientes\r\n
    • \r\n
    • \r\n \r\n 1\r\n \r\n Proceso\r\n
    • \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {/* */}\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n

    Información

    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {value === 0 && (\r\n \r\n \r\n \r\n )}\r\n {value === 1 && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {contactList.map((data, index) => (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {data.title}\r\n \r\n

    {data.desc}

    \r\n
    \r\n
    \r\n ))}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DoctorProfile;\r\n","import React from \"react\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nexport const doctorColumns = [\r\n {\r\n name: \"name\",\r\n label: \"Nombre\",\r\n options: {\r\n filter: true,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"company\",\r\n label: \"Institución\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"city\",\r\n label: \"Ciudad\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"specialty\",\r\n label: \"Especialidad\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"email\",\r\n label: \"Email\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"phone\",\r\n label: \"Teléfono\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"numProcess\",\r\n label: \"Procesos\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"numPatient\",\r\n label: \"Pacientes\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n];\r\n\r\nexport const doctors = [\r\n {\r\n name: \"Victoria Lopez\",\r\n company: \"Mederi\",\r\n city: \"Bogotá\",\r\n specialty: \"Oncología\",\r\n email: \"vlopez@ips.com\",\r\n phone: \"3152589631\",\r\n numProcess: \"1\",\r\n numPatient: \"7\",\r\n actions: (\r\n \r\n ),\r\n },\r\n];\r\n\r\nexport const patientColumns = [\r\n {\r\n name: \"code\",\r\n label: \"Código\",\r\n options: {\r\n filter: true,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"name\",\r\n label: \"Nombre\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"sex\",\r\n label: \"Sexo\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"city\",\r\n label: \"Ciudad\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"eps\",\r\n label: \"EPS\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"doctor\",\r\n label: \"Médico tratante\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"product\",\r\n label: \"Línea de producto\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"status\",\r\n label: \"Estado\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n];\r\n\r\nexport const patients = [\r\n {\r\n code: \"RM0001\",\r\n name: \"Alicia Muñoz Diaz\",\r\n sex: \"F\",\r\n city: \"Bogotá\",\r\n eps: \"COMPENSAR\",\r\n doctor: \"Julia Ramirez\",\r\n product: (\r\n
    Remodulin
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"IC0102\",\r\n name: \"Rosa González\",\r\n sex: \"F\",\r\n city: \"Bucaramanga\",\r\n eps: \"COOSALUD\",\r\n doctor: \"Carlos Rios\",\r\n product: (\r\n
    Iclusig
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"RM0016\",\r\n name: \"Miriam Saavedra\",\r\n sex: \"F\",\r\n city: \"Soacha\",\r\n eps: \"COMPENSAR\",\r\n doctor: \"Mauricio Orozco\",\r\n product: (\r\n
    Remodulin
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"IC0104\",\r\n name: \"Pedro Sánchez\",\r\n sex: \"M\",\r\n city: \"Bogotá\",\r\n eps: \"ECOPETROL\",\r\n doctor: \"Jhon Jairo Araujo\",\r\n product: (\r\n
    Iclusig
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"RM0038\",\r\n name: \"Alonso Escorcia\",\r\n sex: \"M\",\r\n city: \"Bucaramanga\",\r\n eps: \"SANITAS\",\r\n doctor: \"Monica Osorio\",\r\n product: (\r\n
    Remodulin
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"RM0068\",\r\n name: \"Milena Martínez\",\r\n sex: \"F\",\r\n city: \"Bogotá\",\r\n eps: \"SANITAS\",\r\n doctor: \"José Luis Blanco\",\r\n product: (\r\n
    Remodulin
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n {\r\n code: \"IC0023\",\r\n name: \"Francisco Hernández\",\r\n sex: \"M\",\r\n city: \"Bucaramanga\",\r\n eps: \"SURA\",\r\n doctor: \"Ernesto Santiago\",\r\n product: (\r\n
    Iclusig
    \r\n ),\r\n status:
    Activo
    ,\r\n actions: (\r\n \r\n ),\r\n },\r\n];\r\n\r\nexport const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n};\r\n","import React from \"react\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nimport { doctors, datatableConfig, doctorColumns } from \"./../data\";\r\n\r\nimport MUIDataTable from \"mui-datatables\";\r\n\r\nclass DoctorList extends React.Component {\r\n render() {\r\n const columns = doctorColumns;\r\n const data = doctors;\r\n\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default DoctorList;\r\n","import React from \"react\";\r\n\r\nfunction hexToRgb(hex, alpha) {\r\n hex = hex.replace(\"#\", \"\");\r\n let r = parseInt(\r\n hex.length === 3 ? hex.slice(0, 1).repeat(2) : hex.slice(0, 2),\r\n 16\r\n );\r\n let g = parseInt(\r\n hex.length === 3 ? hex.slice(1, 2).repeat(2) : hex.slice(2, 4),\r\n 16\r\n );\r\n let b = parseInt(\r\n hex.length === 3 ? hex.slice(2, 3).repeat(2) : hex.slice(4, 6),\r\n 16\r\n );\r\n if (alpha) {\r\n return \"rgba(\" + r + \", \" + g + \", \" + b + \", \" + alpha + \")\";\r\n } else {\r\n return \"rgb(\" + r + \", \" + g + \", \" + b + \")\";\r\n }\r\n}\r\n\r\nconst InfoCard = ({ data, onClickBox }) => {\r\n return (\r\n {\r\n onClickBox();\r\n }}\r\n >\r\n \r\n \r\n \r\n
    \r\n

    \r\n {data.title}\r\n

    \r\n

    {data.subTitle}

    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default InfoCard;\r\nInfoCard.defaultProps = {\r\n styleName: \"\",\r\n};\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\n\r\nimport InfoCard from \"components/InfoCard/index\";\r\n\r\nclass AttachedFile extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n Archivos Adjuntos\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default AttachedFile;\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\n\r\nimport InfoCard from \"components/InfoCard/index\";\r\n\r\nclass RadFileDialog extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n Archivos Adjuntos\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default RadFileDialog;\r\n","import React from \"react\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport AttachedFile from \"./AttachedFile\";\r\nimport RadFileDialog from \"./RadFileDialog\";\r\n\r\nlet id = 0;\r\n\r\nfunction createData(date, detail, status, actions) {\r\n id += 1;\r\n return { id, date, detail, status, actions };\r\n}\r\n\r\nconst data = [\r\n createData(\r\n \"2020/05/20\",\r\n
    Nuevo
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/05/22\",\r\n
    Méd. Autorizó
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/05/25\",\r\n
    Pac. Autorizó
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/05/26\",\r\n
    Primer Impacto
    ,\r\n \"Aprobado\",\r\n \r\n ),\r\n createData(\r\n \"2020/05/27\",\r\n
    \r\n Form. con errores\r\n
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/05/29\",\r\n
    Formulado
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/06/01\",\r\n
    Rad. EPS
    ,\r\n \"Aprobado\",\r\n \r\n ),\r\n createData(\r\n \"2020/06/22\",\r\n
    Autorizado
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/06/25\",\r\n
    Rad. OLF
    ,\r\n \"Aprobado\",\r\n \r\n ),\r\n createData(\r\n \"2020/07/02\",\r\n
    Entrega
    ,\r\n \"Aprobado\"\r\n ),\r\n createData(\r\n \"2020/07/03\",\r\n
    Activo
    ,\r\n \"Aprobado\"\r\n ),\r\n];\r\n\r\nfunction FollowUpTable() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n Fecha\r\n Detalle\r\n Estado\r\n Adjuntos\r\n \r\n \r\n \r\n {data.map((n) => {\r\n return (\r\n \r\n {n.date}\r\n {n.status}\r\n {n.detail}\r\n {n.actions}\r\n \r\n );\r\n })}\r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default FollowUpTable;\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\n\r\nclass ClinicHistoryFile extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n Archivo\r\n \r\n \r\n De manera libre y voluntaria manifiesto mi consentimiento para\r\n participar en el programa de educación y apoyo a pacientes de la\r\n compañía, con el fin de beneficiarme de\r\n los servicios de dicho programa, en concordancia con el\r\n tratamiento ordenado por mi médico tratante.\r\n \r\n \r\n A. Introducción y propósito del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El programa de apoyo a pacientes es un programa creado para\r\n brindar educación, seguimiento y acompañamiento a los pacientes\r\n con diagnóstico de enfermedad crónica, huérfana, ruinosa y/o\r\n catastrófica y sus cuidadores, que busca el bienestar de sus\r\n beneficiarios por medio de la generación de estrategias de\r\n educación, afrontamiento y empoderamiento de su estilo de vida,\r\n ayudándoles a alcanzar sus metas.\r\n \r\n \r\n B. Descripción del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El Programa de Apoyo a Pacientes incluye las siguientes\r\n actividades: (i) Acompañar, educar, guiar, asesorar y apoyar al\r\n paciente en el proceso de aplicación de su tratamiento; (ii)\r\n Despejar dudas e inquietudes y educar a los pacientes, su familia\r\n y/o cuidadores en temas relacionados con la medicamento; (iii)\r\n Permitir el proceso de adaptación del paciente, su familia y/o\r\n cuidadores a las diferentes etapas correspondientes a la evolución\r\n de la enfermedad; (iv) Fortalecer en el paciente y su familia la\r\n aplicación de estrategias de afrontamiento y manejo de la\r\n enfermedad; (v) Fortalecer en los pacientes los comportamientos\r\n relacionados con el cumplimiento de los parámetros de\r\n administración de las dosis referidas por el médico tratante y en\r\n general las pautas de adhesión al tratamiento; (iv) Organización y\r\n desarrollo de actividades con fin de promover el bienestar y\r\n calidad de vida de los pacientes; (vii) Reporte de eventos\r\n adversos.\r\n \r\n \r\n C. Duración del Programa:\r\n \r\n \r\n El Programa de Educación y Apoyo a Pacientes durará el término\r\n durante el cual el Paciente permanezca en tratamiento.\r\n \r\n \r\n D. Habeas Data y Confidencialidad:\r\n \r\n \r\n La compañia se obliga a cumplir y a hacer cumplir a\r\n sus trabajadores, subordinados y contratistas todas las\r\n disposiciones legales en materia de Habeas Data y protección de la\r\n información, establecidas en la Ley 1581 de 2012 y en el Decreto\r\n Reglamentario 1377 de 2013, o aquellas normas que las modifiquen,\r\n subroguen o sustituyan. El manejo de datos sensibles y datos\r\n personales recibirá un tratamiento confidencial con el fin de\r\n garantizar la protección de la información de las personas que\r\n consten en bases de datos manejadas por la compañia, \r\n quienes se comprometen a no transferir ni transmitir dicha\r\n información a terceros sin el previo consentimiento del paciente y\r\n siendo esta siempre de carácter estadístico estadístico o, con fines de investigación científica y/o \r\n publicación de artículos de investigación. De ninguna manera se\r\n incluirán datos que permitan la identificación de pacientes,\r\n familiares y/o cuidadores.\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ClinicHistoryFile;\r\n","import React from \"react\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ClinicHistoryFile from \"./ClinicHistoryFile\";\r\n\r\nlet id = 0;\r\n\r\nfunction createData(date, detail) {\r\n id += 1;\r\n return { id, date, detail };\r\n}\r\n\r\nconst data = [\r\n createData(\"2020/05/20\", \"Fórmula Médica\"),\r\n createData(\"2020/05/22\", \"Estudios Paraclínicos\"),\r\n createData(\"2020/05/26\", \"Antecedentes Alérgicos\"),\r\n createData(\"2020/05/29\", \"Antecedentes Patológicos\"),\r\n];\r\n\r\nfunction ClinicHistoryTable() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n Fecha\r\n Detalle\r\n Archivos\r\n \r\n \r\n \r\n {data.map((n) => {\r\n return (\r\n \r\n {n.date}\r\n {n.detail}\r\n \r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default ClinicHistoryTable;\r\n","import React, { useState } from \"react\";\r\nimport FollowUpTable from \"./FollowUpTable\";\r\nimport ClinicHistoryTable from \"./ClinicHistoryTable\";\r\nimport Auxiliary from \"../../../../../util/Auxiliary\";\r\nimport Widget from \"components/Widget\";\r\nimport Tabs from \"@material-ui/core/Tabs\";\r\nimport Tab from \"@material-ui/core/Tab\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n\r\nconst PatientProfile = () => {\r\n const [value, setValue] = useState(0);\r\n\r\n const handleChange = (event, value) => {\r\n setValue(value);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n

    \r\n Alicia Muñoz Diaz\r\n

    \r\n
    \r\n
    \r\n {/*
    \r\n
      \r\n
    • \r\n \r\n 7\r\n \r\n Pacientes\r\n
    • \r\n
    • \r\n \r\n 1\r\n \r\n Proceso\r\n
    • \r\n
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n {/* */}\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {value === 0 && (\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    Tipo de Afiliación
    \r\n
    \r\n \r\n }\r\n label=\"Beneficiario\"\r\n />\r\n \r\n }\r\n label=\"Cotizante\"\r\n />\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    Nivel de Ocupación
    \r\n
    \r\n \r\n }\r\n label=\"Horas\"\r\n />\r\n \r\n }\r\n label=\"Medio Tiempo\"\r\n />\r\n \r\n }\r\n label=\"Tiempo Completo\"\r\n />\r\n \r\n }\r\n label=\"Independiente\"\r\n />\r\n \r\n }\r\n label=\"Dependiente\"\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    Escolaridad
    \r\n
    \r\n \r\n }\r\n label=\"Sin escolaridad\"\r\n />\r\n \r\n }\r\n label=\"Primaria\"\r\n />\r\n \r\n }\r\n label=\"Secundaria\"\r\n />\r\n \r\n }\r\n label=\"Técnico\"\r\n />\r\n \r\n }\r\n label=\"Universitario\"\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n

    CARACTERÍSTICAS DEL CUIDADOR

    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    Parentesco
    \r\n
    \r\n \r\n }\r\n label=\"Pareja\"\r\n />\r\n \r\n }\r\n label=\"Padre\"\r\n />\r\n \r\n }\r\n label=\"Hijo\"\r\n />\r\n \r\n }\r\n label=\"Hermano\"\r\n />\r\n \r\n }\r\n label=\"Otros\"\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    Escolaridad
    \r\n
    \r\n \r\n }\r\n label=\"Sin escolaridad\"\r\n />\r\n \r\n }\r\n label=\"Primaria\"\r\n />\r\n \r\n }\r\n label=\"Secundaria\"\r\n />\r\n \r\n }\r\n label=\"Universitario\"\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    Nivel de Ocupación
    \r\n
    \r\n \r\n }\r\n label=\"Horas\"\r\n />\r\n \r\n }\r\n label=\"Medio Tiempo\"\r\n />\r\n \r\n }\r\n label=\"Tiempo Completo\"\r\n />\r\n \r\n }\r\n label=\"Independiente\"\r\n />\r\n \r\n }\r\n label=\"Dependiente\"\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {value === 1 && (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n

    \r\n CARACTERÍSTICAS DEL BARRIO O ZONA DE\r\n RESIDENCIA\r\n

    \r\n
    \r\n \r\n }\r\n label=\"Area urbana\"\r\n />\r\n \r\n }\r\n label=\"Area rural\"\r\n />\r\n \r\n }\r\n label=\"Zona de tolerancia\"\r\n />\r\n \r\n }\r\n label=\"Zona dispersa\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    SERVICIOS PÚBLICOS Y SALUBRIDAD

    \r\n
    \r\n \r\n }\r\n label=\"Acueducto\"\r\n />\r\n \r\n }\r\n label=\"Alcantarillado\"\r\n />\r\n\r\n \r\n }\r\n label=\"Luz\"\r\n />\r\n\r\n \r\n }\r\n label=\"Unidad sanitaria\"\r\n />\r\n\r\n \r\n }\r\n label=\"Recolección de residuos\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    \r\n NÚMERO DE HABITACIONES EN LA VIVIENDA Y\r\n DISTRIBUCIÓN\r\n

    \r\n
    \r\n \r\n }\r\n label=\"Área para preparación de alimentos\"\r\n />\r\n \r\n }\r\n label=\"Habitaciones\"\r\n />\r\n \r\n }\r\n label=\"Baño (ducha, lavamanos y sanitario)\"\r\n />\r\n \r\n }\r\n label=\"Área para el manejo de la ropa y elementos de aseo\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    RED DE APOYO

    \r\n
    \r\n \r\n }\r\n label=\"Buena\"\r\n />\r\n \r\n }\r\n label=\"Regular\"\r\n />\r\n \r\n }\r\n label=\"Mala\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    TIEMPO AL SERVICIO DE URGENCIAS

    \r\n
    \r\n \r\n }\r\n label=\"<1 Hora\"\r\n />\r\n \r\n }\r\n label=\"1-2 Horas\"\r\n />\r\n \r\n }\r\n label=\"2 a 3 Horas\"\r\n />\r\n \r\n }\r\n label=\"3 a 4 Horas\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    \r\n PERCEPCIÓN DE LA ENFERMEDAD POR PARTE DEL\r\n PACIENTE Y CUIDADOR\r\n

    \r\n
    \r\n \r\n }\r\n label=\"Buena\"\r\n />\r\n \r\n }\r\n label=\"Regular\"\r\n />\r\n \r\n }\r\n label=\"Mala\"\r\n />\r\n
    \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n

    \r\n CONVIVE CON ANIMALES DOMÉSTICOS EN\r\n INADECUADAS CONDICIONES SANITARIAS\r\n

    \r\n
    \r\n \r\n }\r\n label=\"Sí\"\r\n />\r\n \r\n }\r\n label=\"No\"\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {value === 2 && (\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    Archivos adjuntos

    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n )}\r\n {value === 3 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PatientProfile;\r\n","import React from \"react\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nimport { patients, datatableConfig, patientColumns } from \"./../data\";\r\n\r\nimport MUIDataTable from \"mui-datatables\";\r\n\r\nclass PatientList extends React.Component {\r\n state = {\r\n patients: patients,\r\n };\r\n\r\n render() {\r\n const columns = patientColumns;\r\n const data = patients;\r\n\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default PatientList;\r\n","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions\r\n} from \"@material-ui/core\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst DialogConfirm = ({openDialog, handleRequestClose, title, text, onAcceptClick}) => {\r\n return (\r\n \r\n \r\n {title}\r\n \r\n \r\n
    \r\n {text}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport const DialogConfirmAsync = ({openDialog, handleRequestClose, title, text, onAcceptClickAsync}) => {\r\n return (\r\n \r\n \r\n {title}\r\n \r\n \r\n
    \r\n {text}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport const DlgConfirmCustomAsync = ({children, ...props}) => {\r\n const { \r\n open, \r\n handleRequestClose,\r\n titleTextId, \r\n titleText,\r\n onAcceptClickAsync,\r\n maxWidth=\"sm\"\r\n } = props;\r\n\r\n return (\r\n \r\n {(titleTextId || titleText) && \r\n {titleTextId && }{!titleTextId &&titleText}\r\n }\r\n \r\n {children}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default DialogConfirm;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst DlgAsync = ({children, ...props}) => {\r\n const { open, closeDialog, onSubmitAsync,\r\n titleTextId,\r\n maxWidth=\"sm\",\r\n allowEdit=true\r\n } = props;\r\n\r\n return (\r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n {allowEdit &&\r\n \r\n {}\r\n \r\n }\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgAsync;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport * as dayjs from \"dayjs\";\r\n\r\nexport const dateColumn = (name, textId, format = \"YYYY/MM/DD\", filter=false) => ( \r\n {\r\n name: name,\r\n label: IntlGetText(textId),\r\n options: {\r\n filter: filter,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(format) : \"\";\r\n },\r\n },\r\n }\r\n);\r\n\r\nexport const defaultCol = (name, textId) => ( \r\n {\r\n name: name,\r\n label: IntlGetText(textId),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n },\r\n }\r\n);\r\nexport const numberCol = (name, textId, locale, fnFormat) => ( \r\n {\r\n name: name,\r\n label: IntlGetText(textId),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? fnFormat(locale,value) : \"\";\r\n },\r\n },\r\n }\r\n);\r\n\r\nexport const defaultOptions = () => ({\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: getTextLabels(),\r\n});\r\nexport const minimalOptions = () => ({\r\n filter: false,\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n viewColumns: false,\r\n textLabels: getTextLabels(),\r\n pagination: false,\r\n});\r\n\r\nexport const getTextLabels = () => {\r\n return {\r\n body: {\r\n noMatch: IntlGetText(\"core.datatable.body.noMatch\"),\r\n toolTip: IntlGetText(\"core.datatable.body.toolTip\"),\r\n columnHeaderTooltip: (column) => IntlGetText(\"core.datatable.body.columnHeaderTooltip\") + `${column.label}`,\r\n },\r\n pagination: {\r\n next: IntlGetText(\"core.datatable.pagination.next\"),\r\n previous: IntlGetText(\"core.datatable.pagination.previous\"),\r\n rowsPerPage: IntlGetText(\"core.datatable.pagination.rowsPerPage\"),\r\n displayRows: IntlGetText(\"core.datatable.pagination.displayRows\"),\r\n },\r\n toolbar: {\r\n search: IntlGetText(\"core.datatable.toolbar.search\"),\r\n downloadCsv: IntlGetText(\"core.datatable.toolbar.downloadCsv\"),\r\n print: IntlGetText(\"core.datatable.toolbar.print\"),\r\n viewColumns: IntlGetText(\"core.datatable.toolbar.viewColumns\"),\r\n filterTable: IntlGetText(\"core.datatable.toolbar.filterTable\"),\r\n },\r\n filter: {\r\n all: IntlGetText(\"core.datatable.filter.all\"),\r\n title: IntlGetText(\"core.datatable.filter.title\"),\r\n reset: IntlGetText(\"core.datatable.filter.reset\"),\r\n },\r\n viewColumns: {\r\n title: IntlGetText(\"core.datatable.viewColumns.title\"),\r\n titleAria: IntlGetText(\"core.datatable.viewColumns.titleAria\"),\r\n },\r\n selectedRows: {\r\n text: IntlGetText(\"core.datatable.selectedRows.text\"),\r\n delete: IntlGetText(\"core.datatable.selectedRows.delete\"),\r\n deleteAria: IntlGetText(\"core.datatable.selectedRows.deleteAria\"),\r\n }\r\n };\r\n};\r\n\r\nconst Table = (props) =>{\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Table;","import React, { useState } from \"react\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\n\r\n\r\nconst DlgNurses = ({nurse, nurses}) => {\r\n const [openDlg, setOpenDlg] = useState(false);\r\n\r\n if(!nurses || nurses.length < 2){\r\n return (<>{nurse});\r\n }\r\n\r\n const columns = [\r\n defaultCol(\"name\", \"core.name\"),\r\n defaultCol(\"lastName\", \"core.lastName\")\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n return (\r\n <>\r\n
    setOpenDlg(true)}>\r\n {nurse+\" ...\"}\r\n
    \r\n setOpenDlg(false)}\r\n >\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgNurses;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { defaultCol, getTextLabels } from \"components/Form/Table\";\r\nimport DlgNurses from \"components/DlgNurses\";\r\n\r\nconst PatientsTable = ({ data, patientStateList, FnActionsColRender }) => {\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n const getObj = (tableMeta) => data.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return ;\r\n },\r\n },\r\n },\r\n defaultCol(\"code\", \"core.code\"),\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: 'excluded',\r\n customSearch: (value, rowData) => {\r\n const documentValue = rowData[3];\r\n return documentValue.toLowerCase().indexOf(value.toLowerCase()) !== -1;\r\n },\r\n }\r\n },\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: false,\r\n },\r\n },\r\n defaultCol(\"fullName\", \"core.name\"),\r\n defaultCol(\"phone\", \"core.phone\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"insurance\", \"core.insurance\"),\r\n defaultCol(\"doctor\", \"core.doctor\"),\r\n {\r\n name: \"productline\",\r\n label: IntlGetText(\"core.productLine\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n {\r\n name: \"stateText\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n var state = patientStateList.find((x) => x.id == rowObj.state);\r\n if (!state) return \"\";\r\n\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return FnActionsColRender(rowObj);\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default PatientsTable;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport PatientTable from \"app/routes/psp/patient3/patientTable\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { callApi, getPatientStateList } from \"api/apiList\";\r\n\r\nconst PatientList = ({ data, loadData }) => {\r\n const [patientStateList, setPatientStateList] = useState([]);\r\n const isConsultant = isRole(RoleEnum.nursemanagerconsultant);\r\n\r\n useEffect(() => {\r\n callApi(getPatientStateList, (data) => {\r\n setPatientStateList(data.states);\r\n });\r\n }, []);\r\n\r\n const FnActionsColRender = (rowObj) => {\r\n if (isConsultant) {\r\n return;\r\n }\r\n\r\n return (\r\n
    \r\n }\r\n placement=\"bottom-end\"\r\n >\r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default PatientList;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Link } from \"react-router-dom\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip, Grid } from \"@material-ui/core\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport {\r\n callApi,\r\n getPatientList,\r\n postActivatePatientFromDropOut,\r\n} from \"api/apiList\";\r\nimport { PatientStateList, RoleEnum, PatientStateEnum } from \"constants/Enums\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { DialogConfirmAsync } from \"../../../../components/Form/Controls/DialogConfirm\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport PatientsTable from \"./patientTable\";\r\nimport PatientListTable from \"components/JaasModule/PatientList\";\r\n\r\nimport { isRole, isJaasModule } from \"../services/userService\";\r\n\r\nconst Table = ({ data, loadData }) => {\r\n const patientStateList = PatientStateList();\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgState, setOpenDlgState] = useState(false);\r\n const [currentRow, setCurrentRow] = useState(null);\r\n const [newState, setNewState] = useState(null);\r\n const [dlgConfirmInfo, setDlgConfirmInfo] = useState({title: '', text:''});\r\n const isConsultant = isRole(RoleEnum.nursemanagerconsultant);\r\n const isNurse = isRole(RoleEnum.nurse);\r\n\r\n let msgActivateText = IntlGetText(\"patientPA.activatePatientMsg\");\r\n const msgActivateTitle = IntlGetText(\"patient.activatePatient\");\r\n const msgChangeStateTitle = IntlGetText(\"core.changeState\");\r\n const msgChangeStateConfirm = IntlGetText(\"core.changeStateConfirmation\");\r\n\r\n const validationSchema = {\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n const methods = useForm({\r\n defaultValues: {state: null},\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const getSateList=(row)=>{\r\n if(!row){\r\n setValue('state',null);\r\n return [];\r\n }\r\n \r\n let stateList = patientStateList.filter(x => x.id == PatientStateEnum.death);\r\n if(row.state === PatientStateEnum.dropout)\r\n stateList = [...stateList, patientStateList.find(x => x.id == PatientStateEnum.active)]; \r\n\r\n return stateList;\r\n };\r\n\r\n const onSubmitState = handleSubmit(async (d) => {\r\n const state = Number(d.state.value);\r\n\r\n let stateItem = patientStateList.find(x => x.id == state);\r\n let dlgInfo = {\r\n title:msgChangeStateTitle,\r\n text:msgChangeStateConfirm.replace(\"{0}\", stateItem && stateItem.name)\r\n .replace(\"{1}\", currentRow && currentRow.fullName)\r\n };\r\n if(state === PatientStateEnum.active){\r\n dlgInfo = {\r\n title: msgActivateTitle, \r\n text: msgActivateText.replace(\"[0]\", currentRow && currentRow.fullName)\r\n }\r\n }\r\n setDlgConfirmInfo(dlgInfo);\r\n\r\n setNewState(state);\r\n setOpenDlgState(false);\r\n setOpenDlg(true);\r\n });\r\n\r\n const FnActionsColRender = (rowObj)=>{\r\n if (isConsultant) {\r\n return;\r\n }\r\n return (\r\n
    \r\n } placement=\"bottom-end\">\r\n \r\n \r\n \r\n \r\n {((isNurse && rowObj.state !== PatientStateEnum.death) || rowObj.state == PatientStateEnum.dropout) && (\r\n } placement=\"bottom-end\">\r\n {\r\n setOpenDlgState(true);\r\n setCurrentRow(rowObj);\r\n }}\r\n color=\"primary\"\r\n className=\"jr-btn\"\r\n >\r\n \r\n \r\n \r\n )}\r\n
    \r\n );\r\n };\r\n return (\r\n <>\r\n \r\n setOpenDlg(false)}\r\n onAcceptClickAsync={async () => {\r\n await postActivatePatientFromDropOut({\r\n prescriptionId: currentRow.prescriptionId,\r\n state: newState\r\n });\r\n loadData();\r\n setOpenDlg(false);\r\n }}\r\n />\r\n setOpenDlgState(false)}\r\n onSubmitAsync={onSubmitState}\r\n titleTextId={\"core.changeState\"}\r\n allowEdit={true}\r\n >\r\n \r\n
    \r\n \r\n \r\n }\r\n options={getSateList(currentRow)}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nconst PatientList = (props) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]);\r\n\r\n const isJaasModuleConfig = isJaasModule();\r\n\r\n const loadData = () => {\r\n callApi(getPatientList, setData, fnSetLoader);\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n <>\r\n {!isJaasModuleConfig && }\r\n {isJaasModuleConfig && }\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PatientList;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport { Checkbox } from \"@material-ui/core\";\r\n\r\nfunction FormCheckBox(props) {\r\n const { control } = useFormContext();\r\n const { className, name, label, defaultValue, ...chkProps } = props;\r\n\r\n return (\r\n (\r\n onChange(e.target.checked)}\r\n onChange={(value)=>{\r\n onChange(value);\r\n if(props.onChange)\r\n props.onChange(value);\r\n }} \r\n checked={value}\r\n className={className}\r\n {...chkProps}\r\n />\r\n )}\r\n />\r\n }\r\n label={label}\r\n />\r\n );\r\n}\r\n\r\nexport default FormCheckBox;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport DayjsUtils from \"@date-io/dayjs\";\r\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport { KeyboardDatePicker } from \"@material-ui/pickers\";\r\n\r\nconst MuiDatePicker = (props) => {\r\n const { className, name, required, errorobj } = props;\r\n\r\n let isError = false;\r\n let errorMessage = \"\";\r\n if (errorobj && errorobj.hasOwnProperty(name)) {\r\n isError = true;\r\n errorMessage = errorobj[name].message;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nfunction FormDatePicker(props) {\r\n const { control } = useFormContext();\r\n const {\r\n name,\r\n defaultValue,\r\n value,\r\n label,\r\n onChange,\r\n className,\r\n ...dateProps\r\n } = props;\r\n\r\n return (\r\n \r\n \r\n (\r\n {\r\n onChange(value);\r\n if (props.onChange) props.onChange(value);\r\n }}\r\n value={value}\r\n {...dateProps}\r\n />\r\n )}\r\n />\r\n \r\n \r\n );\r\n}\r\n\r\nexport default FormDatePicker;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\n\r\n\r\nconst getDefaultQuestions = () => [\r\n {\r\n questionKey: 1,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 2,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 3,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 4,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 5,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 6,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 7,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 8,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 9,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n {\r\n questionKey: 10,\r\n id: 0,\r\n educationLevelSurveyId: 0,\r\n answer: false,\r\n comment: \"\",\r\n },\r\n];\r\n\r\nconst getItemValue = (item) => {\r\n if (item.answer === true) return true;\r\n return false;\r\n};\r\n\r\nconst FormCreateUpdate = ({\r\n openCRU,\r\n handleRequestClose,\r\n impactId,\r\n obj,\r\n handleCreateUpdate,\r\n readOnly,\r\n}) => {\r\n\r\n \r\n const isBoidor = getUserInfo().shardKey === ShardKeyEnum.boidor;\r\n let defaultValues = {\r\n finding: !obj || !obj.finding ? \"\" : obj.finding,\r\n };\r\n \r\n if (!obj) {\r\n obj = { educationLevelSurveyDetail: getDefaultQuestions() };\r\n }\r\n\r\n obj.educationLevelSurveyDetail = obj.educationLevelSurveyDetail.map(\r\n (item) => {\r\n if(isBoidor && item.questionKey == 1){\r\n return {\r\n ...item,\r\n name: IntlGetText(\"educationLevelSurvey.question\" + item.questionKey + \"Lemax\"),\r\n }\r\n }\r\n return {\r\n ...item,\r\n name: IntlGetText(\"educationLevelSurvey.question\" + item.questionKey),\r\n };\r\n }\r\n );\r\n\r\n obj.educationLevelSurveyDetail.map((item) => {\r\n defaultValues[\"item\" + item.questionKey] = getItemValue(item);\r\n defaultValues[\"comment\" + item.questionKey] = !item.comment\r\n ? \"\"\r\n : item.comment;\r\n });\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"finding\", !obj || !obj.finding ? \"\" : obj.finding);\r\n obj.educationLevelSurveyDetail.map((item) => {\r\n setValue(\"item\" + item.questionKey, getItemValue(item));\r\n setValue(\"comment\" + item.questionKey, !item.comment ? \"\" : item.comment);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var survey = {\r\n id: !obj || !obj.id ? 0 : obj.id,\r\n impactId: impactId,\r\n finding: d.finding,\r\n };\r\n\r\n var questionList = [];\r\n var questionKeyList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\r\n questionKeyList.map((itemKey) => {\r\n let itemData = obj.educationLevelSurveyDetail.find(\r\n (x) => x.questionKey === itemKey\r\n );\r\n questionList.push({\r\n ...itemData,\r\n answer: d[\"item\" + itemKey],\r\n comment: d[\"comment\" + itemKey],\r\n });\r\n });\r\n survey.educationLevelSurveyDetail = questionList;\r\n\r\n await handleCreateUpdate(survey);\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const allowEdit = () => {\r\n if (!obj || !obj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return obj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n {obj.educationLevelSurveyDetail.map((item, index) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n }\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n );\r\n })}\r\n \r\n }\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n {!disabled && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"finding\",\r\n label: IntlGetText(\"educationLevelSurvey.findings\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import {\r\n SET_CONSENT_PATH,\r\n SET_CONSENT_URL,\r\n LOAD_INFO_IMPACT,\r\n SET_IMPACT_START_DATE,\r\n SET_CLINICAL_HISTORY_STATE,\r\n SET_HISTORY_DATA,\r\n SET_FORM_FORMULA_DONE,\r\n SET_FORMULA_MEDICINE_QUANTITY,\r\n ON_START_IMPACT,\r\n CALL_RELOAD_ALERTS,\r\n CALL_RELOAD_PATIENT_DATA,\r\n CALL_RELOAD_CONSUMPTION_TRACING,\r\n SET_HEALTH_DATA,\r\n SET_RELOAD_DOSAGE\r\n } from \"../constants/ActionTypes\";\r\n\r\n export const setConsentPath = (consentPath) => {\r\n return {\r\n type: SET_CONSENT_PATH,\r\n payload: consentPath,\r\n };\r\n };\r\n export const setConsentUrl = (consentPath) => {\r\n return {\r\n type: SET_CONSENT_URL,\r\n payload: consentPath,\r\n };\r\n };\r\n export const loadInfoImpact = (infoImpact) => {\r\n return {\r\n type: LOAD_INFO_IMPACT,\r\n payload: infoImpact,\r\n };\r\n };\r\n export const setImpactStartDate = (impactStartDate) => {\r\n return {\r\n type: SET_IMPACT_START_DATE,\r\n payload: impactStartDate,\r\n };\r\n };\r\n export const setClinicalHistoryState = (clinicalHistoryState) => {\r\n return { type: SET_CLINICAL_HISTORY_STATE, payload : clinicalHistoryState };\r\n };\r\n export const sethistoryData = (historyData) => {\r\n return { type: SET_HISTORY_DATA, payload : historyData };\r\n };\r\n export const setFormFormulaDone = (expeditionDateFormula) => {\r\n return { type: SET_FORM_FORMULA_DONE, payload : expeditionDateFormula };\r\n };\r\n export const setFormulaMedicineQuantity = (medicineQuantity) => {\r\n return { type: SET_FORMULA_MEDICINE_QUANTITY, payload : medicineQuantity };\r\n };\r\n export const callStartImpact = (startImpact) => {\r\n return { type: ON_START_IMPACT, payload : startImpact };\r\n };\r\n export const callReloadAlerts = (reloadAlerts) => {\r\n return { type: CALL_RELOAD_ALERTS, payload : reloadAlerts };\r\n };\r\n export const callReloadPatientData = (reload) => {\r\n return { type: CALL_RELOAD_PATIENT_DATA, payload : reload };\r\n };\r\n export const callReloadConsumptionTracing = (reload) => {\r\n return { type: CALL_RELOAD_CONSUMPTION_TRACING, payload : reload };\r\n };\r\n export const setHealthData = (healthData) => {\r\n return { type: SET_HEALTH_DATA, payload : healthData };\r\n };\r\n export const setReloadDosage = (reloadDosage) => {\r\n return { type: SET_RELOAD_DOSAGE, payload : reloadDosage };\r\n };","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getEducationLevelSurveyList,\r\n postCreateUpdateEducationLevelSurvey,\r\n deleteEducationLevelSurvey,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst EducationLevelSurvey = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [educationLevelSurveyList, setEducationLevelSurveyList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getEducationLevelSurveyList(selectedPrescription.id),\r\n setEducationLevelSurveyList\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateEducationLevelSurvey(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteEducationLevelSurvey(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default EducationLevelSurvey;\r\n","import EducationLevelSurvey from \"app/routes/psp/management/GeneralImpact/EducationLevelSurvey\";\r\nimport React, { useState, createRef, useEffect, useRef } from \"react\";\r\n\r\nconst Map = ({ Mapcenter, Mapzoom, geoInfo, setGeoInfo, queryView }) => {\r\n const ref = useRef(null);\r\n const [map, setMap] = useState();\r\n const [zoom, setZoom] = useState(Mapzoom); // initial zoom\r\n const [center, setCenter] = useState(Mapcenter);\r\n const [markers, setMarkers] = useState([]);\r\n\r\n function setMapOnAll(map) {\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n }\r\n }\r\n\r\n function deleteMarkers() {\r\n setMapOnAll(null);\r\n setMarkers([]);\r\n }\r\n\r\n function placeMarkerAndPanTo(latLng, map) {\r\n deleteMarkers();\r\n\r\n var marker = new window.google.maps.Marker({\r\n position: latLng,\r\n map: map,\r\n });\r\n setMarkers([...markers, marker]);\r\n map.panTo(latLng);\r\n }\r\n\r\n const onClick = (e) => {\r\n if (queryView) {\r\n return;\r\n }\r\n setGeoInfo(e.latLng.toJSON());\r\n placeMarkerAndPanTo(e.latLng, map);\r\n };\r\n\r\n const onIdle = (m) => {\r\n setZoom(m.getZoom());\r\n setCenter(m.getCenter().toJSON());\r\n };\r\n\r\n useEffect(() => {\r\n if (ref.current && !map) {\r\n setMap(\r\n new window.google.maps.Map(ref.current, {\r\n center: center,\r\n zoom: zoom,\r\n })\r\n );\r\n }\r\n if (geoInfo) {\r\n var marker = new window.google.maps.Marker({\r\n position: geoInfo,\r\n map: map,\r\n });\r\n setMarkers([...markers, marker]);\r\n }\r\n }, [ref, map]);\r\n\r\n useEffect(() => {\r\n if (map) {\r\n [\"click\", \"idle\"].forEach((eventName) =>\r\n window.google.maps.event.clearListeners(map, eventName)\r\n );\r\n if (onClick) {\r\n map.addListener(\"click\", onClick);\r\n }\r\n\r\n if (onIdle) {\r\n map.addListener(\"idle\", () => onIdle(map));\r\n }\r\n }\r\n }, [map, onClick, onIdle]);\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default Map;\r\n","import React, { useEffect } from \"react\";\r\nimport { Wrapper } from \"@googlemaps/react-wrapper\";\r\nimport Map from \"./map\";\r\n\r\nconst GOOGLE_MAPS_API_KEY = process.env.REACT_APP_GOOGLE_MAPS_API_KEY;\r\n\r\nconst PatientMap = (props) => {\r\n const mapProps = {\r\n center:\r\n props.geoInfo.lat || props.geoInfo.lat\r\n ? {\r\n lat: props.geoInfo.lat,\r\n lng: props.geoInfo.lng,\r\n }\r\n : {\r\n lat: 4.666389,\r\n lng: -74.111575,\r\n },\r\n zoom: props.geoInfo.lat || props.geoInfo.lat ? 15 : 12,\r\n };\r\n\r\n const render = (status) => {\r\n return

    {status}

    ;\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PatientMap;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { FaMapMarkerAlt } from \"react-icons/fa\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n genderList,\r\n educationalLevelList,\r\n CivilStatusList,\r\n RegimeList,\r\n AffiliationTypeList,\r\n StratumList,\r\n} from \"constants/Enums\";\r\nimport { callActionApi, getCitiesByStateProvinceId } from \"api/apiList\";\r\nimport PatientMap from \"components/patientMap\";\r\nimport { TrendingUpRounded } from \"@material-ui/icons\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst calculateAge = (brithday) =>\r\n !brithday || !dayjs(brithday).isValid()\r\n ? \"\"\r\n : dayjs().diff(dayjs(brithday), \"year\");\r\n\r\nconst PatientInfo = ({\r\n stateProvinceList,\r\n documentTypeList,\r\n insuranceList,\r\n patientData,\r\n insuranceData,\r\n}) => {\r\n const [birthCityList, setBirthCityList] = useState([]);\r\n const [cityList, setCityList] = useState([]);\r\n const [openMap, setopenMap] = useState(false);\r\n const [geoInfo, setGeoInfo] = useState({\r\n lat: 0,\r\n lng: 0,\r\n });\r\n\r\n const [loadForm, setLoadForm] = useState({\r\n documentTypeListLoaded: false,\r\n stateProvinceListLoaded: false,\r\n birthCityListLoaded: false,\r\n cityListLoaded: false,\r\n insuranceListLoaded: false,\r\n });\r\n\r\n const genderItems = genderList();\r\n const educationalLevelItems = educationalLevelList();\r\n const stratumItems = StratumList();\r\n const affiliationTypeItems = AffiliationTypeList();\r\n const regimeList = RegimeList();\r\n\r\n const civilStatusList = CivilStatusList();\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const defaultValues = {\r\n code: \"\",\r\n name: \"\",\r\n lastName: \"\",\r\n birthday: null,\r\n age: \"\",\r\n birthstateProvinceId: null,\r\n birthCityId: null,\r\n gender: null,\r\n documentTypeId: null,\r\n document: \"\",\r\n phone: \"\",\r\n cellphone: \"\",\r\n email: \"\",\r\n stateProvinceId: null,\r\n cityId: null,\r\n address: \"\",\r\n educationalLevel: null,\r\n profession: \"\",\r\n civilStatus: null,\r\n stratum: null,\r\n hospitalized: false,\r\n\r\n insuranceId: null,\r\n regime: null,\r\n affiliationType: null,\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { watch, setValue, errors } = methods;\r\n\r\n const documentTypeIdValue = watch(\"documentTypeId\");\r\n const birthstateProvinceValue = watch(\"birthstateProvinceId\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const birthCityIdValue = watch(\"birthCityId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const ageValue = watch(\"age\");\r\n const insuranceIdValue = watch(\"insuranceId\");\r\n\r\n const loadData = (patientData) => {\r\n setGeoInfo({\r\n lat: patientData.geoDataLat ? patientData.geoDataLat : 0,\r\n lng: patientData.geoDataLng ? patientData.geoDataLng : 0,\r\n });\r\n setValue(\"code\", patientData.code);\r\n setValue(\"name\", patientData.name);\r\n setValue(\"lastName\", patientData.lastName);\r\n setValue(\r\n \"birthday\",\r\n patientData.birthday ? dayjs(patientData.birthday) : null\r\n );\r\n setValue(\r\n \"age\",\r\n calculateAge(patientData.birthday ? dayjs(patientData.birthday) : dayjs())\r\n );\r\n setValue(\"birthstateProvinceId\", patientData.birthstateProvinceId);\r\n setValue(\" birthCityId\", patientData.birthCityId);\r\n setValue(\r\n \"gender\",\r\n isNaN(parseInt(patientData.gender))\r\n ? 0\r\n : getCboValue(genderItems, patientData.gender)\r\n );\r\n setValue(\"documentTypeId\", patientData.documentTypeId);\r\n setValue(\"document\", !patientData.document ? \"\" : patientData.document);\r\n setValue(\"phone\", !patientData.phone ? \"\" : patientData.phone);\r\n setValue(\"cellphone\", !patientData.cellphone ? \"\" : patientData.cellphone);\r\n setValue(\"email\", !patientData.email ? \"\" : patientData.email);\r\n setValue(\"stateProvinceId\", patientData.stateProvinceId);\r\n setValue(\"cityId\", patientData.cityId);\r\n setValue(\"address\", !patientData.address ? \"\" : patientData.address);\r\n setValue(\r\n \"educationalLevel\",\r\n isNaN(parseInt(patientData.educationalLevel))\r\n ? 0\r\n : getCboValue(educationalLevelItems, patientData.educationalLevel)\r\n );\r\n setValue(\r\n \"profession\",\r\n !patientData.profession ? \"\" : patientData.profession\r\n );\r\n setValue(\r\n \"civilStatus\",\r\n isNaN(parseInt(patientData.civilStatus))\r\n ? 0\r\n : getCboValue(civilStatusList, patientData.civilStatus)\r\n );\r\n setValue(\r\n \"stratum\",\r\n getCboValue(stratumItems, !patientData ? \"\" : patientData.stratum)\r\n );\r\n setValue(\r\n \"hospitalized\",\r\n patientData.hospitalized ? patientData.hospitalized : false\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (patientData.code) loadData(patientData);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [patientData]);\r\n\r\n useEffect(() => {\r\n if (insuranceData.insuranceId) {\r\n setValue(\"insuranceId\", insuranceData.insuranceId);\r\n setValue(\r\n \"regime\",\r\n isNaN(parseInt(insuranceData.regime))\r\n ? 0\r\n : getCboValue(regimeList, insuranceData.regime)\r\n );\r\n setValue(\r\n \"affiliationType\",\r\n isNaN(parseInt(insuranceData.affiliationType))\r\n ? 0\r\n : getCboValue(affiliationTypeItems, insuranceData.affiliationType)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [insuranceData]);\r\n\r\n useEffect(() => {\r\n if (\r\n !loadForm.stateProvinceListLoaded &&\r\n stateProvinceList.length > 0 &&\r\n birthstateProvinceValue\r\n ) {\r\n setValue(\r\n \"birthstateProvinceId\",\r\n getCboValue(stateProvinceList, birthstateProvinceValue)\r\n );\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(stateProvinceList, stateProvinceIdValue)\r\n );\r\n setLoadForm({ ...loadForm, stateProvinceListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0 && patientData.code) {\r\n setValue(\"cityId\", getCboValue(cityList, patientData.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n if (\r\n !loadForm.birthCityListLoaded &&\r\n birthCityList.length > 0 &&\r\n patientData.code\r\n ) {\r\n setValue(\r\n \"birthCityId\",\r\n getCboValue(birthCityList, patientData.birthCityId)\r\n );\r\n setLoadForm({ ...loadForm, birthCityListLoaded: true });\r\n return;\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [cityList, birthCityList, stateProvinceList, patientData]);\r\n\r\n useEffect(() => {\r\n if (\r\n !loadForm.documentTypeListLoaded &&\r\n documentTypeList.length > 0 &&\r\n documentTypeIdValue\r\n ) {\r\n setValue(\r\n \"documentTypeId\",\r\n getCboValue(documentTypeList, documentTypeIdValue)\r\n );\r\n setLoadForm({ ...loadForm, documentTypeListLoaded: true });\r\n return;\r\n }\r\n }, [documentTypeList, patientData]);\r\n\r\n useEffect(() => {\r\n if (\r\n !loadForm.insuranceListLoaded &&\r\n insuranceList.length > 0 &&\r\n insuranceData.insuranceId\r\n ) {\r\n setValue(\r\n \"insuranceId\",\r\n getCboValue(insuranceList, insuranceData.insuranceId)\r\n );\r\n setLoadForm({ ...loadForm, insuranceListLoaded: true });\r\n return;\r\n }\r\n }, [insuranceList, insuranceData]);\r\n\r\n useEffect(() => {\r\n setValue(\"birthCityId\", null);\r\n if (!birthstateProvinceValue || !birthstateProvinceValue.value) {\r\n setBirthCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(birthstateProvinceValue.value),\r\n setBirthCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [birthstateProvinceValue]);\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n setValue(\"age\", calculateAge(e));\r\n };\r\n\r\n var disabled = true;\r\n\r\n const handleMapRequestClose = () => {\r\n setopenMap(false);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n disabled={disabled}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n onChange={dtpHandleChange(\"birthday\")}\r\n value={watch(\"birthday\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={ageValue}\r\n onChange={(value) => {\r\n setValue(\"age\", value);\r\n }}\r\n disabled={disabled}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={birthstateProvinceValue}\r\n onChange={cboHandleChange(\"birthstateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={birthCityList}\r\n value={birthCityIdValue}\r\n onChange={cboHandleChange(\"birthCityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={genderItems}\r\n value={watch(\"gender\")}\r\n onChange={cboHandleChange(\"gender\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={civilStatusList}\r\n value={watch(\"civilStatus\")}\r\n onChange={cboHandleChange(\"civilStatus\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={documentTypeList}\r\n value={documentTypeIdValue}\r\n onChange={cboHandleChange(\"documentTypeId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n setopenMap(true)}\r\n style={{\r\n background:\r\n geoInfo.lat || geoInfo.lat ? \"#20c997\" : \"#f6bb43\",\r\n color: \"white\",\r\n height: \"40px\",\r\n margin: \"0 0 0 5px\",\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={stratumItems}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={educationalLevelItems}\r\n value={watch(\"educationalLevel\")}\r\n onChange={cboHandleChange(\"educationalLevel\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={insuranceList}\r\n value={insuranceIdValue}\r\n onChange={cboHandleChange(\"insuranceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={regimeList}\r\n value={watch(\"regime\")}\r\n onChange={cboHandleChange(\"regime\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={affiliationTypeItems}\r\n value={watch(\"affiliationType\")}\r\n onChange={cboHandleChange(\"affiliationType\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"hospitalized\")}\r\n onChange={chkHandleChange(\"hospitalized\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n {}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PatientInfo;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport {\r\n HousingTypeList,\r\n SupportNetList\r\n} from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst HousingForm = ({ housingData }) => { \r\n const housingTypeList = HousingTypeList();\r\n const supportNetList = SupportNetList();\r\n\r\n const defaultValues = {\r\n housingType: !housingData\r\n ? 0\r\n : getCboValue(housingTypeList, housingData.housingType),\r\n aqueduct: !housingData.aqueduct ? false : housingData.aqueduct,\r\n sewerage: !housingData.sewerage ? false : housingData.sewerage,\r\n electricity: !housingData.electricity ? false : housingData.electricity,\r\n toilet: !housingData.toilet ? false : housingData.toilet,\r\n wasteCollection: !housingData.wasteCollection ? false : housingData.wasteCollection,\r\n cookingArea: !housingData.cookingArea ? false : housingData.cookingArea,\r\n rooms: !housingData.rooms ? 0 : housingData.rooms,\r\n bathRoom: !housingData.bathRoom ? false : housingData.bathRoom,\r\n laundryArea: !housingData.laundryArea ? false : housingData.laundryArea,\r\n supportNet: !housingData.supportNet\r\n ? 0\r\n : getCboValue(supportNetList, housingData.supportNet),\r\n petsInUnsuitableConditions: !housingData.petsInUnsuitableConditions\r\n ? false\r\n : housingData.petsInUnsuitableConditions,\r\n animalType: !housingData.animalType ? \"\" : housingData.animalType,\r\n petsNumber: !housingData.petsNumber ? 0 : housingData.petsNumber,\r\n };\r\n \r\n const methods = useForm({defaultValues});\r\n const { watch, setValue, errors } = methods;\r\n \r\n const loadData = (housingData) =>{\r\n //const housingData = !housingInfo.housingType ? null : housingInfo.housingType;\r\n setValue(\"housingType\", !housingData ? null : getCboValue(housingTypeList, housingData.housingType));\r\n setValue(\"aqueduct\", !housingData ? false : housingData.aqueduct);\r\n setValue(\"sewerage\", !housingData ? false : housingData.sewerage);\r\n setValue(\"electricity\", !housingData ? false : housingData.electricity);\r\n setValue(\"toilet\", !housingData ? false : housingData.toilet);\r\n setValue(\"wasteCollection\", !housingData ? false : housingData.wasteCollection);\r\n setValue(\"cookingArea\", !housingData ? false : housingData.cookingArea);\r\n setValue(\"rooms\", !housingData ? 0 : housingData.rooms);\r\n setValue(\"bathRoom\", !housingData ? false : housingData.bathRoom);\r\n setValue(\"laundryArea\", !housingData ? false : housingData.laundryArea);\r\n setValue(\"supportNet\", !housingData ? null : getCboValue(supportNetList, housingData.supportNet));\r\n setValue(\"petsInUnsuitableConditions\", !housingData ? false : housingData.petsInUnsuitableConditions);\r\n setValue(\"animalType\", !housingData ? \"\" : housingData.animalType);\r\n setValue(\"petsNumber\", !housingData ? 0 : housingData.petsNumber);\r\n };\r\n \r\n useEffect(() => {\r\n if(housingData.id)\r\n loadData(housingData);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [housingData]);\r\n \r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const cboHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n };\r\n \r\n var disabled = true;\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={HousingTypeList()}\r\n value={watch(\"housingType\")}\r\n onChange={cboHandleChange(\"housingType\")}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={SupportNetList()}\r\n value={watch(\"supportNet\")}\r\n onChange={cboHandleChange(\"supportNet\")}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"aqueduct\")}\r\n onChange={chkHandleChange(\"aqueduct\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"sewerage\")}\r\n onChange={chkHandleChange(\"sewerage\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"electricity\")}\r\n onChange={chkHandleChange(\"electricity\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"toilet\")}\r\n onChange={chkHandleChange(\"toilet\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n }\r\n value={watch(\"wasteCollection\")}\r\n onChange={chkHandleChange(\"wasteCollection\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"cookingArea\")}\r\n onChange={chkHandleChange(\"cookingArea\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"bathRoom\")}\r\n onChange={chkHandleChange(\"bathRoom\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"laundryArea\")}\r\n onChange={chkHandleChange(\"laundryArea\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n }\r\n value={watch(\"petsInUnsuitableConditions\")}\r\n onChange={chkHandleChange(\"petsInUnsuitableConditions\")}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n };\r\n\r\n export default HousingForm;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport {\r\n genderList,\r\n educationalLevelList,\r\n CivilStatusList,\r\n RelationshipList\r\n} from \"constants/Enums\";\r\nimport {\r\n callActionApi,\r\n getCitiesByStateProvinceId\r\n} from \"api/apiList\";\r\n\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst calculateAge = (brithday) =>\r\n !brithday || !dayjs(brithday).isValid()\r\n ? \"\"\r\n : dayjs().diff(dayjs(brithday), \"year\");\r\n\r\nconst TutorInfo = ({\r\n stateProvinceList,\r\n documentTypeList,\r\n tutorData\r\n }) => {\r\n const relationshipList = RelationshipList();\r\n const civilStatusItems = CivilStatusList();\r\n const genderItems = genderList();\r\n const educationalLevelItems = educationalLevelList();\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n \r\n const defaultValues = {\r\n name: !tutorData.name ? \"\" : tutorData.name,\r\n lastName: !tutorData.lastName ? \"\" : tutorData.lastName,\r\n birthday: !tutorData\r\n ? null\r\n : tutorData.birthday\r\n ? dayjs(tutorData.birthday)\r\n : null,\r\n age: calculateAge(\r\n !tutorData\r\n ? dayjs()\r\n : tutorData.birthday\r\n ? dayjs(tutorData.birthday)\r\n : dayjs()\r\n ),\r\n birthstateProvinceId: !tutorData.birthstateProvinceId ? \"\" : tutorData.birthstateProvinceId,\r\n birthCityId: !tutorData.birthCityId ? \"\" : tutorData.birthCityId,\r\n gender: !tutorData\r\n ? 0\r\n : isNaN(parseInt(tutorData.gender))\r\n ? 0\r\n : getCboValue(genderList(), tutorData.gender),\r\n documentTypeId: !tutorData.documentTypeId ? \"\" : tutorData.documentTypeId,\r\n document: !tutorData.document ? \"\" : tutorData.document,\r\n phone: !tutorData.phone ? \"\" : tutorData.phone,\r\n cellphone: !tutorData.cellphone ? \"\" : tutorData.cellphone,\r\n email: !tutorData.email ? \"\" : tutorData.email,\r\n stateProvinceId: !tutorData.stateProvinceId ? \"\" : tutorData.stateProvinceId,\r\n cityId: !tutorData.cityId ? \"\" : tutorData.cityId,\r\n address: !tutorData.address ? \"\" : tutorData.address,\r\n educationalLevel: !tutorData\r\n ? 0\r\n : isNaN(parseInt(tutorData.educationalLevel))\r\n ? 0\r\n : getCboValue(educationalLevelList(), tutorData.educationalLevel),\r\n profession: !tutorData.profession ? \"\" : tutorData.profession,\r\n civilStatus: !tutorData\r\n ? \"\"\r\n : isNaN(parseInt(tutorData.civilStatus))\r\n ? 0\r\n : getCboValue(CivilStatusList(), tutorData.civilStatus),\r\n relationship: !tutorData\r\n ? \"\"\r\n : isNaN(parseInt(tutorData.relationship))\r\n ? 0\r\n : getCboValue(RelationshipList(), tutorData.relationship),\r\n stratum: !tutorData.stratum ? \"\" : tutorData.stratum,\r\n };\r\n \r\n const methods = useForm({ defaultValues });\r\n const { watch, setValue, errors } = methods;\r\n \r\n const documentTypeIdValue = watch(\"documentTypeId\");\r\n const birthstateProvinceValue = watch(\"birthstateProvinceId\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const birthCityIdValue = watch(\"birthCityId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const ageValue = watch(\"age\");\r\n \r\n const [birthCityList, setBirthCityList] = useState([]);\r\n const [cityList, setCityList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n documentTypeListLoaded: false,\r\n stateProvinceListLoaded: false,\r\n birthCityListLoaded: false,\r\n cityListLoaded: false,\r\n });\r\n\r\n const loadData = (tutorData) => {\r\n setValue(\"name\", tutorData.name);\r\n setValue(\"lastName\", tutorData.lastName);\r\n setValue(\"birthday\", tutorData.birthday ? dayjs(tutorData.birthday) : null);\r\n setValue(\"age\", calculateAge(\r\n tutorData.birthday ? dayjs(tutorData.birthday) : dayjs()\r\n ));\r\n setValue(\"birthstateProvinceId\", tutorData.birthstateProvinceId);\r\n setValue(\" birthCityId\", tutorData.birthCityId);\r\n setValue(\"gender\", isNaN(parseInt(tutorData.gender))\r\n ? 0\r\n : getCboValue(genderItems, tutorData.gender));\r\n setValue(\"documentTypeId\", tutorData.documentTypeId);\r\n setValue(\"document\", !tutorData.document ? \"\" : tutorData.document);\r\n setValue(\"phone\", tutorData.phone);\r\n setValue(\"cellphone\", tutorData.cellphone);\r\n setValue(\"email\", !tutorData.email ? \"\" : tutorData.email);\r\n setValue(\"stateProvinceId\", tutorData.stateProvinceId);\r\n setValue(\"cityId\", tutorData.cityId);\r\n setValue(\"address\", !tutorData.address ? \"\" : tutorData.address);\r\n setValue(\"educationalLevel\", isNaN(parseInt(tutorData.educationalLevel))\r\n ? 0\r\n : getCboValue(educationalLevelItems, tutorData.educationalLevel));\r\n setValue(\"profession\", !tutorData.profession ? \"\" : tutorData.profession);\r\n setValue(\"civilStatus\", isNaN(parseInt(tutorData.civilStatus))\r\n ? 0\r\n : getCboValue(civilStatusItems, tutorData.civilStatus));\r\n setValue(\"stratum\", !tutorData ? \"\" : tutorData.stratum);\r\n setValue(\"relationship\", !tutorData\r\n ? \"\"\r\n : isNaN(parseInt(tutorData.relationship))\r\n ? 0\r\n : getCboValue(relationshipList, tutorData.relationship));\r\n };\r\n\r\n useEffect(() => {\r\n if(tutorData && tutorData.id){\r\n loadData(tutorData);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [tutorData]);\r\n \r\n \r\n useEffect(() => {\r\n if (!loadForm.stateProvinceListLoaded && stateProvinceList.length > 0) {\r\n setValue(\r\n \"birthstateProvinceId\",\r\n getCboValue(stateProvinceList, birthstateProvinceValue)\r\n );\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(stateProvinceList, stateProvinceIdValue)\r\n );\r\n setLoadForm({ ...loadForm, stateProvinceListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, defaultValues.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.birthCityListLoaded && birthCityList.length > 0) {\r\n setValue(\r\n \"birthCityId\",\r\n getCboValue(birthCityList, defaultValues.birthCityId)\r\n );\r\n setLoadForm({ ...loadForm, birthCityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.documentTypeListLoaded && documentTypeList.length > 0) {\r\n setValue(\r\n \"documentTypeId\",\r\n getCboValue(documentTypeList, documentTypeIdValue)\r\n );\r\n setLoadForm({ ...loadForm, documentTypeListLoaded: true });\r\n return;\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [cityList, birthCityList, stateProvinceList, documentTypeList]);\r\n \r\n useEffect(() => {\r\n setValue(\"birthCityId\", null);\r\n if (!birthstateProvinceValue || !birthstateProvinceValue.value) {\r\n setBirthCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(birthstateProvinceValue.value),\r\n setBirthCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [birthstateProvinceValue]);\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n \r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n setValue(\"age\", calculateAge(e));\r\n };\r\n \r\n\r\n var disabled = true;\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n value={watch(\"birthday\")}\r\n onChange={dtpHandleChange(\"birthday\")}\r\n disableFuture={true}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n value={ageValue}\r\n onChange={(value) => {\r\n setValue(\"age\", value);\r\n }}\r\n disabled={true}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={birthstateProvinceValue}\r\n onChange={cboHandleChange(\"birthstateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={birthCityList}\r\n value={birthCityIdValue}\r\n onChange={cboHandleChange(\"birthCityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={genderList()}\r\n value={watch(\"gender\")}\r\n onChange={cboHandleChange(\"gender\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={CivilStatusList()}\r\n value={watch(\"civilStatus\")}\r\n onChange={cboHandleChange(\"civilStatus\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={documentTypeList}\r\n value={documentTypeIdValue}\r\n onChange={cboHandleChange(\"documentTypeId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"tstateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={educationalLevelList()}\r\n value={watch(\"educationalLevel\")}\r\n onChange={cboHandleChange(\"educationalLevel\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={RelationshipList()}\r\n value={watch(\"relationship\")}\r\n onChange={cboHandleChange(\"relationship\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n };\r\n\r\nexport default TutorInfo;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport { VariableGroupTypeList, ControlTypeEnum } from \"constants/Enums\";\r\n\r\nconst ClinicHistoryTable = ({ options, data }) => { \r\n const variableGroupTypeList = VariableGroupTypeList();\r\n const textYes = IntlGetText(\"core.yes\");\r\n const textNo = IntlGetText(\"button.no\");\r\n \r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n \r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"variableGroupType\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const type = variableGroupTypeList.find(x=>x.id === value);\r\n return !type ? value : type.name;\r\n },\r\n }\r\n },\r\n {\r\n name: \"variableGroup\",\r\n label: IntlGetText(\"core.variableGroup\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"date\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"name\",\r\n label: IntlGetText(\"patientDetail.property\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"value\",\r\n label: IntlGetText(\"patientDetail.value\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n \r\n switch(rowObj.controlType){\r\n case ControlTypeEnum.dateTime: return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n case ControlTypeEnum.checkbox: return (!value || value === \"false\") ? textNo : textYes;\r\n }\r\n \r\n return value;\r\n },\r\n },\r\n }\r\n ];\r\n \r\n return (\r\n \r\n );\r\n };\r\n\r\n export default ClinicHistoryTable;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nconst DownloadButton = ({ classes, fileLink, keyMsg, color, icon, variant = \"contained\" }) => {\r\n const finalIcon = icon ? \"mr-2 zmdi \" + icon : null;\r\n const onClick = () => {\r\n const link = document.createElement(\"a\");\r\n link.href = fileLink;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n };\r\n \r\n return (\r\n \r\n );\r\n};\r\n\r\nexport const DownloadButton2 = ({ children, ...props }) => {\r\n const { fileLink, ...buttonProps } = props;\r\n const onClick = () => {\r\n const link = document.createElement(\"a\");\r\n link.href = fileLink;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default DownloadButton;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport { VariableGroupTypeList } from \"constants/Enums\";\r\n\r\nconst FileTable = ({ options, data }) => { \r\n const variableGroupTypeList = VariableGroupTypeList();\r\n \r\n const columns = [\r\n {\r\n name: \"variableGroupType\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const type = variableGroupTypeList.find(x=>x.id === value);\r\n return !type ? value : type.name;\r\n },\r\n }\r\n },\r\n {\r\n name: \"variableGroup\",\r\n label: IntlGetText(\"core.variableGroup\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"date\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"file\",\r\n label: IntlGetText(\"core.file\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n },\r\n },\r\n }\r\n ];\r\n \r\n return (\r\n \r\n );\r\n };\r\n\r\n export default FileTable;","import React, { useState, useEffect } from \"react\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport {\r\n callActionApi,\r\n getAdditionalMedications\r\n} from \"api/apiList\";\r\n\r\nconst AdditionalMedicationsTable = ({ options, lastPrescriptionId }) => { \r\n const [data, setData] = useState(null);\r\n \r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"activePrinciple\",\r\n label: IntlGetText(\"core.activePrinciple\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"dosage\",\r\n label: IntlGetText(\"core.dosage\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return rowObj.measurementUnit ? value + \" \" + rowObj.measurementUnit : value;\r\n }\r\n }\r\n },\r\n {\r\n name: \"administrationRoute\",\r\n label: IntlGetText(\"formula.administrationRoute\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"supplyFrequency\",\r\n label: IntlGetText(\"formula.supplyFrequency\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"treatmentStartDate\",\r\n label: IntlGetText(\"additionalMedications.treatmentStartDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"treatmentEndDate\",\r\n label: IntlGetText(\"additionalMedications.treatmentEndDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(rowObj.lifeTime)\r\n return \"De por vida\";\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n }\r\n ];\r\n \r\n \r\n useEffect(() => {\r\n if(!lastPrescriptionId)\r\n return;\r\n\r\n callActionApi(\r\n () => getAdditionalMedications(lastPrescriptionId),\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, [lastPrescriptionId]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default AdditionalMedicationsTable;","import React, { useState, useEffect } from \"react\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport ClinicHistoryTable from \"./ClinicHistoryTable\";\r\nimport FileTable from \"./FileTable\";\r\nimport AdditionalMedicationsTable from \"./AdditionalMedicationsTable\";\r\nimport { callActionApi, getCHPatientDetail } from \"api/apiList\";\r\n\r\n\r\nconst ClinicalHistoryDetail = ({patientId}) => { \r\n const [data, setData] = useState(null);\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n useEffect(() => {\r\n callActionApi(\r\n ()=>getCHPatientDetail(patientId),\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ClinicalHistoryDetail;","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { callApi, getProductsAndStates } from \"api/apiList\";\r\n\r\n\r\nconst ImpactTable = ({ impacts }) => {\r\n const [impactTypeList,setImpactTypeList] = useState([]);\r\n\r\n useEffect(()=>{\r\n callApi(\r\n getProductsAndStates,\r\n (data)=>{ \r\n setImpactTypeList(data.prescriptionStates.filter(x=>x.isImpactType));\r\n }\r\n );\r\n },[]);\r\n\r\n const getObj = (tableMeta) => impacts.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactTypeId\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const state = impactTypeList.find(x=>x.id === value);\r\n if(!state) return \"\";\r\n return (\r\n
    \r\n {state.title}\r\n
    \r\n );\r\n }\r\n }\r\n },\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"core.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"nursingNote\", \"impact.NursingNote\")\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { callApi, getProductsAndStates } from \"api/apiList\";\r\n\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const [impactTypeList,setImpactTypeList] = useState([]);\r\n\r\n useEffect(()=>{\r\n callApi(\r\n getProductsAndStates,\r\n (data)=>{ \r\n setImpactTypeList(data.prescriptionStates.filter(x=>x.isImpactType));\r\n }\r\n );\r\n },[]);\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"code\", \"radicacionInsurance.Code\"),\r\n {\r\n name: \"radicacionDate\",\r\n label: IntlGetText(\"radicadoOLF.radicadoDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"radicacionPoint\", \"radicacionInsurance.radicacionPoint\")\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"radicadoInsuranceCode\",\r\n label: IntlGetText(\"insuranceAuthorization.radicadoInsuranceCode\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return rowObj.radicadoInsuranceCode \r\n ? rowObj.radicadoInsuranceCode \r\n : ( !rowObj.radicadoInsuranceDate ? \"\" : dayjs(rowObj.radicadoInsuranceDate).format(\"YYYY/MM/DD\"));\r\n }\r\n }\r\n },\r\n defaultCol(\"code\", \"insuranceAuthorization.codeNumber\"),\r\n defaultCol(\"marketChain\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"medicineAmount\", \"insuranceAuthorization.medicineAmountDelivery\"),\r\n {\r\n name: \"expirationDate\",\r\n label: IntlGetText(\"insuranceAuthorization.expirationDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"adverseEventProcess.files\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if(value){\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n return \"\";\r\n },\r\n },\r\n }\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","\r\nimport React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\n\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"authorizationCode\", \"insuranceAuthorization.codeNumber\"),\r\n defaultCol(\"code\", \"radicadoOLF.pendDate\"),\r\n {\r\n name: \"radicadoDate\",\r\n label: IntlGetText(\"radicadoOLF.radicadoDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"medicineAmount\", \"core.amount\"),\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"adverseEventProcess.files\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if(value){\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n return \"\";\r\n },\r\n },\r\n }\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\n\r\n\r\nconst DeliveryDetail = ({data, openDlg, handleRequestClose}) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n defaultCol(\"lotNumber\", \"medicineDelivery.lotNumber\"),\r\n {\r\n name: \"expirationDate\",\r\n label: IntlGetText(\"medicineDelivery.expirationDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}; \r\n\r\nexport default DeliveryDetail;","\r\nimport React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport DeliveryDetail from \"./DeliveryDetail\";\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [deliveryDetailList, setDeliveryDetailList] = useState([]);\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n setOpenDlg(true);\r\n setDeliveryDetailList(getObj(tableMeta).deliveryDetail);\r\n };\r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"radicadoOLFCode\", \"radicadoOLF.pendDate\"),\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"medicineAmount\",\r\n label: IntlGetText(\"medicineDelivery.medAmountDlvr\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n {value &&\r\n \r\n \r\n \r\n }\r\n \r\n );\r\n },\r\n },\r\n }\r\n ]; \r\n\r\n return (\r\n \r\n \r\n setOpenDlg(false)}/>\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport RadicadoInsuranceTable from \"./RadicadoInsuranceTable\";\r\nimport InsuranceAuthorizationTable from \"./InsuranceAuthorizationTable\";\r\nimport RadicadoOLFTable from \"./RadicadoOLFTable\";\r\nimport DeliveryTable from \"./DeliveryTable\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { callApi, getGetProcessDetailPatient } from \"api/apiList\";\r\n\r\nconst ProcessDetail = ({\r\n currentPrescriptionId,\r\n openDlg,\r\n handleRequestClose,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [radicadoInsuranceList, setRadicadoInsuranceList] = useState([]);\r\n const [authorizationList, setAuthorizationList] = useState([]);\r\n const [radicadoOLFList, setRadicadoOLFList] = useState([]);\r\n const [deliveryList, setDeliveryList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!currentPrescriptionId) return;\r\n\r\n callApi(\r\n () => getGetProcessDetailPatient(currentPrescriptionId),\r\n (detail) => {\r\n setRadicadoInsuranceList(detail.radicadoInsurance);\r\n setAuthorizationList(detail.authorization);\r\n setRadicadoOLFList(detail.radicadoOLF);\r\n setDeliveryList(detail.delivery);\r\n },\r\n fnSetLoader\r\n );\r\n }, [currentPrescriptionId]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n

    \r\n \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n \r\n

    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ProcessDetail;\r\n","import axios from \"axios\";\r\nimport { BlockBlobClient } from \"@azure/storage-blob\";\r\n\r\nconst SAS_GENERATOR_URL = process.env.REACT_APP_SAS_GENERATOR;\r\n\r\nconst upload = async (file, callback) => {\r\n const extension = file.name.substr(file.name.lastIndexOf(\".\"));\r\n const originalName = file.name;\r\n let fileName = new Date().valueOf() + \"_\" + Math.random().toFixed(16).substring(2) + extension; \r\n\r\n let codeSas = await getSas();\r\n codeSas = codeSas.replace(\"{0}\", fileName).replace(\"http\", \"https\");\r\n\r\n if (!codeSas || !fileName) return;\r\n \r\n const blockBlobClient = new BlockBlobClient(\r\n `${codeSas}` // A SAS should start with \"?\"\r\n );\r\n \r\n const blobResult = await blockBlobClient.upload(file, file.size, {\r\n maxSingleShotSize: 4 * 1024 * 1024,\r\n });\r\n\r\n if (callback)\r\n await callback(fileName, originalName);\r\n\r\n return true;\r\n };\r\n\r\n const getSas = async () => {\r\n const url = `${SAS_GENERATOR_URL}`;\r\n const objToSend = JSON.stringify({\r\n connectionStringSecret: \"coresasecret\",\r\n containerName: \"temp-files\",\r\n permissionRequired: \"blobUpload\",\r\n permissionMinutes: 10\r\n });\r\n const { data } = await axios.post(url, objToSend);\r\n return data;\r\n }\r\n \r\n export default upload;","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport upload from \"services/blobService\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport heic2any from \"heic2any\";\r\n\r\nconst FileUpload = ({ id, setResult }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const finalId = id ? id : new Date().getMilliseconds();\r\n const handleFileChange = async (event) => {\r\n fnSetLoader(true);\r\n const file = await convertFileIfHEIC(event.target.files[0]);\r\n await upload(file, async (fileName) => {\r\n setResult(fileName);\r\n fnSetLoader(false);\r\n });\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nasync function convertFileIfHEIC(file) {\r\n const isHEIC = file && file.name.toLowerCase().endsWith(\".heic\");\r\n\r\n if (isHEIC) {\r\n try {\r\n const convertedBlobs = await heic2any({\r\n blob: file,\r\n toType: \"image/jpeg\",\r\n quality: 0.8,\r\n });\r\n\r\n const convertedBlob = Array.isArray(convertedBlobs)\r\n ? convertedBlobs[0]\r\n : convertedBlobs;\r\n\r\n if (!convertedBlob) {\r\n throw new Error(\"Conversión fallida: el Blob convertido es inválido.\");\r\n }\r\n\r\n const newFile = new File(\r\n [convertedBlob],\r\n file.name.replace(/\\.\\w+$/, \".jpg\"),\r\n {\r\n type: \"image/jpeg\",\r\n }\r\n );\r\n\r\n return newFile;\r\n } catch (error) {\r\n console.error(\"Error during conversion:\", error);\r\n throw new Error(\"Error during HEIC to JPEG conversion.\");\r\n }\r\n } else {\r\n return file;\r\n }\r\n}\r\n\r\nexport const FileUploadWithOriginalName = ({ children, ...props }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const { id, setResult } = props;\r\n const finalId = id ? id : new Date().getMilliseconds();\r\n const handleFileChange = async (event) => {\r\n fnSetLoader(true);\r\n const file = await convertFileIfHEIC(event.target.files[0]);\r\n\r\n await upload(file, async (fileName, originalName) => {\r\n setResult({ fileName, originalName });\r\n fnSetLoader(false);\r\n });\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default FileUpload;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {Card, CardHeader} from 'reactstrap';\r\nimport { FileUploadWithOriginalName } from \"components/Form/file-upload/index\";\r\nimport DownloadButton from \"components/DownloadButton/index\";\r\nimport { callApiAsync } from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst clearFile = () => {\r\n const elementFile = document.getElementById(\"fm-file\");\r\n if (elementFile)\r\n elementFile.value = \"\";\r\n};\r\n\r\nconst CardFileUpload = ({disabled, file, setFile, actionApi, actionApiInfo, reset, showDownload = true }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [fileResult, setFileResult] = useState({fileName:\"\", originalName:\"\"});\r\n const handleFilenameChange = (filenameResult) => { setFileResult(filenameResult); };\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgFileWarning = IntlGetText(\"core.fileNotFound\");\r\n\r\n const resetControlFile = () =>{\r\n clearFile();\r\n setFileResult({fileName:\"\", originalName:\"\"}); \r\n };\r\n\r\n useEffect(()=>{\r\n if(reset)\r\n resetControlFile();\r\n },[reset]);\r\n\r\n const onSaveFileAsync = async () => {\r\n if (fileResult.fileName) {\r\n await callApiAsync(\r\n () => actionApi({ ...actionApiInfo, tempFilename: fileResult.fileName }),\r\n async (fileResponse) => {\r\n NotificationManager.success(msgSuccess);\r\n resetControlFile(); \r\n setFile(fileResponse); \r\n },\r\n fnSetLoader\r\n );\r\n } else {\r\n NotificationManager.warning(msgFileWarning);\r\n }\r\n };\r\n return (\r\n \r\n { (!disabled || file) && \r\n \r\n \r\n { !disabled && \r\n \r\n \r\n \r\n }\r\n {fileResult.originalName}\r\n \r\n {file && showDownload && }\r\n \r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default CardFileUpload;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\n\r\nconst DlgGeneric = ({children, ...props}) => {\r\n const { open, closeDialog, titleTextId, titleText,\r\n maxWidth=\"sm\" } = props;\r\n\r\n return (\r\n \r\n {(titleTextId || titleText) && \r\n {titleTextId && }{!titleTextId &&titleText}\r\n }\r\n \r\n {children}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgGeneric;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport { callApi, getFormulaReadOnly } from \"api/apiList\";\r\nimport {\r\n FormulaType,\r\n ProductBehavior\r\n} from \"constants/Enums\";\r\n\r\nconst FormulaInfo = ({\r\n currentPrescriptionId,\r\n openDlg,\r\n handleRequestClose,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n \r\n const [file, setFile] = useState(null);\r\n const [productBehavior, setProductBehavior] = useState(-1);\r\n const [formulaType, setFormulaType] = useState(FormulaType.MIPRES);\r\n\r\n var defaultValues = {\r\n formulaTypeText:\"\",\r\n prescriptionTypeText:\"\",\r\n stateProvince: \"\",\r\n city: \"\",\r\n expeditionDate: null,\r\n code: \"\",\r\n company: \"\",\r\n doctor: \"\",\r\n attentionScope: \"\",\r\n disease: \"\",\r\n product: \"\",\r\n\r\n medicineAmount: \"\",\r\n durationTreatment: \"\",\r\n pharmaceuticalQuantity:\"\",\r\n pharmaceuticalUnit: \"\",\r\n administrationRoute: \"\",\r\n additionalGuidelines: \"\",\r\n\r\n dosageUnit: \"\",\r\n dosageQuantity: \"\",\r\n dosageInfusionRate: \"\",\r\n dosageSupplyFrequency: \"\" \r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { setValue } = methods;\r\n\r\n const setText = (obj, field) => setValue(field, !obj[field] ? \"\" : obj[field]);\r\n\r\n useEffect(() => {\r\n if (!currentPrescriptionId || !openDlg) return;\r\n\r\n callApi(\r\n () => getFormulaReadOnly(currentPrescriptionId),\r\n (data) => {\r\n setText(data,\"formulaTypeText\");\r\n setText(data,\"prescriptionTypeText\");\r\n setText(data,\"stateProvince\");\r\n setText(data,\"city\");\r\n //setText(data,\"expeditionDate\"); //*\r\n setText(data,\"code\");\r\n setText(data,\"company\");\r\n setText(data,\"doctor\");\r\n setText(data,\"attentionScope\");\r\n setText(data,\"disease\");\r\n setText(data,\"product\");\r\n\r\n setText(data,\"medicineAmount\");\r\n setText(data,\"durationTreatment\");\r\n setText(data,\"pharmaceuticalQuantity\");\r\n setText(data,\"pharmaceuticalUnit\");\r\n setText(data,\"administrationRoute\");\r\n setText(data,\"additionalGuidelines\");\r\n\r\n setText(data,\"dosageUnit\");\r\n setText(data,\"dosageQuantity\");\r\n setText(data,\"dosageInfusionRate\");\r\n setText(data,\"dosageSupplyFrequency\");\r\n \r\n if(data.expeditionDate)\r\n setValue(\"expeditionDate\",dayjs(data.expeditionDate).format(\"YYYY-MM-DD\"));\r\n\r\n setFormulaType(data.formulaType);\r\n setProductBehavior(data.CustomBehaviorId);\r\n if(data.file)\r\n setFile(data.file);\r\n },\r\n fnSetLoader\r\n );\r\n }, [currentPrescriptionId,openDlg]);\r\n\r\n\r\n const disabled = true;\r\n return (\r\n }\r\n maxWidth=\"md\"\r\n >\r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n {formulaType == FormulaType.MIPRES && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n )}\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n {formulaType == FormulaType.MIPRES && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n )}\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n {(productBehavior == -1 ||\r\n productBehavior == ProductBehavior.remodulin || productBehavior == ProductBehavior.dacepton) && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n )}\r\n { (productBehavior == -1 || (formulaType == FormulaType.MIPRES &&\r\n productBehavior != ProductBehavior.remodulin &&\r\n productBehavior != ProductBehavior.dacepton)) &&\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n }\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\" \r\n multiline\r\n rows={3}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n
    \r\n { file &&\r\n {}}\r\n actionApi={()=>{}}\r\n actionApiInfo={{ }}\r\n />\r\n }\r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default FormulaInfo;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getDiseasesByProductId,\r\n getDoctorList,\r\n postSaveHealthData,\r\n postFormulaFile,\r\n getCitiesByStateProvinceId,\r\n getAllStateProvince,\r\n getGetHealthDataByPrescriptionId\r\n} from \"api/apiList\";\r\nimport {\r\n setFormFormulaDone,\r\n setFormulaMedicineQuantity,\r\n callReloadConsumptionTracing\r\n} from \"actions/Impact\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nimport {\r\n PharmaceuticalUnitList,\r\n SupplyFrequencyList,\r\n DurationTreatmentList,\r\n TreatmentTypeList\r\n} from \"constants/Enums\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\n\r\nconst ReduceFormula = ({\r\n currentPrescriptionId,\r\n openDlg,\r\n handleRequestClose\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [formulaData, setFormulaData] = useState(null);\r\n const [companyList, setCompanyList] = useState([]);\r\n const [visitTargetIdList, setVisitTargetIdList] = useState([]);\r\n const [diseaseList, setDiseaseList] = useState([]);\r\n const [productList, setProductList] = useState([]);\r\n const [unitList, setUnitList] = useState([]);\r\n const [unitDurationList, setUnitDurationList] = useState([]);\r\n const [dosageUnitList, setDosageUnitList] = useState([]);\r\n const [attentionScopeList, setAttentionScopeList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n stateProvinceListLoaded: false,\r\n cityListLoaded: false,\r\n visitTargetIdListLoaded: false,\r\n diseaseListLoaded: false\r\n });\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [cityList, setCityList] = useState([]);\r\n const [disabled, setDisabled] = useState(false);\r\n const [file, setFile] = useState(\"\");\r\n const [treatmentType, setTreatmentType] = useState(null);\r\n const supplyFrequencyList = SupplyFrequencyList();\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n companyId: null,\r\n visitTargetId: null,\r\n cityId: null,\r\n stateProvinceId: null,\r\n diseaseId: null,\r\n productId: null,\r\n medicineAmount: \"\",\r\n additionalGuidelines: \"\",\r\n pharmaceuticalQuantity: \"\",\r\n pharmaceuticalUnit: \"\",\r\n dosageUnitId: \"\",\r\n quantity: \"\",\r\n supplyFrequency: \"\",\r\n durationTreatment: \"\",\r\n unitTime: \"\",\r\n period: \"\",\r\n deliveryRecord: null,\r\n treatmentType: null,\r\n profilaxis: \"\",\r\n attentionScopeId: \"\"\r\n };\r\n\r\n const validationSchema = {\r\n expeditionDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n companyId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n stateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n visitTargetId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n diseaseId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n productId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n durationTreatment: yup\r\n .number()\r\n .nullable(true)\r\n .typeError()\r\n .required(),\r\n period: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n supplyFrequency: yup\r\n .number()\r\n .nullable(true)\r\n .typeError()\r\n .required(),\r\n unitTime: yup\r\n .object()\r\n .required()\r\n .nullable(),\r\n attentionScopeId: yup\r\n .object()\r\n .required()\r\n .nullable(),\r\n deliveryRecord: yup\r\n .number()\r\n .required()\r\n .typeError()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const productIdValue = watch(\"productId\");\r\n const medicineAmountValue = watch(\"medicineAmount\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const attentionScopeIdValue = watch(\"attentionScopeId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const treatmentList = TreatmentTypeList();\r\n const getDInfo = (formulaData, prop) => {\r\n if (!formulaData) return \"\";\r\n\r\n return formulaData.dosage[prop] ? formulaData.dosage[prop] : \"\";\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getGetHealthDataByPrescriptionId(currentPrescriptionId),\r\n (data) => {\r\n setFormulaData(data);\r\n setFile(data.file);\r\n setCompanyList(data.companyList);\r\n setProductList(data.productList);\r\n setUnitList(data.dosageUnitTimeList);\r\n setUnitDurationList(data.dosageDurationUnitTimeList);\r\n setAttentionScopeList(data.attentionScopeList);\r\n const dosageUList = !data.dosageUnitList ? [] : data.dosageUnitList;\r\n setDosageUnitList(dosageUList);\r\n\r\n setValue(\r\n \"medicineAmount\",\r\n !data.medicineAmount ? \"\" : data.medicineAmount\r\n );\r\n setValue(\r\n \"attentionScopeId\",\r\n getCboValue(data.attentionScopeList, data.attentionScopeId)\r\n );\r\n setValue(\r\n \"additionalGuidelines\",\r\n !data.additionalGuidelines ? \"\" : data.additionalGuidelines\r\n );\r\n setValue(\r\n \"treatmentType\",\r\n getCboValue(treatmentList, data.treatmentType)\r\n );\r\n setTreatmentType(data.treatmentType);\r\n setValue(\"companyId\", getCboValue(data.companyList, data.companyId));\r\n setValue(\"productId\", getCboValue(data.productList, data.productId));\r\n setValue(\"code\", data.code);\r\n setValue(\r\n \"expeditionDate\",\r\n !data || !data.expeditionDate ? null : dayjs(data.expeditionDate)\r\n );\r\n setValue(\"durationTreatment\", data.durationTreatment);\r\n setValue(\"supplyFrequency\", data.supplyFrequency);\r\n setValue(\r\n \"unitTime\",\r\n getCboValue(data.dosageUnitTimeList, data.durationTreatmentUnitId)\r\n );\r\n setValue(\r\n \"period\",\r\n getCboValue(\r\n data.dosageDurationUnitTimeList,\r\n data.supplyFrequencyUnitId\r\n )\r\n );\r\n //Dosage\r\n setValue(\r\n \"dosageUnitId\",\r\n getCboValue(dosageUList, getDInfo(data, \"dosageUnitId\"))\r\n );\r\n setValue(\"quantity\", getDInfo(data, \"quantity\"));\r\n\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(data.stateProvinceList, data.stateProvinceId)\r\n );\r\n setValue(\"deliveryRecord\", data.numberDeliveries);\r\n setValue(\"profilaxis\", data.profilaxis);\r\n },\r\n fnSetLoader\r\n );\r\n callApi(getDoctorList, setVisitTargetIdList);\r\n };\r\n useEffect(() => {\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (openDlg) loadData();\r\n }, [openDlg]);\r\n\r\n useEffect(() => {\r\n setValue(\"diseaseId\", null);\r\n if (!productIdValue || !productIdValue.value) {\r\n setDiseaseList([]);\r\n return;\r\n }\r\n callApi(() => getDiseasesByProductId(productIdValue.value), setDiseaseList);\r\n\r\n var product = productList.find((x) => x.id == productIdValue.value);\r\n setValue(\r\n \"pharmaceuticalUnit\",\r\n getCboValue(PharmaceuticalUnitList(), product.pharmaceuticalUnit)\r\n );\r\n\r\n // setValue(\r\n // \"dosageUnitId\",\r\n // getCboValue(formulaData.dosageUnitList, product.dosageUnitId)\r\n // );\r\n\r\n updatePharmaceuticalQuantity();\r\n }, [productIdValue]);\r\n\r\n useEffect(() => {\r\n if (\r\n formulaData &&\r\n !loadForm.visitTargetIdListLoaded &&\r\n visitTargetIdList.length > 0\r\n ) {\r\n setValue(\r\n \"visitTargetId\",\r\n getCboValue(visitTargetIdList, formulaData.visitTargetId)\r\n );\r\n setLoadForm({ ...loadForm, visitTargetIdListLoaded: true });\r\n }\r\n }, [formulaData, visitTargetIdList]);\r\n\r\n useEffect(() => {\r\n if (formulaData && !loadForm.diseaseListLoaded && diseaseList.length > 0) {\r\n setValue(\"diseaseId\", getCboValue(diseaseList, formulaData.diseaseId));\r\n setLoadForm({ ...loadForm, diseaseListLoaded: true });\r\n const selectedDisease = diseaseList.find(\r\n (disease) => disease.id === formulaData.diseaseId\r\n );\r\n setValue(\"offlabel\", selectedDisease.offlabel ? \"Si\" : \"No\");\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, formulaData.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n }, [diseaseList, stateProvinceList, cityList]);\r\n\r\n const updatePharmaceuticalQuantity = () => {\r\n if (!productIdValue || !productIdValue.value || !medicineAmountValue) {\r\n setValue(\"pharmaceuticalQuantity\", 0);\r\n return;\r\n }\r\n\r\n const product = productList.find((x) => x.id == productIdValue.value);\r\n\r\n setValue(\r\n \"pharmaceuticalQuantity\",\r\n product.pharmaceuticalQuantity * medicineAmountValue\r\n );\r\n };\r\n\r\n const cboTreatmentTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n setValue(\"profilaxis\", \"\");\r\n setTreatmentType(event ? event.value : null);\r\n };\r\n const cboDiseaseChange = (name) => (event) => {\r\n setValue(name, event);\r\n const selectedDisease = diseaseList.find(\r\n (disease) => disease.id === event.value\r\n );\r\n setValue(\"offlabel\", selectedDisease.offlabel ? \"Si\" : \"No\");\r\n };\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n useEffect(() => updatePharmaceuticalQuantity(), [medicineAmountValue]);\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n id: formulaData.id,\r\n impactId: formulaData.impactId,\r\n productId: Number(d.productId.value),\r\n diseaseId: Number(d.diseaseId.value),\r\n cityId: Number(d.cityId.value),\r\n visitTargetId: Number(d.visitTargetId.value),\r\n companyId: Number(d.companyId.value),\r\n attentionScopeId: d.attentionScopeId\r\n ? Number(d.attentionScopeId.value)\r\n : null,\r\n durationTreatment: Number(d.durationTreatment),\r\n medicineAmount: !d.medicineAmount ? null : Number(d.medicineAmount),\r\n additionalGuidelines: d.additionalGuidelines,\r\n code: d.code,\r\n expeditionDate:\r\n d.expeditionDate != null\r\n ? dayjs(d.expeditionDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n : null,\r\n\r\n dosageId: Number(getDInfo(formulaData, \"id\")),\r\n dosageQuantity: Number(d.quantity),\r\n supplyFrequency: Number(d.supplyFrequency),\r\n durationTreatmentUnitId: Number(d.unitTime.value),\r\n supplyFrequencyUnitId: Number(d.period.value),\r\n numberDeliveries: Number(d.deliveryRecord),\r\n treatmentType: d.treatmentType ? Number(d.treatmentType.value) : null,\r\n profilaxis: d.profilaxis\r\n };\r\n await callApiAsync(\r\n () => postSaveHealthData(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n dispatch(setFormFormulaDone(data.expeditionDate));\r\n dispatch(setFormulaMedicineQuantity(data.medicineQuantity));\r\n dispatch(callReloadConsumptionTracing(true));\r\n handleRequestClose();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n }\r\n options={companyList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={visitTargetIdList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={productList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={PharmaceuticalUnitList()}\r\n value={watch(\"pharmaceuticalUnit\")}\r\n onChange={cboHandleChange(\"pharmaceuticalUnit\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={dosageUnitList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitList}\r\n value={watch(\"unitTime\")}\r\n onChange={cboHandleChange(\"unitTime\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitDurationList}\r\n value={watch(\"period\")}\r\n onChange={cboHandleChange(\"period\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={attentionScopeList}\r\n value={attentionScopeIdValue}\r\n onChange={cboHandleChange(\"attentionScopeId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"diseaseId\")}\r\n onChange={cboDiseaseChange(\"diseaseId\")}\r\n options={diseaseList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {/*

    numberDeliveries

    */}\r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={true}\r\n />\r\n
    \r\n \r\n }\r\n value={watch(\"treatmentType\")}\r\n onChange={cboTreatmentTypeChange(\"treatmentType\")}\r\n options={TreatmentTypeList()}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={true}\r\n />\r\n \r\n {treatmentType == 4 && (\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n value={watch(\"offlabel\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n errorobj={errors}\r\n disabled={true}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n {(!disabled || file) && formulaData && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ReduceFormula;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ImpactTable from \"./ImpactTable\";\r\nimport ProcessDetail from \"./ProcessDetail\";\r\nimport FormulaInfo from \"./FormulaInfo\";\r\nimport ReduceFormula from \"./ReduceFormula\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n isOnlyTracing,\r\n isDirectTracing,\r\n} from \"app/routes/psp/services/userService\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getPrescriptionByPatient,\r\n getImpactsByPrescription,\r\n} from \"api/apiList\";\r\n\r\nconst PatientFollowUp = ({ patient }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [prescriptionList, setPrescriptionList] = useState([]);\r\n const [impactList, setImpactList] = useState([]);\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgFormula, setOpenDlgFormula] = useState(false);\r\n const [openDlgReduceFormula, setOpenDlgReduceFormula] = useState(false);\r\n const [currentPrescriptionId, setCurrentPrescriptionId] = useState(null);\r\n\r\n const isOnlyTrace = isOnlyTracing();\r\n const isDirectTracingConfig = isDirectTracing();\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getPrescriptionByPatient(patient.id),\r\n (data) => {\r\n setPrescriptionList(data);\r\n if (isOnlyTrace) {\r\n if (data.length > 0) {\r\n callApi(() => getImpactsByPrescription(data[0].id), setImpactList);\r\n }\r\n }\r\n }\r\n );\r\n }, []);\r\n\r\n const defaultValues = { prescriptionId: \"\" };\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, getValues } = methods;\r\n\r\n const loadImpacts = async (prescriptionId) => {\r\n if (!prescriptionId) {\r\n setImpactList([]);\r\n return;\r\n }\r\n\r\n await callApiAsync(\r\n () => getImpactsByPrescription(prescriptionId),\r\n (data) => {\r\n //setCurrentPrescriptionId(Number(d.prescriptionId.value));\r\n setImpactList(data);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n if (!d.prescriptionId) {\r\n setImpactList([]);\r\n return;\r\n }\r\n\r\n await loadImpacts(Number(d.prescriptionId.value));\r\n };\r\n\r\n const onClickProcessDetail = () => {\r\n const d = getValues();\r\n if (!d || !d.prescriptionId) {\r\n setCurrentPrescriptionId(null);\r\n return;\r\n }\r\n setCurrentPrescriptionId(Number(d.prescriptionId.value));\r\n setOpenDlg(true);\r\n };\r\n\r\n const onGetFormulaInfo = () => {\r\n const d = getValues();\r\n if (!d || !d.prescriptionId) {\r\n setCurrentPrescriptionId(null);\r\n return;\r\n }\r\n setCurrentPrescriptionId(Number(d.prescriptionId.value));\r\n\r\n if (isDirectTracingConfig == true) {\r\n setOpenDlgReduceFormula(true);\r\n return;\r\n }\r\n\r\n setOpenDlgFormula(true);\r\n };\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n \r\n {!isOnlyTrace && (\r\n \r\n }\r\n options={prescriptionList}\r\n onChange={handleSubmit(onSubmit)}\r\n margin=\"normal\"\r\n className=\"mr-2\"\r\n />\r\n \r\n )}\r\n \r\n {!isOnlyTrace && (\r\n <>\r\n \r\n {}\r\n \r\n {!isDirectTracingConfig && (\r\n \r\n {\r\n \r\n }\r\n \r\n )}\r\n \r\n )}\r\n setOpenDlg(false)}\r\n />\r\n setOpenDlgFormula(false)}\r\n />\r\n setOpenDlgReduceFormula(false)}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n

    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PatientFollowUp;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport Auxiliary from \"util/Auxiliary\";\r\nimport Widget from \"components/Widget\";\r\nimport { Tabs, Tab, Button } from \"@material-ui/core\";\r\nimport PatientInfo from \"./PatientInfo\";\r\nimport HousingInfo from \"./HousingInfo\";\r\nimport TutorInfo from \"./TutorInfo\";\r\nimport ClinicHistory from \"./ClinicHistory\";\r\nimport PatientFollowUp from \"./PatientFollowUp\";\r\nimport {\r\n callActionApi,\r\n callApi,\r\n getAllStateProvince,\r\n getAllDocumentType,\r\n getPatientInfo,\r\n getInsuranceList,\r\n getPatientStateList,\r\n} from \"api/apiList\";\r\nimport { PatientStateList } from \"constants/Enums\";\r\nimport { isJaasModule } from \"app/routes/psp/services/userService\";\r\n\r\nconst Container = ({ children, ...props }) => {\r\n const { patientName, consentPath } = props;\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n

    \r\n {patientName}\r\n

    \r\n
    \r\n
    \r\n
    \r\n {consentPath && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n {children}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nconst PatientDetail = (props) => {\r\n const { prescriptionId } = props.location;\r\n let history = useHistory();\r\n\r\n const [currentTab, setCurrentTab] = useState(0);\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [documentTypeList, setDocumentTypeList] = useState([]);\r\n const [insuranceList, setInsuranceList] = useState([]);\r\n\r\n const [patientData, setPatientData] = useState({});\r\n const [insuranceData, setInsuranceData] = useState({});\r\n const [tutorData, setTutorData] = useState({});\r\n const [housingData, setHousingData] = useState({});\r\n const [patientStateList, setPatientStateList] = useState([]);\r\n\r\n const isJaasModuleConfig = isJaasModule();\r\n const patientStateList2 = PatientStateList();\r\n\r\n useEffect(() => {\r\n if (isJaasModuleConfig) {\r\n callApi(getPatientStateList, (data) => {\r\n setPatientStateList(data.states);\r\n });\r\n } else {\r\n setPatientStateList(patientStateList2);\r\n }\r\n }, []);\r\n\r\n const getStateText = (data) => {\r\n var state = patientStateList.find((x) => x.id == data);\r\n return !state ? \"\" : state.name;\r\n };\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!prescriptionId) return;\r\n\r\n callApi(\r\n () => getPatientInfo(prescriptionId),\r\n (data) => {\r\n setPatientData(data.patient);\r\n setInsuranceData(!data.insuranceInfo ? {} : data.insuranceInfo);\r\n setHousingData(!data.housing ? {} : data.housing);\r\n setTutorData(!data.tutor ? {} : data.tutor);\r\n }\r\n );\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n callApi(getAllDocumentType, setDocumentTypeList);\r\n callApi(getInsuranceList, setInsuranceList);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const handleChange = (event, value) => setCurrentTab(value);\r\n\r\n if (!prescriptionId) {\r\n history.push(\"/app/patient\");\r\n return <>;\r\n }\r\n\r\n return (\r\n \r\n \r\n
    \r\n
    \r\n \r\n }\r\n />\r\n }\r\n />\r\n }\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentTab === 1 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentTab === 2 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentTab === 3 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentTab === 4 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PatientDetail;\r\n","import http from \"../services/httpService\";\r\n\r\nconst patientApiUrl = `${process.env.REACT_APP_API_URL}/Patient`;\r\n\r\nexport function getAllPatient() {\r\n return http.get(patientApiUrl);\r\n}\r\n\r\nexport function addPatient(patient) {\r\n return http.post(patientApiUrl, patient);\r\n}\r\n\r\nexport function updatePatient(patient) {\r\n http.put(patientApiUrl + \"/\" + patient.id, patient);\r\n}\r\n\r\nexport function deletePatient(patient) {\r\n return http.delete(patientApiUrl + \"/\" + patient.id);\r\n}\r\n","import { getAllPatient } from \"../../../../api/apiPatient\";\r\n\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport * as dayjs from \"dayjs\";\r\n\r\nimport { datatableConfig } from \"./../data\";\r\n\r\nconst PatientList2 = (props) => {\r\n const [data, setData] = useState([]);\r\n const [loading, setLoading] = useState(true);\r\n const [error, setError] = useState(\"\");\r\n\r\n const columns = [\r\n { name: \"name\", label: \"Nombre\", options: { filter: true, sort: true } },\r\n {\r\n name: \"lastName\",\r\n label: \"Apellido\",\r\n options: { filter: true, sort: true },\r\n },\r\n {\r\n name: \"address\",\r\n label: \"Dirección\",\r\n options: { filter: true, sort: true },\r\n },\r\n {\r\n name: \"cityName\",\r\n label: \"Ciudad\",\r\n options: { filter: true, sort: true },\r\n },\r\n {\r\n name: \"birthday\",\r\n label: \"Fecha Nacimiento\",\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"isHospitalized\",\r\n label: \"Hospitalizado\",\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? \"Si\" : \"No\";\r\n },\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n useEffect(() => {\r\n async function fetchData() {\r\n try {\r\n const { data } = await getAllPatient(); \r\n\r\n setData(data);\r\n } catch (e) {\r\n setError(e.message || \"Unexpected error\");\r\n }\r\n\r\n setLoading(false);\r\n }\r\n\r\n fetchData();\r\n }, []);\r\n\r\n if (loading) {\r\n return
    Loading
    ;\r\n }\r\n\r\n if (error) {\r\n return
    ERROR: {error}
    ;\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default PatientList2;\r\n// const Home = (props) => {\r\n// return (\r\n//
    \r\n//
    \r\n// }\r\n// />\r\n\r\n//
    \r\n//
    \r\n// }\r\n// subHeadingColor=\"text-white\"\r\n// >\r\n// \r\n// \r\n//
    \r\n\r\n//
    \r\n// }\r\n// subHeadingColor=\"text-white\"\r\n// >\r\n// \r\n// \r\n// \r\n// \r\n// \r\n// \r\n//
    \r\n\r\n//
    \r\n// }\r\n// subHeadingColor=\"text-white\"\r\n// >\r\n// \r\n// \r\n//
    \r\n//
    \r\n\r\n//
    \r\n//
    \r\n//
    \r\n// }\r\n// />\r\n\r\n//
    \r\n// \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n// }\r\n// />\r\n\r\n//
    \r\n// \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n// }\r\n// />\r\n\r\n//
    \r\n// \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n// );\r\n// };\r\n","import React from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\n\r\nimport Auxiliary from \"../../../../util/Auxiliary\";\r\nimport Widget from \"components/Widget\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\n\r\nconst PatientAdd = () => {\r\n const { register, handleSubmit, errors } = useForm();\r\n const onSubmit = (data) => console.log(data);\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n

    \r\n Crear Paciente\r\n

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    Nuevo Paciente
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PatientAdd;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport { Switch } from \"@material-ui/core\";\r\n\r\nfunction FormSwitch(props) {\r\n const { control } = useFormContext();\r\n const { name, label } = props;\r\n\r\n return (\r\n (\r\n onChange(e.target.checked)}\r\n checked={value}\r\n />\r\n )}\r\n />\r\n }\r\n label={label}\r\n />\r\n );\r\n}\r\n\r\nexport default FormSwitch;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport Widget from \"components/Widget\";\r\n\r\nimport FormInput from \"../../../../components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"../../../../components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"../../../../components/Form/Controls/datepicker\";\r\nimport FormCheckbox from \"../../../../components/Form/Controls/checkbox\";\r\nimport FormSwitch from \"../../../../components/Form/Controls/switch\";\r\nimport Auxiliary from \"../../../../util/Auxiliary\";\r\n\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\n\r\nimport { getAllCity } from \"../../../../api/apiList\";\r\n\r\nconst validationSchema = yup.object().shape({\r\n name: yup.string().required(\"Field is Required\"),\r\n lastName: yup.string().required(\"Field is Required\"),\r\n cboCity: yup\r\n .object()\r\n .required(\"Field is Required\")\r\n .nullable(),\r\n});\r\n\r\nfunction PatientTest(props) {\r\n //const [dataForm, setDataForm] = useState({});\r\n const [cities, setCity] = useState([]);\r\n // const [cityValue, setCityValue] = useState(null);\r\n\r\n const methods = useForm({ \r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, setValue, watch, errors } = methods;\r\n\r\n const cityValue = watch(\"cboCity\");\r\n\r\n const onSubmit = async (data, e) => {\r\n data.cityId = data.cboCity.value; //parseFloat(data.cityId);\r\n return;\r\n };\r\n\r\n useEffect(() => {\r\n async function fetchData() {\r\n try {\r\n const { data } = await getAllCity();\r\n setCity(data);\r\n } catch (e) {\r\n\r\n }\r\n\r\n }\r\n\r\n fetchData();\r\n }, []);\r\n\r\n const handleChange = e => { \r\n setValue(\"cboCity\", e);\r\n }\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n

    \r\n Crear Paciente\r\n

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    Nuevo Paciente
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n
    \r\n
    \r\n \r\n SUBMIT\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n}\r\n\r\nexport default PatientTest;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Select from \"@material-ui/core/Select\";\r\n// import { StyledInputLabel } from \"../../styles\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n\r\nconst MuiSelect = (props) => {\r\n const { name, options, errorobj } = props;\r\n\r\n let isError = false;\r\n let errorMessage = \"\";\r\n\r\n if (errorobj && errorobj.hasOwnProperty(name)) {\r\n isError = true;\r\n errorMessage = errorobj[name].message;\r\n }\r\n\r\n return (\r\n \r\n \r\n {errorMessage}\r\n \r\n );\r\n};\r\n\r\nfunction FormSelect(props) {\r\n const { control } = useFormContext();\r\n const { name, label } = props;\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default FormSelect;\r\n","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nimport FormInput from \"../../../../components/Form/Controls/input\";\r\nimport FormSelect from \"../../../../components/Form/Controls/select\";\r\nimport FormDatePicker from \"../../../../components/Form/Controls/datepicker\";\r\nimport FormCheckbox from \"../../../../components/Form/Controls/checkbox\";\r\n\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\n\r\nconst validationSchema = yup.object().shape({\r\n nameV: yup.string().required(\"Name Validation Field is Required\"),\r\n selV: yup.string().required(\"Select Validation Field is Required\"),\r\n selAutoV: yup.array().required(\"Multi Select Validation Field required\"),\r\n txtDateV: yup\r\n .date()\r\n .typeError(\"Mui Date field must be a date\")\r\n .required(\"Mui Date field is required\"),\r\n});\r\n\r\nfunction PatientTest(props) {\r\n const methods = useForm({\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = (data) => {\r\n };\r\n\r\n const numberData = [\r\n {\r\n id: \"10\",\r\n label: \"Ten\",\r\n },\r\n {\r\n id: \"20\",\r\n label: \"Twenty\",\r\n },\r\n {\r\n id: \"30\",\r\n label: \"Thirty\",\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n SUBMIT\r\n \r\n\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n */}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default PatientTest;\r\n","export default [\r\n {\r\n id: 0,\r\n handle: \"inbox\",\r\n title: \"Nuevos Pacientes\",\r\n icon: \"accounts-alt\",\r\n },\r\n {\r\n id: 1,\r\n handle: \"sent\",\r\n title: \"En Trámite\",\r\n icon: \"hourglass-alt\",\r\n },\r\n {\r\n id: 2,\r\n handle: \"drafts\",\r\n title: \"Seguimiento\",\r\n icon: \"folder\",\r\n },\r\n {\r\n id: 3,\r\n handle: \"spam\",\r\n title: \"Eventos Adversos\",\r\n icon: \"alert-octagon\",\r\n },\r\n {\r\n id: 4,\r\n handle: \"trash\",\r\n title: \"Educación / Eventos\",\r\n icon: \"book\",\r\n },\r\n];\r\n","export default [\r\n {\r\n id: 0,\r\n handle: \"first-impact\",\r\n title: \"Primer impacto\",\r\n color: \"light-blue\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 7,\r\n handle: \"doctorok\",\r\n title: \"Méd. autorizó\",\r\n color: \"green\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 8,\r\n handle: \"pacienteok\",\r\n title: \"Pac. autorizó\",\r\n color: \"green\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 5,\r\n handle: \"remodulin\",\r\n title: \"REMODULIN\",\r\n color: \"pink\",\r\n type: \"product-line\",\r\n },\r\n {\r\n id: 6,\r\n handle: \"iclusig\",\r\n title: \"ICLUSIG\",\r\n color: \"blue\",\r\n type: \"product-line\",\r\n },\r\n {\r\n id: 1,\r\n handle: \"formulation\",\r\n title: \"Formulado\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 2,\r\n handle: \"formulation-errors\",\r\n title: \"Form. con errores\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 3,\r\n handle: \"eps-radication\",\r\n title: \"RAD. EPS\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 4,\r\n handle: \"eps-not-effective\",\r\n title: \"Rad. no efectiva\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n\r\n {\r\n id: 9,\r\n handle: \"authorized\",\r\n title: \"Autorizado\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 10,\r\n handle: \"not-authorized\",\r\n title: \"No autorizado\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 11,\r\n handle: \"olf-radication\",\r\n title: \"Rad. EN OLF\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 12,\r\n handle: \"olf-not-effective\",\r\n title: \"OLF no efectiva\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 13,\r\n handle: \"visit-ih\",\r\n title: \"Visita intrahospitalaria\",\r\n color: \"green lighten-2\",\r\n type: \"impact\",\r\n },\r\n\r\n {\r\n id: 14,\r\n handle: \"home-visit\",\r\n title: \"Visita domiciliaria\",\r\n color: \"green lighten-2\",\r\n type: \"impact\",\r\n },\r\n {\r\n id: 15,\r\n handle: \"follow-up\",\r\n title: \"Llamada seguimiento\",\r\n color: \"green lighten-2\",\r\n type: \"impact\",\r\n },\r\n {\r\n id: 16,\r\n handle: \"company-appointment\",\r\n title: \"ACOMP. CITA\",\r\n color: \"green lighten-2\",\r\n type: \"impact\",\r\n },\r\n {\r\n id: 17,\r\n handle: \"active\",\r\n title: \"Activo\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 18,\r\n handle: \"query\",\r\n title: \"QUERY\",\r\n color: \"amber\",\r\n type: \"adverse\",\r\n },\r\n {\r\n id: 19,\r\n handle: \"event-s\",\r\n title: \"EVENTO\",\r\n color: \"deep-purple\",\r\n type: \"events\",\r\n },\r\n {\r\n id: 20,\r\n handle: \"training\",\r\n title: \"CAPACITACIÓN\",\r\n color: \"purple\",\r\n type: \"events\",\r\n },\r\n];\r\n","export default [\r\n {\r\n title: \"All\",\r\n },\r\n {\r\n title: \"None\",\r\n },\r\n /*{\r\n 'title': 'Read',\r\n },\r\n {\r\n 'title': 'Unread',\r\n },\r\n {\r\n 'title': 'Starred',\r\n },\r\n {\r\n 'title': 'Unstarred',\r\n },\r\n {\r\n 'title': 'Important',\r\n },\r\n {\r\n 'title': 'Unimportant',\r\n }*/\r\n];\r\n","import React from \"react\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport labels from \"app/routes/psp/manage/data/labels\";\r\n\r\nconst MailListItem = ({ mail, onMailSelect, onMailChecked, onStartSelect }) => {\r\n return (\r\n
    \r\n {\r\n event.stopPropagation();\r\n onMailChecked(mail);\r\n }}\r\n value=\"SelectMail\"\r\n />\r\n {/* {\r\n onStartSelect(mail);\r\n }}\r\n >\r\n {mail.starred ? (\r\n \r\n ) : (\r\n \r\n )}\r\n */}\r\n\r\n
    \r\n {mail.from.avatar === \"\" ? (\r\n \r\n {\" \"}\r\n {mail.from.name.charAt(0).toUpperCase()}\r\n
    \r\n ) : (\r\n \r\n )}\r\n
    \r\n\r\n {\r\n onMailSelect(mail);\r\n }}\r\n >\r\n
    \r\n
    \r\n \r\n {mail.from.name} {mail.from.lastname}\r\n \r\n\r\n \r\n\r\n \r\n {mail.subject}\r\n \r\n\r\n {mail.hasAttachments && }\r\n\r\n
    {mail.time}
    \r\n
    \r\n\r\n
    \r\n

    {mail.message}

    \r\n
    \r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default MailListItem;\r\n","import React from 'react';\r\nimport MailListItem from './MailListItem';\r\nimport CustomScrollbars from 'util/CustomScrollbars';\r\n\r\nconst MailList = ({mails, onMailSelect, onMailChecked, onStartSelect, width}) => {\r\n return (\r\n
    \r\n = 1200 ? 'calc(100vh - 259px)' : 'calc(100vh - 238px)'}}>\r\n {mails.map((mail, index) =>\r\n \r\n )}\r\n \r\n
    \r\n )\r\n};\r\n\r\nexport default MailList;","import React from 'react';\r\nimport {Modal, ModalHeader} from 'reactstrap';\r\nimport Moment from 'moment';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport Button from '@material-ui/core/Button';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport CloseIcon from '@material-ui/icons/Close';\r\n\r\nclass ComposeMail extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n to: '',\r\n cc: '',\r\n bcc: '',\r\n subject: '',\r\n message: '',\r\n }\r\n }\r\n\r\n render() {\r\n const {onMailSend, onClose, user} = this.props;\r\n const {to, subject, message} = this.state;\r\n return (\r\n \r\n \r\n New Message\r\n \r\n \r\n \r\n \r\n
    \r\n\r\n this.setState({to: event.target.value})}\r\n defaultValue={to}\r\n margin=\"normal\"/>\r\n this.setState({subject: event.target.value})}\r\n value={subject}\r\n margin=\"normal\"\r\n />\r\n this.setState({message: event.target.value})}\r\n value={message}\r\n multiline\r\n rowsMax=\"4\"\r\n margin=\"normal\"/>\r\n
    \r\n\r\n
    \r\n \r\n\r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ComposeMail;","import React from \"react\";\r\n\r\nconst AppModuleHeader = (props) => {\r\n\r\n const { placeholder, onChange, value } = props;\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default AppModuleHeader;\r\n\r\nAppModuleHeader.defaultProps = {\r\n styleName: \"\",\r\n value: \"\",\r\n};\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { SketchField, Tools } from \"react-sketch\";\r\n\r\nclass ConsentDialog extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n Liberación de Información y Consentimiento Informado\r\n \r\n \r\n \r\n De manera libre y voluntaria manifiesto mi consentimiento para\r\n participar en el programa de educación y apoyo a pacientes de la\r\n compañía, con el fin de beneficiarme de\r\n los servicios de dicho programa, en concordancia con el\r\n tratamiento ordenado por mi médico tratante.\r\n \r\n \r\n A. Introducción y propósito del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El programa de apoyo a pacientes es un programa creado para\r\n brindar educación, seguimiento y acompañamiento a los pacientes\r\n con diagnóstico de enfermedad crónica, huérfana, ruinosa y/o\r\n catastrófica y sus cuidadores, que busca el bienestar de sus\r\n beneficiarios por medio de la generación de estrategias de\r\n educación, afrontamiento y empoderamiento de su estilo de vida,\r\n ayudándoles a alcanzar sus metas.\r\n \r\n \r\n B. Descripción del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El Programa de Apoyo a Pacientes incluye las siguientes\r\n actividades: (i) Acompañar, educar, guiar, asesorar y apoyar al\r\n paciente en el proceso de aplicación de su tratamiento; (ii)\r\n Despejar dudas e inquietudes y educar a los pacientes, su familia\r\n y/o cuidadores en temas relacionados con la medicamento; (iii)\r\n Permitir el proceso de adaptación del paciente, su familia y/o\r\n cuidadores a las diferentes etapas correspondientes a la evolución\r\n de la enfermedad; (iv) Fortalecer en el paciente y su familia la\r\n aplicación de estrategias de afrontamiento y manejo de la\r\n enfermedad; (v) Fortalecer en los pacientes los comportamientos\r\n relacionados con el cumplimiento de los parámetros de\r\n administración de las dosis referidas por el médico tratante y en\r\n general las pautas de adhesión al tratamiento; (iv) Organización y\r\n desarrollo de actividades con fin de promover el bienestar y\r\n calidad de vida de los pacientes; (vii) Reporte de eventos\r\n adversos.\r\n \r\n \r\n C. Duración del Programa:\r\n \r\n \r\n El Programa de Educación y Apoyo a Pacientes durará el término\r\n durante el cual el Paciente permanezca en tratamiento.\r\n \r\n \r\n D. Habeas Data y Confidencialidad:\r\n \r\n \r\n La compañia se obliga a cumplir y a hacer cumplir a\r\n sus trabajadores, subordinados y contratistas todas las\r\n disposiciones legales en materia de Habeas Data y protección de la\r\n información, establecidas en la Ley 1581 de 2012 y en el Decreto\r\n Reglamentario 1377 de 2013, o aquellas normas que las modifiquen,\r\n subroguen o sustituyan. El manejo de datos sensibles y datos\r\n personales recibirá un tratamiento confidencial con el fin de\r\n garantizar la protección de la información de las personas que\r\n consten en bases de datos manejadas por la compañia, \r\n quienes se comprometen a no transferir ni transmitir dicha\r\n información a terceros sin el previo consentimiento del paciente y\r\n siendo esta siempre de carácter estadístico estadístico o, con fines de investigación científica y/o \r\n publicación de artículos de investigación. De ninguna manera se\r\n incluirán datos que permitan la identificación de pacientes,\r\n familiares y/o cuidadores.\r\n \r\n \r\n Expresamente reconozco que el Programa de Apoyo a Pacientes\r\n constituye un simple complemento al tratamiento ordenado por mi\r\n médico tratante. Teniendo en cuenta lo anterior, de manera libre y\r\n voluntaria expreso:\r\n \r\n \r\n 1. Que he decidido suministrar información personal y datos de\r\n contacto al Programa de Apoyo a Pacientes de la compañia\r\n \r\n \r\n 2. Que autorizo expresamente que dicho Programa haga uso de la\r\n citada información, tanto para efectos estadísticos como para fines de, investigación\r\n científica y, publicación de artículos de investigación, como para\r\n mantener un contacto permanente conmigo y para adelantar las\r\n labores de carácter administrativo que sean necesarias para\r\n procurar el cumplimiento del tratamiento. Para que, además, bajo\r\n los términos estipulados en este consentimiento dicha información\r\n pueda ser transmitida a terceros debidamente autorizados\r\n únicamente con fines estadísticos o de investigación científica y publicación de\r\n artículos de investigación, siempre y cuando se observe la\r\n obligación de no incluir datos que permitan la identificación de\r\n mi persona, familiares y/o cuidadores.\r\n \r\n \r\n 3. Que autorizo expresamente al Programa de Apoyo a Pacientes para\r\n que, en caso de ser necesario, contacte a mi médico tratante.\r\n \r\n \r\n 4. Que autorizo a la compañia para que, de ser\r\n necesario, se ponga en contacto con mi médico tratante, en caso de\r\n que se presente algún tipo de evento adverso y a realizar el\r\n reporte debido a acuerdo a la legislación local vigente.\r\n \r\n \r\n 5. Que entiendo y acepto que la adhesión al Programa de Apoyo a\r\n Pacientes es voluntaria y, asimismo, el retiro de este puede\r\n hacerse voluntariamente y en cualquier momento.\r\n \r\n \r\n En señal de comprensión y aceptación de todos y cada uno de los\r\n aspectos arriba enunciados, suscribo el presente documento de\r\n liberación de información y consentimiento informado.\r\n \r\n Firma: \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ConsentDialog;\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\n\r\nclass FormulaDialog extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n Fórmula Médica\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n label=\"Continua\"\r\n />\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default FormulaDialog;\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\n\r\nclass ClinicalHistory extends React.Component {\r\n state = {\r\n open: false,\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n \r\n Liberación de Información y Consentimiento Informado\r\n \r\n \r\n \r\n Paraclinicos ultimos 6 meses\r\n \r\n \r\n Ordenes médica vigentes\r\n \r\n \r\n Uso de otros médicamentos\r\n \r\n \r\n Antecedentes patologicos\r\n \r\n \r\n Antecedentes alergicos\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ClinicalHistory;\r\n","import React from \"react\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport MoreVertIcon from \"@material-ui/icons/MoreVert\";\r\nimport Widget from \"components/Widget\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport ConsentDialog from \"./ConsentDialog\";\r\nimport FormulaDialog from \"./FormulaDialog\";\r\nimport ClinicalHistory from \"./ClinicalHistory\";\r\n\r\nimport labels from \"app/routes/psp/manage/data/labels\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\nimport { DateTimePicker } from \"@material-ui/pickers\";\r\n\r\nclass MailDetail extends React.Component {\r\n state = {\r\n anchorEl: undefined,\r\n open: false,\r\n showDetail: false,\r\n selectedDate: new Date(),\r\n };\r\n\r\n handleClick = (event) => {\r\n this.setState({ open: true, anchorEl: event.currentTarget });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n handleClickCIBox = () => {\r\n\r\n };\r\n\r\n handleClickFMBox = () => {\r\n\r\n };\r\n\r\n handleDateChange = (date) => {\r\n this.setState({ selectedDate: date });\r\n };\r\n\r\n render() {\r\n const {\r\n mail,\r\n onStartSelect,\r\n onImportantSelect,\r\n onProcessStateChange,\r\n onSavePatientContact,\r\n onGoBack,\r\n width,\r\n } = this.props;\r\n const { selectedDate } = this.state;\r\n const options = [\"Reply\", \"Forward\", \"Print\"];\r\n\r\n // Nuevo paciente\r\n if (mail.folder === 0 || mail.folder === 1 || mail.folder === 2) {\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    \r\n {mail.hasPatient &&\r\n \"Paciente: \" +\r\n mail.from.name +\r\n \" \" +\r\n mail.from.lastname +\r\n \" | \"}\r\n {mail.from.doctorName}\r\n
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n {/* Medico autoriza */}\r\n {mail.states.length === 0 && (\r\n
    \r\n ¿Médico Autoriza?\r\n {\r\n onProcessStateChange(7);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n )}\r\n {/* Paciente autoriza */}\r\n {mail.labels.includes(7) &&\r\n !mail.states.includes(8) &&\r\n mail.hasPatient && (\r\n
    \r\n ¿Paciente Autoriza?\r\n {\r\n onProcessStateChange(7);\r\n onProcessStateChange(8);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n )}\r\n {/* Finalizar primer impacto */}\r\n {(mail.labels.includes(0) ||\r\n mail.labels.includes(1) ||\r\n mail.labels.includes(3) ||\r\n mail.labels.includes(9) ||\r\n mail.labels.includes(11)) && (\r\n
    \r\n {mail.labels.includes(0)\r\n ? \"¿Finalizar visita?\"\r\n : \"¿Tramite exitoso?\"}\r\n {\r\n const currentState = mail.labels.includes(0)\r\n ? 0\r\n : mail.labels.includes(1)\r\n ? 1\r\n : mail.labels.includes(3)\r\n ? 3\r\n : mail.labels.includes(9)\r\n ? 9\r\n : mail.labels.includes(11)\r\n ? 11\r\n : null;\r\n const nextState = mail.labels.includes(0)\r\n ? 1\r\n : mail.labels.includes(1)\r\n ? 3\r\n : mail.labels.includes(3)\r\n ? 9\r\n : mail.labels.includes(9)\r\n ? 11\r\n : mail.labels.includes(11)\r\n ? 17\r\n : null;\r\n let patient = {};\r\n if (mail.labels.includes(0) || mail.labels.includes(11)) {\r\n patient = {\r\n folder: mail.labels.includes(0) ? 1 : 2,\r\n };\r\n }\r\n onProcessStateChange(currentState);\r\n onProcessStateChange(nextState);\r\n if (patient.folder) {\r\n onSavePatientContact(patient);\r\n }\r\n onGoBack();\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n\r\n {!mail.states.includes(0) && (\r\n
    \r\n
    \r\n \r\n {mail.from.contactList.map((data, index) => (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {data.title}\r\n \r\n

    {data.desc}

    \r\n
    \r\n
    \r\n ))}\r\n \r\n
    \r\n {mail.states.includes(7) && (\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n {}}\r\n />\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n {\r\n const name = document.getElementById(\"name\")\r\n .value;\r\n const lastname = document.getElementById(\r\n \"lastname\"\r\n ).value;\r\n const patient = {\r\n name,\r\n lastname,\r\n hasPatient: true,\r\n };\r\n onSavePatientContact(patient);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn bg-green text-white\"\r\n >\r\n Guardar\r\n \r\n
    \r\n \r\n \r\n
    \r\n )}\r\n \r\n )}\r\n {mail.states.includes(8) && mail.hasPatient && !mail.date && (\r\n
    \r\n
    \r\n \r\n
    \r\n }\r\n rightArrowIcon={\r\n \r\n }\r\n />\r\n
    \r\n
    \r\n {\r\n const date = document.getElementById(\r\n \"date-first-visit\"\r\n ).value;\r\n const patient = {\r\n date: date,\r\n };\r\n onProcessStateChange(8);\r\n onProcessStateChange(0);\r\n onSavePatientContact(patient);\r\n onGoBack();\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn bg-green text-white mt-2\"\r\n >\r\n Guardar\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n\r\n {/* PRIMER IMPACTO */}\r\n {mail.states.includes(0) && (\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n
    \r\n {mail.labels.includes(5) && (\r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n )}\r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n
    \r\n )}\r\n \r\n \r\n );\r\n }\r\n\r\n if (mail.folder === 3) {\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    {mail.subject}
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n );\r\n }\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    {mail.subject}
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n\r\n
    \r\n ¿Registrar?\r\n {\r\n return false;\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default MailDetail;\r\n","import {\r\n FETCH_ALL_MAIL,\r\n GET_ALL_MAIL,\r\n GET_IMPORTANT_MAIL,\r\n GET_NAV_FILTERS,\r\n GET_NAV_FOLDER,\r\n GET_NAV_LABELS,\r\n GET_READ_MAIL,\r\n GET_STARRED_MAIL,\r\n GET_UNIMPORTANT_MAIL,\r\n GET_UNREAD_MAIL,\r\n GET_UNSELECTED_ALL_MAIL,\r\n GET_UNSTARRED_MAIL,\r\n HANDLE_REQUEST_CLOSE,\r\n ON_ALL_MAIL_SELECT,\r\n ON_COMPOSE_MAIL,\r\n ON_DELETE_MAIL,\r\n ON_FOLDER_MENU_ITEM_SELECT,\r\n ON_FOLDER_SELECT,\r\n ON_HIDE_LOADER,\r\n ON_IMPORTANT_SELECT,\r\n ON_LABEL_MENU_ITEM_SELECT,\r\n ON_LABEL_SELECT,\r\n ON_MAIL_CHECKED,\r\n ON_MAIL_SELECT,\r\n ON_MAIL_SEND,\r\n ON_OPTION_MENU_ITEM_SELECT,\r\n ON_OPTION_MENU_SELECT,\r\n ON_START_SELECT,\r\n ON_TOGGLE_DRAWER,\r\n SEARCH_MAIL,\r\n SET_CURRENT_MAIL_NULL,\r\n UPDATE_SEARCH,\r\n PROCESS_STATE_CHANGE,\r\n PATIENT_CONTACT_SAVE,\r\n} from \"../constants/ActionTypes\";\r\nimport { FETCH_ALL_MAIL_SUCCESS, SHOW_MESSAGE } from \"constants/ActionTypes\";\r\n\r\nexport const fetchMails = () => {\r\n return {\r\n type: FETCH_ALL_MAIL,\r\n };\r\n};\r\n\r\nexport const fetchMailsSuccess = (mails) => {\r\n return {\r\n type: FETCH_ALL_MAIL_SUCCESS,\r\n payload: mails,\r\n };\r\n};\r\nexport const showMailMessage = (message) => {\r\n return {\r\n type: SHOW_MESSAGE,\r\n payload: message,\r\n };\r\n};\r\n\r\nexport const onFolderMenuItemSelect = (folderId) => {\r\n return {\r\n type: ON_FOLDER_MENU_ITEM_SELECT,\r\n payload: folderId,\r\n };\r\n};\r\n\r\nexport const onMailLabelMenuItemSelect = (label) => {\r\n return {\r\n type: ON_LABEL_MENU_ITEM_SELECT,\r\n payload: label,\r\n };\r\n};\r\n\r\nexport const onProcessStateChange = (label) => {\r\n return {\r\n type: PROCESS_STATE_CHANGE,\r\n payload: label,\r\n };\r\n};\r\n\r\nexport const onPatientContactSave = (patient) => {\r\n return {\r\n type: PATIENT_CONTACT_SAVE,\r\n payload: patient,\r\n };\r\n};\r\n\r\nexport const handleMailRequestClose = () => {\r\n return {\r\n type: HANDLE_REQUEST_CLOSE,\r\n };\r\n};\r\n\r\nexport const getMailNavFilters = (filter) => {\r\n return {\r\n type: GET_NAV_FILTERS,\r\n payload: filter,\r\n };\r\n};\r\nexport const onFolderSelect = () => {\r\n return {\r\n type: ON_FOLDER_SELECT,\r\n };\r\n};\r\nexport const onMailLabelSelect = () => {\r\n return {\r\n type: ON_LABEL_SELECT,\r\n };\r\n};\r\nexport const onMailOptionMenuSelect = () => {\r\n return {\r\n type: ON_OPTION_MENU_SELECT,\r\n };\r\n};\r\nexport const onOptionMenuItemSelect = (option) => {\r\n return {\r\n type: ON_OPTION_MENU_ITEM_SELECT,\r\n payload: option,\r\n };\r\n};\r\nexport const getAllMail = () => {\r\n return {\r\n type: GET_ALL_MAIL,\r\n };\r\n};\r\nexport const getUnselectedAllMail = () => {\r\n return {\r\n type: GET_UNSELECTED_ALL_MAIL,\r\n };\r\n};\r\nexport const getReadMail = () => {\r\n return {\r\n type: GET_READ_MAIL,\r\n };\r\n};\r\nexport const getUnreadMail = () => {\r\n return {\r\n type: GET_UNREAD_MAIL,\r\n };\r\n};\r\nexport const getStarredMail = () => {\r\n return {\r\n type: GET_STARRED_MAIL,\r\n };\r\n};\r\n\r\nexport const getUnStarredMail = () => {\r\n return {\r\n type: GET_UNSTARRED_MAIL,\r\n };\r\n};\r\nexport const getImportantMail = () => {\r\n return {\r\n type: GET_IMPORTANT_MAIL,\r\n };\r\n};\r\nexport const getUnimportantMail = () => {\r\n return {\r\n type: GET_UNIMPORTANT_MAIL,\r\n };\r\n};\r\nexport const getMailNavLabels = (label) => {\r\n return {\r\n type: GET_NAV_LABELS,\r\n payload: label,\r\n };\r\n};\r\nexport const onSearchMail = (searchText) => {\r\n return {\r\n type: SEARCH_MAIL,\r\n payload: searchText,\r\n };\r\n};\r\nexport const onMailChecked = (data) => {\r\n return {\r\n type: ON_MAIL_CHECKED,\r\n payload: data,\r\n };\r\n};\r\n\r\nexport const onAllMailSelect = () => {\r\n return {\r\n type: ON_ALL_MAIL_SELECT,\r\n };\r\n};\r\nexport const onStartSelect = (data) => {\r\n return {\r\n type: ON_START_SELECT,\r\n payload: data,\r\n };\r\n};\r\nexport const onImportantSelect = (data) => {\r\n return {\r\n type: ON_IMPORTANT_SELECT,\r\n payload: data,\r\n };\r\n};\r\nexport const onMailSend = (data) => {\r\n return {\r\n type: ON_MAIL_SEND,\r\n payload: data,\r\n };\r\n};\r\nexport const onMailSelect = (mail) => {\r\n return {\r\n type: ON_MAIL_SELECT,\r\n payload: mail,\r\n };\r\n};\r\nexport const getNavFolders = (folder) => {\r\n return {\r\n type: GET_NAV_FOLDER,\r\n payload: folder,\r\n };\r\n};\r\n\r\nexport const updateMailSearch = (searchText) => {\r\n return {\r\n type: UPDATE_SEARCH,\r\n payload: searchText,\r\n };\r\n};\r\nexport const onMailToggleDrawer = () => {\r\n return {\r\n type: ON_TOGGLE_DRAWER,\r\n };\r\n};\r\nexport const onDeleteMail = () => {\r\n return {\r\n type: ON_DELETE_MAIL,\r\n };\r\n};\r\nexport const hideMailLoader = () => {\r\n return {\r\n type: ON_HIDE_LOADER,\r\n };\r\n};\r\nexport const setCurrentMailNull = () => {\r\n return {\r\n type: SET_CURRENT_MAIL_NULL,\r\n };\r\n};\r\nexport const onComposeMail = () => {\r\n return {\r\n type: ON_COMPOSE_MAIL,\r\n };\r\n};\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport Drawer from \"@material-ui/core/Drawer\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Snackbar from \"@material-ui/core/Snackbar\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport folders from \"./data/folders\";\r\nimport labels from \"./data/labels\";\r\nimport options from \"./data/options\";\r\nimport MailList from \"components/mail/MailList\";\r\n\r\nimport ComposeMail from \"components/mail/Compose/index\";\r\nimport AppModuleHeader from \"components/AppModuleHeader/index\";\r\nimport MailDetail from \"components/mail/MailDetail/index\";\r\nimport {\r\n getAllMail,\r\n getImportantMail,\r\n getMailNavLabels,\r\n getNavFolders,\r\n getReadMail,\r\n getStarredMail,\r\n getUnimportantMail,\r\n getUnreadMail,\r\n getUnselectedAllMail,\r\n getUnStarredMail,\r\n handleMailRequestClose,\r\n hideMailLoader,\r\n onFolderMenuItemSelect,\r\n onImportantSelect,\r\n onMailChecked,\r\n onMailLabelMenuItemSelect,\r\n onMailOptionMenuSelect,\r\n onMailSelect,\r\n onMailSend,\r\n onMailToggleDrawer,\r\n onSearchMail,\r\n onStartSelect,\r\n setCurrentMailNull,\r\n updateMailSearch,\r\n onProcessStateChange,\r\n onPatientContactSave,\r\n} from \"actions/Mail\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\n\r\nconst Manage = () => {\r\n const [anchorEl, setAnchorEl] = useState(null);\r\n const dispatch = useDispatch();\r\n const { width } = useSelector(({ settings }) => settings);\r\n const { prescriptionId } = useSelector( ({ prescription }) => prescription );\r\n\r\n const {\r\n searchMail,\r\n noContentFoundMessage,\r\n alertMessage,\r\n showMessage,\r\n drawerState,\r\n optionName,\r\n loader,\r\n currentMail,\r\n user,\r\n selectedMails,\r\n selectedFolder,\r\n composeMail,\r\n labelMenuState,\r\n folderMenuState,\r\n optionMenuState,\r\n folderMails,\r\n } = useSelector(({ mail }) => mail);\r\n\r\n const MailSideBar = () => {\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n Gestión\r\n
    \r\n
    \r\n\r\n
    \r\n = 1200 ? \"calc(100vh - 200px)\" : \"calc(100vh - 80px)\",\r\n }}\r\n >\r\n\r\n
      \r\n {handleGetNavFolders()}\r\n\r\n
    • Línea de producto
    • \r\n\r\n {getNavLabels(\"product-line\")}\r\n\r\n
    • \r\n {selectedFolder === 2 ? \"Impactos\" : \"Estados\"}\r\n
    • \r\n\r\n {selectedFolder === 0\r\n ? getNavLabels(\"new-patient\")\r\n : selectedFolder === 1\r\n ? getNavLabels(\"state\")\r\n : selectedFolder === 2\r\n ? getNavLabels(\"impact\")\r\n : \"\"}\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n };\r\n\r\n\r\n const handleGetNavFolders = () => {\r\n return folders.map((folder, index) => (\r\n {\r\n dispatch(getNavFolders(folder));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n }}\r\n >\r\n \r\n \r\n {folder.title}\r\n \r\n \r\n ));\r\n };\r\n const handleFolderMenuItemSelect = (folderId) => {\r\n dispatch(handleMailRequestClose());\r\n dispatch(onFolderMenuItemSelect(folderId));\r\n };\r\n const handleLabelMenuItemSelect = (label) => {\r\n dispatch(handleMailRequestClose());\r\n dispatch(onMailLabelMenuItemSelect(label));\r\n };\r\n const handleProcessStateChange = (labelid) => {\r\n const label = labels.filter((x) => x.id === labelid);\r\n if (label) {\r\n dispatch(onProcessStateChange(label));\r\n }\r\n };\r\n const handleRequestClose = () => {\r\n dispatch(handleMailRequestClose());\r\n };\r\n\r\n const onOptionMenuSelect = (event) => {\r\n dispatch(onMailOptionMenuSelect());\r\n setAnchorEl(event.currentTarget);\r\n };\r\n const handleOptionMenuItemSelect = (option) => {\r\n switch (option.title) {\r\n case \"All\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getAllMail());\r\n break;\r\n case \"None\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnselectedAllMail());\r\n break;\r\n case \"Read\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getReadMail());\r\n break;\r\n case \"Unread\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnreadMail());\r\n break;\r\n case \"Starred\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getStarredMail());\r\n break;\r\n case \"Unstarred\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnStarredMail());\r\n break;\r\n case \"Important\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getImportantMail());\r\n break;\r\n case \"Unimportant\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnimportantMail());\r\n break;\r\n default:\r\n dispatch(handleMailRequestClose());\r\n dispatch(getAllMail());\r\n }\r\n };\r\n const handleGetAllMail = () => {\r\n dispatch(getAllMail());\r\n };\r\n const handleGetUnselectedAllMail = () => {\r\n dispatch(getUnselectedAllMail());\r\n };\r\n\r\n const getNavLabels = (type) => {\r\n const labelByType = labels.filter((x) => x.type === type);\r\n return labelByType.map((label, index) => {\r\n return (\r\n {\r\n dispatch(getMailNavLabels(label));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n }}\r\n >\r\n \r\n \r\n {label.title}\r\n \r\n \r\n );\r\n });\r\n };\r\n\r\n const displayMail = (currentMail, folderMails, noContentFoundMessage) => {\r\n return (\r\n
    \r\n {currentMail === null ? (\r\n folderMails.length === 0 ? (\r\n = 1200 ? \"calc(100vh - 259px)\" : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n {noContentFoundMessage}\r\n
    \r\n ) : (\r\n \r\n )\r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n };\r\n const handleGetMailActions = () => {\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n };\r\n\r\n const handleMailChecked = (data) => {\r\n dispatch(onMailChecked(data));\r\n };\r\n\r\n const handleAllMailSelect = () => {\r\n const selectAll = selectedMails <= folderMails.length;\r\n if (selectAll) {\r\n handleGetAllMail();\r\n } else {\r\n handleGetUnselectedAllMail();\r\n }\r\n };\r\n\r\n const handleStartSelect = (data) => {\r\n dispatch(onStartSelect(data));\r\n };\r\n\r\n const handleImportantSelect = (data) => {\r\n dispatch(onImportantSelect(data));\r\n };\r\n\r\n const handleMailSend = (data) => {\r\n dispatch(onMailSend(data));\r\n };\r\n\r\n const handleMailSelect = (mail) => {\r\n dispatch(onMailSelect(mail));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n };\r\n\r\n const handlePatientSaveContact = (patient) => {\r\n dispatch(onPatientContactSave(patient));\r\n dispatch(setCurrentMailNull());\r\n };\r\n const handleSetCurrentProcessNull = (patient) => {\r\n dispatch(setCurrentMailNull());\r\n };\r\n const updateSearch = (evt) => {\r\n dispatch(updateMailSearch(evt.target.value));\r\n dispatch(onSearchMail(evt.target.value));\r\n };\r\n\r\n const handleToggleDrawer = () => {\r\n dispatch(onMailToggleDrawer());\r\n };\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {MailSideBar()}\r\n \r\n
    \r\n
    \r\n {MailSideBar()}\r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n {currentMail === null ? (\r\n
    \r\n 0 && selectedMails < folderMails.length\r\n }\r\n checked={selectedMails > 0}\r\n onChange={handleAllMailSelect}\r\n value=\"SelectMail\"\r\n />\r\n\r\n \r\n {optionName}\r\n \r\n \r\n \r\n
    \r\n
    \r\n ) : (\r\n {\r\n dispatch(setCurrentMailNull());\r\n }}\r\n >\r\n \r\n \r\n )}\r\n\r\n {selectedMails > 0 && handleGetMailActions()}\r\n\r\n \r\n {options.map((option) => (\r\n handleOptionMenuItemSelect(option)}\r\n >\r\n {option.title}\r\n \r\n ))}\r\n \r\n\r\n \r\n {folders.map((folder) => (\r\n handleFolderMenuItemSelect(folder.id)}\r\n >\r\n {folder.title}\r\n \r\n ))}\r\n \r\n \r\n {labels.map((label) => (\r\n handleLabelMenuItemSelect(label)}\r\n >\r\n {label.title}\r\n \r\n ))}\r\n \r\n
    \r\n\r\n {loader ? (\r\n = 1200\r\n ? \"calc(100vh - 259px)\"\r\n : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n \r\n
    \r\n ) : (\r\n displayMail(currentMail, folderMails, noContentFoundMessage)\r\n )}\r\n\r\n \r\n
    \r\n
    \r\n
    \r\n {alertMessage}}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Manage;\r\n","export const menuItems = [\r\n {\r\n id: 0,\r\n handle: \"inbox\",\r\n title: \"Nuevos Pacientes\",\r\n icon: \"accounts-alt\",\r\n },\r\n {\r\n id: 1,\r\n handle: \"sent\",\r\n title: \"En Trámite\",\r\n icon: \"hourglass-alt\",\r\n },\r\n {\r\n id: 2,\r\n handle: \"drafts\",\r\n title: \"Seguimiento\",\r\n icon: \"folder\",\r\n },\r\n {\r\n id: 3,\r\n handle: \"spam\",\r\n title: \"Eventos Adversos\",\r\n icon: \"alert-octagon\",\r\n },\r\n {\r\n id: 4,\r\n handle: \"trash\",\r\n title: \"Educación / Eventos\",\r\n icon: \"book\",\r\n },\r\n \r\n];\r\n\r\n// export const prescriptions = [\r\n// {\r\n// id:1,\r\n// creationDate:\"2020/11/17\",\r\n// productLineId: 5,\r\n// stateId:0,\r\n// firstImpactDate:\"\",\r\n// doctor: {\r\n// name:\"Dra. Victoria Lopez\",\r\n// email:\"victoria.lopez@outlook.com\",\r\n// institution:\"Institución\",\r\n// cellphone:\"+57-314225458\",\r\n// },\r\n// patient:{\r\n// id:1,\r\n// code: \"RE0001\",\r\n// name: \"Jorge\",\r\n// lastName: \"Perez\",\r\n// }\r\n// },\r\n// {\r\n// id:2,\r\n// creationDate:\"2020/11/17\",\r\n// productLineId: 6,\r\n// stateId:1,\r\n// firstImpactDate:\"\",\r\n// doctor: {\r\n// name:\"Dra. Victoria Lopez\",\r\n// email:\"victoria.lopez@outlook.com\",\r\n// institution:\"Institución\",\r\n// cellphone:\"+57-314225458\",\r\n// },\r\n// patient:{\r\n// id:2,\r\n// code: \"RE0002\",\r\n// name: \"Uriel\",\r\n// lastName: \"Roa\",\r\n// }\r\n// }\r\n// ];\r\n\r\n// export const productLines = [\r\n// {\r\n// id: 5,\r\n// title: \"REMODULIN\",\r\n// color: \"pink\"\r\n// },\r\n// {\r\n// id: 6,\r\n// title: \"ICLUSIG\",\r\n// color: \"blue\",\r\n// }\r\n// ];\r\n\r\n// // Tipo de acuerdo al menuItem\r\n// // 0-> paciente nuevo\r\n// // 1-> Trámite\r\n// // 2-> seguimiento (tipo impacto)\r\n// // 3-> Tipo evento adverso (farmacovigilancia/Tecnovigilancia)\r\n// export const prescriptionStates = [\r\n// {\r\n// id: 1,\r\n// handle: \"doctorok\",\r\n// title: \"Méd. autorizó\",\r\n// color: \"green\",\r\n// type: 0,\r\n// },\r\n// {\r\n// id: 2,\r\n// handle: \"pacienteok\",\r\n// title: \"Pac. autorizó\",\r\n// color: \"green\",\r\n// type: 0,\r\n// },\r\n// {\r\n// id: 3,\r\n// handle: \"first-impact\",\r\n// title: \"Primer impacto\",\r\n// color: \"light-blue\",\r\n// type: 0,\r\n// },\r\n// {\r\n// id: 4,\r\n// handle: \"formulation\",\r\n// title: \"Formulado\",\r\n// color: \"green\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 5,\r\n// handle: \"formulation-errors\",\r\n// title: \"Form. con errores\",\r\n// color: \"red\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 6,\r\n// handle: \"eps-radication\",\r\n// title: \"RAD. EPS\",\r\n// color: \"green\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 7,\r\n// handle: \"eps-not-effective\",\r\n// title: \"Rad. no efectiva\",\r\n// color: \"red\",\r\n// type: 1,\r\n// },\r\n\r\n// {\r\n// id: 8,\r\n// handle: \"authorized\",\r\n// title: \"Autorizado\",\r\n// color: \"green\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 9,\r\n// handle: \"not-authorized\",\r\n// title: \"No autorizado\",\r\n// color: \"red\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 10,\r\n// handle: \"olf-radication\",\r\n// title: \"Rad. EN OLF\",\r\n// color: \"green\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 11,\r\n// handle: \"olf-not-effective\",\r\n// title: \"OLF no efectiva\",\r\n// color: \"red\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 12,\r\n// handle: \"active\",\r\n// title: \"Activo\",\r\n// color: \"green\",\r\n// type: 1,\r\n// },\r\n// {\r\n// id: 13,\r\n// handle: \"visit-ih\",\r\n// title: \"Visita intrahospitalaria\",\r\n// color: \"green lighten-2\",\r\n// type: 2,\r\n// },\r\n// {\r\n// id: 14,\r\n// handle: \"home-visit\",\r\n// title: \"Visita domiciliaria\",\r\n// color: \"green lighten-2\",\r\n// type: 2,\r\n// },\r\n// {\r\n// id: 15,\r\n// handle: \"follow-up\",\r\n// title: \"Llamada seguimiento\",\r\n// color: \"green lighten-2\",\r\n// type: 2,\r\n// },\r\n// {\r\n// id: 16,\r\n// handle: \"company-appointment\",\r\n// title: \"ACOMP. CITA\",\r\n// color: \"green lighten-2\",\r\n// type: 2,\r\n// },\r\n// {\r\n// id: 17,\r\n// handle: \"query\",\r\n// title: \"Farmacovigilancia\",\r\n// color: \"amber\",\r\n// type: 3,\r\n// },\r\n// {\r\n// id: 18,\r\n// handle: \"query\",\r\n// title: \"Tecnovigilancia\",\r\n// color: \"deep-purple\",\r\n// type: 3,\r\n// },\r\n// ];\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n isOnlyTracing,\r\n isDirectTracing,\r\n} from \"app/routes/psp/services/userService\";\r\nimport { menuItems } from \"./data\";\r\nimport {\r\n setSelectedProductLine,\r\n setSelectedPrescriptionState,\r\n loadPrescriptions,\r\n setLoader,\r\n setSelectedPrescription,\r\n updateManageSearch,\r\n} from \"actions/Management\";\r\nimport { callApi, getPrescriptions } from \"../../../../api/apiList\";\r\nimport { FolderType, RoleEnum } from \"constants/Enums\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\n\r\nconst NavLabels = ({ menuItem, labels, handler }) => {\r\n const dispatch = useDispatch();\r\n const [selectedLabelID, setSelectedLabelID] = useState(0);\r\n const labelByType =\r\n menuItem !== undefined && labels\r\n ? labels.filter((x) => x.type === menuItem)\r\n : labels;\r\n\r\n return !labelByType\r\n ? \"\"\r\n : labelByType.map((label, index) => {\r\n return (\r\n {\r\n dispatch(handler(label.id));\r\n setSelectedLabelID(label.id === selectedLabelID ? 0 : label.id);\r\n setTimeout(() => {\r\n dispatch(setLoader(false));\r\n }, 1500);\r\n }}\r\n >\r\n \r\n \r\n {label.title}\r\n \r\n \r\n );\r\n });\r\n};\r\n\r\nconst getInProcessStates = (folderId, stateList) => {\r\n return folderId == FolderType.inProcess\r\n ? stateList.filter((x) => !x.isImpactType)\r\n : stateList;\r\n};\r\n\r\nconst SideBar = () => {\r\n const [sidebarState, setSidebarState] = useState(true);\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedMenuItem, productLines, prescriptionStates } = useSelector(\r\n ({ management }) => management\r\n );\r\n const { width } = useSelector(({ settings }) => settings);\r\n const isNurseProcedure = isRole(RoleEnum.nurse_procedure);\r\n const isDirectTracingConfig = isDirectTracing();\r\n\r\n const resetFilters = () => {\r\n dispatch(setSelectedPrescriptionState(-1));\r\n dispatch(setSelectedProductLine(-1));\r\n dispatch(updateManageSearch(\"\"));\r\n };\r\n\r\n const onSelectItem = (itemId, isMount) => {\r\n if(isNurseProcedure){itemId = 1}\r\n setSidebarState(false);\r\n callApi(\r\n () => getPrescriptions(itemId),\r\n (data) => {\r\n dispatch(loadPrescriptions(data, itemId));\r\n if (!isMount) {\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n setSidebarState(true);\r\n resetFilters();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n onSelectItem(selectedMenuItem, true);\r\n }, []);\r\n\r\n const handleGetMenuItems = () => {\r\n var menu = isOnlyTracing()\r\n ? menuItems.filter((x) => x.id !== 1 && x.id !== 3)\r\n : menuItems;\r\n menu = isNurseProcedure ? menuItems.filter((x) => x.id == 1) : menuItems;\r\n menu = isDirectTracingConfig\r\n ? menu.filter((x) => x.id === 0 || x.id === 2 || x.id === 4)\r\n : menu;\r\n\r\n return menu.map((item, index) => (\r\n onSelectItem(item.id)}\r\n >\r\n \r\n \r\n {item.title}\r\n \r\n \r\n ));\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n = 1200 ? \"calc(100vh - 200px)\" : \"calc(100vh - 80px)\",\r\n }}\r\n >\r\n
      \r\n {handleGetMenuItems()}\r\n {!isNurseProcedure && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n {!isNurseProcedure && (\r\n \r\n )}\r\n {!isNurseProcedure && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n {!isNurseProcedure && (\r\n \r\n )}\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default SideBar;\r\n","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst DialogEndImpact = ({ open, handleRequestClose, callEndImpact }) => {\r\n const defaultValues = { nursingNote: \"\" };\r\n const validationSchema = {\r\n nursingNote: yup\r\n .string()\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = async (data, e) => {\r\n await callEndImpact(data.nursingNote);\r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DialogEndImpact;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport {\r\n Button,\r\n Tooltip\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport {\r\n callApiAsync,\r\n postPrescriptionNewFormulation,\r\n getPrescriptions,\r\n} from \"api/apiList\";\r\nimport { loadPrescriptions, setSelectedPrescription } from \"actions/Management\";\r\nimport { PrescripStateEnum, FolderType } from \"constants/Enums\";\r\nimport DialogEndImpact from \"./dialogEndImpact\";\r\n\r\nconst BtnCancelFormula = ({stateToAssign}) => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, impactEndDate } = useSelector(({ impact }) => impact);\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgEndImpact, setOpenDlgEndImpact] = useState(false);\r\n\r\n const onNewFormulationAsync = async (nursingNote) => {\r\n await callApiAsync(\r\n () =>\r\n postPrescriptionNewFormulation({\r\n prescriptionId: selectedPrescription.id,\r\n impactId: selectedPrescription.impactId,\r\n state: stateToAssign,\r\n nursingNote\r\n }),\r\n async () => {\r\n await callApiAsync(\r\n () => getPrescriptions(FolderType.inProcess),\r\n (data) => {\r\n setOpenDlg(false);\r\n dispatch(loadPrescriptions(data, FolderType.inProcess));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n const getInfo = ()=>{\r\n if(stateToAssign === PrescripStateEnum.cancelled){\r\n return {\r\n toolTip: \"prescription.cancelDlgTitle\",\r\n btnClass: \"ml-1 jr-btn bg-red text-white\",\r\n btnIconClass: \"zmdi zmdi-delete zmdi-hc-fw\",\r\n dlgTitle: \"prescription.cancelDlgTitle\",\r\n dlgText: \"prescription.cancelDlgConfirmText\"\r\n }\r\n }\r\n \r\n return {\r\n toolTip: \"prescription.forcedTerminationDlgTitle\",\r\n btnClass: \"ml-1 jr-btn bg-amber text-white\",\r\n btnIconClass: \"zmdi zmdi-delete zmdi-hc-fw\",\r\n dlgTitle: \"prescription.forcedTerminationDlgTitle\",\r\n dlgText: \"prescription.forcedTerminationDlgConfirmText\"\r\n }\r\n }\r\n const info = getInfo();\r\n\r\n return (\r\n <>\r\n { selectedPrescription && selectedPrescription.stateId > PrescripStateEnum.formulated &&\r\n <>\r\n } placement=\"bottom-end\">\r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n className={info.btnClass}\r\n >\r\n \r\n \r\n \r\n }\r\n text={}\r\n handleRequestClose={() => setOpenDlg(false)}\r\n onAcceptClickAsync={async ()=>{\r\n if(impactStartDate && !impactEndDate){\r\n setOpenDlgEndImpact(true);\r\n return;\r\n }\r\n await onNewFormulationAsync(\"\");\r\n }}\r\n />\r\n setOpenDlgEndImpact(false)} \r\n callEndImpact={onNewFormulationAsync}\r\n />\r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default BtnCancelFormula;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n Tooltip\r\n} from \"@material-ui/core\";\r\nimport {\r\n callActionApi,\r\n postActivatePatient\r\n} from \"api/apiList\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport { updateSelectedPrescription } from \"actions/Management\";\r\nimport { isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport { PatientStateEnum, ProductBehavior, FolderType } from \"constants/Enums\";\r\n\r\nconst BtnActivatePatient = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription, selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const handleRequestClose = () => setOpenDlg(false);\r\n\r\n const isJaasModuleConfig = isJaasModule();\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = { \r\n dosageStartDate: null\r\n };\r\n const validationSchema = {\r\n dosageStartDate: yup.date()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const updatePrescription = () =>{\r\n const prescription = {\r\n ...selectedPrescription,\r\n patient:{\r\n ...selectedPrescription.patient,\r\n state: PatientStateEnum.active\r\n }\r\n }\r\n dispatch(updateSelectedPrescription(prescription));\r\n };\r\n\r\n const onSubmit = (d) => {\r\n const obj = {\r\n impactId: selectedPrescription.impactId,\r\n dosageStartDate: dayjs(d.dosageStartDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n callActionApi(\r\n ()=>postActivatePatient(obj),\r\n ()=>{\r\n updatePrescription();\r\n NotificationManager.success(msgSuccess);\r\n handleRequestClose();\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n \r\n return (\r\n
    \r\n { !isJaasModuleConfig && selectedMenuItem === FolderType.tracing && \r\n (selectedPrescription.patient && (selectedPrescription.patient.state === PatientStateEnum.medicalSuspension\r\n || selectedPrescription.patient.state === PatientStateEnum.suspension || selectedPrescription.patient.state === PatientStateEnum.voluntarySuspension \r\n || selectedPrescription.patient.state === PatientStateEnum.process )) &&\r\n \r\n
    \r\n \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n }\r\n
    \r\n );\r\n};\r\n\r\nexport default BtnActivatePatient;","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport {\r\n Button,\r\n Tooltip\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport {\r\n callApiAsync,\r\n postAddNewPrescription,\r\n getPrescriptions,\r\n} from \"api/apiList\";\r\nimport { loadPrescriptions, setSelectedPrescription } from \"actions/Management\";\r\nimport { PrescripStateEnum, FolderType } from \"constants/Enums\";\r\nimport { isDirectTracing } from \"app/routes/psp/services/userService\";\r\n\r\n\r\nimport DialogEndImpact from \"./dialogEndImpact\";\r\nconst BtnCreatePrescription = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, impactEndDate } = useSelector(({ impact }) => impact);\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgEndImpact, setOpenDlgEndImpact] = useState(false);\r\n const isDirectTracingConfig = isDirectTracing();\r\n const onNewFormulationAsync = async (nursingNote) => {\r\n await callApiAsync(\r\n () =>\r\n postAddNewPrescription({\r\n prescriptionId: selectedPrescription.id,\r\n impactId: selectedPrescription.impactId,\r\n state: PrescripStateEnum.completedSuccessfully,\r\n nursingNote\r\n }),\r\n async () => {\r\n await callApiAsync(\r\n () => getPrescriptions(FolderType.tracing),\r\n (data) => {\r\n setOpenDlg(false);\r\n dispatch(loadPrescriptions(data, FolderType.tracing));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n const getInfo = ()=>{ \r\n return {\r\n toolTip: \"prescription.createNewPrescriptionDlgTitle\",\r\n btnClass: \"ml-1 jr-btn bg-amber text-white\",\r\n btnIconClass: \"zmdi zmdi-delete zmdi-hc-fw\",\r\n dlgTitle: \"prescription.createNewPrescriptionDlgTitle\",\r\n dlgText: !isDirectTracingConfig ?\"prescription.createPrescriptionDlgConfirmText\": \"prescription.createPrescriptionDlgConfirm\"\r\n }\r\n }\r\n const info = getInfo();\r\n\r\n return (\r\n <>\r\n { selectedPrescription && selectedPrescription.stateId > PrescripStateEnum.formulated &&\r\n <>\r\n } placement=\"bottom-end\">\r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n className={info.btnClass}\r\n >\r\n \r\n\r\n \r\n \r\n }\r\n text={}\r\n handleRequestClose={() => setOpenDlg(false)}\r\n onAcceptClickAsync={async ()=>{\r\n if(impactStartDate && !impactEndDate){\r\n setOpenDlgEndImpact(true);\r\n return;\r\n }\r\n await onNewFormulationAsync(\"\");\r\n }}\r\n />\r\n setOpenDlgEndImpact(false)} \r\n callEndImpact={onNewFormulationAsync}\r\n />\r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default BtnCreatePrescription;","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { loadPrescriptions, setSelectedPrescription } from \"actions/Management\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { DlgConfirmCustomAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport DialogEndImpact from \"./dialogEndImpact\";\r\nimport { FolderType, ShardKeyEnum } from \"constants/Enums\";\r\nimport { callApiAsync, postSetDropoutState, getPrescriptions, } from \"api/apiList\";\r\n\r\n\r\nconst BtnDropout = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, impactEndDate } = useSelector(({ impact }) => impact);\r\n \r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgEndImpact, setOpenDlgEndImpact] = useState(false);\r\n\r\n const isUllkupuy = getUserInfo().shardKey === ShardKeyEnum.ullkupuy;\r\n const isPhg= getUserInfo().shardKey === ShardKeyEnum.phg;\r\n\r\n const closeDialog = () => setOpenDlg(false);\r\n\r\n const postDropoutAsync = async (nursingNote) => {\r\n await callApiAsync(\r\n () =>\r\n postSetDropoutState({\r\n impactId: selectedPrescription.impactId,\r\n nursingNote\r\n }),\r\n async () => {\r\n await callApiAsync(\r\n () => getPrescriptions(FolderType.inProcess),\r\n (data) => {\r\n closeDialog();\r\n dispatch(loadPrescriptions(data, FolderType.inProcess));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n { selectedPrescription && (isUllkupuy || isPhg) && \r\n <>\r\n \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n className=\"ml-1 jr-btn bg-red lighten-1 text-white\">\r\n \r\n \r\n \r\n {\r\n if(impactStartDate && !impactEndDate){\r\n setOpenDlgEndImpact(true);\r\n return;\r\n }\r\n await postDropoutAsync(\"\");\r\n }}\r\n >\r\n
    \r\n \r\n
    \r\n \r\n setOpenDlgEndImpact(false)} \r\n callEndImpact={postDropoutAsync}/>\r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default BtnDropout;\r\n","import React from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport AppModuleHeader from \"components/AppModuleHeader/index\";\r\nimport { IconButton } from \"@material-ui/core\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n onToggleDrawer,\r\n updateManageSearch\r\n } from \"actions/Management\";\r\n import BtnCancelFormula from \"./BtnCancelFormula\";\r\n import BtnActivatePatient from \"./BtnActivatePatient\"; \r\n import BtnCreatePrescription from \"./BtnCreatePrescription\"; \r\n import BtnDropout from \"./btnDropout\"; \r\n import { PrescripStateEnum, FolderType } from \"constants/Enums\";\r\nimport { isOnlyTracing } from \"app/routes/psp/services/userService\";\r\n \r\n\r\nconst SearchHeader = () => {\r\n const dispatch = useDispatch();\r\n const { selectedMenuItem, searchText, selectedPrescription } = useSelector(({ management }) => management);\r\n const { isOnlyTracingPatient } = useSelector(({ impact }) => impact);\r\n\r\n\r\n const handleToggleDrawer = () => {dispatch(onToggleDrawer());};\r\n const updateSearch = (evt) => {dispatch(updateManageSearch(evt.target.value));};\r\n\r\n if(selectedPrescription){\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n { selectedMenuItem == FolderType.inProcess && }\r\n { selectedMenuItem == FolderType.inProcess && }\r\n { (selectedMenuItem == FolderType.tracing && isOnlyTracingPatient) && \r\n \r\n }\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default SearchHeader;","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n FolderType,\r\n PatientStateList,\r\n AdverseEventStateList,\r\n TrainingStateList\r\n} from \"constants/Enums\";\r\nimport { isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport { callApi, getPatientStateList } from \"api/apiList\";\r\n\r\nconst LabelsSection = ({ prescription }) => {\r\n const { selectedMenuItem, productLines, prescriptionStates } = useSelector(\r\n ({ management }) => management\r\n );\r\n const [patientStateList, setPatientStateList] = useState([]);\r\n const adverseEventStateList = AdverseEventStateList();\r\n const trainingStateList = TrainingStateList();\r\n\r\n const txtOnTime = IntlGetText(\"adverseEventTime.onTime\");\r\n const txtDelayed = IntlGetText(\"adverseEventTime.delayed\");\r\n const txtFollowUp = IntlGetText(\"adverseEvent.followUp\");\r\n\r\n const patientStateList2 = PatientStateList();\r\n\r\n useEffect(() => {\r\n if (isJaasModule()) {\r\n callApi(getPatientStateList, (data) => {\r\n setPatientStateList(data.states);\r\n });\r\n } else {\r\n setPatientStateList(patientStateList2);\r\n }\r\n }, []);\r\n\r\n const ShowAdverseEventTime = (value) => {\r\n if (value === null) return \"\";\r\n return value ? (\r\n
    \r\n {txtOnTime}\r\n
    \r\n ) : (\r\n
    \r\n {txtDelayed}\r\n
    \r\n );\r\n };\r\n\r\n const ShowEventTrainingState = () => {\r\n if (\r\n selectedMenuItem === FolderType.trainingsAndEvents &&\r\n prescription &&\r\n prescription.eventTraining\r\n ) {\r\n const item = trainingStateList.find(\r\n (x) => x.id === prescription.eventTraining.state\r\n );\r\n if (item) {\r\n return (\r\n
    \r\n {item.name}\r\n
    \r\n );\r\n }\r\n }\r\n return <>;\r\n };\r\n\r\n return (\r\n
    \r\n {productLines.map((productLine, index) => {\r\n return (\r\n prescription.productLineId === productLine.id && (\r\n \r\n {productLine.title}\r\n
    \r\n )\r\n );\r\n })}\r\n {selectedMenuItem === FolderType.tracing &&\r\n prescription.patient &&\r\n patientStateList.map((state, index) => {\r\n return (\r\n prescription.patient.state === state.id && (\r\n \r\n {state.name}\r\n \r\n )\r\n );\r\n })}\r\n {selectedMenuItem === FolderType.adverseEvents &&\r\n prescription &&\r\n prescription.adverseEvent &&\r\n prescriptionStates.map((state, index) => {\r\n return (\r\n state.type === selectedMenuItem &&\r\n prescription.adverseEvent.adverseEventTypeId === state.id && (\r\n \r\n {state.title +\r\n (!prescription.adverseEvent.followUpId\r\n ? \"\"\r\n : \" (\" + txtFollowUp + \")\")}\r\n \r\n )\r\n );\r\n })}\r\n {selectedMenuItem === FolderType.adverseEvents &&\r\n prescription &&\r\n prescription.adverseEvent &&\r\n adverseEventStateList.map((state, index) => {\r\n return (\r\n prescription.adverseEvent.state === state.id && (\r\n \r\n {state.name}\r\n \r\n )\r\n );\r\n })}\r\n {selectedMenuItem === FolderType.adverseEvents &&\r\n prescription &&\r\n prescription.adverseEvent &&\r\n ShowAdverseEventTime(prescription.adverseEvent.isOnTime)}\r\n {prescriptionStates\r\n .filter((x) => !x.isImpactType)\r\n .map((state, index) => {\r\n return (\r\n state.type === selectedMenuItem &&\r\n prescription.stateId === state.id && (\r\n \r\n {state.title}\r\n \r\n )\r\n );\r\n })}\r\n {prescriptionStates\r\n .filter((x) => x.isImpactType)\r\n .map((state, index) => {\r\n return (\r\n state.type === selectedMenuItem &&\r\n prescription.impactTypeId === state.id && (\r\n \r\n {state.title}\r\n \r\n )\r\n );\r\n })}\r\n\r\n {prescription.eventTraining &&\r\n prescription.eventTraining.typeId !== 2 && }\r\n \r\n );\r\n};\r\n\r\nexport default LabelsSection;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport DayjsUtils from \"@date-io/dayjs\";\r\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport { DateTimePicker } from \"@material-ui/pickers\";\r\n\r\nconst MuiDateTimePicker = (props) => {\r\n const { name, required, errorobj } = props;\r\n\r\n let isError = false;\r\n let errorMessage = \"\";\r\n if (errorobj && errorobj.hasOwnProperty(name)) {\r\n isError = true;\r\n errorMessage = errorobj[name].message;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nfunction FormDateTimePicker(props) {\r\n const { control } = useFormContext();\r\n const {\r\n name,\r\n label,\r\n defaultValue,\r\n value, \r\n onChange,\r\n ...dateProps\r\n } = props;\r\n\r\n // const {\r\n // className,\r\n // name,\r\n // label,\r\n // defaultValue,\r\n // format,\r\n // required,\r\n // errorobj,\r\n // value,\r\n // margin,\r\n // disableFuture,\r\n // disablePast,\r\n // minDate,\r\n // } = props;\r\n\r\n return (\r\n \r\n \r\n (\r\n {\r\n onChange(value);\r\n if (props.onChange) props.onChange(value);\r\n }}\r\n value={value}\r\n {...dateProps}\r\n />\r\n )}\r\n />\r\n {/* (\r\n {\r\n onChange(value);\r\n if (props.onChange) props.onChange(value);\r\n }}\r\n format={format}\r\n required={required}\r\n errorobj={errorobj}\r\n value={value}\r\n margin={margin}\r\n disableFuture={disableFuture}\r\n disablePast={disablePast}\r\n minDate={minDate}\r\n className={className}\r\n />\r\n )}\r\n /> */}\r\n \r\n \r\n );\r\n}\r\n\r\nexport default FormDateTimePicker;\r\n","import React, { useState ,useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { Button, Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\n\r\nconst DialogRescheduleImpact = ({open, handleRequestClose, callRescheduleImpact, commentsList, prescription2 }) => {\r\n \r\n const msgValidation = IntlGetText(\"rescheduleImpact.breachValidation\");\r\n \r\n const defaultValues = { \r\n planningDate: null,\r\n breachId: null,\r\n breachComment: null\r\n };\r\n \r\n const [prescription, setPrescription] = useState({});\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const planningDateVlue = watch(\"planningDate\");\r\n \r\n const isBreach = (prescription) => {\r\n return prescription && prescription.firstImpactDate \r\n && dayjs(prescription.firstImpactDate).format(\"YYYY-MM-DD\") == dayjs().format(\"YYYY-MM-DD\");\r\n }\r\n\r\n const loadData = () => {\r\n setValue(\"planningDate\",dayjs(prescription.firstImpactDate));\r\n };\r\n\r\n useEffect(()=>setPrescription(prescription2),[prescription2]);\r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(loadData,150);\r\n }\r\n },[open,setValue,prescription]);\r\n \r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n const onSubmit = async (data, e) => {\r\n if(isBreach(prescription) && ( !data.breachId && !data.breachComment)){\r\n NotificationManager.warning(msgValidation);\r\n return;\r\n }\r\n \r\n const obj = {\r\n impactId: prescription.impactId,\r\n planningDate: dayjs(data.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n breachId: !data.breachId ? data.breachId : data.breachId.value,\r\n breachComment: data.breachComment\r\n };\r\n callRescheduleImpact(obj);\r\n };\r\n \r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n { isBreach(prescription) &&\r\n \r\n }\r\n options={commentsList}\r\n value={watch(\"breachId\")}\r\n onChange={cboHandleChange(\"breachId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n } \r\n { isBreach(prescription) &&\r\n \r\n } \r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n };\r\n\r\n export default DialogRescheduleImpact;","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions,\r\n} from \"@material-ui/core\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { callActionApi, getImpactTypeList } from \"api/apiList\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst DialogPlanningImpact = ({\r\n open,\r\n handleRequestClose,\r\n prescription,\r\n callPlanImpact,\r\n}) => {\r\n const { selectedMenuItem } = useSelector(({ management }) => management);\r\n const [impactTypeList, setImpactTypeList] = useState([]);\r\n\r\n const defaultValues = {\r\n impactTypeId: \"\",\r\n planningDate: null,\r\n };\r\n const validationSchema = {\r\n impactTypeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n planningDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"impactTypeId\",\r\n !prescription\r\n ? \"\"\r\n : getCboValue(impactTypeList, prescription.impactTypeId)\r\n );\r\n setValue(\r\n \"planningDate\",\r\n !prescription || !prescription.planningDate\r\n ? null\r\n : prescription.planningDate\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n callActionApi(\r\n getImpactTypeList,\r\n setImpactTypeList,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (open) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [open]);\r\n\r\n const onSubmit = async (data, e) => {\r\n const obj = {\r\n prescriptionId: prescription.id,\r\n planningDate: dayjs(data.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n impactTypeId: Number(data.impactTypeId.value),\r\n };\r\n await callPlanImpact(obj);\r\n };\r\n\r\n const filterImpactTypeList = (folderType) => \r\n impactTypeList.filter(x=>x.folderType == folderType);\r\n\r\n return (\r\n \r\n \r\n {}\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={filterImpactTypeList(selectedMenuItem)}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DialogPlanningImpact;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport LabelsSection from \"../labelsSection\";\r\nimport DialogRescheduleImpact from \"./DialogRescheduleImpact\";\r\nimport DialogPlanningImpact from \"./DialogPlanningImpact\";\r\nimport { setSelectedPrescription, loadPrescriptions } from \"actions/Management\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n GetCommentsByType,\r\n postRescheduleImpact,\r\n getPrescriptions,\r\n postPlanImpact\r\n} from \"api/apiList\";\r\nimport { FolderType, PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst PrescriptionList = () => {\r\n const dispatch = useDispatch();\r\n const {\r\n prescriptionsByMenuItem,\r\n searchText,\r\n selectedProductLine,\r\n selectedPrescriptionState,\r\n selectedMenuItem\r\n } = useSelector(({ management }) => management);\r\n\r\n const [prescriptionsList, setPrescriptionsList] = useState([]);\r\n const [open, setOpen] = useState(false);\r\n const [openDlgPlanning, setOpenDlgPlanning] = useState(false);\r\n\r\n const [commentsList, setCommentsList] = useState([]);\r\n const [prescriptionReschedule, setPrescriptionReschedule] = useState({});\r\n\r\n const patientName = IntlGetText(\"core.newPatient\");\r\n const msgNoPlanned = IntlGetText(\"impact.NoPlanned\");\r\n\r\n const filterPrescriptions = (prescriptions) => {\r\n if (searchText && searchText.length > 0) {\r\n if (selectedMenuItem === 4) {\r\n prescriptions = prescriptions.filter(\r\n (item) =>\r\n item.eventTraining.name\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1\r\n );\r\n } else {\r\n prescriptions = prescriptions.filter(\r\n (item) =>\r\n item.doctor.name.toLowerCase().indexOf(searchText.toLowerCase()) >\r\n -1 ||\r\n (item.patient &&\r\n item.patient.name\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1) ||\r\n (item.patient &&\r\n item.patient.code &&\r\n item.patient.code\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1) ||\r\n (item.patient &&\r\n item.patient.document &&\r\n item.patient.document\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1) ||\r\n (item.patient &&\r\n item.patient.lastName\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1) ||\r\n (item.patient &&\r\n item.patient.phone &&\r\n item.patient.phone\r\n .toLowerCase()\r\n .indexOf(searchText.toLowerCase()) > -1)\r\n );\r\n }\r\n }\r\n if (selectedProductLine && selectedProductLine >= 0) {\r\n prescriptions = prescriptions.filter(\r\n (item) => item.productLineId === selectedProductLine\r\n );\r\n }\r\n if (selectedPrescriptionState && selectedPrescriptionState >= 0) {\r\n if (selectedMenuItem === FolderType.tracing) {\r\n prescriptions = prescriptions.filter(\r\n (item) => item.impactTypeId === selectedPrescriptionState\r\n );\r\n } else if (selectedMenuItem === FolderType.adverseEvents) {\r\n prescriptions = prescriptions.filter(\r\n (item) =>\r\n item.adverseEvent.adverseEventTypeId === selectedPrescriptionState\r\n );\r\n } else {\r\n prescriptions = prescriptions.filter(\r\n (item) => item.stateId === selectedPrescriptionState\r\n );\r\n }\r\n }\r\n setPrescriptionsList(prescriptions);\r\n };\r\n\r\n useEffect(() => {\r\n callApi(() => GetCommentsByType(0), setCommentsList);\r\n }, []);\r\n\r\n useEffect(() => {\r\n filterPrescriptions(prescriptionsByMenuItem);\r\n }, [\r\n prescriptionsByMenuItem,\r\n searchText,\r\n selectedProductLine,\r\n selectedPrescriptionState\r\n ]);\r\n\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n const handleRequestCloseDlgPlanning = () => setOpenDlgPlanning(false);\r\n\r\n const callRescheduleImpact = (obj) => {\r\n callApi(\r\n () => postRescheduleImpact(obj),\r\n (data) => {\r\n handleRequestClose();\r\n callApi(\r\n () => getPrescriptions(FolderType.newPatients),\r\n (data) => {\r\n dispatch(loadPrescriptions(data, 0));\r\n //filterPrescriptions(data);\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n const callPlanImpact = async (obj) => {\r\n await callApiAsync(\r\n () => postPlanImpact(obj),\r\n (data) => {\r\n handleRequestCloseDlgPlanning();\r\n callApi(\r\n () => getPrescriptions(selectedMenuItem),\r\n (data) => {\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n //filterPrescriptions(data);\r\n }\r\n );\r\n }\r\n );\r\n };\r\n\r\n const onSelectItem = (e, prescription) => {\r\n if (\r\n prescription.stateId >= PrescripStateEnum.fristImpact &&\r\n !prescription.firstImpactDate &&\r\n selectedMenuItem !== FolderType.adverseEvents\r\n ) {\r\n NotificationManager.warning(msgNoPlanned);\r\n return;\r\n }\r\n dispatch(setSelectedPrescription(prescription));\r\n };\r\n\r\n const onClickDate = (e, prescription) => {\r\n // e.preventDefault();\r\n // e.stopPropagation();\r\n // e.nativeEvent.stopImmediatePropagation();\r\n\r\n if (\r\n prescription.stateId < PrescripStateEnum.fristImpact ||\r\n selectedMenuItem === FolderType.adverseEvents\r\n ) {\r\n return;\r\n }\r\n\r\n if (\r\n !(\r\n prescription.stateId == PrescripStateEnum.fristImpact &&\r\n prescription.firstImpactDate\r\n )\r\n ) {\r\n if (!prescription.firstImpactDate) {\r\n setPrescriptionReschedule(prescription);\r\n setOpenDlgPlanning(true);\r\n }\r\n return;\r\n }\r\n\r\n setPrescriptionReschedule(prescription);\r\n setOpen(true);\r\n };\r\n\r\n const getPatientName = (prescription) => {\r\n if (prescription.patient)\r\n return `${prescription.patient.code} - ${prescription.patient.name} ${\r\n prescription.patient.lastName\r\n } ${\r\n prescription.patient.phone ? \" - \" + prescription.patient.phone : \"\"\r\n } `;\r\n\r\n if (prescription.eventTraining)\r\n return prescription.eventTraining.name.toUpperCase();\r\n return patientName;\r\n };\r\n\r\n return !prescriptionsList.map ? (\r\n \"\"\r\n ) : (\r\n
    \r\n \r\n \r\n {prescriptionsList.map((prescription, index) => {\r\n return (\r\n
    \r\n
    \r\n \r\n {prescription.patient\r\n ? prescription.patient.name.charAt(0).toUpperCase()\r\n : patientName.charAt(0).toUpperCase()}\r\n
    \r\n
    \r\n {\r\n // onSelectItem(e,prescription);\r\n // }}\r\n >\r\n
    \r\n
    \r\n {\r\n onSelectItem(e, prescription);\r\n }}\r\n >\r\n {getPatientName(prescription)}\r\n \r\n\r\n {selectedMenuItem === FolderType.trainingsAndEvents &&\r\n prescription.eventTraining.typeId !== 2 && (\r\n \r\n )}\r\n\r\n {\r\n onSelectItem(e, prescription);\r\n }}\r\n >\r\n {prescription.doctor && prescription.doctor.name}\r\n \r\n {/* {mail.hasAttachments && } */}\r\n\r\n {\r\n onClickDate(e, prescription);\r\n }}\r\n >\r\n {prescription.firstImpactDate &&\r\n dayjs(prescription.firstImpactDate).format(\"YYYY/MM/DD\")}\r\n\r\n {!prescription.firstImpactDate &&\r\n (selectedMenuItem == FolderType.inProcess ||\r\n selectedMenuItem == FolderType.tracing) && (\r\n \r\n )}\r\n\r\n {selectedMenuItem === FolderType.adverseEvents &&\r\n dayjs(prescription.adverseEvent.creationDate).format(\r\n \"YYYY/MM/DD\"\r\n )}\r\n\r\n {selectedMenuItem === FolderType.trainingsAndEvents &&\r\n prescription.eventTraining.typeId !== 2 &&\r\n dayjs(prescription.eventTraining.trainingDate).format(\r\n \"YYYY/MM/DD\"\r\n )}\r\n
    \r\n
    \r\n {\r\n onSelectItem(e, prescription);\r\n }}\r\n >\r\n \r\n
    \r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n );\r\n};\r\n\r\nexport default PrescriptionList;\r\n","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport Widget from \"components/Widget\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { isOnlyTracing } from \"app/routes/psp/services/userService\";\r\nimport { updateSelectedPrescription, addPrescriptionAndGoToTracing } from \"actions/Management\";\r\nimport { callApiAsync, postPlanningFirstImpact } from \"api/apiList\";\r\nimport { FolderType } from \"constants/Enums\";\r\n\r\nconst ContactPlanning = ({ prescriptionId }) => {\r\n const dispatch = useDispatch();\r\n\r\n const validationSchema = yup.object().shape({\r\n planningDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n });\r\n\r\n const defaultValues = {\r\n planningDate: null,\r\n isHospitalized: false,\r\n address: \"\",\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors, watch, setValue } = methods;\r\n\r\n const isHospitalized = watch(\"isHospitalized\");\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const onSubmit = async (data, e) => {\r\n const planningDate = dayjs(data.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\");\r\n const dataForm = { ...data, planningDate, prescriptionId };\r\n\r\n await callApiAsync(\r\n () => postPlanningFirstImpact(dataForm),\r\n (data) => {\r\n if(!isOnlyTracing())\r\n dispatch(updateSelectedPrescription(data));\r\n else\r\n dispatch(addPrescriptionAndGoToTracing(data, FolderType.tracing));\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default ContactPlanning;\r\n","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport LabelsSection from \"../../labelsSection\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst NameAndLabelsContent = ({ prescription }) => {\r\n const patientName = IntlGetText(\"core.newPatient\");\r\n const getPatientName = (patient) => {\r\n return !patient ? patientName : `${patient.code} - ${patient.name} ${patient.lastName}`; \r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n {: }\r\n {getPatientName(prescription.patient)} \r\n {prescription.doctor && | : } {prescription.doctor.name} \r\n
    \r\n { prescription.stateId <= PrescripStateEnum.fristImpact &&\r\n
    \r\n {prescription.visitor &&\r\n : } {prescription.visitor}\r\n {prescription.msl &&\r\n | : } {prescription.msl}\r\n {prescription.stateId == PrescripStateEnum.fristImpact &&\r\n prescription.impact && prescription.impact.contactPlace &&\r\n | {IntlGetText(\"patientManagement.place\")}: } {prescription.impact && prescription.impact.contactPlace}\r\n \r\n
    \r\n } \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default NameAndLabelsContent;","import React from \"react\";\r\nimport Widget from \"components/Widget\";\r\n\r\nconst InfoItem = ({index, icon, title, description}) => {\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {title}\r\n \r\n

    {description}

    \r\n
    \r\n \r\n );\r\n}; \r\n\r\nconst ContactInfo=({ prescription })=>{\r\n const {email, institution, cellphone } = prescription.doctor;\r\n return (\r\n
    \r\n \r\n 0 && email[email.length - 1]}/>\r\n \r\n 0 && cellphone[cellphone.length - 1]}/>\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ContactInfo;","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport Widget from \"components/Widget\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { setPatient } from \"actions/Management\";\r\nimport { callApiAsync, postAddContactDetails } from \"api/apiList\";\r\n\r\nconst ContactPatientForm = ({prescription}) => {\r\n const dispatch = useDispatch();\r\n\r\n const validationSchema = yup.object().shape({\r\n name: yup.string().required(),\r\n lastName: yup.string().required(),\r\n phone: yup.string().required()\r\n });\r\n\r\n const defaultValues = {\r\n name: prescription.patient ? prescription.patient.name : \"\",\r\n lastName: prescription.patient ? prescription.patient.lastName : \"\",\r\n phone: prescription.patient ? prescription.patient.phone : \"\",\r\n cellphone: prescription.patient ? prescription.patient.cellphone : \"\",\r\n };\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(validationSchema) });\r\n const { handleSubmit, errors } = methods;\r\n \r\n const successSaveMsg = IntlGetText(\"core.SuccessSave\");\r\n const onSubmit = async (data, e) => { \r\n const contactInfo = {...data, prescriptionId: prescription.id };\r\n\r\n await callApiAsync(\r\n () => postAddContactDetails(contactInfo),\r\n (data)=>{\r\n dispatch(setPatient(data));\r\n NotificationManager.success(successSaveMsg);\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n name=\"phone\"\r\n required={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n
    \r\n
    \r\n }\r\n name=\"cellphone\"\r\n required={false}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n Guardar\r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ContactPatientForm;","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport {\r\n Grid,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Button\r\n} from \"@material-ui/core\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\n\r\nconst DialogDoctorAuthorization = ({open, dialogTitle , sendDoctorAuth, handleDoctorAuthDialog}) => {\r\n const validationSchema = yup.object().shape({\r\n comment: yup.string().required()\r\n }); \r\n\r\n const defaultValues = {comment:\"\"};\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(validationSchema) });\r\n const { handleSubmit, errors, reset } = methods;\r\n \r\n const onSubmit = async (data, e) => { sendDoctorAuth(false, data.comment); };\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n handleDoctorAuthDialog(false);\r\n };\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n }\r\n name=\"comment\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DialogDoctorAuthorization;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { \r\n callApi,\r\n callApiAsync,\r\n postImpactStartImpact,\r\n postImpactEndImpact,\r\n getPrescriptions\r\n} from \"api/apiList\"; \r\nimport { \r\n setSelectedPrescription, \r\n loadPrescriptions,\r\n updateSelectedPrescription \r\n} from \"actions/Management\";\r\nimport { \r\n setFormFormulaDone, \r\n setImpactStartDate, \r\n callStartImpact as callStartImpactAction\r\n} from \"actions/Impact\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nfunction GetNewState(prescription){\r\n const prescriptionState = prescription.stateId;\r\n switch(prescriptionState){\r\n case PrescripStateEnum.fristImpact: return PrescripStateEnum.formulated;\r\n case PrescripStateEnum.radicacionEPS: return PrescripStateEnum.authorized;\r\n case PrescripStateEnum.authorized: return PrescripStateEnum.radicacionOLF;\r\n case PrescripStateEnum.radicacionOLF: return PrescripStateEnum.delivered;\r\n }\r\n return prescription.stateId;\r\n}\r\n\r\nconst DialogEndImpact = ({open, handleRequestClose, callEndImpact, impactStartDate }) => {\r\n const defaultValues = { \r\n endDate: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nursingNote: \"\"\r\n };\r\n const validationSchema = { \r\n nursingNote: yup.string().required(),\r\n endDate:yup.date()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .min(dayjs(impactStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),IntlGetText(\"impact.invalidEndDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, setValue, errors } = methods;\r\n \r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(\r\n ()=>setValue(\"endDate\",dayjs().format(\"YYYY-MM-DDTHH:mm:ss\")),\r\n 150\r\n );\r\n }\r\n },[open]);\r\n\r\n const onSubmit = async (data, e) => { \r\n await callEndImpact(dayjs(data.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"), data.nursingNote); \r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={ }\r\n required={true} \r\n errorobj={errors} \r\n />\r\n \r\n \r\n } \r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nconst DialogStartImpact = ({open, handleRequestClose, callStartImpact }) => {\r\n const defaultValues = { startDate: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\")};\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(\r\n ()=>setValue(\"startDate\",dayjs().format(\"YYYY-MM-DDTHH:mm:ss\")),\r\n 150\r\n );\r\n }\r\n },[open]);\r\n \r\n const onSubmit = async (data, e) => { \r\n await callStartImpact(dayjs(data.startDate).format(\"YYYY-MM-DDTHH:mm:ss\") ); \r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n }\r\n rightArrowIcon={ }\r\n required={true} \r\n errorobj={errors} \r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nconst StartEndImpact = ({ prescription }) => {\r\n const dispatch = useDispatch();\r\n const { impactStartDate, impactEndDate, startImpact } = useSelector(({ impact }) => impact);\r\n const { selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [open, setOpen] = useState(false);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n \r\n const handleRequestClose = () => { \r\n setOpen(false);\r\n if(startImpact){\r\n dispatch(callStartImpactAction(false));\r\n }\r\n };\r\n const handleImpactStarted = () => { setOpen(true); };\r\n const handleImpactEnd = () =>{ setOpen(true); };\r\n \r\n const callStartImpact = async(startDate) => {\r\n await callApiAsync(\r\n ()=>postImpactStartImpact({\r\n id:prescription.impactId, \r\n startDate,\r\n folderType: selectedMenuItem\r\n }), \r\n (data)=>{\r\n handleRequestClose();\r\n NotificationManager.success(msgSuccess);\r\n\r\n if(data){ //new formulation\r\n dispatch(updateSelectedPrescription(data));\r\n dispatch(setFormFormulaDone(null));\r\n }\r\n\r\n dispatch(setImpactStartDate(startDate));\r\n });\r\n };\r\n const callEndImpact = async(endDate,nursingNote) => {\r\n await callApiAsync(\r\n ()=>postImpactEndImpact({\r\n id:prescription.impactId, \r\n endDate,\r\n nursingNote,\r\n newPrescriptionState: GetNewState(prescription),\r\n folderType: selectedMenuItem\r\n }), \r\n (data)=>{\r\n handleRequestClose();\r\n NotificationManager.success(msgSuccess);\r\n dispatch(setImpactStartDate(null));\r\n\r\n callApi(\r\n ()=> getPrescriptions(selectedMenuItem), \r\n (data)=>{\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n dispatch(setSelectedPrescription(null));\r\n });\r\n });\r\n };\r\n\r\n useEffect(()=> {\r\n if(startImpact){\r\n handleImpactStarted();\r\n }\r\n },[startImpact]);\r\n\r\n return (\r\n
    \r\n \r\n {prescription.stateId >= 3 && !impactStartDate && (\r\n
    \r\n \r\n {handleImpactStarted();}}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n
    \r\n )}\r\n\r\n {prescription.stateId >= 3 && (impactStartDate && !impactEndDate) && (\r\n
    \r\n \r\n {handleImpactEnd();}}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\nexport default StartEndImpact;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {DlgConfirmCustomAsync} from \"components/Form/Controls/DialogConfirm\";\r\nimport { callApiAsync, postUpdateConfig } from \"api/apiList\";\r\n\r\nconst FormPatientState = ({openDlg, closeDialog, selectedPrescription, callBack}) => { \r\n const [openDlgConfirm, setOpenDlgConfirm] = useState(false);\r\n const [objInfo, setObjInfo] = useState(null);\r\n \r\n const settingList = [\r\n {id:1, name: IntlGetText(\"patientSetting.processAndTracing\")},\r\n {id:2, name: IntlGetText(\"patientSetting.onlyTracing\")},\r\n ];\r\n \r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = { setting: null };\r\n const validationSchema = {\r\n setting: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(()=>{\r\n if(!openDlg)\r\n return;\r\n \r\n setTimeout(() => {\r\n var isOnlyTracing = selectedPrescription.patient.isOnlyTracing;\r\n setValue(\"setting\", getCboValue(settingList, isOnlyTracing ? 2 : 1));\r\n }, 200);\r\n },[openDlg]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n var obj = {\r\n impactId: selectedPrescription.impactId,\r\n isOnlyTracing: Number(d.setting.value) === 2,\r\n };\r\n\r\n const isOnlyTracing = selectedPrescription.patient.isOnlyTracing === true;\r\n if(obj.isOnlyTracing === isOnlyTracing){\r\n closeDialog();\r\n return;\r\n }\r\n\r\n setObjInfo(obj);\r\n setOpenDlgConfirm(true);\r\n });\r\n\r\n const postSaveChangeAsync = async () => {\r\n if(!objInfo)\r\n return;\r\n\r\n await callApiAsync(\r\n ()=>postUpdateConfig(objInfo),\r\n ()=>{\r\n NotificationManager.success(msgSuccess);\r\n closeDialog();\r\n if(callBack)\r\n callBack();\r\n\r\n // const prescription = {\r\n // ...selectedPrescription,\r\n // patient:{\r\n // ...selectedPrescription.patient,\r\n // isOnlyTracing: objInfo.isOnlyTracing\r\n // }\r\n // }\r\n // dispatch(updateSelectedPrescription(prescription));\r\n\r\n // if(callBack)\r\n // callBack();\r\n // closeDialog();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={settingList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n setOpenDlgConfirm(false)}\r\n onAcceptClickAsync={postSaveChangeAsync}\r\n >\r\n
    \r\n \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormPatientState;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { callStartImpact, setImpactStartDate } from \"actions/Impact\";\r\nimport { \r\n setSelectedPrescription, \r\n loadPrescriptions,\r\n} from \"actions/Management\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { callApi, getPrescriptions } from \"api/apiList\";\r\nimport FormEdit from \"./formEdit\";\r\n\r\n\r\nconst IsOnlyTracingBox = () => {\r\n const dispatch = useDispatch();\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n const { selectedPrescription, selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n \r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpenDlg(true);\r\n };\r\n\r\n const callBack = () => {\r\n dispatch(setImpactStartDate(null));\r\n\r\n callApi(\r\n ()=> getPrescriptions(selectedMenuItem), \r\n (data)=>{\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n \r\n setOpenDlg(false)}\r\n selectedPrescription= {selectedPrescription}\r\n callBack={callBack}/>\r\n \r\n );\r\n};\r\n\r\nexport default IsOnlyTracingBox;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\n\r\nconst PdfViewer = ({ src, width, height }) =>{ \r\n\r\n return (\r\n \r\n

    \r\n \r\n );\r\n};\r\nexport default PdfViewer;","import React, { useState, useEffect } from \"react\";\r\nimport { FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport { \r\n callApi, \r\n getInfoConsent,\r\n getCitiesByStateProvinceId,\r\n getDiseasesByProductId\r\n } from \"api/apiList\";\r\n\r\n\r\nconst getCboValue = (items, id) => {\r\n if(typeof(id) == \"object\"){\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n\r\nexport const defaultValues = {\r\n name:\"\",\r\n lastName:\"\",\r\n documentTypeId: null,\r\n document:\"\",\r\n cellphone:\"\",\r\n phone:\"\",\r\n email:\"\",\r\n stateProvinceId: null,\r\n cityId: null,\r\n doctor:\"\",\r\n productId: null,\r\n diseaseId: null,\r\n tutorName:\"\",\r\n tutorLastName:\"\",\r\n tutorDocumentTypeId: null,\r\n tutorDocument:\"\"\r\n};\r\n\r\nexport const validationSchema = yup.object().shape({\r\n name: yup.string().required(),\r\n lastName: yup.string().required(),\r\n documentTypeId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n document: yup.string().required(),\r\n //cellphone: yup.string().required(),\r\n phone: yup.string().required(),\r\n email: yup.string().email(),\r\n stateProvinceId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n diseaseId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n productId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n tutorName: yup.string()\r\n .when([\"tutorLastName\", \"tutorDocumentTypeId\", \"tutorDocument\"], {\r\n is: (tutorLastName, tutorDocumentTypeId, tutorDocument) => tutorLastName || tutorDocumentTypeId || tutorDocument,\r\n then: yup\r\n .string()\r\n .required()\r\n }\r\n ),\r\n tutorLastName: yup.string()\r\n .when(\"tutorName\", {\r\n is: (name) => name,\r\n then: yup\r\n .string()\r\n .required()\r\n }\r\n ),\r\n tutorDocumentTypeId: yup.object().nullable()\r\n .when(\"tutorName\", {\r\n is: (name) => name,\r\n then: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }\r\n ),\r\n tutorDocument: yup.string()\r\n .when(\"tutorName\", {\r\n is: (name) => name,\r\n then: yup\r\n .string()\r\n .required()\r\n }\r\n )\r\n}, [[\"tutorName\", \"tutorLastName\"], [\"tutorName\",\"tutorDocumentTypeId\"], [\"tutorName\",\"tutorDocument\"]]);\r\n\r\nexport const getDataForm = (d) => {\r\n return {\r\n name: d.name,\r\n lastName: d.lastName,\r\n documentTypeId: Number(d.documentTypeId.value),\r\n document:d.document,\r\n cellphone:d.cellphone,\r\n phone:d.phone,\r\n email:d.email,\r\n cityId: Number(d.cityId.value),\r\n productId: Number(d.productId.value),\r\n diseaseId: Number(d.diseaseId.value),\r\n tutorName: !d.tutorName ? null : d.tutorName,\r\n tutorLastName: !d.tutorLastName ? null : d.tutorLastName,\r\n tutorDocumentTypeId: !d.tutorDocumentTypeId ? null : Number(d.tutorDocumentTypeId.value),\r\n tutorDocument: !d.tutorDocument ? null : d.tutorDocument\r\n };\r\n};\r\n\r\nconst CIForm = ({ methods, prescriptionId }) => { \r\n const [infoConsent, setInfoConsent] = useState(null);\r\n const [cityList, setCityList] = useState([]);\r\n const [diseaseList, setDiseaseList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n loadedCities: false,\r\n loadedDiseases: false\r\n });\r\n \r\n const { watch, setValue, errors } = methods;\r\n \r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const productIdValue = watch(\"productId\");\r\n\r\n const loadInfo = (info) => {\r\n setValue(\"name\", !info.name ? \"\" : info.name);\r\n setValue(\"lastName\", !info.lastName ? \"\" : info.lastName);\r\n setValue(\"documentTypeId\", !info.documentTypeId ? null : getCboValue(info.documentTypeList,info.documentTypeId));\r\n setValue(\"document\", !info.document ? \"\" : info.document);\r\n setValue(\"cellphone\", !info.cellphone ? \"\" : info.cellphone);\r\n setValue(\"phone\", !info.phone ? \"\" : info.phone);\r\n setValue(\"email\", !info.email ? \"\" : info.email);\r\n setValue(\"stateProvinceId\", !info.stateProvinceId ? null : getCboValue(info.stateProvinceList,info.stateProvinceId));\r\n //city\r\n setValue(\"doctor\", info.doctor);\r\n setValue(\"productId\", !info.productId ? null : getCboValue(info.productList,info.productId));\r\n //Disease\r\n setValue(\"tutorName\", !info.tutorName ? \"\" : info.tutorName);\r\n setValue(\"tutorLastName\", !info.tutorLastName ? \"\" : info.tutorLastName);\r\n setValue(\"tutorDocumentTypeId\", !info.tutorDocumentTypeId ? null : getCboValue(info.documentTypeList,info.tutorDocumentTypeId));\r\n setValue(\"tutorDocument\", !info.tutorDocument ? \"\" : info.tutorDocument);\r\n };\r\n \r\n const loadCities = (stateProvinceId) => {\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceId),\r\n (data) => {\r\n setCityList(data);\r\n if(!loadForm.loadedCities){\r\n setValue(\"cityId\", !infoConsent.cityId ? null : getCboValue(data,infoConsent.cityId));\r\n setLoadForm({loadedCities: true, ...loadForm});\r\n }\r\n }\r\n );\r\n };\r\n\r\n const loadDiseases = (productId) => {\r\n callApi(\r\n () => getDiseasesByProductId(productId),\r\n (data) => {\r\n setDiseaseList(data);\r\n if(!loadForm.loadedDiseases){\r\n setValue(\"diseaseId\", !infoConsent.diseaseId ? null : getCboValue(data,infoConsent.diseaseId));\r\n setLoadForm({loadedDiseases: true, ...loadForm});\r\n }\r\n }\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n callApi(\r\n () => getInfoConsent(prescriptionId),\r\n (data)=>{\r\n setInfoConsent(data);\r\n loadInfo(data);\r\n }\r\n );\r\n },[]);\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n loadCities(stateProvinceIdValue.value);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n useEffect(() => {\r\n setValue(\"diseaseId\", null);\r\n if (!productIdValue || !productIdValue.value) {\r\n setDiseaseList([]);\r\n return;\r\n }\r\n loadDiseases(productIdValue.value);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [productIdValue]);\r\n \r\n return (\r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={!infoConsent ? [] : infoConsent.documentTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={!infoConsent ? [] : infoConsent.stateProvinceList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={diseaseList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={!infoConsent ? [] : infoConsent.productList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={!infoConsent ? [] : infoConsent.documentTypeList}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default CIForm;","import {\r\n PHARMA_FETCH_ALL_MAIL,\r\n PHARMA_GET_ALL_MAIL,\r\n PHARMA_GET_IMPORTANT_MAIL,\r\n PHARMA_GET_NAV_FILTERS,\r\n PHARMA_GET_NAV_FOLDER,\r\n PHARMA_GET_NAV_LABELS,\r\n PHARMA_GET_READ_MAIL,\r\n PHARMA_GET_STARRED_MAIL,\r\n PHARMA_GET_UNIMPORTANT_MAIL,\r\n PHARMA_GET_UNREAD_MAIL,\r\n PHARMA_GET_UNSELECTED_ALL_MAIL,\r\n PHARMA_GET_UNSTARRED_MAIL,\r\n PHARMA_HANDLE_REQUEST_CLOSE,\r\n PHARMA_ON_ALL_MAIL_SELECT,\r\n PHARMA_ON_COMPOSE_MAIL,\r\n PHARMA_ON_DELETE_MAIL,\r\n PHARMA_ON_FOLDER_MENU_ITEM_SELECT,\r\n PHARMA_ON_FOLDER_SELECT,\r\n ON_HIDE_LOADER,\r\n PHARMA_ON_IMPORTANT_SELECT,\r\n PHARMA_ON_LABEL_MENU_ITEM_SELECT,\r\n PHARMA_ON_LABEL_SELECT,\r\n PHARMA_ON_MAIL_CHECKED,\r\n PHARMA_ON_MAIL_SELECT,\r\n PHARMA_ON_MAIL_SEND,\r\n PHARMA_ON_OPTION_MENU_ITEM_SELECT,\r\n PHARMA_ON_OPTION_MENU_SELECT,\r\n PHARMA_ON_START_SELECT,\r\n ON_TOGGLE_DRAWER,\r\n PHARMA_SEARCH_MAIL,\r\n PHARMA_SET_CURRENT_MAIL_NULL,\r\n UPDATE_SEARCH,\r\n PHARMA_PROCESS_STATE_CHANGE,\r\n PHARMA_PATIENT_CONTACT_SAVE,\r\n} from \"../constants/ActionTypes\";\r\nimport {\r\n PHARMA_FETCH_ALL_MAIL_SUCCESS,\r\n SHOW_MESSAGE,\r\n} from \"constants/ActionTypes\";\r\n\r\nexport const fetchMails = () => {\r\n return {\r\n type: PHARMA_FETCH_ALL_MAIL,\r\n };\r\n};\r\n\r\nexport const fetchMailsSuccess = (mails) => {\r\n return {\r\n type: PHARMA_FETCH_ALL_MAIL_SUCCESS,\r\n payload: mails,\r\n };\r\n};\r\nexport const showMailMessage = (message) => {\r\n return {\r\n type: SHOW_MESSAGE,\r\n payload: message,\r\n };\r\n};\r\n\r\nexport const onFolderMenuItemSelect = (folderId) => {\r\n return {\r\n type: PHARMA_ON_FOLDER_MENU_ITEM_SELECT,\r\n payload: folderId,\r\n };\r\n};\r\n\r\nexport const onMailLabelMenuItemSelect = (label) => {\r\n return {\r\n type: PHARMA_ON_LABEL_MENU_ITEM_SELECT,\r\n payload: label,\r\n };\r\n};\r\n\r\nexport const onProcessStateChange = (label) => {\r\n return {\r\n type: PHARMA_PROCESS_STATE_CHANGE,\r\n payload: label,\r\n };\r\n};\r\n\r\nexport const onPatientContactSave = (patient) => {\r\n return {\r\n type: PHARMA_PATIENT_CONTACT_SAVE,\r\n payload: patient,\r\n };\r\n};\r\n\r\nexport const handleMailRequestClose = () => {\r\n return {\r\n type: PHARMA_HANDLE_REQUEST_CLOSE,\r\n };\r\n};\r\n\r\nexport const getMailNavFilters = (filter) => {\r\n return {\r\n type: PHARMA_GET_NAV_FILTERS,\r\n payload: filter,\r\n };\r\n};\r\nexport const onFolderSelect = () => {\r\n return {\r\n type: PHARMA_ON_FOLDER_SELECT,\r\n };\r\n};\r\nexport const onMailLabelSelect = () => {\r\n return {\r\n type: PHARMA_ON_LABEL_SELECT,\r\n };\r\n};\r\nexport const onMailOptionMenuSelect = () => {\r\n return {\r\n type: PHARMA_ON_OPTION_MENU_SELECT,\r\n };\r\n};\r\nexport const onOptionMenuItemSelect = (option) => {\r\n return {\r\n type: PHARMA_ON_OPTION_MENU_ITEM_SELECT,\r\n payload: option,\r\n };\r\n};\r\nexport const getAllMail = () => {\r\n console.log(\"getAllMail\");\r\n return {\r\n type: PHARMA_GET_ALL_MAIL,\r\n };\r\n};\r\nexport const getUnselectedAllMail = () => {\r\n return {\r\n type: PHARMA_GET_UNSELECTED_ALL_MAIL,\r\n };\r\n};\r\nexport const getReadMail = () => {\r\n return {\r\n type: PHARMA_GET_READ_MAIL,\r\n };\r\n};\r\nexport const getUnreadMail = () => {\r\n return {\r\n type: PHARMA_GET_UNREAD_MAIL,\r\n };\r\n};\r\nexport const getStarredMail = () => {\r\n return {\r\n type: PHARMA_GET_STARRED_MAIL,\r\n };\r\n};\r\n\r\nexport const getUnStarredMail = () => {\r\n return {\r\n type: PHARMA_GET_UNSTARRED_MAIL,\r\n };\r\n};\r\nexport const getImportantMail = () => {\r\n return {\r\n type: PHARMA_GET_IMPORTANT_MAIL,\r\n };\r\n};\r\nexport const getUnimportantMail = () => {\r\n return {\r\n type: PHARMA_GET_UNIMPORTANT_MAIL,\r\n };\r\n};\r\nexport const getMailNavLabels = (label) => {\r\n return {\r\n type: PHARMA_GET_NAV_LABELS,\r\n payload: label,\r\n };\r\n};\r\nexport const onSearchMail = (searchText) => {\r\n return {\r\n type: PHARMA_SEARCH_MAIL,\r\n payload: searchText,\r\n };\r\n};\r\nexport const onMailChecked = (data) => {\r\n return {\r\n type: PHARMA_ON_MAIL_CHECKED,\r\n payload: data,\r\n };\r\n};\r\n\r\nexport const onAllMailSelect = () => {\r\n return {\r\n type: PHARMA_ON_ALL_MAIL_SELECT,\r\n };\r\n};\r\nexport const onStartSelect = (data) => {\r\n return {\r\n type: PHARMA_ON_START_SELECT,\r\n payload: data,\r\n };\r\n};\r\nexport const onImportantSelect = (data) => {\r\n return {\r\n type: PHARMA_ON_IMPORTANT_SELECT,\r\n payload: data,\r\n };\r\n};\r\nexport const onMailSend = (data) => {\r\n return {\r\n type: PHARMA_ON_MAIL_SEND,\r\n payload: data,\r\n };\r\n};\r\nexport const onMailSelect = (mail) => {\r\n return {\r\n type: PHARMA_ON_MAIL_SELECT,\r\n payload: mail,\r\n };\r\n};\r\nexport const getNavFolders = (folder) => {\r\n return {\r\n type: PHARMA_GET_NAV_FOLDER,\r\n payload: folder,\r\n };\r\n};\r\n\r\nexport const updateMailSearch = (searchText) => {\r\n return {\r\n type: UPDATE_SEARCH,\r\n payload: searchText,\r\n };\r\n};\r\nexport const onMailToggleDrawer = () => {\r\n return {\r\n type: ON_TOGGLE_DRAWER,\r\n };\r\n};\r\nexport const onDeleteMail = () => {\r\n return {\r\n type: PHARMA_ON_DELETE_MAIL,\r\n };\r\n};\r\nexport const hideMailLoader = () => {\r\n return {\r\n type: ON_HIDE_LOADER,\r\n };\r\n};\r\nexport const setCurrentMailNull = () => {\r\n return {\r\n type: PHARMA_SET_CURRENT_MAIL_NULL,\r\n };\r\n};\r\nexport const onComposeMail = () => {\r\n return {\r\n type: PHARMA_ON_COMPOSE_MAIL,\r\n };\r\n};\r\n","import {\r\n INSTITUTION_SET_CI_INFO\r\n } from \"../constants/ActionTypes\";\r\n\r\n export const setInstitutionInfo = (institutionInfo) => {\r\n return { type: INSTITUTION_SET_CI_INFO, payload : institutionInfo };\r\n };","import { Grid } from \"@material-ui/core\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport React, { useState } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { callApiAsync, postConsentAddAudio } from \"api/apiList\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { callReloadPatientData, setConsentUrl } from \"actions\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Card, CardHeader } from \"reactstrap\";\r\n\r\nconst AudioForm = ({\r\n handleRequestClose,\r\n selectedPrescription,\r\n fnSetLoader\r\n}) => {\r\n const dispatch = useDispatch();\r\n\r\n const defaultValues = {\r\n audioUri: \"\"\r\n };\r\n const validationSchema = {\r\n audioUri: yup.string().required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n const onSubmit2 = async (d) => {\r\n const obj = {\r\n prescriptionId: selectedPrescription.id,\r\n urlAudio: d.audioUri\r\n };\r\n await callApiAsync(\r\n () => postConsentAddAudio(obj),\r\n (data) => {\r\n dispatch(setConsentUrl(data));\r\n dispatch(callReloadPatientData(true));\r\n handleRequestClose();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AudioForm;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogContentText,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DownloadButton from \"components/DownloadButton/index\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport PdfViewer from \"components/PdfViewer\";\r\nimport Form, { defaultValues, validationSchema, getDataForm } from \"./Form\";\r\nimport { SketchField, Tools } from \"react-sketch\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\nimport {\r\n setConsentPath,\r\n callStartImpact,\r\n callReloadPatientData\r\n} from \"actions/Impact\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApiAsync,\r\n postConsentSaveSign,\r\n postConsentAddExisting\r\n} from \"api/apiList\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport AudioForm from \"./audioForm\";\r\n\r\nconst ConsentDialog = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const {\r\n referralConsentFile,\r\n impactStartDate,\r\n consentPath,\r\n ciDisplayable,\r\n audioUrl,\r\n consentSigned\r\n } = useSelector(({ impact }) => impact);\r\n const msgValidation = IntlGetText(\"consent.validation\");\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const [open, setOpen] = useState(false);\r\n const [sketch, setSketch] = useState(false);\r\n const [reSign, setReSign] = useState(false);\r\n const [reSignReload, setReSignReload] = useState(false);\r\n const [loadCi, setLoadCi] = useState(true);\r\n const [file, setFile] = useState(null);\r\n const defaultValues = {\r\n audioUri: null\r\n };\r\n const methods = useForm({\r\n defaultValues: defaultValues,\r\n resolver: yupResolver(validationSchema)\r\n });\r\n\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n //const { handleSubmit } = methods;\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n setReSign(false);\r\n setLoadCi(true);\r\n setReSignReload(false);\r\n };\r\n\r\n const onSubmit = async (d) => {\r\n if (!sketch.canUndo()) {\r\n NotificationManager.warning(msgValidation);\r\n return;\r\n }\r\n\r\n let obj = getDataForm(d);\r\n obj.prescriptionId = selectedPrescription.id;\r\n obj.sign = sketch.toDataURL();\r\n\r\n await callApiAsync(\r\n () => postConsentSaveSign(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n dispatch(setConsentPath(data));\r\n dispatch(callReloadPatientData(true));\r\n handleRequestClose();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const isGeneric = () => {\r\n if (getUserInfo().shardKey === ShardKeyEnum.pintPharma) {\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {(!consentPath || reSign) && !loadCi && (\r\n \r\n \r\n

    \r\n

    \r\n {!isGeneric() && (\r\n <>\r\n \r\n De manera libre y voluntaria manifiesto mi consentimiento para\r\n participar en el programa de educación y apoyo a pacientes de\r\n la compañía Pint Pharma Colombia SAS, con el fin de\r\n beneficiarme de los servicios de dicho programa, en\r\n concordancia con el tratamiento ordenado por mi médico\r\n tratante.\r\n \r\n \r\n A. Introducción y propósito del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El programa de apoyo a pacientes es un programa creado para\r\n brindar educación, seguimiento y acompañamiento a los\r\n pacientes con diagnóstico de enfermedad crónica, huérfana,\r\n ruinosa y/o catastrófica y sus cuidadores, que busca el\r\n bienestar de sus beneficiarios por medio de la generación de\r\n estrategias de educación, afrontamiento y empoderamiento de su\r\n estilo de vida, ayudándoles a alcanzar sus metas.\r\n \r\n \r\n B. Descripción del Programa de Apoyo a Pacientes:\r\n \r\n \r\n El Programa de Apoyo a Pacientes incluye las siguientes\r\n actividades: (i) Acompañar, educar, guiar, asesorar y apoyar\r\n al paciente en el proceso de aplicación de su tratamiento;\r\n (ii) Despejar dudas e inquietudes y educar a los pacientes, su\r\n familia y/o cuidadores en temas relacionados con la\r\n medicamento; (iii) Permitir el proceso de adaptación del\r\n paciente, su familia y/o cuidadores a las diferentes etapas\r\n correspondientes a la evolución de la enfermedad; (iv)\r\n Fortalecer en el paciente y su familia la aplicación de\r\n estrategias de afrontamiento y manejo de la enfermedad; (v)\r\n Fortalecer en los pacientes los comportamientos relacionados\r\n con el cumplimiento de los parámetros de administración de las\r\n dosis referidas por el médico tratante y en general las pautas\r\n de adhesión al tratamiento; (iv) Organización y desarrollo de\r\n actividades con fin de promover el bienestar y calidad de vida\r\n de los pacientes; (vii) Reporte de eventos adversos.\r\n \r\n \r\n C. Duración del Programa:\r\n \r\n \r\n El Programa de Educación y Apoyo a Pacientes durará el término\r\n durante el cual el Paciente permanezca en tratamiento.\r\n \r\n \r\n D. Habeas Data y Confidencialidad:\r\n \r\n \r\n Pint Pharma Colombia S.A.S se obliga a cumplir y a hacer\r\n cumplir a sus trabajadores, subordinados y contratistas todas\r\n las disposiciones legales en materia de Habeas Data y\r\n protección de la información, establecidas en la Ley 1581 de\r\n 2012 y en el Decreto Reglamentario 1377 de 2013, o aquellas\r\n normas que las modifiquen, subroguen o sustituyan. El manejo\r\n de datos sensibles y datos personales recibirá un tratamiento\r\n confidencial con el fin de garantizar la protección de la\r\n información de las personas que consten en bases de datos\r\n manejadas por Pint Pharma Colombia S.A.S, quienes se\r\n comprometen a no transferir ni transmitir dicha información a\r\n terceros sin el previo consentimiento del paciente y siendo\r\n esta siempre de carácter estadístico estadístico o, con fines\r\n de{\" \"}\r\n \r\n investigación científica y/o publicación de artículos de\r\n investigación\r\n \r\n . De ninguna manera se incluirán datos que permitan la\r\n identificación de pacientes, familiares y/o cuidadores.\r\n \r\n \r\n Expresamente reconozco que el Programa de Apoyo a Pacientes\r\n constituye un simple complemento al tratamiento ordenado por\r\n mi médico tratante. Teniendo en cuenta lo anterior, de manera\r\n libre y voluntaria expreso:\r\n \r\n \r\n 1. Que he decidido suministrar información personal y datos de\r\n contacto al Programa de Apoyo a Pacientes de Pint Pharma\r\n Colombia S.A.S\r\n \r\n \r\n 2. Que autorizo expresamente que dicho Programa haga uso de la\r\n citada información, tanto para efectos estadísticos como para\r\n fines de,{\" \"}\r\n \r\n investigación científica y, publicación de artículos de\r\n investigación\r\n \r\n , como para mantener un contacto permanente conmigo y para\r\n adelantar las labores de carácter administrativo que sean\r\n necesarias para procurar el cumplimiento del tratamiento. Para\r\n que, además, bajo los términos estipulados en este\r\n consentimiento dicha información pueda ser transmitida a\r\n terceros debidamente autorizados únicamente con fines\r\n estadísticos o de{\" \"}\r\n \r\n investigación científica y publicación de artículos de\r\n investigación\r\n \r\n , siempre y cuando se observe la obligación de no incluir\r\n datos que permitan la identificación de mi persona, familiares\r\n y/o cuidadores.\r\n \r\n \r\n 3. Que autorizo expresamente al Programa de Apoyo a Pacientes\r\n para que, en caso de ser necesario, contacte a mi médico\r\n tratante.\r\n \r\n \r\n 4. Que autorizo a Pint Pharma Colombia S.A.S. para que, de ser\r\n necesario, se ponga en contacto con mi médico tratante, en\r\n caso de que se presente algún tipo de evento adverso y a\r\n realizar el reporte debido a acuerdo a la legislación local\r\n vigente.\r\n \r\n \r\n 5. Que entiendo y acepto que la adhesión al Programa de Apoyo\r\n a Pacientes es voluntaria y, asimismo, el retiro de este puede\r\n hacerse voluntariamente y en cualquier momento.\r\n \r\n \r\n En señal de comprensión y aceptación de todos y cada uno de\r\n los aspectos arriba enunciados, suscribo el presente documento\r\n de liberación de información y consentimiento informado.\r\n \r\n \r\n )}\r\n {isGeneric() && ciDisplayable && (\r\n \r\n )}\r\n\r\n
    \r\n \r\n
    \r\n \r\n {\" \"}\r\n \r\n \r\n setSketch(c)}\r\n width=\"100%\"\r\n height=\"200px\"\r\n tool={Tools.Pencil}\r\n lineColor=\"black\"\r\n lineWidth={2}\r\n />\r\n
    \r\n \r\n )}\r\n {(consentPath || audioUrl) && !reSignReload && (\r\n \r\n \r\n {consentPath && (\r\n \r\n \r\n \r\n )}\r\n {audioUrl && (\r\n \r\n window.open(audioUrl, \"_blank\")}\r\n startIcon={}\r\n >\r\n \r\n \r\n \r\n )}\r\n {referralConsentFile && (\r\n \r\n \r\n \r\n )}\r\n \r\n }\r\n onClick={() => setReSignReload(true)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {((!consentPath && !audioUrl) || reSignReload) && !reSign && loadCi && (\r\n \r\n \r\n \r\n }\r\n onClick={() => {\r\n setLoadCi(false);\r\n setReSign(true);\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n setFile(file);\r\n dispatch(setConsentPath(file));\r\n dispatch(callReloadPatientData(true));\r\n handleRequestClose();\r\n }}\r\n actionApi={postConsentAddExisting}\r\n actionApiInfo={{ PrescriptionId: selectedPrescription.id }}\r\n showDownload={false}\r\n />\r\n \r\n \r\n \r\n )}\r\n \r\n {((!consentPath && !audioUrl) || reSign) && !loadCi && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {(loadCi || (!reSign && consentPath)) && (\r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ConsentDialog;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogConfirm from \"components/Form/Controls/DialogConfirm\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postApproveFormula,\r\n postCancelFormula,\r\n} from \"api/apiList\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\nimport {\r\n setPrescriptionState,\r\n updateSelectedPrescription,\r\n} from \"actions/Management\";\r\nimport { setFormFormulaDone } from \"actions/Impact\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n margin: {\r\n margin: theme.spacing(1),\r\n },\r\n extendedIcon: {\r\n marginRight: theme.spacing(1),\r\n },\r\n}));\r\n\r\nconst DialogReject = ({ open, dialogTitle, callBack, closeDialog }) => {\r\n const validationSchema = yup.object().shape({\r\n comment: yup.string().required(),\r\n });\r\n\r\n const defaultValues = { comment: \"\" };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors, reset } = methods;\r\n\r\n const onSubmit = async (data, e) => {\r\n await callBack(data.comment);\r\n };\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n closeDialog();\r\n };\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n }\r\n name=\"comment\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst ApproveFormula = ({ formulaData, reloadFormulaData }) => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const classes = useStyles();\r\n\r\n const [openDialog, setOpenDialog] = useState(false);\r\n const [openDialogReject, setOpenDialogReject] = useState(false);\r\n\r\n const handleRequestClose = () => setOpenDialog(false);\r\n const handleRequestCloseReject = () => setOpenDialogReject(false);\r\n\r\n const onApproveClick = () => setOpenDialog(true);\r\n const onRejectClick = () => setOpenDialogReject(true);\r\n const onCancelClick = () => setOpenDialog(true);\r\n\r\n const approve = () => {\r\n callApi(\r\n () =>\r\n postApproveFormula({\r\n prescriptionId: formulaData.id,\r\n approved: true,\r\n commentRejected: null,\r\n }),\r\n () => {\r\n handleRequestClose();\r\n dispatch(setPrescriptionState(PrescripStateEnum.radicacionEPS));\r\n }\r\n );\r\n };\r\n\r\n const reject = async (commentRejected) => {\r\n await callApiAsync(\r\n () =>\r\n postApproveFormula({\r\n prescriptionId: formulaData.id,\r\n approved: false,\r\n commentRejected,\r\n }),\r\n () => {\r\n handleRequestCloseReject();\r\n dispatch(setPrescriptionState(PrescripStateEnum.formulatedWithErrors));\r\n }\r\n );\r\n };\r\n\r\n const cancel = () => {\r\n callApi(\r\n () =>\r\n postCancelFormula({\r\n prescriptionId: formulaData.id,\r\n impactId: selectedPrescription.impactId,\r\n }),\r\n (data) => {\r\n handleRequestClose();\r\n dispatch(updateSelectedPrescription(data));\r\n dispatch(setFormFormulaDone(null));\r\n reloadFormulaData();\r\n }\r\n );\r\n };\r\n\r\n if (selectedPrescription.stateId == PrescripStateEnum.fristImpact) {\r\n return \"\";\r\n }\r\n\r\n if (selectedPrescription.stateId == PrescripStateEnum.formulated) {\r\n const disabled = !(\r\n formulaData &&\r\n formulaData.expeditionDate //&& formulaData.file\r\n );\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n text={}\r\n handleRequestClose={handleRequestClose}\r\n onAcceptClick={approve}\r\n />\r\n }\r\n callBack={reject}\r\n closeDialog={handleRequestCloseReject}\r\n />\r\n
    \r\n );\r\n }\r\n\r\n if (selectedPrescription.stateId == PrescripStateEnum.formulatedWithErrors) {\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n }\r\n text={}\r\n handleRequestClose={handleRequestClose}\r\n onAcceptClick={cancel}\r\n />\r\n
    \r\n
    \r\n );\r\n }\r\n\r\n return \"\"; //Approved\r\n};\r\n\r\nexport default ApproveFormula;\r\n","import React, { useState, useEffect, useRef } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport ApproveFormula from \"./ApproveFormula\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getGetFormula,\r\n getCitiesByStateProvinceId,\r\n getDiseasesByProductId,\r\n getDoctorList,\r\n postSaveFormula,\r\n postFormulaFile,\r\n} from \"api/apiList\";\r\nimport {\r\n PrescriptionTypeList,\r\n DurationTreatmentList,\r\n PharmaceuticalUnitList,\r\n FormulaTypeList,\r\n PrescripStateEnum,\r\n FormulaType,\r\n PrescriptionType,\r\n ProductBehavior,\r\n SupplyFrequencyList\r\n} from \"constants/Enums\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { setFormFormulaDone } from \"actions/Impact\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst getProductBehavior = (productList, productId) => {\r\n const product = productList.find((x) => x.id == productId);\r\n if(!product)\r\n return -1;\r\n return product.customBehaviorId;\r\n};\r\n\r\nconst useIsMounted = () => {\r\n const isMounted = useRef(false);\r\n\r\n useEffect(() => {\r\n isMounted.current = true;\r\n return () => (isMounted.current = false);\r\n }, []);\r\n\r\n return isMounted;\r\n};\r\n\r\nconst FormulaForm = ({\r\n stateProvinceList,\r\n productList,\r\n handleRequestClose,\r\n openDlg,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { expeditionDateFormula } = useSelector(({ impact }) => impact);\r\n\r\n const [productBehavior, setProductBehavior] = useState(-1);\r\n\r\n const prescriptionTypeList = PrescriptionTypeList();\r\n const supplyFrequencyList = SupplyFrequencyList();\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgFileWarning = IntlGetText(\"core.fileNotFound\");\r\n\r\n const componentIsMounted = useIsMounted();\r\n\r\n const getDInfo = (formulaData, prop) => {\r\n if (!formulaData) return \"\";\r\n\r\n //if (!formulaData.dosage) return \"\";\r\n\r\n return formulaData.dosage[prop] ? formulaData.dosage[prop] : \"\";\r\n };\r\n\r\n var defaultValues = {\r\n stateProvinceId: \"\",\r\n cityId: \"\",\r\n expeditionDate: null,\r\n code: \"\",\r\n companyId: \"\",\r\n visitTargetId: \"\",\r\n attentionScopeId: \"\",\r\n diseaseId: \"\",\r\n prescriptionType: \"\",\r\n productId: \"\",\r\n quantity: \"\",\r\n dosageUnitId: \"\",\r\n //infusionRate: \"\",\r\n supplyFrequency: \"\",\r\n administrationRouteId: \"\",\r\n medicineAmount: \"\",\r\n pharmaceuticalUnit: \"\",\r\n durationTreatment: \"\",\r\n formulaType: \"\",\r\n pharmaceuticalQuantity:\"\",\r\n additionalGuidelines: \"\"\r\n };\r\n\r\n const validationSchema = {\r\n formulaType: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n productId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n diseaseId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n stateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n prescriptionType: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n attentionScopeId: yup.object().when(\"formulaType\", {\r\n is: (formulaType) =>\r\n formulaType && formulaType.value == FormulaType.MIPRES,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n }),\r\n expeditionDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n code: yup\r\n .string()\r\n .when(\"formulaType\", (formulaType) => {\r\n if (formulaType && formulaType.value == FormulaType.MIPRES) {\r\n return yup\r\n .string()\r\n .required();\r\n }\r\n })\r\n .matches(/^[a-z0-9_-]+$/i, IntlGetText(\"yup.alphanumericValidation\")),\r\n visitTargetId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n companyId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n durationTreatment: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n administrationRouteId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n medicineAmount: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(10000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n pharmaceuticalUnit: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n //Dosage\r\n dosageUnitId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n quantity: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n supplyFrequency: yup.object().when([\"formulaType\",\"productId\"], {\r\n is: (formulaType, productId) => \r\n formulaType && formulaType.value == FormulaType.MIPRES &&\r\n productId && getProductBehavior(productList, productId.value) != ProductBehavior.remodulin\r\n && getProductBehavior(productList, productId.value) != ProductBehavior.dacepton,\r\n // is: (formulaType) => \r\n // formulaType && formulaType.value == FormulaType.MIPRES,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n }),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n // infusionRate: yup.number().when(\"productId\", {\r\n // is: (productId) =>\r\n // productId &&\r\n // (getProductBehavior(productList, productId.value) == ProductBehavior.remodulin\r\n // || getProductBehavior(productList, productId.value) == ProductBehavior.dacepton),\r\n // then: yup\r\n // .number()\r\n // .typeError(IntlGetText(\"yup.numericValidation\"))\r\n // .test(\"maxValidation\", IntlGetText(\"yup.invalidInput\"), function (value) {\r\n // const { productId } = this.parent;\r\n // if (productId && getProductBehavior(productList, productId.value) === ProductBehavior.remodulin) {\r\n // return value <= 1;\r\n // }\r\n // return value <= 5000;\r\n // })\r\n // .test(\"minValidation\", IntlGetText(\"yup.invalidInput\"), function (value) {\r\n // const { productId } = this.parent;\r\n // if (productId && getProductBehavior(productList, productId.value) === ProductBehavior.remodulin) {\r\n // return value > 0;\r\n // }\r\n // return value >= 0;\r\n // })\r\n // .required(),\r\n // }),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const companyIdValue = watch(\"companyId\");\r\n const attentionScopeIdValue = watch(\"attentionScopeId\");\r\n const diseaseIdValue = watch(\"diseaseId\");\r\n const productIdValue = watch(\"productId\");\r\n const dosageUnitIdValue = watch(\"dosageUnitId\");\r\n const administrationRouteIdValue = watch(\"administrationRouteId\");\r\n const visitTargetIdValue = watch(\"visitTargetId\");\r\n const formulaTypeValue = watch(\"formulaType\");\r\n const medicineAmountValue = watch(\"medicineAmount\");\r\n\r\n const [disabled, setDisabled] = useState(false);\r\n const [formulaData, setFormulaData] = useState(null);\r\n const [cityList, setCityList] = useState([]);\r\n const [companyList, setCompanyList] = useState([]);\r\n const [attentionScopeList, setAttentionScopeList] = useState([]);\r\n const [diseaseList, setDiseaseList] = useState([]);\r\n const [dosageUnitList, setDosageUnitList] = useState([]);\r\n const [administrationRouteIdList, setAdministrationRouteIdList] = useState(\r\n []\r\n );\r\n const [visitTargetIdList, setVisitTargetIdList] = useState([]);\r\n const [formulaType, setFormulaType] = useState(FormulaType.MIPRES);\r\n\r\n const [loadForm, setLoadForm] = useState({\r\n stateProvinceListLoaded: false,\r\n productListLoaded: false,\r\n formulaDataLoaded: false,\r\n cityListLoaded: false,\r\n diseaseListLoaded: false,\r\n visitTargetIdListLoaded: false,\r\n });\r\n\r\n useEffect(() => {\r\n callApi(() => getGetFormula(selectedPrescription.impactId), setFormulaData, fnSetLoader);\r\n callApi(getDoctorList, setVisitTargetIdList);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!openDlg) setProductBehavior(-1);\r\n }, [openDlg]);\r\n\r\n useEffect(() => {\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, formulaData.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.diseaseListLoaded && diseaseList.length > 0) {\r\n setValue(\"diseaseId\", getCboValue(diseaseList, formulaData.diseaseId));\r\n setLoadForm({ ...loadForm, diseaseListLoaded: true });\r\n return;\r\n }\r\n if (formulaData && !loadForm.visitTargetIdListLoaded && visitTargetIdList.length > 0) {\r\n setValue(\r\n \"visitTargetId\",\r\n getCboValue(visitTargetIdList, formulaData.visitTargetId)\r\n );\r\n setLoadForm({ ...loadForm, visitTargetIdListLoaded: true });\r\n\r\n return;\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [cityList, diseaseList, visitTargetIdList]);\r\n\r\n useEffect(() => {\r\n if (!loadForm.formulaDataLoaded && formulaData) {\r\n setCompanyList(formulaData.institutionList);\r\n setAttentionScopeList(formulaData.attentionScopeList);\r\n setDosageUnitList(formulaData.dosageUnitList);\r\n setAdministrationRouteIdList(formulaData.administrationRouteList);\r\n\r\n setValue(\r\n \"medicineAmount\",\r\n !formulaData.medicineAmount ? \"\" : formulaData.medicineAmount\r\n );\r\n setValue(\r\n \"companyId\",\r\n getCboValue(formulaData.institutionList, formulaData.companyId)\r\n );\r\n setValue(\r\n \"attentionScopeId\",\r\n getCboValue(\r\n formulaData.attentionScopeList,\r\n formulaData.attentionScopeId\r\n )\r\n );\r\n setFile(formulaData.file);\r\n\r\n if (!loadForm.stateProvinceListLoaded && stateProvinceList.length > 0) {\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(stateProvinceList, formulaData.stateProvinceId)\r\n );\r\n setLoadForm({ ...loadForm, stateProvinceListLoaded: true });\r\n }\r\n if (!loadForm.productListLoaded && productList.length > 0) {\r\n setValue(\"productId\", getCboValue(productList, formulaData.productId));\r\n setProductBehavior(\r\n getProductBehavior(productList, formulaData.productId)\r\n );\r\n setLoadForm({ ...loadForm, productListLoaded: true });\r\n }\r\n\r\n setValue(\r\n \"prescriptionType\",\r\n getCboValue(prescriptionTypeList, formulaData.prescriptionType)\r\n );\r\n setValue(\r\n \"expeditionDate\",\r\n formulaData.expeditionDate ? dayjs(formulaData.expeditionDate) : null\r\n );\r\n setValue(\"code\", !formulaData.code ? \"\" : formulaData.code);\r\n setValue(\"additionalGuidelines\", !formulaData.additionalGuidelines ? \"\" : formulaData.additionalGuidelines);\r\n setValue(\r\n \"durationTreatment\",\r\n getCboValue(DurationTreatmentList(), formulaData.durationTreatment)\r\n );\r\n setValue(\r\n \"formulaType\",\r\n getCboValue(FormulaTypeList(), formulaData.formulaType)\r\n );\r\n //Dosage\r\n setValue(\r\n \"dosageUnitId\",\r\n getCboValue(\r\n formulaData.dosageUnitList,\r\n getDInfo(formulaData, \"dosageUnitId\")\r\n )\r\n );\r\n setValue(\"quantity\", getDInfo(formulaData, \"quantity\"));\r\n setValue(\r\n \"supplyFrequency\",\r\n getCboValue(supplyFrequencyList, getDInfo(formulaData, \"supplyFrequency\"))\r\n );\r\n //setValue(\"supplyFrequency\", getDInfo(formulaData, \"supplyFrequency\"));\r\n\r\n //setValue(\"infusionRate\", getDInfo(formulaData, \"infusionRate\"));\r\n\r\n //setPrescriptionType(formulaData.prescriptionType);\r\n setFormulaType(formulaData.formulaType);\r\n\r\n setLoadForm({ ...loadForm, formulaDataLoaded: true });\r\n return;\r\n }\r\n }, [formulaData]);\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n const updatePharmaceuticalQuantity = () => {\r\n if(!productIdValue || !productIdValue.value || !medicineAmountValue){\r\n setValue(\"pharmaceuticalQuantity\", 0);\r\n return;\r\n }\r\n\r\n const product = productList.find(x => x.id == productIdValue.value);\r\n\r\n setValue(\r\n \"pharmaceuticalQuantity\",\r\n product.pharmaceuticalQuantity * medicineAmountValue\r\n );\r\n };\r\n \r\n useEffect(() => updatePharmaceuticalQuantity(), [medicineAmountValue]);\r\n\r\n useEffect(() => {\r\n setValue(\"diseaseId\", null);\r\n if (!productIdValue || !productIdValue.value) {\r\n setDiseaseList([]);\r\n return;\r\n }\r\n callApi(() => getDiseasesByProductId(productIdValue.value), setDiseaseList);\r\n \r\n var product = productList.find(x => x.id == productIdValue.value);\r\n\r\n updatePharmaceuticalQuantity();\r\n\r\n setValue(\r\n \"administrationRouteId\",\r\n getCboValue(\r\n formulaData.administrationRouteList,\r\n product.administrationRouteId\r\n )\r\n );\r\n setValue(\r\n \"pharmaceuticalUnit\",\r\n getCboValue(PharmaceuticalUnitList(), product.pharmaceuticalUnit)\r\n );\r\n setValue(\r\n \"dosageUnitId\",\r\n getCboValue(\r\n formulaData.dosageUnitList,\r\n product.dosageUnitId\r\n )\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [productIdValue]);\r\n\r\n useEffect(() => {\r\n if (selectedPrescription.stateId >= PrescripStateEnum.radicacionEPS) {\r\n setDisabled(true);\r\n }\r\n }, [selectedPrescription]);\r\n\r\n const reloadFormulaData = () => {\r\n setLoadForm({\r\n ...loadForm,\r\n formulaDataLoaded: false,\r\n cityListLoaded: false,\r\n diseaseListLoaded: false,\r\n visitTargetIdListLoaded: false,\r\n });\r\n callApi(() => getGetFormula(selectedPrescription.impactId), setFormulaData);\r\n };\r\n\r\n const cboFormulaTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n setFormulaType(event ? event.value : null);\r\n };\r\n const cboPrescriptionTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n //setPrescriptionType(event ? event.value : null);\r\n };\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const cboProductChange = (name) => (event) => {\r\n setValue(name, event);\r\n setProductBehavior(getProductBehavior(productList, event.value));\r\n };\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n id: formulaData.id,\r\n impactId: formulaData.impactId,\r\n productId: Number(d.productId.value),\r\n diseaseId: Number(d.diseaseId.value),\r\n cityId: Number(d.cityId.value),\r\n prescriptionType: Number(d.prescriptionType.value),\r\n expeditionDate: dayjs(d.expeditionDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n visitTargetId: Number(d.visitTargetId.value),\r\n companyId: Number(d.companyId.value),\r\n durationTreatment: Number(d.durationTreatment.value),\r\n administrationRouteId: Number(d.administrationRouteId.value),\r\n medicineAmount: Number(d.medicineAmount),\r\n pharmaceuticalUnit: Number(d.pharmaceuticalUnit.value),\r\n formulaType: Number(d.formulaType.value),\r\n //Dosage\r\n dosageId: Number(getDInfo(formulaData, \"id\")),\r\n dosageUnitId: Number(d.dosageUnitId.value),\r\n quantity: Number(d.quantity),\r\n //supplyFrequency: Number(d.supplyFrequency),\r\n \r\n //infusionRate: Number(d.infusionRate),\r\n additionalGuidelines: d.additionalGuidelines,\r\n };\r\n\r\n if (formulaType == FormulaType.MIPRES) {\r\n obj.code = d.code;\r\n obj.attentionScopeId = Number(d.attentionScopeId.value);\r\n } else {\r\n obj.code = null;\r\n obj.attentionScopeId = null;\r\n }\r\n\r\n obj.supplyFrequency = d.supplyFrequency && d.supplyFrequency.value ? Number(d.supplyFrequency.value) : null;\r\n\r\n await callApiAsync(\r\n () => postSaveFormula(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setFormulaData(data);\r\n setFile(data.file);\r\n dispatch(setFormFormulaDone(data.expeditionDate));\r\n if (\r\n selectedPrescription.stateId == PrescripStateEnum.formulatedWithErrors\r\n ) {\r\n dispatch(setPrescriptionState(PrescripStateEnum.formulated));\r\n }\r\n handleRequestClose();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const [file, setFile] = useState(\"\");\r\n \r\n return (\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={FormulaTypeList()}\r\n value={watch(\"formulaType\")}\r\n onChange={cboFormulaTypeChange(\"formulaType\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionTypeList}\r\n value={watch(\"prescriptionType\")}\r\n onChange={cboPrescriptionTypeChange(\"prescriptionType\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n onChange={dtpHandleChange(\"expeditionDate\")}\r\n value={watch(\"expeditionDate\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {formulaType == FormulaType.MIPRES && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={companyList}\r\n value={companyIdValue}\r\n onChange={cboHandleChange(\"companyId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={visitTargetIdList}\r\n value={visitTargetIdValue}\r\n onChange={cboHandleChange(\"visitTargetId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {formulaType == FormulaType.MIPRES && (\r\n \r\n }\r\n options={attentionScopeList}\r\n value={attentionScopeIdValue}\r\n onChange={cboHandleChange(\"attentionScopeId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={diseaseList}\r\n value={diseaseIdValue}\r\n onChange={cboHandleChange(\"diseaseId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={productList}\r\n value={productIdValue}\r\n onChange={cboProductChange(\"productId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={dosageUnitList}\r\n // value={dosageUnitIdValue}\r\n // onChange={cboHandleChange(\"dosageUnitId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {/*}\r\n {(productBehavior == -1 ||\r\n productBehavior == ProductBehavior.remodulin || productBehavior == ProductBehavior.dacepton) && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n )} \r\n {*/} \r\n { (productBehavior == -1 || (formulaTypeValue.value == FormulaType.MIPRES &&\r\n productBehavior != ProductBehavior.remodulin &&\r\n productBehavior != ProductBehavior.dacepton)) &&\r\n \r\n }\r\n options={supplyFrequencyList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n /> \r\n \r\n } \r\n \r\n }\r\n options={DurationTreatmentList()}\r\n value={watch(\"durationTreatment\")}\r\n onChange={cboHandleChange(\"durationTreatment\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={PharmaceuticalUnitList()}\r\n value={watch(\"pharmaceuticalUnit\")}\r\n onChange={cboHandleChange(\"pharmaceuticalUnit\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={administrationRouteIdList}\r\n value={administrationRouteIdValue}\r\n onChange={cboHandleChange(\"administrationRouteId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n disabled={disabled}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n {(!disabled || file) && formulaData &&\r\n \r\n }\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default FormulaForm;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport FormulaForm from \"./FormulaForm\";\r\nimport {\r\n callActionApi,\r\n getAllStateProvince,\r\n getProductList,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst FormulaDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, expeditionDateFormula, isCIRequired } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const [open, setOpen] = useState(false);\r\n\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [productList, setProductList] = useState([]);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n callApi(getProductList, setProductList);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default FormulaDialog;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport {\r\n setClinicalHistoryState,\r\n callStartImpact,\r\n sethistoryData,\r\n setReloadDosage\r\n} from \"actions/Impact\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getClinicHistoryList,\r\n getClinicHistoryDetail,\r\n postClinicHistory,\r\n postClinicHistoryFile\r\n} from \"api/apiList\";\r\nimport { FolderType, ControlTypeEnum } from \"constants/Enums\";\r\nimport { isDirectTracing } from \"app/routes/psp/services/userService\";\r\n\r\nconst FormDinamic = ({\r\n historyData,\r\n variableDetail,\r\n impactId,\r\n variableGroupValue,\r\n setVariableDetail,\r\n readOnly,\r\n setvariableGroups,\r\n variableGroups,\r\n clearFile\r\n}) => {\r\n const dispatch = useDispatch();\r\n const { clinicalHistoryStateDone, fileCHVariableGroupId } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgFileWarning = IntlGetText(\"core.fileNotFound\");\r\n const msgAtLeastOneValidation = IntlGetText(\r\n \"clinicHistory.atLeastOneValidation\"\r\n );\r\n\r\n const data = variableDetail.data;\r\n const file = variableDetail.file;\r\n\r\n const getCboValue = (items, id) => {\r\n const result = items.find((x) => x.id + \"\" === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n\r\n let defaultValues = {};\r\n let schema = {};\r\n\r\n data.map((item) => {\r\n if (item.controlType === ControlTypeEnum.select) {\r\n defaultValues[\"item\" + item.id] = getCboValue(\r\n item.selectOptions,\r\n item.value\r\n );\r\n // schema[\"item\" + item.id] = yup\r\n // .object()\r\n // .required()\r\n // .nullable();\r\n } else if (item.controlType === ControlTypeEnum.text) {\r\n defaultValues[\"item\" + item.id] =\r\n item.value && item.value !== \"null\" ? item.value : \"\";\r\n // schema[\"item\" + item.id] = yup\r\n // .string()\r\n // .required();\r\n } else if (item.controlType === ControlTypeEnum.dateTime) {\r\n defaultValues[\"item\" + item.id] = item.value ? dayjs(item.value) : null;\r\n // schema[\"item\" + item.id] = yup\r\n // .date()\r\n // .nullable(true)\r\n // .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n // .required();\r\n } else if (item.controlType === ControlTypeEnum.number) {\r\n defaultValues[\"item\" + item.id] =\r\n item.value && item.value !== \"null\" ? item.value : \"\";\r\n } else {\r\n defaultValues[\"item\" + item.id] = item.value;\r\n // schema[\"item\" + item.id] = yup\r\n // .string()\r\n // .required();\r\n }\r\n });\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(schema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, control, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n var objRes = [];\r\n var objKeys = Object.keys(d);\r\n var atLeastOne = false;\r\n\r\n objKeys.map((item, index) => {\r\n const itemId = item.substr(4);\r\n let itemValue = \"\";\r\n\r\n const itemData = data.find((x) => x.id + \"\" === itemId);\r\n\r\n if (!atLeastOne && d[item]) atLeastOne = true;\r\n\r\n switch (itemData.controlType) {\r\n case ControlTypeEnum.text:\r\n itemValue = d[item] + \"\";\r\n break;\r\n case ControlTypeEnum.number:\r\n itemValue = d[item] + \"\";\r\n break;\r\n case ControlTypeEnum.dateTime:\r\n itemValue = !d[item]\r\n ? null\r\n : dayjs(d[item]).format(\"YYYY-MM-DDTHH:mm:ss\") + \"\";\r\n break;\r\n case ControlTypeEnum.checkbox:\r\n itemValue = d[item] + \"\";\r\n break;\r\n case ControlTypeEnum.select:\r\n itemValue =\r\n !d[item].value && d[item].value !== 0 ? null : d[item].value + \"\";\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n objRes.push({\r\n controlType: itemData.controlType,\r\n id: itemData.id,\r\n value: itemValue,\r\n paraclinicId: itemData.paraclinicId\r\n });\r\n });\r\n\r\n let result = {\r\n impactId,\r\n variableGroupId: variableGroupValue.value,\r\n items: [...objRes]\r\n };\r\n\r\n if (!atLeastOne) {\r\n NotificationManager.warning(msgAtLeastOneValidation);\r\n return;\r\n }\r\n\r\n await callApiAsync(\r\n () => postClinicHistory(result),\r\n async (data) => {\r\n if (!historyData) {\r\n dispatch(sethistoryData(true));\r\n }\r\n dispatch(setReloadDosage(true));\r\n NotificationManager.success(msgSuccess);\r\n setVariableDetail({ data, file: file });\r\n }\r\n );\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const cboHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n };\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n };\r\n\r\n const updateVariableGroups = (variableGroupId, file) => {\r\n let index = variableGroups.findIndex((x) => x.id === variableGroupId);\r\n let data = [...variableGroups];\r\n data[index] = { ...data[index], file };\r\n\r\n setvariableGroups(data);\r\n };\r\n\r\n const showCardFile = () => {\r\n if (file) return true;\r\n if (!file && readOnly) return false;\r\n return true;\r\n };\r\n\r\n return (\r\n \r\n \r\n
    \r\n {data.map((item, index) => {\r\n return (\r\n \r\n {item.controlType === ControlTypeEnum.text && (\r\n \r\n )}\r\n\r\n {item.controlType === ControlTypeEnum.dateTime && (\r\n \r\n )}\r\n\r\n {item.controlType === ControlTypeEnum.checkbox && (\r\n \r\n )}\r\n\r\n {item.controlType === ControlTypeEnum.select && (\r\n \r\n )}\r\n\r\n {item.controlType === ControlTypeEnum.number && (\r\n \r\n )}\r\n \r\n );\r\n })}\r\n \r\n {!readOnly && data.length > 0 && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n\r\n {!variableGroupValue &&
    }\r\n
    \r\n\r\n {variableGroupValue && showCardFile() && (\r\n {\r\n setVariableDetail({ data: variableDetail.data, file: file });\r\n updateVariableGroups(variableGroupValue.value, file);\r\n\r\n // if(variableGroupValue.value == fileCHVariableGroupId\r\n // && !clinicalHistoryStateDone){\r\n if (!clinicalHistoryStateDone) {\r\n dispatch(setClinicalHistoryState(true));\r\n }\r\n }}\r\n actionApi={postClinicHistoryFile}\r\n actionApiInfo={{\r\n impactId,\r\n variableGroupId: variableGroupValue.value\r\n }}\r\n reset={clearFile}\r\n />\r\n )}\r\n
    \r\n );\r\n};\r\n\r\nconst ClinicalHistory = () => {\r\n const dispatch = useDispatch();\r\n const { selectedMenuItem, selectedPrescription } = useSelector(\r\n ({ management }) => management\r\n );\r\n const isDirectTracingConfig = isDirectTracing();\r\n const {\r\n impactStartDate,\r\n consentSigned,\r\n isCIRequired,\r\n historyData\r\n } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [variableGroups, setvariableGroups] = useState([]);\r\n const [variableDetail, setVariableDetail] = useState({ data: [], file: \"\" });\r\n const [clearFile, setClearFile] = useState(false);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const readOnly = selectedMenuItem == FolderType.inProcess;\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setVariableDetail({ data: [], file: \"\" });\r\n setOpen(false);\r\n };\r\n\r\n const defaultValues = {\r\n cboVariableGroup: \"\"\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { setValue, watch } = methods;\r\n const variableGroupValue = watch(\"cboVariableGroup\");\r\n\r\n const loadDetail = (impactId, variableGroupId) =>\r\n callApi(\r\n () => getClinicHistoryDetail(impactId, variableGroupId, selectedMenuItem),\r\n (data) =>\r\n setVariableDetail({\r\n data,\r\n file: variableGroups.find((x) => x.id === variableGroupId).file\r\n })\r\n );\r\n\r\n const vgHandleChange = (e) => {\r\n setValue(\"cboVariableGroup\", e);\r\n if (e && e.value) {\r\n // const detail = variableGroupDetail.filter((x)=>x.variableGroupId === e.value);\r\n // setVariableDetail(detail);\r\n setClearFile(true);\r\n setTimeout(() => setClearFile(false), 500);\r\n loadDetail(selectedPrescription.impactId, e.value);\r\n } else {\r\n setVariableDetail({ data: [], file: \"\" });\r\n }\r\n };\r\n\r\n const loadClinicHistoryList = () => {\r\n callApi(\r\n () => getClinicHistoryList(selectedPrescription.impactId),\r\n (data) => {\r\n setvariableGroups(\r\n readOnly ? data.filter((x) => x.file || x.hasData) : data\r\n );\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadClinicHistoryList();\r\n //setvariableGroups(variableGroup);\r\n }, []);\r\n\r\n useEffect(() => loadClinicHistoryList(), [selectedPrescription.id]);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {isDirectTracingConfig ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n
    \r\n \r\n }\r\n options={variableGroups}\r\n required={false}\r\n name=\"cboVariableGroup\"\r\n fullWidth\r\n value={variableGroupValue}\r\n onChange={vgHandleChange}\r\n />\r\n \r\n
    \r\n {\r\n // if (!clinicalHistoryStateDone) {\r\n // dispatch(setClinicalHistoryState(true));\r\n // }\r\n // setVariableDetail(dataDetail);\r\n // }}\r\n readOnly={readOnly}\r\n setvariableGroups={setvariableGroups}\r\n variableGroups={variableGroups}\r\n clearFile={clearFile}\r\n />\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ClinicalHistory;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { FaMapMarkerAlt } from \"react-icons/fa\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Tabs,\r\n Tab\r\n} from \"@material-ui/core\";\r\nimport {\r\n getUserInfo,\r\n isOnlyTracing,\r\n isDirectTracing\r\n} from \"app/routes/psp/services/userService\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Widget from \"components/Widget\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { callStartImpact, callReloadPatientData } from \"actions/Impact\";\r\nimport {\r\n genderList,\r\n educationalLevelList,\r\n CivilStatusList,\r\n RelationshipList,\r\n HousingTypeList,\r\n SupportNetList,\r\n RegimeList,\r\n AffiliationTypeList,\r\n StratumList,\r\n ShardKeyEnum,\r\n OccupationList,\r\n FrequentMeansContactList,\r\n DisposeRemnantsList\r\n} from \"constants/Enums\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAllStateProvince,\r\n getCitiesByStateProvinceId,\r\n getAllDocumentType,\r\n getPatientInfo,\r\n postPatientSaveHousing,\r\n postPatientSave,\r\n postPatientSaveTutor,\r\n getInsuranceList\r\n} from \"api/apiList\";\r\nimport PatientMap from \"components/patientMap\";\r\n\r\nfunction EmptyNumber(typeErrorMessage = \"Please enter a valid number\") {\r\n return yup\r\n .number()\r\n .transform(function(value, originalValue) {\r\n if (this.isType(value)) return value;\r\n if (!originalValue || !originalValue.trim()) {\r\n return null;\r\n }\r\n // we return the invalid original value\r\n return originalValue;\r\n })\r\n .nullable(true)\r\n .typeError(typeErrorMessage);\r\n}\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst calculateAge = (brithday) =>\r\n !brithday || !dayjs(brithday).isValid()\r\n ? \"\"\r\n : dayjs().diff(dayjs(brithday), \"year\");\r\n\r\nconst calculateAgeInMonths = (birthday) =>\r\n !birthday || !dayjs(birthday).isValid()\r\n ? \"\"\r\n : dayjs().diff(dayjs(birthday), \"month\");\r\n\r\nconst PatientForm = ({\r\n stateProvinceList,\r\n documentTypeList,\r\n insuranceList,\r\n setPatientData,\r\n patientData,\r\n setInsuranceData,\r\n insuranceData,\r\n documentTypeListComplete\r\n}) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const isOnlyTrace = isOnlyTracing();\r\n const isOperando = getUserInfo().shardKey === ShardKeyEnum.operando;\r\n const defaultValues = {\r\n code: patientData.code,\r\n name: patientData.name,\r\n ods: patientData.ods,\r\n lastName: patientData.lastName,\r\n initials: patientData.initials,\r\n birthday: patientData.birthday ? dayjs(patientData.birthday) : null,\r\n age: calculateAge(\r\n patientData.birthday ? dayjs(patientData.birthday) : dayjs()\r\n ),\r\n ageMonth: calculateAgeInMonths(\r\n patientData.birthday ? dayjs(patientData.birthday) : dayjs()\r\n ),\r\n birthstateProvinceId: patientData.birthstateProvinceId,\r\n birthCityId: patientData.birthCityId,\r\n gender: isNaN(parseInt(patientData.gender))\r\n ? 0\r\n : getCboValue(genderList(), patientData.gender),\r\n documentTypeId: patientData.documentTypeId,\r\n document: !patientData.document ? \"\" : patientData.document,\r\n phone: patientData.phone,\r\n cellphone: patientData.cellphone,\r\n email: !patientData.email ? \"\" : patientData.email,\r\n stateProvinceId: patientData.stateProvinceId,\r\n cityId: patientData.cityId,\r\n address: !patientData.address ? \"\" : patientData.address,\r\n neighborhood: !patientData.neighborhood ? \"\" : patientData.neighborhood,\r\n educationalLevel: isNaN(parseInt(patientData.educationalLevel))\r\n ? 0\r\n : getCboValue(educationalLevelList(), patientData.educationalLevel),\r\n profession: !patientData.profession ? \"\" : patientData.profession,\r\n civilStatus: isNaN(parseInt(patientData.civilStatus))\r\n ? 0\r\n : getCboValue(CivilStatusList(), patientData.civilStatus),\r\n stratum: getCboValue(\r\n StratumList(),\r\n !patientData ? \"\" : patientData.stratum\r\n ),\r\n hospitalized: patientData.hospitalized ? patientData.hospitalized : false,\r\n occupation: isNaN(parseInt(patientData.occupation))\r\n ? 0\r\n : getCboValue(OccupationList(), patientData.occupation),\r\n occupationOther: !patientData.occupationOther\r\n ? \"\"\r\n : patientData.occupationOther,\r\n\r\n frequentMeansContact: isNaN(parseInt(patientData.frequentMeansContact))\r\n ? 0\r\n : getCboValue(\r\n FrequentMeansContactList(),\r\n patientData.frequentMeansContact\r\n ),\r\n disposeRemnants: isNaN(parseInt(patientData.disposeRemnants))\r\n ? 0\r\n : getCboValue(DisposeRemnantsList(), patientData.disposeRemnants),\r\n disposeRemnantsOther: !patientData.disposeRemnantsOther\r\n ? \"\"\r\n : patientData.disposeRemnantsOther,\r\n insuranceId: insuranceData.insuranceId,\r\n regime: isNaN(parseInt(insuranceData.regime))\r\n ? 0\r\n : getCboValue(RegimeList(), insuranceData.regime),\r\n affiliationType: isNaN(parseInt(insuranceData.affiliationType))\r\n ? 0\r\n : getCboValue(AffiliationTypeList(), insuranceData.affiliationType)\r\n };\r\n\r\n const validationSchema = {\r\n name: yup.string().required(),\r\n\r\n lastName: yup.string().required(),\r\n birthday: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n birthstateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n birthCityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n gender: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n documentTypeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n document: yup.string().required(),\r\n phone: yup.string().required(),\r\n email: yup.string().email(),\r\n stateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n address: yup.string().required(),\r\n insuranceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n if (isDirectTracing()) {\r\n validationSchema.initials = yup\r\n .string()\r\n .required();\r\n validationSchema.ods = yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(0, IntlGetText(\"yup.numericValidation\"))\r\n .max(9999999, IntlGetText(\"yup.invalidInput\"))\r\n .required();\r\n }\r\n\r\n if (!isOnlyTrace) {\r\n if (!isOperando) {\r\n validationSchema.regime = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n if (!isDirectTracing()) {\r\n validationSchema.affiliationType = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n }\r\n }\r\n validationSchema.civilStatus = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n // validationSchema.occupation = yup\r\n // .object()\r\n // .shape({ value: yup.string().required() })\r\n // .required()\r\n // .nullable();\r\n // validationSchema.frequentMeansContact = yup\r\n // .object()\r\n // .shape({ value: yup.string().required() })\r\n // .required()\r\n // .nullable();\r\n // validationSchema.disposeRemnants = yup\r\n // .object()\r\n // .shape({ value: yup.string().required() })\r\n // .required()\r\n // .nullable();\r\n }\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const documentTypeIdValue = watch(\"documentTypeId\");\r\n const birthstateProvinceValue = watch(\"birthstateProvinceId\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const birthCityIdValue = watch(\"birthCityId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const ageValue = watch(\"age\");\r\n const ageMonthValue = watch(\"ageMonth\");\r\n const insuranceIdValue = watch(\"insuranceId\");\r\n const occupationValue = watch(\"occupation\");\r\n const disposeRemnantsValue = watch(\"disposeRemnants\");\r\n //const frequentMeansContactValue = watch(\"frequentMeansContact\");\r\n const [birthCityList, setBirthCityList] = useState([]);\r\n const [openMap, setopenMap] = useState(false);\r\n const [cityList, setCityList] = useState([]);\r\n const [isHiddenInputVisible, setHiddenInputVisible] = useState(false);\r\n const [\r\n isHiddenInputVisibleRemnants,\r\n setHiddenInputVisibleRemnants\r\n ] = useState(false);\r\n const [loadForm, setLoadForm] = useState({\r\n documentTypeListLoaded: false,\r\n stateProvinceListLoaded: false,\r\n birthCityListLoaded: false,\r\n cityListLoaded: false,\r\n insuranceListLoaded: false\r\n });\r\n const [geoInfo, setGeoInfo] = useState({ lat: 0, lng: 0 });\r\n\r\n useEffect(() => {\r\n setGeoInfo({\r\n lat: patientData.geoDataLat ? patientData.geoDataLat : 0,\r\n lng: patientData.geoDataLng ? patientData.geoDataLng : 0\r\n });\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!loadForm.stateProvinceListLoaded && stateProvinceList.length > 0) {\r\n setValue(\r\n \"birthstateProvinceId\",\r\n getCboValue(stateProvinceList, birthstateProvinceValue)\r\n );\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(stateProvinceList, stateProvinceIdValue)\r\n );\r\n setLoadForm({ ...loadForm, stateProvinceListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, defaultValues.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.birthCityListLoaded && birthCityList.length > 0) {\r\n setValue(\r\n \"birthCityId\",\r\n getCboValue(birthCityList, defaultValues.birthCityId)\r\n );\r\n setLoadForm({ ...loadForm, birthCityListLoaded: true });\r\n return;\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [cityList, birthCityList, stateProvinceList]);\r\n\r\n useEffect(() => {\r\n if (!loadForm.documentTypeListLoaded && documentTypeList.length > 0) {\r\n setValue(\r\n \"documentTypeId\",\r\n getCboValue(documentTypeList, documentTypeIdValue)\r\n );\r\n setLoadForm({ ...loadForm, documentTypeListLoaded: true });\r\n return;\r\n }\r\n }, [documentTypeList]);\r\n\r\n useEffect(() => {\r\n if (!loadForm.insuranceListLoaded && insuranceList.length > 0) {\r\n setValue(\r\n \"insuranceId\",\r\n getCboValue(insuranceList, defaultValues.insuranceId)\r\n );\r\n setLoadForm({ ...loadForm, insuranceListLoaded: true });\r\n return;\r\n }\r\n }, [insuranceList]);\r\n\r\n useEffect(() => {\r\n setValue(\"birthCityId\", null);\r\n if (!birthstateProvinceValue || !birthstateProvinceValue.value) {\r\n setBirthCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(birthstateProvinceValue.value),\r\n setBirthCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [birthstateProvinceValue]);\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n useEffect(() => {\r\n if (occupationValue && occupationValue.value === 7) {\r\n setHiddenInputVisible(true);\r\n } else {\r\n setHiddenInputVisible(false);\r\n setValue(\"occupationOther\", null);\r\n }\r\n }, [occupationValue]);\r\n\r\n useEffect(() => {\r\n if (disposeRemnantsValue && disposeRemnantsValue.value === 3) {\r\n setHiddenInputVisibleRemnants(true);\r\n } else {\r\n setHiddenInputVisibleRemnants(false);\r\n setValue(\"otherdisposeRemnants\", null);\r\n }\r\n }, [disposeRemnantsValue]);\r\n\r\n useEffect(() => {\r\n const name = watch(\"name\") || \"\";\r\n const lastName = watch(\"lastName\") || \"\";\r\n\r\n const getInitials = (text) =>\r\n text\r\n .split(\" \")\r\n .map((word) => word.charAt(0).toUpperCase())\r\n .join(\"\");\r\n\r\n const nameInitials = getInitials(name);\r\n const lastNameInitials = getInitials(lastName);\r\n const initials = nameInitials + lastNameInitials;\r\n\r\n setValue(\"initials\", initials);\r\n }, [watch(\"name\"), watch(\"lastName\"), setValue]);\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n setValue(\"age\", calculateAge(e));\r\n setValue(\"ageMonth\", calculateAgeInMonths(e));\r\n };\r\n\r\n const handleMapRequestClose = () => {\r\n setopenMap(false);\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n const selectedDocumentType = documentTypeListComplete.find(\r\n (type) => type.id === documentTypeIdValue.value\r\n );\r\n const regexText = selectedDocumentType\r\n ? selectedDocumentType.regularExpression\r\n : null;\r\n\r\n if (regexText) {\r\n const messageValidation = selectedDocumentType\r\n ? selectedDocumentType.validationMessage\r\n : \"\";\r\n let regex = new RegExp(regexText, \"i\");\r\n if (!regex.test(d.document)) {\r\n NotificationManager.warning(messageValidation);\r\n return;\r\n }\r\n }\r\n\r\n let patient = {\r\n id: patientData.id,\r\n name: d.name,\r\n lastName: d.lastName,\r\n initials: d.initials,\r\n ods: d.ods,\r\n birthday: dayjs(d.birthday).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n birthstateProvinceId: null,\r\n birthCityId: parseFloat(d.birthCityId.value),\r\n gender: Number(d.gender.value),\r\n documentTypeId: Number(d.documentTypeId.value),\r\n document: d.document,\r\n phone: d.phone,\r\n cellphone: d.cellphone,\r\n email: d.email,\r\n stateProvinceId: null,\r\n cityId: parseFloat(d.cityId.value),\r\n address: d.address,\r\n neighborhood: d.neighborhood,\r\n educationalLevel: !d.educationalLevel\r\n ? null\r\n : Number(d.educationalLevel.value),\r\n profession: d.profession,\r\n occupation: !d.occupation ? null : Number(d.occupation.value),\r\n occupationOther: d.occupationOther,\r\n frequentMeansContact: !d.frequentMeansContact\r\n ? null\r\n : Number(d.frequentMeansContact.value),\r\n disposeRemnants: !d.disposeRemnants\r\n ? null\r\n : Number(d.disposeRemnants.value),\r\n disposeRemnantsOther: d.disposeRemnantsOther,\r\n civilStatus: !d.civilStatus ? null : Number(d.civilStatus.value),\r\n stratum: !d.stratum ? null : Number(d.stratum.value),\r\n hospitalized: d.hospitalized,\r\n code: \"\",\r\n geoDataLat: geoInfo.lat,\r\n geoDataLng: geoInfo.lng\r\n };\r\n let insuranceInfo = {\r\n prescriptionId: insuranceData.prescriptionId,\r\n insuranceId: Number(d.insuranceId.value),\r\n regime: Number(d.regime.value),\r\n affiliationType: d.affiliationType\r\n ? Number(d.affiliationType.value)\r\n : null\r\n };\r\n var obj = { patient, insuranceInfo };\r\n\r\n await callApiAsync(\r\n () => postPatientSave(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setLoadForm({\r\n ...loadForm,\r\n stateProvinceListLoaded: true,\r\n cityListLoaded: true,\r\n birthCityListLoaded: true\r\n });\r\n setPatientData(data.patient);\r\n setInsuranceData(data.insuranceInfo);\r\n }\r\n );\r\n };\r\n\r\n const isRequired = !isOnlyTrace;\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n disabled={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n {isDirectTracing() === true && (\r\n <>\r\n \r\n }\r\n required={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n required={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n )}\r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isDirectTracing() === true ? true : false}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isDirectTracing() === true ? true : false}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n onChange={dtpHandleChange(\"birthday\")}\r\n value={watch(\"birthday\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={ageValue}\r\n onChange={(value) => {\r\n setValue(\"age\", value);\r\n }}\r\n disabled={true}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n value={ageMonthValue}\r\n onChange={(value) => {\r\n setValue(\"age\", value);\r\n }}\r\n disabled={true}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={birthstateProvinceValue}\r\n onChange={cboHandleChange(\"birthstateProvinceId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={birthCityList}\r\n value={birthCityIdValue}\r\n onChange={cboHandleChange(\"birthCityId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={genderList()}\r\n value={watch(\"gender\")}\r\n onChange={cboHandleChange(\"gender\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={CivilStatusList()}\r\n value={watch(\"civilStatus\")}\r\n onChange={cboHandleChange(\"civilStatus\")}\r\n margin=\"normal\"\r\n required={isRequired}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={documentTypeList}\r\n value={documentTypeIdValue}\r\n onChange={cboHandleChange(\"documentTypeId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n setopenMap(true)}\r\n style={{\r\n background:\r\n geoInfo.lat || geoInfo.lat ? \"#20c997\" : \"#f6bb43\",\r\n color: \"white\",\r\n height: \"40px\",\r\n margin: \"0 0 0 5px\"\r\n }}\r\n >\r\n \r\n \r\n
    \r\n {isDirectTracing() === true && (\r\n

    \r\n Ingrese la dirección completa. Evite el uso de\r\n abreviaturas , y utilice las palabras completas como\r\n \"Carrera\", \"Calle\" o \"Avenida\". Ejemplo: Carrera 7\r\n número 06 - 12\r\n

    \r\n )}\r\n
    \r\n
    \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={StratumList()}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={educationalLevelList()}\r\n value={watch(\"educationalLevel\")}\r\n onChange={cboHandleChange(\"educationalLevel\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={OccupationList()}\r\n value={watch(\"occupation\")}\r\n onChange={cboHandleChange(\"occupation\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n {isHiddenInputVisible === true ? (\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n ) : (\r\n <>\r\n )}\r\n \r\n }\r\n options={FrequentMeansContactList()}\r\n value={watch(\"frequentMeansContact\")}\r\n onChange={cboHandleChange(\"frequentMeansContact\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={DisposeRemnantsList()}\r\n value={watch(\"disposeRemnants\")}\r\n onChange={cboHandleChange(\"disposeRemnants\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n {isHiddenInputVisibleRemnants && (\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={insuranceList}\r\n value={insuranceIdValue}\r\n onChange={cboHandleChange(\"insuranceId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={RegimeList()}\r\n value={watch(\"regime\")}\r\n onChange={cboHandleChange(\"regime\")}\r\n margin=\"normal\"\r\n required={isOperando ? false : isRequired}\r\n errorobj={errors}\r\n />\r\n \r\n {!isDirectTracing() === true && (\r\n \r\n }\r\n options={AffiliationTypeList()}\r\n value={watch(\"affiliationType\")}\r\n onChange={cboHandleChange(\"affiliationType\")}\r\n margin=\"normal\"\r\n required={isOperando ? false : isRequired}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n value={watch(\"hospitalized\")}\r\n onChange={chkHandleChange(\"hospitalized\")}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n \r\n {}\r\n \r\n \r\n
    \r\n {\r\n handleMapRequestClose();\r\n }}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nconst HousingForm = ({ setHousingData, housingData, patientId }) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n housingType: !housingData\r\n ? 0\r\n : getCboValue(HousingTypeList(), housingData.housingType),\r\n aqueduct: !housingData ? false : housingData.aqueduct,\r\n sewerage: !housingData ? false : housingData.sewerage,\r\n electricity: !housingData ? false : housingData.electricity,\r\n toilet: !housingData ? false : housingData.toilet,\r\n wasteCollection: !housingData ? false : housingData.wasteCollection,\r\n cookingArea: !housingData ? false : housingData.cookingArea,\r\n rooms: !housingData ? 0 : housingData.rooms,\r\n bathRoom: !housingData ? false : housingData.bathRoom,\r\n laundryArea: !housingData ? false : housingData.laundryArea,\r\n supportNet: !housingData\r\n ? 0\r\n : getCboValue(SupportNetList(), housingData.supportNet),\r\n petsInUnsuitableConditions: !housingData\r\n ? false\r\n : housingData.petsInUnsuitableConditions,\r\n animalType: !housingData ? \"\" : housingData.animalType,\r\n petsNumber: !housingData ? 0 : housingData.petsNumber\r\n };\r\n\r\n const validationSchema = {\r\n //rooms: yup.number().integer(),\r\n //rooms: EmptyNumber().positive()\r\n //rooms: yup.number().moreThan(0,).nullable()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const cboHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n var housing = {\r\n ...d,\r\n housingType: Number(d.housingType.value),\r\n supportNet: Number(d.supportNet.value),\r\n rooms: Number(d.rooms),\r\n petsNumber: Number(d.petsNumber),\r\n id: !housingData ? 0 : housingData.id,\r\n patientId\r\n };\r\n var obj = { housing };\r\n\r\n await callApiAsync(\r\n () => postPatientSaveHousing(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setHousingData(data);\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={HousingTypeList()}\r\n value={watch(\"housingType\")}\r\n onChange={cboHandleChange(\"housingType\")}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={SupportNetList()}\r\n value={watch(\"supportNet\")}\r\n onChange={cboHandleChange(\"supportNet\")}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"aqueduct\")}\r\n onChange={chkHandleChange(\"aqueduct\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"sewerage\")}\r\n onChange={chkHandleChange(\"sewerage\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"electricity\")}\r\n onChange={chkHandleChange(\"electricity\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"toilet\")}\r\n onChange={chkHandleChange(\"toilet\")}\r\n />\r\n \r\n \r\n \r\n }\r\n value={watch(\"wasteCollection\")}\r\n onChange={chkHandleChange(\"wasteCollection\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"cookingArea\")}\r\n onChange={chkHandleChange(\"cookingArea\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"bathRoom\")}\r\n onChange={chkHandleChange(\"bathRoom\")}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"laundryArea\")}\r\n onChange={chkHandleChange(\"laundryArea\")}\r\n />\r\n \r\n \r\n \r\n }\r\n value={watch(\"petsInUnsuitableConditions\")}\r\n onChange={chkHandleChange(\"petsInUnsuitableConditions\")}\r\n />\r\n \r\n \r\n }\r\n />\r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nconst TutorForm = ({\r\n stateProvinceList,\r\n documentTypeList,\r\n patientId,\r\n setTutorData,\r\n tutorData,\r\n documentTypeListComplete\r\n}) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n name: !tutorData || !tutorData.name ? \"\" : tutorData.name,\r\n lastName: !tutorData || !tutorData.lastName ? \"\" : tutorData.lastName,\r\n birthday: !tutorData\r\n ? null\r\n : tutorData.birthday\r\n ? dayjs(tutorData.birthday)\r\n : null,\r\n age: calculateAge(\r\n !tutorData\r\n ? dayjs()\r\n : tutorData.birthday\r\n ? dayjs(tutorData.birthday)\r\n : dayjs()\r\n ),\r\n birthstateProvinceId:\r\n !tutorData || !tutorData.birthstateProvinceId\r\n ? \"\"\r\n : tutorData.birthstateProvinceId,\r\n birthCityId:\r\n !tutorData || !tutorData.birthCityId ? \"\" : tutorData.birthCityId,\r\n gender: !tutorData\r\n ? 0\r\n : isNaN(parseInt(tutorData.gender))\r\n ? 0\r\n : getCboValue(genderList(), tutorData.gender),\r\n documentTypeId:\r\n !tutorData || !tutorData.documentTypeId ? \"\" : tutorData.documentTypeId,\r\n document: !tutorData || !tutorData.document ? \"\" : tutorData.document,\r\n phone: !tutorData || !tutorData.phone ? \"\" : tutorData.phone,\r\n cellphone: !tutorData || !tutorData.cellphone ? \"\" : tutorData.cellphone,\r\n email: !tutorData || !tutorData.email ? \"\" : tutorData.email,\r\n stateProvinceId:\r\n !tutorData || !tutorData.stateProvinceId ? \"\" : tutorData.stateProvinceId,\r\n cityId: !tutorData || !tutorData.cityId ? \"\" : tutorData.cityId,\r\n address: !tutorData || !tutorData.address ? \"\" : tutorData.address,\r\n educationalLevel: !tutorData\r\n ? 0\r\n : isNaN(parseInt(tutorData.educationalLevel))\r\n ? 0\r\n : getCboValue(educationalLevelList(), tutorData.educationalLevel),\r\n profession: !tutorData || !tutorData.profession ? \"\" : tutorData.profession,\r\n civilStatus: !tutorData\r\n ? \"\"\r\n : isNaN(parseInt(tutorData.civilStatus))\r\n ? 0\r\n : getCboValue(CivilStatusList(), tutorData.civilStatus),\r\n relationship: !tutorData\r\n ? \"\"\r\n : isNaN(parseInt(tutorData.relationship))\r\n ? 0\r\n : getCboValue(RelationshipList(), tutorData.relationship),\r\n stratum: !tutorData || !tutorData.stratum ? \"\" : tutorData.stratum\r\n };\r\n\r\n const validationSchema = {\r\n name: yup.string().required(),\r\n lastName: yup.string().required(),\r\n birthday: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n email: yup.string().email()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const documentTypeIdValue = watch(\"documentTypeId\");\r\n const birthstateProvinceValue = watch(\"birthstateProvinceId\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const birthCityIdValue = watch(\"birthCityId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const ageValue = watch(\"age\");\r\n const ageMonthValue = watch(\"ageMonth\");\r\n\r\n const [birthCityList, setBirthCityList] = useState([]);\r\n const [cityList, setCityList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n documentTypeListLoaded: false,\r\n stateProvinceListLoaded: false,\r\n birthCityListLoaded: false,\r\n cityListLoaded: false\r\n });\r\n\r\n useEffect(() => {\r\n if (!loadForm.stateProvinceListLoaded && stateProvinceList.length > 0) {\r\n setValue(\r\n \"birthstateProvinceId\",\r\n getCboValue(stateProvinceList, birthstateProvinceValue)\r\n );\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(stateProvinceList, stateProvinceIdValue)\r\n );\r\n setLoadForm({ ...loadForm, stateProvinceListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, defaultValues.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.birthCityListLoaded && birthCityList.length > 0) {\r\n setValue(\r\n \"birthCityId\",\r\n getCboValue(birthCityList, defaultValues.birthCityId)\r\n );\r\n setLoadForm({ ...loadForm, birthCityListLoaded: true });\r\n return;\r\n }\r\n if (!loadForm.documentTypeListLoaded && documentTypeList.length > 0) {\r\n setValue(\r\n \"documentTypeId\",\r\n getCboValue(documentTypeList, documentTypeIdValue)\r\n );\r\n setLoadForm({ ...loadForm, documentTypeListLoaded: true });\r\n return;\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [cityList, birthCityList, stateProvinceList, documentTypeList]);\r\n\r\n useEffect(() => {\r\n setValue(\"birthCityId\", null);\r\n if (!birthstateProvinceValue || !birthstateProvinceValue.value) {\r\n setBirthCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(birthstateProvinceValue.value),\r\n setBirthCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [birthstateProvinceValue]);\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const dtpHandleChange = (name) => (e) => {\r\n setValue(name, e);\r\n setValue(\"age\", calculateAge(e));\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n if (d.documentTypeId) {\r\n const selectedDocumentType = documentTypeListComplete.find(\r\n (type) => type.id === documentTypeIdValue.value\r\n );\r\n const regexText = selectedDocumentType\r\n ? selectedDocumentType.regularExpression\r\n : null;\r\n\r\n if (regexText) {\r\n const messageValidation = selectedDocumentType\r\n ? selectedDocumentType.validationMessage\r\n : \"\";\r\n let regex = new RegExp(regexText, \"i\");\r\n if (!regex.test(d.document)) {\r\n NotificationManager.warning(messageValidation);\r\n return;\r\n }\r\n }\r\n }\r\n\r\n let tutor = {\r\n id: !tutorData ? 0 : tutorData.id,\r\n name: d.name,\r\n lastName: d.lastName,\r\n birthday: !d.birthday\r\n ? null\r\n : dayjs(d.birthday).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n birthstateProvinceId: null,\r\n birthCityId: !d.birthCityId ? null : Number(d.birthCityId.value),\r\n gender: !d.gender ? null : Number(d.gender.value),\r\n documentTypeId: !d.documentTypeId ? null : Number(d.documentTypeId.value),\r\n document: d.document,\r\n phone: d.phone,\r\n cellphone: d.cellphone,\r\n email: d.email,\r\n stateProvinceId: null,\r\n cityId: !d.cityId ? null : Number(d.cityId.value),\r\n address: d.address,\r\n educationalLevel: !d.educationalLevel\r\n ? null\r\n : Number(d.educationalLevel.value),\r\n profession: d.profession,\r\n civilStatus: !d.civilStatus ? null : Number(d.civilStatus.value),\r\n stratum: !d.stratum ? null : Number(d.stratum),\r\n relationship: !d.relationship ? null : Number(d.relationship.value)\r\n };\r\n\r\n var obj = { tutor, patientId };\r\n\r\n await callApiAsync(\r\n () => postPatientSaveTutor(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setLoadForm({\r\n ...loadForm,\r\n stateProvinceListLoaded: true,\r\n cityListLoaded: true,\r\n birthCityListLoaded: true\r\n });\r\n setTutorData(data);\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n value={watch(\"birthday\")}\r\n onChange={dtpHandleChange(\"birthday\")}\r\n disableFuture={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n }\r\n value={ageValue}\r\n onChange={(value) => {\r\n setValue(\"age\", value);\r\n }}\r\n disabled={true}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={birthstateProvinceValue}\r\n onChange={cboHandleChange(\"birthstateProvinceId\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={birthCityList}\r\n value={birthCityIdValue}\r\n onChange={cboHandleChange(\"birthCityId\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={genderList()}\r\n value={watch(\"gender\")}\r\n onChange={cboHandleChange(\"gender\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={CivilStatusList()}\r\n value={watch(\"civilStatus\")}\r\n onChange={cboHandleChange(\"civilStatus\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={documentTypeList}\r\n value={documentTypeIdValue}\r\n onChange={cboHandleChange(\"documentTypeId\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"tstateProvinceId\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={educationalLevelList()}\r\n value={watch(\"educationalLevel\")}\r\n onChange={cboHandleChange(\"educationalLevel\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={RelationshipList()}\r\n value={watch(\"relationship\")}\r\n onChange={cboHandleChange(\"relationship\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nconst PatientInfo = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const {\r\n impactStartDate,\r\n consentSigned,\r\n reloadPatientData,\r\n isCIRequired\r\n } = useSelector(({ impact }) => impact);\r\n const impact = useSelector(({ impact }) => impact);\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [documentTypeList, setDocumentTypeList] = useState([]);\r\n const [insuranceList, setInsuranceList] = useState([]);\r\n\r\n const [patientData, setPatientData] = useState({});\r\n const [insuranceData, setInsuranceData] = useState({});\r\n const [tutorData, setTutorData] = useState({});\r\n const [housingData, setHousingData] = useState({});\r\n\r\n const [open, setOpen] = useState(false);\r\n const [value, setValue2] = useState(0);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleChange = (event, value) => {\r\n setValue2(value);\r\n };\r\n\r\n const loadPatientData = () => {\r\n callApi(\r\n () => getPatientInfo(selectedPrescription.id),\r\n (data) => {\r\n setPatientData(data.patient);\r\n setInsuranceData(data.insuranceInfo);\r\n setHousingData(data.housing);\r\n setTutorData(data.tutor);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadPatientData();\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n callApi(getAllDocumentType, setDocumentTypeList);\r\n callApi(getInsuranceList, setInsuranceList);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n useEffect(() => {\r\n if (reloadPatientData) {\r\n loadPatientData();\r\n dispatch(callReloadPatientData(false));\r\n }\r\n }, [reloadPatientData]);\r\n\r\n return (\r\n
    \r\n \r\n \r\n {}\r\n \r\n {/*
    */}\r\n {/*
    */}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n }\r\n />\r\n \r\n }\r\n />\r\n }\r\n />\r\n \r\n
    \r\n
    \r\n {value === 0 && (\r\n setPatientData(data)}\r\n patientData={patientData}\r\n setInsuranceData={setInsuranceData}\r\n insuranceData={insuranceData}\r\n stateProvinceList={stateProvinceList}\r\n documentTypeList={documentTypeList}\r\n insuranceList={insuranceList}\r\n documentTypeListComplete={documentTypeList}\r\n />\r\n )}\r\n\r\n {value === 1 && (\r\n setHousingData(data)}\r\n housingData={housingData}\r\n patientId={patientData.id}\r\n />\r\n )}\r\n\r\n {value === 2 && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {/*
    */}\r\n {/* */}\r\n {/*
    */}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PatientInfo;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { callActionApi, getEducationalMaterial } from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst processData = (data) => {\r\n const onClick = (fileLink) => () => {\r\n const link = document.createElement(\"a\");\r\n link.href = fileLink;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n };\r\n\r\n return data.map((x) => {\r\n return {\r\n type: x.type,\r\n name: x.name,\r\n description: x.description,\r\n actions: (\r\n \r\n \r\n \r\n ),\r\n };\r\n });\r\n};\r\n\r\nconst ConsentDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [documents, setDocuments] = useState([]);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n useEffect(() => {\r\n callActionApi(\r\n () => getEducationalMaterial(selectedPrescription.id),\r\n setDocuments,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, []);\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"type\",\r\n label: \"Tipo\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"name\",\r\n label: \"Documento\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"description\",\r\n label: \"Descripción\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Descargar\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ConsentDialog;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Grid,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Button,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getNursingPlans,\r\n postCreateUpdateNursingPlan,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst NursePlanForm = ({ nursingPlan, setNursingPlan, handleRequestClose }) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n \r\n const defaultValues = {\r\n diagnostic: !nursingPlan ? \"\" : nursingPlan.diagnostic,\r\n goal: !nursingPlan ? \"\" : nursingPlan.goal,\r\n activities: !nursingPlan ? \"\" : nursingPlan.activities,\r\n };\r\n const validationSchema = yup.object().shape({\r\n diagnostic: yup.string().required(),\r\n goal: yup.string().required(),\r\n activities: yup.string().required(),\r\n });\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n id: nursingPlan.id,\r\n impactId: nursingPlan.impactId,\r\n diagnostic: d.diagnostic,\r\n goal: d.goal,\r\n activities: d.activities,\r\n evaluationResultsDate: null,\r\n evaluationResults: null,\r\n };\r\n\r\n await callApiAsync(\r\n () => postCreateUpdateNursingPlan(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setNursingPlan(data[0]);\r\n handleRequestClose();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n \r\n
    \r\n \r\n \r\n }\r\n name=\"diagnostic\"\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n name=\"goal\"\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n name=\"activities\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nconst NursePlan = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [nursingPlan, setNursingPlan] = useState(null);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getNursingPlans(selectedPrescription.id),\r\n (data) => {\r\n setNursingPlan(\r\n data.length > 0\r\n ? data[0]\r\n : {\r\n id: 0,\r\n impactId: selectedPrescription.impactId,\r\n }\r\n );\r\n }\r\n );\r\n }, []);\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default NursePlan;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n MedicineTypeList,\r\n BoolList,\r\n DiagnosticTypeList,\r\n medicineTypeEnum,\r\n concomitantTreatmentTypeList\r\n} from \"constants/Enums\";\r\nimport {\r\n callApi,\r\n getControlExamSelects,\r\n getDiagnosticByProduct,\r\n getGetHealthData,\r\n getProductlineByProductId,\r\n getTimeUnitSelect\r\n} from \"api/apiList\";\r\nimport { isDirectTracing } from \"app/routes/psp/services/userService\";\r\nconst FormCRU = ({\r\n rowObj2,\r\n impactId,\r\n openCRU,\r\n additionalMedicationsList,\r\n handleRequestClose,\r\n handleCreateUpdate\r\n}) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const [rowObj, setCurrentObj] = useState(null);\r\n const [product, setproduct] = useState(null);\r\n const [concomitantValue, setConcomitantValue] = useState(null);\r\n const [diagnosticList, setDiagnosticList] = useState([]);\r\n const [disabled, setDisabled] = useState(false);\r\n const medicineTypeList = MedicineTypeList();\r\n const boolList = BoolList();\r\n const treatmentTypeList = concomitantTreatmentTypeList();\r\n const diagnosticTypeList = DiagnosticTypeList();\r\n const [timeUnitList, setTimeUnitList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n diagnosticListLoaded: false,\r\n dataLoaded: false\r\n });\r\n const [controlExamUnitTypeSelect, setControlExamUnitTypeSelect] = useState(\r\n null\r\n );\r\n const [healthData, setHealthData] = useState({});\r\n\r\n const directTracing = isDirectTracing();\r\n\r\n const defaultValues = {\r\n activePrinciple: \"\",\r\n dosage: \"\",\r\n measurementUnit: \"\",\r\n productId: null,\r\n administrationRoute: \"\",\r\n supplyFrequency: \"\",\r\n treatmentStartDate: null,\r\n treatmentEndDate: null,\r\n lifeTime: false,\r\n diagnosticProductlineId: null,\r\n concomitant: null,\r\n concomitantDiagnostic: null,\r\n concomitantDate: null,\r\n diagnostStartDate: null,\r\n diagnostEndDate: null,\r\n supplyFrequencytimeUnit: null,\r\n medicineType: null\r\n };\r\n // const validationSchema ={};\r\n const validationSchema = {\r\n medicineType: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n concomitant: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n dosage: yup.string()\r\n .matches(/^[0-9]+$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = Number(value);\r\n return number > 0 && number < 1001;\r\n })\r\n .required(\"Required\"),\r\n diagnosticProductlineId: yup\r\n .object()\r\n .when([\"medicineType\", \"activePrinciple\"], {\r\n is: (medicineType, activePrinciple) => {\r\n return (\r\n (medicineType && Number(medicineType.value) === 0) &&\r\n !activePrinciple\r\n );\r\n },\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n })\r\n .nullable(),\r\n productId: yup\r\n .object()\r\n .when(\"medicineType\", {\r\n is: (medicineType) => medicineType && Number(medicineType.value) == 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable(),\r\n supplyFrequencytimeUnit: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n concomitantDiagnostic: yup\r\n .object()\r\n .when(\"concomitant\", {\r\n is: (concomitant) => concomitant && Number(concomitant.value) == 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable(),\r\n supplyFrequency: yup.string()\r\n .matches(/^[0-9]+$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = Number(value);\r\n return number > 0 && number < 1001;\r\n })\r\n .required(\"Required\"),\r\n // cie: yup\r\n // .string()\r\n // .when([\"concomitantDiagnostic\", \"concomitant\"], {\r\n // is: (concomitantDiagnostic, concomitant) =>\r\n // concomitantDiagnostic && Number(concomitantDiagnostic.value) == 2 && \r\n // concomitant && Number(concomitant.value) == 1,\r\n // then: yup\r\n // .object()\r\n // .shape({ value: yup.string().required() })\r\n // .required()\r\n // .nullable(),\r\n // })\r\n // .nullable(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n const lifeTimeValue = watch(\"lifeTime\");\r\n\r\n const cboMedicineTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n setValue(\"productId\", \"\");\r\n setValue(\"activePrinciple\", \"\");\r\n };\r\n\r\n const cboConcomitantChange = (name) => (event) => {\r\n setValue(name, event);\r\n setValue(\"concomitantDiagnostic\", null);\r\n setValue(\"concomitantDate\", null);\r\n setConcomitantValue(event ? event.value : null);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n const medicineTypeValue = watch(\"medicineType\");\r\n const isOwnMedicine = medicineTypeValue && medicineTypeValue.value == 1;\r\n\r\n const concomitantDiagnosticwatch = watch(\"concomitantDiagnostic\");\r\n const concomitantDiagnosticValue = concomitantDiagnosticwatch?.value;\r\n\r\n const productIdValue = watch(\"productId\");\r\n const productIdHasValue = productIdValue && productIdValue.value != null;\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: !rowObj ? impactId : rowObj.impactId,\r\n productId: !d.productId ? null : Number(d.productId.value),\r\n diagnosticProductlineId: !d.diagnosticProductlineId\r\n ? null\r\n : Number(d.diagnosticProductlineId.value),\r\n activePrinciple: isOwnMedicine ? null : d.activePrinciple,\r\n dosage: d.dosage != null && d.dosage != \"\" ? Number(d.dosage) : null,\r\n measurementUnit: d.measurementUnit.value, \r\n administrationRoute: d.administrationRoute,\r\n supplyFrequency: d.supplyFrequency,\r\n DosageUnitTimeId: !d.supplyFrequencytimeUnit\r\n ? null\r\n : Number(d.supplyFrequencytimeUnit.value),\r\n treatmentStartDate: !d.treatmentStartDate\r\n ? null\r\n : dayjs(d.treatmentStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n treatmentEndDate:\r\n d.lifeTime || !d.treatmentEndDate\r\n ? null\r\n : dayjs(d.treatmentEndDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n lifeTime: d.lifeTime,\r\n cie: d.cie,\r\n concomitant: !d.concomitant \r\n ? null\r\n : d.concomitant.value === null\r\n ? null\r\n : d.concomitant.value === \"1\"\r\n ? true\r\n : false,\r\n diagnosticType: !d.concomitantDiagnostic\r\n ? null\r\n : Number(d.concomitantDiagnostic.value),\r\n concomitantDate: !d.concomitantDate\r\n ? null\r\n : dayjs(d.concomitantDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n diagnosticStarDate: !d.diagnostStartDate\r\n ? null\r\n : dayjs(d.diagnostStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n diagnosticEndDate: !d.diagnostEndDate\r\n ? null\r\n : dayjs(d.diagnostEndDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n\r\n await handleCreateUpdate(obj);\r\n handleRequestClose();\r\n };\r\n\r\n const getFormulaInfo = () => {\r\n const idImpact = rowObj?.impactId || impactId;\r\n callApi(\r\n () => getGetHealthData(idImpact),\r\n (data) => {\r\n setHealthData(data);\r\n getProductlineByProductIdData(data.productId);\r\n }\r\n );\r\n\r\n const getProductlineByProductIdData = (productId) => {\r\n callApi(\r\n () => getProductlineByProductId(productId),\r\n (data) => {\r\n getDiagnosticByProductData(data);\r\n }\r\n );\r\n };\r\n\r\n const getDiagnosticByProductData = (productLineId) => {\r\n callApi(\r\n () => getDiagnosticByProduct(productLineId),\r\n (data) => {\r\n setDiagnosticList(data);\r\n }\r\n );\r\n };\r\n };\r\n\r\n useEffect(() => {\r\n setCurrentObj(rowObj2);\r\n if (rowObj2) {\r\n setDisabled(true);\r\n }\r\n }, [rowObj2]);\r\n\r\n\r\n\r\n useEffect(() => {\r\n if (\r\n rowObj &&\r\n rowObj.diagnosticProductlineId &&\r\n !loadForm.diagnosticListLoaded &&\r\n diagnosticList.length > 0\r\n ) {\r\n setValue(\r\n \"diagnosticProductlineId\",\r\n getCboValue(diagnosticList, rowObj.diagnosticProductlineId)\r\n );\r\n setLoadForm({ ...loadForm, diagnosticListLoaded: true });\r\n return;\r\n }\r\n }, [diagnosticList]);\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"concomitant\",\r\n getCboValue(\r\n treatmentTypeList ,!rowObj? null\r\n : rowObj.concomitant == null? null\r\n : rowObj.concomitant\r\n ? 1\r\n : 0\r\n )\r\n );\r\n setValue(\r\n \"medicineType\",\r\n getCboValue(boolList, !rowObj ? 1 : rowObj.productId == null ? 0: 1)\r\n );\r\n setproduct(!rowObj ? null : rowObj.productId);\r\n setConcomitantValue(!rowObj ? null : rowObj.concomitant ? 1 : 0);\r\n setValue(\"activePrinciple\", !rowObj ? \"\" : rowObj.activePrinciple);\r\n setValue(\"dosage\", !rowObj ? \"\" : rowObj.dosage);\r\n //setValue(\"measurementUnit\", !rowObj ? \"\" : rowObj.measurementUnit);\r\n setValue(\r\n \"measurementUnit\",\r\n getCboValue(controlExamUnitTypeSelect, !rowObj ? null :rowObj.measurementUnit)\r\n );\r\n setValue(\"administrationRoute\", !rowObj ? \"\" : rowObj.administrationRoute);\r\n setValue(\"supplyFrequency\", !rowObj ? \"\" : rowObj.supplyFrequency);\r\n setValue(\"cie\", !rowObj ? \"\" : rowObj.cie);\r\n setValue(\r\n \"supplyFrequencytimeUnit\",\r\n getCboValue(timeUnitList, !rowObj ? null : rowObj.dosageUnitTimeId)\r\n );\r\n setValue(\"treatmentStartDate\", !rowObj ? null : rowObj.treatmentStartDate);\r\n setValue(\"treatmentEndDate\", !rowObj ? null : rowObj.treatmentEndDate);\r\n setValue(\"lifeTime\", !rowObj ? false : rowObj.lifeTime);\r\n setValue(\r\n \"productId\",\r\n getCboValue(additionalMedicationsList, !rowObj ? null : rowObj.productId)\r\n );\r\n setValue(\r\n \"diagnosticProductlineId\",\r\n getCboValue(diagnosticList, !rowObj ? null : rowObj.diagnosticProductlineId)\r\n );\r\n setValue(\r\n \"concomitantDiagnostic\",\r\n getCboValue(diagnosticTypeList, !rowObj ? null : rowObj.diagnosticType)\r\n );\r\n setValue(\"concomitantDate\", !rowObj ? null : rowObj.concomitantDate);\r\n setValue(\"diagnostStartDate\", !rowObj ? null : rowObj.diagnosticStarDate);\r\n setValue(\"diagnostEndDate\", !rowObj ? null : rowObj.diagnosticEndDate);\r\n };\r\n\r\n const getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n\r\n const loadSelectData = () => {\r\n callApi(\r\n () => getTimeUnitSelect(),\r\n (data) => {\r\n setTimeUnitList(data);\r\n }\r\n );\r\n\r\n callApi(\r\n () => getControlExamSelects(),\r\n (data) => {\r\n setControlExamUnitTypeSelect(data.controlExamUnitTypeSelect);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [rowObj, openCRU]);\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n return;\r\n }\r\n setLoadForm({\r\n diagnosticListLoaded: false,\r\n dataLoaded: false\r\n });\r\n }, [rowObj, openCRU]);\r\n\r\n useEffect(() => {\r\n getFormulaInfo();\r\n loadSelectData();\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={treatmentTypeList}\r\n value={watch(\"concomitant\")}\r\n onChange={cboConcomitantChange(\"concomitant\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n }\r\n options={boolList}\r\n onChange={cboMedicineTypeChange(\"medicineType\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {!isOwnMedicine ? (\r\n <>\r\n \r\n }\r\n options={diagnosticList}\r\n value={watch(\"diagnosticProductlineId\")}\r\n onChange={cboHandleChange(\"diagnosticProductlineId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n ) : (\r\n <>\r\n \r\n }\r\n options={additionalMedicationsList}\r\n value={watch(\"productId\")}\r\n margin=\"normal\"\r\n //disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n )}\r\n {concomitantValue == 1 && (\r\n <>\r\n \r\n }\r\n options={diagnosticTypeList}\r\n value={watch(\"concomitantDiagnostic\")}\r\n onChange={cboHandleChange(\"concomitantDiagnostic\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {concomitantDiagnosticValue === 2 ? (\r\n <>\r\n \r\n }\r\n margin=\"normal\"\r\n //required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n ) : (\r\n <>\r\n )}\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n )}\r\n\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n options={controlExamUnitTypeSelect}\r\n value={watch(\"supplyFrequency\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n required={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={timeUnitList}\r\n value={watch(\"supplyFrequencytimeUnit\")}\r\n onChange={cboHandleChange(\"supplyFrequencytimeUnit\")}\r\n margin=\"normal\"\r\n // disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n {!lifeTimeValue && (\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n value={watch(\"lifeTime\")}\r\n onChange={chkHandleChange(\"lifeTime\")}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCRU;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({ data, handleOpenCRU, handleOpenDel, setCurrentRowObj }) => {\r\n const lifeTimeText = IntlGetText(\"additionalMedications.lifeTime\");\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"concomitantText\",\r\n label: IntlGetText(\"treatmentType.type\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"medicament\",\r\n label: IntlGetText(\"core.treatment\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"dosage\",\r\n label: IntlGetText(\"core.dosage\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"measurementUnitText\",\r\n label: \"Unidad de medida\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n /* {\r\n name: \"administrationRoute\",\r\n label: \"Vía de administración\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"supplyFrequency\",\r\n label: \"Frecuencia de administración\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n }, */\r\n {\r\n name: \"treatmentStartDate\",\r\n label: \"Inicio tratamiento\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"treatmentEndDate\",\r\n label: \"Fin tratamiento\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if(rowObj.lifeTime)\r\n return lifeTimeText;\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport FormCRU from \"./FormCRU\";\r\nimport TableAM from \"./TableAM\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAdditionalMedications,\r\n postCreateUpdateAdditionalMedication,\r\n deleteAdditionalMedication,\r\n getMedication,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst AdditionalMedicationsDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [additionalMedications, setAdditionalMedications] = useState([]);\r\n const [additionalMedicationsList, setAdditionalMedicationsList] = useState([]);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpenCRU = () => {\r\n setOpenCRU(true);\r\n };\r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n };\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getAdditionalMedications(selectedPrescription.id),\r\n setAdditionalMedications\r\n );\r\n callApi(\r\n () => getMedication(),\r\n setAdditionalMedicationsList\r\n );\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateAdditionalMedication(data),\r\n setAdditionalMedications\r\n );\r\n };\r\n\r\n const handleDelete = () => {\r\n callApi(\r\n () => deleteAdditionalMedication(currentRowObj.id),\r\n (data) => {\r\n setAdditionalMedications(data);\r\n handleRequestCloseDel();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AdditionalMedicationsDialog;\r\n","import React, { useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport {\r\n isJaasModule,\r\n isDirectTracing,\r\n} from \"app/routes/psp/services/userService\";\r\nimport IsOnlyTracingBox from \"components/JaasModule/IsOnlyTracingBox\";\r\nimport ConsentDialog from \"./Consent\";\r\nimport FormulaDialog from \"./Formula\";\r\nimport ClinicalHistory from \"./ClinicalHistory\";\r\nimport PatientInfo from \"./PatientInfo\";\r\nimport Education from \"./Education\";\r\nimport NursePlan from \"./NursePlan/index\";\r\nimport AdditionalMedications from \"./AdditionalMedications\";\r\nimport { loadInfoImpact } from \"actions/Impact\";\r\nimport { callActionApi, getInfoImpact } from \"api/apiList\";\r\n\r\nconst ShowBox = ({ boxName, children }) => {\r\n const isDirectTracingConfig = isDirectTracing();\r\n\r\n const uiResult = (\r\n
    {children}
    \r\n );\r\n\r\n if (isDirectTracingConfig) {\r\n if (boxName === \"ConsentDialog\" || boxName === \"PatientInfo\") {\r\n return uiResult;\r\n } else return null;\r\n }\r\n\r\n if (boxName === \"IsOnlyTracingBox\"){ \r\n const isJaasModuleConfig = isJaasModule(); \r\n return isJaasModuleConfig ? uiResult : null;\r\n }\r\n\r\n return uiResult;\r\n};\r\n\r\nconst FirstImpact = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n useEffect(() => {\r\n callActionApi(\r\n () => getInfoImpact(selectedPrescription.impactId),\r\n (data) => dispatch(loadInfoImpact(data)),\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, []);\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default FirstImpact;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { callApiAsync, postGenerateAlert } from \"api/apiList\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { callReloadAlerts } from \"actions/Impact\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n margin: {\r\n margin: theme.spacing(1),\r\n },\r\n extendedIcon: {\r\n marginRight: theme.spacing(1),\r\n },\r\n}));\r\n\r\nconst DialogReject = ({ open, dialogTitle, callBack, closeDialog }) => {\r\n const validationSchema = yup.object().shape({\r\n comment: yup.string().required(),\r\n });\r\n\r\n const defaultValues = { comment: \"\" };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors, reset } = methods;\r\n\r\n const onSubmit = async (data, e) => {\r\n await callBack(data.comment);\r\n };\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n closeDialog();\r\n };\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n }\r\n name=\"comment\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst AlertNoRadicado = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const classes = useStyles();\r\n\r\n const [openDialogReject, setOpenDialogReject] = useState(false);\r\n\r\n const handleRequestCloseReject = () => setOpenDialogReject(false);\r\n\r\n const onRejectClick = () => setOpenDialogReject(true);\r\n\r\n const reject = async (comment) => {\r\n await callApiAsync(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.radicacionEPSNonEffective,\r\n comment,\r\n }),\r\n () => {\r\n handleRequestCloseReject();\r\n dispatch(\r\n setPrescriptionState(PrescripStateEnum.radicacionEPSNonEffective)\r\n );\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n\r\n if (\r\n selectedPrescription.stateId == PrescripStateEnum.radicacionEPS ||\r\n selectedPrescription.stateId == PrescripStateEnum.noAuthorized\r\n ) {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n callBack={reject}\r\n closeDialog={handleRequestCloseReject}\r\n />\r\n
    \r\n );\r\n }\r\n\r\n return \"\";\r\n};\r\n\r\nexport default AlertNoRadicado;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst FormCRU = ({\r\n radicado,\r\n impactId,\r\n openCRU,\r\n handleRequestClose,\r\n handleCreateUpdate,\r\n}) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n radicacionDate: null,\r\n code: \"\",\r\n radicacionPoint: \"\",\r\n attentionScopeText: \"\",\r\n };\r\n const validationSchema = {\r\n radicacionDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n //.required(),\r\n code: yup\r\n .string()\r\n .matches(/^[a-z0-9_-]+$/i, { message: IntlGetText(\"yup.alphanumericValidation\"), excludeEmptyString: true }),\r\n radicacionPoint: yup\r\n .string()\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU]);\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"radicacionDate\",\r\n !radicado || !radicado.radicacionDate ? null : dayjs(radicado.radicacionDate)\r\n );\r\n setValue(\"code\", !radicado ? \"\" : radicado.code);\r\n setValue(\"radicacionPoint\", !radicado ? \"\" : radicado.radicacionPoint);\r\n setValue(\r\n \"attentionScopeText\",\r\n !radicado || !radicado.attentionScopeText\r\n ? \"\"\r\n : radicado.attentionScopeText\r\n );\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n id: !radicado ? 0 : radicado.id,\r\n impactId,\r\n radicacionDate: !d.radicacionDate ? null : dayjs(d.radicacionDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n code: d.code,\r\n radicacionPoint: d.radicacionPoint,\r\n };\r\n await handleCreateUpdate(obj);\r\n };\r\n\r\n const disabled = false;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD hh:mm A\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={radicado && radicado.hasAuthorizations}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={radicado && radicado.hasAuthorizations}\r\n required={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={radicado && radicado.hasAuthorizations}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {radicado && radicado.attentionScopeText && (\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={radicado ? true : true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCRU;\r\n","import React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport DialogConfirm from \"components/Form/Controls/DialogConfirm\";\r\n\r\nconst CustomTable = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n handleClickContinue,\r\n showBtnCotinue\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n viewColumns: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const [openDlgConfirm, setOpenDlgConfirm] = useState(false);\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"radicacionDate\",\r\n label: IntlGetText(\"radicacionInsurance.RadicacionDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"radicacionInsurance.Code\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"radicacionPoint\",\r\n label: IntlGetText(\"radicacionInsurance.radicacionPoint\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.hasAuthorizations) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n { showBtnCotinue &&\r\n setOpenDlgConfirm(true)}\r\n variant=\"outlined\"\r\n color=\"primary\"\r\n className=\"ml-4\"\r\n >\r\n {}\r\n \r\n }\r\n { showBtnCotinue &&\r\n }\r\n text={}\r\n handleRequestClose={()=>setOpenDlgConfirm(false)}\r\n onAcceptClick={handleClickContinue}\r\n />\r\n }\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default CustomTable;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport AlertNoRadicado from \"./NoRadicado\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getRadicadoInsuranceList,\r\n postCreateUpdateRadicadoInsurance,\r\n deleteRadicadoInsurance,\r\n postPrescriptionSetState,\r\n} from \"api/apiList\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existAuthorizationsInImpact = (impactId, radicadoList) =>\r\n radicadoList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst InsuranceAuthorizationDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [radicadoList, setRadicadoList] = useState([]);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getRadicadoInsuranceList(selectedPrescription.id),\r\n setRadicadoList\r\n );\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateRadicadoInsurance(data),\r\n (newData) => {\r\n setRadicadoList(newData);\r\n handleRequestCloseCRU();\r\n if (selectedPrescription.stateId != PrescripStateEnum.radicacionEPS) {\r\n dispatch(setPrescriptionState(PrescripStateEnum.radicacionEPS));\r\n }\r\n }\r\n );\r\n };\r\n\r\n const removeItem = (list, itemId) => {\r\n let index = list.findIndex((x) => x.id === itemId);\r\n let data = [...list];\r\n data.splice(index, 1);\r\n return data;\r\n };\r\n const handleDelete = () => {\r\n callApi(\r\n () => deleteRadicadoInsurance(currentRowObj.id),\r\n () => {\r\n const data = removeItem(radicadoList, currentRowObj.id);\r\n setRadicadoList(data);\r\n handleRequestCloseDel();\r\n }\r\n );\r\n };\r\n\r\n const handleClickContinue = () => {\r\n callApi(\r\n () =>\r\n postPrescriptionSetState({\r\n id: selectedPrescription.id,\r\n state: PrescripStateEnum.authorized,\r\n }),\r\n () => {\r\n dispatch(setPrescriptionState(PrescripStateEnum.authorized));\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {!existAuthorizationsInImpact(\r\n selectedPrescription.impactId,\r\n radicadoList\r\n ) && } \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n handleClickContinue={handleClickContinue}\r\n showBtnCotinue={ radicadoList.length > 0 &&\r\n !existAuthorizationsInImpact(selectedPrescription.impactId, radicadoList) \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InsuranceAuthorizationDialog;\r\n","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\n\r\nconst DialogAlert = ({open, dialogTitle , callBack, closeDialog}) => {\r\n const validationSchema = yup.object().shape({\r\n comment: yup.string().required()\r\n }); \r\n\r\n const defaultValues = { comment:\"\" };\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(validationSchema) });\r\n const { handleSubmit, errors, reset } = methods;\r\n \r\n const onSubmit = async (data, e) => { callBack(data.comment); };\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n closeDialog();\r\n };\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n }\r\n name=\"comment\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DialogAlert;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n getCitiesByStateProvinceId,\r\n getAllStateProvince,\r\n callActionApi,\r\n postAddPharmacy,\r\n} from \"api/apiList\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst FormAddNewPharmacy = ({\r\n openCRU,\r\n handleRequestClose,\r\n marketChainIdValue,\r\n setVisitTargetList,\r\n visitTargetList,\r\n setValueNamePharmacy,\r\n}) => {\r\n const [cityList, setCityList] = useState([]);\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const defaultValues = {\r\n stateProvinceId: \"\",\r\n cityId: \"\",\r\n name: \"\",\r\n };\r\n\r\n const validationSchema = yup.object().shape({\r\n stateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n name: yup\r\n .string()\r\n .required()\r\n .nullable(),\r\n });\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n useEffect(() => {\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n name: d.name,\r\n marketChainId: marketChainIdValue.value,\r\n cityId: Number(d.cityId.value),\r\n };\r\n await callActionApi(\r\n () => postAddPharmacy(obj),\r\n (data) => {\r\n setVisitTargetList([...visitTargetList, data]);\r\n setValueNamePharmacy(data);\r\n handleRequestClose();\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormAddNewPharmacy;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n IconButton,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callActionApi,\r\n getPharmacyByMarketChain,\r\n postAddFileInsuranceAuthorization,\r\n postAddPharmacy,\r\n} from \"api/apiList\";\r\nimport { RadicadoInsuranceState } from \"constants/Enums\";\r\nimport FormAddNewPharmacy from \"./FormAddNewPharmacy\"\r\n\r\nconst getMedicineAmount = (authorizations, prescriptionMedicineAmount) => {\r\n var authorized = authorizations\r\n .filter(\r\n (x) =>\r\n x.radicadoInsuranceState !==\r\n RadicadoInsuranceState.authorizationWithInconsistencies &&\r\n x.radicadoInsuranceState !== RadicadoInsuranceState.noAuthorized\r\n )\r\n .map((item) => item.medicineAmount)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return prescriptionMedicineAmount - authorized;\r\n};\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCRU = ({\r\n rowObj,\r\n impactId,\r\n openCRU,\r\n handleRequestClose,\r\n marketChainList,\r\n handleCreateUpdate,\r\n authorizations,\r\n setAuthorizations,\r\n}) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const [formLoaded, setFormLoaded] = useState(false);\r\n const [visitTargetList, setVisitTargetList] = useState([]);\r\n const [file, setFile] = useState(null);\r\n\r\n const [isAddPharmacy, setIsAddPharmacy] = useState(false);\r\n const [openAddNewPharmacy, setOpenAddNewPharmacy] = useState(false);\r\n\r\n const defaultValues = {\r\n marketChainId: \"\",\r\n visitTargetId: \"\",\r\n authorizationDate: null,\r\n code: \"\",\r\n medicineAmount: \"\",\r\n startDate: null,\r\n expirationDate: null,\r\n newPharmacyName: \"\",\r\n };\r\n\r\n const validationSchema = yup.object().shape({\r\n marketChainId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n visitTargetId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n authorizationDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n //.required(),\r\n code: yup\r\n .string()\r\n .required()\r\n .matches(/^[a-z0-9_-]+$/i, IntlGetText(\"yup.alphanumericValidation\")),\r\n medicineAmount: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(0, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n expirationDate: yup\r\n .date()\r\n .nullable(true)\r\n .min(\r\n yup.ref(\"startDate\"),\r\n IntlGetText(\"insuranceAuthorization.expirationDateValid\")\r\n )\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n newPharmacyName: yup.string().when(\"marketChainId\", (marketChainId) => {\r\n if (isAddPharmacy) {\r\n return yup.string().required();\r\n }\r\n }),\r\n });\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors, getValues } = methods;\r\n\r\n const marketChainIdValue = watch(\"marketChainId\");\r\n const newPharmacyNameValue = watch(\"newPharmacyName\");\r\n\r\n useEffect(() => {\r\n if (!openCRU) {\r\n setFormLoaded(false);\r\n } else {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU]);\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"marketChainId\",\r\n !rowObj ? \"\" : getCboValue(marketChainList, rowObj.marketChainId)\r\n );\r\n setValue(\"visitTargetId\", !rowObj ? \"\" : rowObj.visitTargetId);\r\n setValue(\"authorizationDate\", !rowObj || !rowObj.authorizationDate ? null : dayjs(rowObj.authorizationDate));\r\n setValue(\"code\", !rowObj ? \"\" : rowObj.code);\r\n setValue(\r\n \"medicineAmount\",\r\n !rowObj\r\n ? getMedicineAmount(authorizations, selectedPrescription.medicineAmount)\r\n : rowObj.medicineAmount\r\n );\r\n setValue(\"startDate\", !rowObj ? null : rowObj.startDate);\r\n setValue(\"expirationDate\", !rowObj ? null : rowObj.expirationDate);\r\n setFile(!rowObj ? null : rowObj.file);\r\n };\r\n\r\n useEffect(() => {\r\n setValue(\"visitTargetId\", null);\r\n if (!marketChainIdValue || !marketChainIdValue.value) {\r\n setVisitTargetList([]);\r\n return;\r\n }\r\n callActionApi(\r\n () => getPharmacyByMarketChain(marketChainIdValue.value),\r\n setVisitTargetList,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [marketChainIdValue]);\r\n\r\n useEffect(() => {\r\n if (!formLoaded && visitTargetList.length > 0) {\r\n setValue(\r\n \"visitTargetId\",\r\n getCboValue(visitTargetList, !rowObj ? \"\" : rowObj.visitTargetId)\r\n );\r\n setFormLoaded(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [visitTargetList]);\r\n\r\n const cboHandleChange = (name) => (event) => setValue(name, event);\r\n\r\n const updateFileInObj = (objId, file) => {\r\n let index = authorizations.findIndex((x) => x.id === objId);\r\n let data = [...authorizations];\r\n data[index] = { ...data[index], file };\r\n\r\n setAuthorizations(data);\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: impactId,\r\n marketChainId: Number(d.marketChainId.value),\r\n visitTargetId: Number(d.visitTargetId.value),\r\n authorizationDate: !d.authorizationDate ? null : dayjs(d.authorizationDate).format(\r\n \"YYYY-MM-DDTHH:mm:ss\"\r\n ),\r\n code: d.code,\r\n medicineAmount: Number(d.medicineAmount),\r\n startDate: dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n expirationDate: dayjs(d.expirationDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n\r\n await handleCreateUpdate(obj);\r\n };\r\n\r\n const handleNewPharmacy = () => {\r\n if (!isAddPharmacy) {\r\n setIsAddPharmacy(true);\r\n return;\r\n }\r\n if (!newPharmacyNameValue) return;\r\n var obj = {\r\n marketChainId: marketChainIdValue.value,\r\n name: newPharmacyNameValue,\r\n };\r\n\r\n callActionApi(\r\n () => postAddPharmacy(obj),\r\n (data) => {\r\n setIsAddPharmacy(false);\r\n setVisitTargetList([...visitTargetList, data]);\r\n setValue(\"visitTargetId\", { label: data.name, value: data.id });\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const handleRequestCloseAddNewPharmacy = () => {\r\n setOpenAddNewPharmacy(false);\r\n };\r\n\r\n const setValueNamePharmacy = (data) => {\r\n setValue(\"visitTargetId\", { label: data.name, value: data.id });\r\n };\r\n\r\n const disabled = rowObj && rowObj.hasRadicacionesOLF;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n options={!marketChainList ? [] : marketChainList}\r\n value={marketChainIdValue}\r\n onChange={cboHandleChange(\"marketChainId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {!isAddPharmacy && (\r\n \r\n }\r\n options={visitTargetList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n )}\r\n \r\n {!disabled && marketChainIdValue && marketChainIdValue.value && (\r\n \r\n
    \r\n setOpenAddNewPharmacy(true)}\r\n >\r\n \r\n \r\n
    \r\n
    \r\n )}\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n //disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n //disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n {!disabled && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n {rowObj && (\r\n {\r\n setFile(file);\r\n updateFileInObj(rowObj.id, file);\r\n }}\r\n actionApi={postAddFileInsuranceAuthorization}\r\n actionApiInfo={{ impactId, id: rowObj.id }}\r\n />\r\n )}\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCRU;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({ data, handleOpenCRU, handleOpenDel, setCurrentRowObj }) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"radicadoInsuranceCode\",\r\n label: IntlGetText(\"insuranceAuthorization.radicadoInsuranceCode\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n return rowObj.radicadoInsuranceCode \r\n ? rowObj.radicadoInsuranceCode \r\n : dayjs(rowObj.radicadoInsuranceDate).format(\"YYYY/MM/DD\");\r\n }\r\n }\r\n },\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"insuranceAuthorization.codeNumber\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"marketChain\",\r\n label: IntlGetText(\"insuranceAuthorization.marketChain\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"authorizationDate\",\r\n label: IntlGetText(\"insuranceAuthorization.authDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"medicineAmount\",\r\n label: IntlGetText(\"insuranceAuthorization.medicineAmountDelivery\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"deliveries\",\r\n label: IntlGetText(\"insuranceAuthorization.deliveries\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n return rowObj.deliveryNumber+\"/\"+rowObj.scheduledDeliveries;\r\n }\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.hasRadicacionesOLF) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DialogAlert from \"components/Form/DialogAlert\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getInsuranceAuthorization,\r\n postCreateUpdateInsuranceAuthorization,\r\n deleteInsuranceAuthorization,\r\n getMarketChainList,\r\n postGenerateAlert,\r\n} from \"api/apiList\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { callStartImpact, callReloadAlerts } from \"actions/Impact\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst existAuthorizationsInImpact = (impactId, authorizations) =>\r\n authorizations.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst InsuranceAuthorizationDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n const [marketChains, setMarketChains] = useState([]);\r\n const [authorizations, setAuthorizations] = useState([]);\r\n\r\n const [openDialogAlert, setOpenDialogAlert] = useState(false);\r\n const [openDlgAlertInconsistences, setOpenDlgAlertInconsistences] = useState(\r\n false\r\n );\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getInsuranceAuthorization(selectedPrescription.id),\r\n setAuthorizations\r\n );\r\n callApi(() => getMarketChainList(), setMarketChains);\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n const dataId = data.id;\r\n await callApiAsync(\r\n () => postCreateUpdateInsuranceAuthorization(data),\r\n (insuranceAuthorizationList) => {\r\n setAuthorizations(insuranceAuthorizationList);\r\n var objId =\r\n dataId > 0\r\n ? dataId\r\n : Math.max(...insuranceAuthorizationList.map((x) => x.id));\r\n setCurrentRowObj(insuranceAuthorizationList.find((x) => x.id == objId));\r\n NotificationManager.success(msgSuccess);\r\n //handleRequestCloseCRU();\r\n }\r\n );\r\n };\r\n\r\n const removeItem = (list, itemId) => {\r\n let index = list.findIndex((x) => x.id === itemId);\r\n let data = [...list];\r\n data.splice(index, 1);\r\n return data;\r\n }; \r\n const handleDelete = () => {\r\n callApi(\r\n () => deleteInsuranceAuthorization(currentRowObj.id),\r\n () => {\r\n const data = removeItem(authorizations, currentRowObj.id);\r\n setAuthorizations(data);\r\n handleRequestCloseDel();\r\n }\r\n );\r\n };\r\n\r\n const handleClickAuthorizationRefusal = () => setOpenDialogAlert(true);\r\n const handleRequestCloseDlgAlert = () => setOpenDialogAlert(false);\r\n const handleAuthorizationRefusal = (comment) => {\r\n callApi(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.noAuthorized,\r\n comment,\r\n }),\r\n () => {\r\n handleRequestCloseDlgAlert();\r\n handleRequestClose();\r\n dispatch(setPrescriptionState(PrescripStateEnum.noAuthorized));\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n\r\n const handleClickInconsistences = () => setOpenDlgAlertInconsistences(true);\r\n const handleRequestCloseDlgInconsistences = () =>\r\n setOpenDlgAlertInconsistences(false);\r\n const handleInconsistences = (comment) => {\r\n callApi(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.authorizationWithInconsistencies,\r\n comment,\r\n }),\r\n () => {\r\n handleRequestCloseDlgAlert();\r\n handleRequestClose();\r\n dispatch(\r\n setPrescriptionState(\r\n PrescripStateEnum.authorizationWithInconsistencies\r\n )\r\n );\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {selectedPrescription.stateId != PrescripStateEnum.noAuthorized &&\r\n selectedPrescription.stateId !=\r\n PrescripStateEnum.authorizationWithInconsistencies && ( //authorizations.length == 0) &&\r\n
    \r\n {!existAuthorizationsInImpact(\r\n selectedPrescription.impactId,\r\n authorizations\r\n ) && (\r\n
    \r\n \r\n \r\n {\" \"}\r\n \r\n \r\n \r\n \r\n }\r\n callBack={handleAuthorizationRefusal}\r\n closeDialog={handleRequestCloseDlgAlert}\r\n />\r\n
    \r\n )}\r\n {existAuthorizationsInImpact(\r\n selectedPrescription.impactId,\r\n authorizations\r\n ) && (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n callBack={handleInconsistences}\r\n closeDialog={handleRequestCloseDlgInconsistences}\r\n />\r\n
    \r\n )}\r\n
    \r\n )}\r\n\r\n {selectedPrescription.stateId != PrescripStateEnum.noAuthorized && (\r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n />\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InsuranceAuthorizationDialog;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { postAddFileRadicadoOLF } from \"api/apiList\";\r\nimport { RadicadoInsuranceState, RadicadoLogisticOperatorState } from \"constants/Enums\";\r\n\r\n\r\nconst getCboValue = (items, id) => {\r\n if(typeof(id) == \"object\"){\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n\r\nconst getItemAuthorizations = (data) => !data ? [] : data.map(x=>({id:x.id,name:x.code}));\r\n\r\nconst getMedicineAmount = (authorizations, authorizationId, radicacionList) => {\r\n var authorization = authorizations.find(x=>x.id == authorizationId);\r\n var radicadas = radicacionList.filter(x=>x.insuranceAuthorizationId == authorizationId && (!x.state || x.state != RadicadoLogisticOperatorState.deliveryNotMade))\r\n .map(item => item.deliveries > 0 ? item.deliveries : item.medicineAmount)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return authorization.medicineAmount - radicadas;\r\n};\r\n\r\nconst getAuthorizations = (authorizations) => {\r\n return authorizations.filter(x=>x.radicadoInsuranceState !== RadicadoInsuranceState.authorizationWithInconsistencies\r\n && x.radicadoInsuranceState !== RadicadoInsuranceState.noAuthorized);\r\n};\r\n\r\nconst FormCRU =({ rowObj, impactId, openCRU, handleRequestClose, authorizations, handleCreateUpdate, radicadoOLFList, setRadicadoOLFList, readOnly })=>{\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n \r\n const [file, setFile] = useState(null);\r\n \r\n const defaultValues = {\r\n insuranceAuthorizationId: \"\",\r\n radicadoDate: null,\r\n medicineAmount: \"\",\r\n code: \"\",\r\n deliveryDate: null\r\n };\r\n \r\n const validationSchema = {\r\n insuranceAuthorizationId: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n radicadoDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n //.required(),\r\n medicineAmount: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n code: yup.string().required()\r\n .matches(/^[a-z0-9_-]+$/i, IntlGetText(\"yup.alphanumericValidation\")),\r\n deliveryDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n //.required()\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n \r\n const insuranceAuthorizationIdValue = watch(\"insuranceAuthorizationId\"); \r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n if(!rowObj || rowObj.id == 0){\r\n setValue(\"medicineAmount\", getMedicineAmount(authorizations, event.value, radicadoOLFList));\r\n }\r\n }\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n const loadData = () => {\r\n setValue(\"insuranceAuthorizationId\", !rowObj ? \"\" : getCboValue(getItemAuthorizations(authorizations), rowObj.insuranceAuthorizationId));\r\n setValue(\"radicadoDate\", !rowObj || !rowObj.radicadoDate ? null : dayjs(rowObj.radicadoDate));\r\n setValue(\"medicineAmount\", !rowObj ? \"\" : rowObj.medicineAmount);\r\n setValue(\"code\", !rowObj ? \"\" : rowObj.code);\r\n setValue(\"deliveryDate\", !rowObj || !rowObj.deliveryDate ? null : dayjs(rowObj.deliveryDate));\r\n setFile(!rowObj ? null : rowObj.filePath);\r\n };\r\n \r\n const updateFileInObj = (objId,file) =>{\r\n let index = radicadoOLFList.findIndex((x)=> x.id === objId);\r\n let data = [...radicadoOLFList];\r\n data[index] = {...data[index], filePath: file};\r\n \r\n setRadicadoOLFList(data); \r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: impactId,\r\n insuranceAuthorizationId: Number(d.insuranceAuthorizationId.value),\r\n radicadoDate: !d.radicadoDate ? null : dayjs(d.radicadoDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n medicineAmount: Number(d.medicineAmount),\r\n code: d.code,\r\n deliveryDate: !d.deliveryDate ? null : dayjs(d.deliveryDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n await handleCreateUpdate(obj);\r\n };\r\n\r\n readOnly = readOnly ? readOnly : (rowObj && rowObj.state === RadicadoLogisticOperatorState.deliveryNotMade);\r\n const disabled = readOnly || (rowObj && rowObj.hasDeliveries);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={getItemAuthorizations(getAuthorizations(authorizations))}\r\n value={insuranceAuthorizationIdValue}\r\n onChange={cboHandleChange(\"insuranceAuthorizationId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n //disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n { rowObj && \r\n {\r\n setFile(file);\r\n updateFileInObj(rowObj.id, file);\r\n }}\r\n actionApi={postAddFileRadicadoOLF}\r\n actionApiInfo={{ impactId, id: rowObj.id }}\r\n />\r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n export default FormCRU;","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport { RadicadoLogisticOperatorState } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n readOnly,\r\n}) => {\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"authorizationCode\",\r\n label: IntlGetText(\"radicadoOLF.authorizationCodeNumber\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"radicadoDate\",\r\n label: IntlGetText(\"radicadoOLF.radDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"radicadoOLF.pendDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"authorizedQuantity\",\r\n label: IntlGetText(\"radicadoOLF.authorizedQuantity\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"medicineAmount\",\r\n label: IntlGetText(\"insuranceAuthorization.medicineAmountDelivery\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n return rowObj.deliveries + \"/\" + value;\r\n },\r\n },\r\n },\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (readOnly || rowObj.hasDeliveries || rowObj.state === RadicadoLogisticOperatorState.deliveryNotMade) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DialogAlert from \"components/Form/DialogAlert\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n callActionApi,\r\n getRadicadoOLFList,\r\n postCreateUpdateRadicadoOLF,\r\n deleteRadicadoOLF,\r\n getInsuranceAuthorization,\r\n postGenerateAlert,\r\n} from \"api/apiList\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { callStartImpact, callReloadAlerts } from \"actions/Impact\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst existRadicacionOLFInImpact = (impactId, radicaciones) =>\r\n radicaciones.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst InsuranceAuthorizationDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [authorizations, setAuthorizations] = useState([]);\r\n const [radicadoOLFList, setRadicadoOLFList] = useState([]);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [openDlgNoRadicado, setOpenDlgNoRadicado] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const loadRadicadOLF = () => {\r\n callApi(\r\n () => getRadicadoOLFList(selectedPrescription.id),\r\n setRadicadoOLFList\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadRadicadOLF();\r\n callApi(\r\n () => getInsuranceAuthorization(selectedPrescription.id),\r\n setAuthorizations\r\n );\r\n }, []);\r\n\r\n useEffect(() => {\r\n if(open) \r\n loadRadicadOLF();\r\n }, [open]);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n var isNew = data.id == 0;\r\n await callApiAsync(\r\n () => postCreateUpdateRadicadoOLF(data),\r\n (newData) => {\r\n setRadicadoOLFList(newData);\r\n if (\r\n isNew &&\r\n (selectedPrescription.stateId ==\r\n PrescripStateEnum.radicacionOLFNonEffective ||\r\n selectedPrescription.stateId == PrescripStateEnum.deliveryNotMade ||\r\n selectedPrescription.stateId ==\r\n PrescripStateEnum.incompleteDelivery)\r\n ) {\r\n dispatch(setPrescriptionState(PrescripStateEnum.radicacionOLF));\r\n }\r\n var objId =\r\n data.id > 0 ? data.id : Math.max(...newData.map((x) => x.id));\r\n setCurrentRowObj(newData.find((x) => x.id == objId));\r\n NotificationManager.success(msgSuccess);\r\n //handleRequestCloseCRU();\r\n }\r\n );\r\n };\r\n\r\n const removeItem = (list, itemId) => {\r\n let index = list.findIndex((x) => x.id === itemId);\r\n let data = [...list];\r\n data.splice(index, 1);\r\n return data;\r\n };\r\n const handleDelete = () => {\r\n callActionApi(\r\n () => deleteRadicadoOLF(currentRowObj.id),\r\n () => {\r\n const data = removeItem(radicadoOLFList, currentRowObj.id);\r\n setRadicadoOLFList(data);\r\n handleRequestCloseDel();\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const handleClickNoRadicado = () => setOpenDlgNoRadicado(true);\r\n const handleRequestCloseDlgNoRadicado = () => setOpenDlgNoRadicado(false);\r\n const handleNoRadicado = (comment) => {\r\n callApi(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.radicacionOLFNonEffective,\r\n comment,\r\n }),\r\n () => {\r\n handleRequestCloseDlgNoRadicado();\r\n handleRequestClose();\r\n dispatch(\r\n setPrescriptionState(PrescripStateEnum.radicacionOLFNonEffective)\r\n );\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n\r\n var readOnly = selectedPrescription.stateId == PrescripStateEnum.delivered;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {!readOnly &&\r\n !existRadicacionOLFInImpact(\r\n selectedPrescription.impactId,\r\n radicadoOLFList\r\n ) &&\r\n selectedPrescription.stateId !=\r\n PrescripStateEnum.radicacionOLFNonEffective && (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n }\r\n callBack={handleNoRadicado}\r\n closeDialog={handleRequestCloseDlgNoRadicado}\r\n />\r\n
    \r\n )}\r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InsuranceAuthorizationDialog;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\n\r\nconst FormCreateUpdate = ({ obj, handleCreateUpdate, setCurrentRowObj, readOnly}) => {\r\n const defaultValues = { \r\n lotNumber: \"\",\r\n expirationDate: null,\r\n };\r\n const validationSchema = { \r\n lotNumber: yup\r\n .string()\r\n .required()\r\n .matches(/^[a-z0-9_-]+$/i, IntlGetText(\"yup.alphanumericValidation\")),\r\n expirationDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required() \r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, reset, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"lotNumber\", !obj || !obj.lotNumber ? \"\" : obj.lotNumber);\r\n setValue(\"expirationDate\", !obj || !obj.expirationDate ? null : dayjs(obj.expirationDate)); \r\n };\r\n\r\n useEffect(()=>{\r\n setTimeout(loadData,150);\r\n },[obj]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var current = !obj ? { id:0 } : obj;\r\n var item = {\r\n //id: !obj || !obj.id ? 0 : obj.id,\r\n ...current,\r\n lotNumber: d.lotNumber,\r\n expirationDate: dayjs(d.expirationDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n handleCreateUpdate(item);\r\n reset(defaultValues);\r\n };\r\n\r\n const handleUndo = () => setCurrentRowObj(null);\r\n\r\n const disabled = readOnly;\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n //disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n {}\r\n \r\n {obj &&\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"\",\r\n label: \"#\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return tableMeta.rowIndex + 1;\r\n },\r\n },\r\n },\r\n {\r\n name: \"lotNumber\",\r\n label: IntlGetText(\"medicineDelivery.lotNumber\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"expirationDate\",\r\n label: IntlGetText(\"medicineDelivery.expDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if ((rowObj.impactId && rowObj.impactId != currentImpact) || readOnly) {\r\n return \"\";\r\n }\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\n\r\nconst DeliveryDetail = ({impactId, deliveryDetailList, setDeliveryDetailList, readOnly}) => {\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n\r\n const handleCreateUpdate = (item) => {\r\n var isNew = item.id === 0;\r\n let data = [];\r\n if(isNew){\r\n item.id = 't'+ deliveryDetailList.length;\r\n data = [...deliveryDetailList, item];\r\n }else{\r\n let index = deliveryDetailList.findIndex((x)=> x.id == item.id);\r\n data = [...deliveryDetailList];\r\n data[index] = item;\r\n }\r\n setDeliveryDetailList(data);\r\n setCurrentRowObj(null);\r\n };\r\n\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n const removeItemInList = (item) => {\r\n let index = deliveryDetailList.findIndex((x)=> x.id == item.id);\r\n let data = [...deliveryDetailList];\r\n data.splice(index,1);\r\n return data;\r\n };\r\n const handleDelete = () => {\r\n handleRequestCloseDel();\r\n setDeliveryDetailList(removeItemInList(currentRowObj));\r\n setCurrentRowObj(null);\r\n };\r\n \r\n return (\r\n
    \r\n {!readOnly &&\r\n \r\n }\r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={impactId}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DeliveryDetail;","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport DeliveryDetail from \"./DeliveryDetail\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { postAddFileMedicineDelivery } from \"api/apiList\";\r\nimport { PrescripStateEnum } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst getItemList = (data) => data.map((x) => ({ id: x.id, name: x.code }));\r\n\r\nconst getMedicineAmount = (radicadoOLFList, radicadoOLFId, deliveryList) => {\r\n var radicado = radicadoOLFList.find((x) => x.id == radicadoOLFId);\r\n var delivered = deliveryList\r\n .filter((x) => x.radicadoLogisticOperatorId == radicadoOLFId)\r\n .map((item) => item.medicineAmount)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return radicado.medicineAmount - delivered;\r\n};\r\n\r\nconst FormCRU = ({\r\n rowObj,\r\n impactId,\r\n openCRU,\r\n handleRequestClose,\r\n radicadoOLFList,\r\n handleCreateUpdate,\r\n deliveryList,\r\n setDeliveryList,\r\n readOnly,\r\n}) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const [file, setFile] = useState(null);\r\n const [incompleteDeliveryAlert, setIncompleteDeliveryAlert] = useState({\r\n isAlert: false,\r\n radicadoAmount: 0,\r\n deliveryAmount: 0,\r\n });\r\n const [deliveryDetailList, setDeliveryDetailList] = useState([]);\r\n\r\n const msgFileValidation = IntlGetText(\"medicineDelivery.fileValidation\");\r\n const msgMedicineAmountValid = IntlGetText(\"medicineDelivery.medicineAmountValid\");\r\n\r\n const defaultValues = {\r\n deliveryDate: null,\r\n radicadoLogisticOperatorId: \"\",\r\n medicineAmount: \"\",\r\n commentAlert: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n deliveryDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n radicadoLogisticOperatorId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n medicineAmount: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n commentAlert: yup\r\n .string()\r\n .when(\"radicadoLogisticOperatorId\", (radicadoId) => {\r\n if (incompleteDeliveryAlert.isAlert) {\r\n return yup\r\n .string()\r\n .required();\r\n }\r\n }),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, watch, errors } = methods;\r\n\r\n const radicadoLogisticOperatorIdValue = watch(\"radicadoLogisticOperatorId\");\r\n const medicineAmountValue = watch(\"medicineAmount\");\r\n\r\n const incompleteAlert = () => {\r\n var radicadoAmount = 0;\r\n if (\r\n radicadoLogisticOperatorIdValue &&\r\n radicadoLogisticOperatorIdValue.value\r\n ) {\r\n var radicado = radicadoOLFList.find(\r\n (x) => x.id == radicadoLogisticOperatorIdValue.value\r\n );\r\n radicadoAmount = radicado.medicineAmount;\r\n }\r\n\r\n var deliveryAmount = 0;\r\n if (medicineAmountValue) deliveryAmount = medicineAmountValue;\r\n\r\n const isEdit = rowObj && rowObj.medicineAmount == deliveryAmount;\r\n setIncompleteDeliveryAlert({\r\n radicadoAmount,\r\n deliveryAmount,\r\n isAlert:\r\n radicadoAmount > 0 && deliveryAmount > 0 && !isEdit\r\n ? deliveryAmount < radicadoAmount\r\n : false,\r\n });\r\n };\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n if (!event) {\r\n setValue(name, null);\r\n return;\r\n }\r\n setValue(name, event);\r\n if (!rowObj || rowObj.id == 0) {\r\n setValue(\r\n \"medicineAmount\",\r\n getMedicineAmount(radicadoOLFList, event.value, deliveryList)\r\n );\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU, rowObj]);\r\n\r\n useEffect(() => incompleteAlert(), [\r\n radicadoLogisticOperatorIdValue,\r\n medicineAmountValue,\r\n rowObj,\r\n ]);\r\n\r\n const loadData = () => {\r\n setValue(\"deliveryDate\", !rowObj || !rowObj.deliveryDate ? null : dayjs(rowObj.deliveryDate));\r\n setValue(\r\n \"radicadoLogisticOperatorId\",\r\n !rowObj\r\n ? \"\"\r\n : getCboValue(\r\n getItemList(radicadoOLFList),\r\n rowObj.radicadoLogisticOperatorId\r\n )\r\n );\r\n setValue(\"medicineAmount\", !rowObj ? \"\" : rowObj.medicineAmount);\r\n setDeliveryDetailList(!rowObj ? [] : rowObj.medicineDeliveryDetail);\r\n setFile(!rowObj ? null : rowObj.filePath);\r\n };\r\n\r\n const updateFileInObj = (objId,file) =>{\r\n let index = deliveryList.findIndex((x)=> x.id === objId);\r\n let data = [...deliveryList];\r\n data[index] = {...data[index], filePath: file};\r\n\r\n setDeliveryList(data); \r\n };\r\n\r\n const resetIdsNewItems = (dataList) =>{\r\n return dataList.map(x=>{\r\n if(!Number(x.id)){\r\n x.id = 0;\r\n }\r\n return x;\r\n });\r\n };\r\n const onSubmit = async (d, e) => {\r\n const elementFile = document.getElementById(\"fm-file\");\r\n if(elementFile && elementFile.value){\r\n NotificationManager.warning(msgFileValidation);\r\n return;\r\n }\r\n if(Number(d.medicineAmount) !== deliveryDetailList.length){\r\n NotificationManager.warning(msgMedicineAmountValid);\r\n return;\r\n }\r\n\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: impactId,\r\n deliveryDate: !d.deliveryDate ? null : dayjs(d.deliveryDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n radicadoLogisticOperatorId: Number(d.radicadoLogisticOperatorId.value),\r\n medicineAmount: Number(d.medicineAmount),\r\n commentAlert: d.commentAlert,\r\n medicineDeliveryDetail: resetIdsNewItems(deliveryDetailList)\r\n };\r\n await handleCreateUpdate(obj);\r\n };\r\n\r\n const allowEdit = () => {\r\n if (!rowObj || !rowObj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return rowObj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n\r\n const handleRequestClose2 = () => {\r\n setIncompleteDeliveryAlert({\r\n isAlert: false,\r\n radicadoAmount: 0,\r\n deliveryAmount: 0,\r\n });\r\n handleRequestClose();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={getItemList(radicadoOLFList)}\r\n value={radicadoLogisticOperatorIdValue}\r\n onChange={cboHandleChange(\"radicadoLogisticOperatorId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {incompleteDeliveryAlert.isAlert && (\r\n \r\n

    \r\n \r\n

    \r\n
    \r\n )}\r\n {incompleteDeliveryAlert.isAlert && (\r\n \r\n \r\n }\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n
    \r\n \r\n
    \r\n {rowObj && (\r\n {\r\n setFile(file);\r\n updateFileInObj(rowObj.id, file);\r\n }}\r\n actionApi={postAddFileMedicineDelivery}\r\n actionApiInfo={{ impactId, id: rowObj.id }}\r\n />\r\n )}\r\n {!disabled && (\r\n
    \r\n \r\n \r\n \r\n
    \r\n )}\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCRU;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"radicadoOLF.pendDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"radicadoMedicineAmount\",\r\n label: IntlGetText(\"medicineDelivery.radMedicineAmount\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"medicineAmount\",\r\n label: IntlGetText(\"medicineDelivery.medAmountDlvr\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Tooltip,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard\";\r\nimport DialogAlert from \"components/Form/DialogAlert\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n callActionApi,\r\n getRadicadoOLFList,\r\n getMedicineDeliveryList,\r\n postCreateUpdateMedicineDelivery,\r\n deleteMedicineDelivery,\r\n postGenerateAlert\r\n} from \"api/apiList\";\r\nimport { setPrescriptionState } from \"actions/Management\";\r\nimport { callStartImpact,callReloadAlerts } from \"actions/Impact\";\r\nimport { PrescripStateEnum, RadicadoLogisticOperatorState } from \"constants/Enums\";\r\n\r\nconst existDeliveriesInImpact = (impactId, deliveries) =>\r\n deliveries.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst MedicineDeliveryDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const [radicadoOLFList, setRadicadoOLFList] = useState([]);\r\n const [deliveryList, setDeliveryList] = useState([]);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [openDlgNoRadicado, setOpenDlgNoRadicado] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => {\r\n callApi(\r\n () => getRadicadoOLFList(selectedPrescription.id),\r\n (data) => {\r\n setRadicadoOLFList(data);\r\n setOpenCRU(true);\r\n }\r\n );\r\n };\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getMedicineDeliveryList(selectedPrescription.id),\r\n (data) => {\r\n setDeliveryList(data.deliveriesList);\r\n }\r\n );\r\n }, []);\r\n\r\n const generateIncompleteDeliveryAlert = (comment) => {\r\n callApi(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.incompleteDelivery,\r\n comment,\r\n }),\r\n () => {\r\n dispatch(setPrescriptionState(PrescripStateEnum.incompleteDelivery));\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n const handleCreateUpdate = async (data) => {\r\n var isNew = data.id == 0;\r\n await callApiAsync(\r\n () => postCreateUpdateMedicineDelivery(data),\r\n (response) => {\r\n setDeliveryList(response.deliveriesList);\r\n if (response.formulaAmount == response.totalDeliveries) {\r\n } else if (\r\n isNew &&\r\n selectedPrescription.stateId == PrescripStateEnum.deliveryNotMade\r\n ) {\r\n dispatch(setPrescriptionState(PrescripStateEnum.delivered));\r\n }\r\n \r\n if(data.commentAlert)\r\n generateIncompleteDeliveryAlert(data.commentAlert);\r\n //if(isNew){\r\n var objId = data.id > 0 ? data.id : Math.max(...response.deliveriesList.map(x=>x.id));\r\n setCurrentRowObj(response.deliveriesList.find(x=>x.id == objId));\r\n //}\r\n NotificationManager.success(msgSuccess);\r\n }\r\n );\r\n };\r\n\r\n const removeItem = (list, itemId) => {\r\n let index = list.findIndex((x) => x.id === itemId);\r\n let data = [...list];\r\n data.splice(index, 1);\r\n return data;\r\n };\r\n const handleDelete = () => {\r\n callActionApi(\r\n () => deleteMedicineDelivery(currentRowObj.id),\r\n () => {\r\n const data = removeItem(deliveryList, currentRowObj.id);\r\n setDeliveryList(data);\r\n handleRequestCloseDel();\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const handleClickNoRadicado = () => setOpenDlgNoRadicado(true);\r\n const handleRequestCloseDlgNoRadicado = () => setOpenDlgNoRadicado(false);\r\n const handleNoRadicado = (comment) => {\r\n callApi(\r\n () =>\r\n postGenerateAlert({\r\n prescriptionId: selectedPrescription.id,\r\n prescriptionState: PrescripStateEnum.deliveryNotMade,\r\n comment,\r\n }),\r\n () => {\r\n handleRequestCloseDlgNoRadicado();\r\n handleRequestClose();\r\n dispatch(setPrescriptionState(PrescripStateEnum.deliveryNotMade));\r\n dispatch(callReloadAlerts(true));\r\n }\r\n );\r\n };\r\n\r\n var readOnly = selectedPrescription.stateId == PrescripStateEnum.incompleteDelivery;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n { !readOnly && !existDeliveriesInImpact(\r\n selectedPrescription.impactId,\r\n deliveryList\r\n ) && (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n callBack={handleNoRadicado}\r\n closeDialog={handleRequestCloseDlgNoRadicado}\r\n />\r\n
    \r\n )}\r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n />\r\n (!x.hasDeliveries && x.state != RadicadoLogisticOperatorState.deliveryNotMade)\r\n || ( currentRowObj && x.id == currentRowObj.radicadoLogisticOperatorId) )}\r\n handleCreateUpdate={handleCreateUpdate}\r\n deliveryList={deliveryList}\r\n setDeliveryList={setDeliveryList}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MedicineDeliveryDialog;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({ data, setCurrentRowObj }) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n viewColumns: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.creationDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"userName\",\r\n label: IntlGetText(\"alert.userName\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"alert.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowInfo = tableMeta.tableData[tableMeta.rowIndex];\r\n if (\r\n dayjs(rowInfo.creationDate).format(\"YYYY/MM/DD\") !=\r\n dayjs().format(\"YYYY/MM/DD\")\r\n )\r\n return \"\";\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport TableComments from \"./TableComments\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getCommentsByAlert,\r\n postAddCommentToAlert,\r\n} from \"api/apiList\";\r\nimport { AlertStateList, AlertTypeList } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCRU = ({ rowObj, openCRU, handleRequestClose }) => {\r\n const alertStateList = AlertStateList();\r\n const alertTypeList = AlertTypeList();\r\n\r\n const [alertCommentList, setAlertCommentList] = useState([]);\r\n const [currentComment, setCurrentComment] = useState(null);\r\n\r\n const defaultValues = {\r\n userName: \"\",\r\n creationDate: null,\r\n alertType: \"\",\r\n comment: null,\r\n newComment: \"\",\r\n state: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n newComment: yup.string().required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const setEditComment = (objComment) => {\r\n setCurrentComment(objComment);\r\n setValue(\"newComment\", !objComment ? \"\" : objComment.comment);\r\n };\r\n\r\n const loadComments = (alertId) => {\r\n if (!alertId) return;\r\n callApi(() => getCommentsByAlert(alertId), setAlertCommentList);\r\n };\r\n\r\n const loadData = () => {\r\n setValue(\"userName\", !rowObj ? \"\" : rowObj.userName);\r\n setValue(\"creationDate\", !rowObj ? null : dayjs(rowObj.creationDate));\r\n setValue(\r\n \"alertType\",\r\n !rowObj ? \"\" : getCboValue(alertTypeList, rowObj.alertType)\r\n );\r\n setValue(\"comment\", !rowObj ? \"\" : rowObj.comment);\r\n setValue(\"state\", !rowObj ? \"\" : getCboValue(alertStateList, rowObj.state));\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU]);\r\n\r\n useEffect(() => loadComments(rowObj.id), [rowObj]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: currentComment ? currentComment.id : 0,\r\n alertId: rowObj.id,\r\n comment: d.newComment,\r\n alertState: Number(d.state.value),\r\n };\r\n await callApiAsync(\r\n () => postAddCommentToAlert(obj),\r\n () => {\r\n loadComments(rowObj.id);\r\n reset({ ...d, newComment: \"\" });\r\n setCurrentComment(null);\r\n }\r\n );\r\n };\r\n\r\n const disabled = false;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n name=\"comment\"\r\n disabled={true}\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={alertTypeList}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={alertStateList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n name=\"newComment\"\r\n required={true}\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCRU;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { AlertStateList, AlertTypeList, AlertStateEnum } from \"constants/Enums\";\r\n\r\nconst TableAM = ({ data, handleOpenCRU, setCurrentRowObj }) => {\r\n const alertTypeList = AlertTypeList();\r\n const alertStateList = AlertStateList();\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n viewColumns: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n\r\n const getAlertType = (item) => {\r\n if (!item) return \"\";\r\n return item.name;\r\n };\r\n\r\n const getColorByState = (state) => {\r\n if(state == AlertStateEnum.done)\r\n return \"bg-green text-white\";\r\n else if(state == AlertStateEnum.pending)\r\n return \"bg-red text-white\";\r\n\r\n return \"\";\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.creationDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"alertType\",\r\n label: IntlGetText(\"alert.alertType\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value == undefined || value == null\r\n ? \"\"\r\n : getAlertType(alertTypeList.find((x) => x.id == value));\r\n },\r\n },\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"alert.state\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value == undefined || value == null\r\n ? \"\"\r\n : alertStateList.find((x) => x.id == value).name;\r\n },\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"alert.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"userName\",\r\n label: IntlGetText(\"alert.userName\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className={\"jr-btn jr-btn-xs \"+getColorByState(rowObj.state)}\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport { \r\n callActionApi,\r\n getAlertList\r\n} from \"api/apiList\";\r\nimport { AlertStateEnum } from \"constants/Enums\";\r\nimport { callReloadAlerts } from \"actions/Impact\";\r\n\r\nconst AlertDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { reloadAlerts } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n const [alertList, setAlertList] = useState([]);\r\n \r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const loadAlerts = (prescriptionId) => {\r\n callApi(() => getAlertList(prescriptionId), setAlertList);\r\n };\r\n\r\n useEffect(() => loadAlerts(selectedPrescription.id), []);\r\n useEffect(() =>{\r\n if(reloadAlerts){\r\n loadAlerts(selectedPrescription.id);\r\n dispatch(callReloadAlerts(false));\r\n }\r\n },[reloadAlerts]);\r\n \r\n useEffect(() => {\r\n if (open) loadAlerts(selectedPrescription.id);\r\n }, [open]);\r\n\r\n const handleClickOpen = () => setOpen(true);\r\n \r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n loadAlerts(selectedPrescription.id);\r\n };\r\n \r\n const isAlertsDone = () => alertList.find(x=>x.state === AlertStateEnum.pending) === undefined;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AlertDialog;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { \r\n ProductBehavior, \r\n FormulaType,\r\n SupplyFrequencyList\r\n} from \"constants/Enums\";\r\n\r\n\r\nconst getCboValue = (items, id) => {\r\n if(typeof(id) == \"object\"){\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCRU =({ rowObj, impactId, openCRU, handleRequestClose, handleCreateUpdate, dosageInfo, readOnly, pendingInfusionRate })=>{\r\n const supplyFrequencyList = SupplyFrequencyList();\r\n \r\n const defaultValues = {\r\n dosageUnitId: \"\",\r\n supplyFrequency: \"\",\r\n quantity: \"\",\r\n infusionRate: \"\",\r\n startDate: null,\r\n patientWeight: \"0\",\r\n medicineConcentration: \"0\"\r\n };\r\n \r\n const validationSchema = {\r\n dosageUnitId: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n quantity: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n infusionRate: yup.number().when(\"dosageUnitId\", {\r\n is: dosageUnitId => !dosageInfo || dosageInfo.productBehaviorId === ProductBehavior.remodulin || dosageInfo.productBehaviorId === ProductBehavior.dacepton,\r\n then: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(0, IntlGetText(\"yup.numericValidation\"))\r\n .max(dosageInfo.productBehaviorId === ProductBehavior.remodulin ? 1 : 50000, IntlGetText(\"yup.invalidInput\"))\r\n .required()\r\n }),\r\n supplyFrequency: yup.object().when(\"dosageUnitId\", {\r\n is: (dosageUnit) => (!dosageInfo || (dosageInfo.formulaType === FormulaType.MIPRES &&\r\n dosageInfo.productBehaviorId !== ProductBehavior.remodulin &&\r\n dosageInfo.productBehaviorId !== ProductBehavior.dacepton)),\r\n then: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }),\r\n startDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const quantityValue = watch(\"quantity\");\r\n //const patientWeightValue = watch(\"patientWeight\");\r\n\r\n const calculateInfusionRate = () =>{\r\n if(!pendingInfusionRate && rowObj && rowObj.impactId !== impactId)\r\n return;\r\n\r\n if(!dosageInfo || !dosageInfo.patientWeight)\r\n return;\r\n\r\n const weight = rowObj && rowObj.patientWeight ? rowObj.patientWeight : dosageInfo.patientWeight;\r\n let infusionRate = (Number(quantityValue) * Number(weight) * 0.00006) / dosageInfo.medicineConcentration;\r\n infusionRate = Number(infusionRate.toFixed(3));\r\n setValue(\"infusionRate\",infusionRate);\r\n };\r\n\r\n useEffect(calculateInfusionRate,[quantityValue]);\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(()=>loadData(rowObj),150);\r\n }\r\n },[openCRU]);\r\n\r\n const getDosageUnitList = (info) => !info ? [] : info.dosageUnitList;\r\n\r\n const getWeight = (rowObj, dosageInfo) => {\r\n if(rowObj && rowObj.patientWeight)\r\n return rowObj.patientWeight;\r\n else{\r\n if(!dosageInfo || !dosageInfo.patientWeight)\r\n return \"\";\r\n\r\n if(!rowObj || pendingInfusionRate)\r\n return dosageInfo.patientWeight;\r\n }\r\n return \"\";\r\n };\r\n const loadData = (rowObj) => {\r\n setValue(\"dosageUnitId\", !rowObj ? (!dosageInfo ? \"\" : getCboValue(getDosageUnitList(dosageInfo), dosageInfo.dosageUnitId)) : getCboValue(getDosageUnitList(dosageInfo), rowObj.dosageUnitId));\r\n setValue(\"supplyFrequency\", !rowObj || !rowObj.supplyFrequency ? null : getCboValue(supplyFrequencyList,rowObj.supplyFrequency));\r\n setValue(\"infusionRate\", !rowObj || !rowObj.infusionRate ? \"\" : rowObj.infusionRate);\r\n setValue(\"quantity\", !rowObj || !rowObj.quantity ? \"\" : rowObj.quantity);\r\n setValue(\"startDate\", !rowObj || !rowObj.startDate ? null : dayjs(rowObj.startDate));\r\n \r\n setValue(\"medicineConcentration\", !dosageInfo || !dosageInfo.medicineConcentration ? \"0\" : dosageInfo.medicineConcentration);\r\n //setValue(\"patientWeight\", (!rowObj || !rowObj.patientWeight) ? ((!dosageInfo || !dosageInfo.patientWeight) ? \"0\" : dosageInfo.patientWeight) : rowObj.patientWeight\r\n setValue(\"patientWeight\", getWeight(rowObj, dosageInfo));\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n ...rowObj,\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: impactId,\r\n dosageUnitId: Number(d.dosageUnitId.value),\r\n supplyFrequency: d.supplyFrequency && d.supplyFrequency.value ? Number(d.supplyFrequency.value) : null,\r\n quantity: Number(d.quantity),\r\n infusionRate: Number(d.infusionRate),\r\n startDate: dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n patientWeight: Number(d.patientWeight),\r\n };\r\n await handleCreateUpdate(obj);\r\n };\r\n\r\n const disabled = pendingInfusionRate ? false : (rowObj && rowObj.impactId != impactId) || readOnly;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={getDosageUnitList(dosageInfo)}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {(!dosageInfo \r\n || dosageInfo.productBehaviorId === ProductBehavior.remodulin \r\n || dosageInfo.productBehaviorId === ProductBehavior.dacepton ) &&\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n {(!dosageInfo || dosageInfo.productBehaviorId === ProductBehavior.remodulin || dosageInfo.productBehaviorId === ProductBehavior.dacepton) &&\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n { (!dosageInfo || (dosageInfo.formulaType === FormulaType.MIPRES &&\r\n dosageInfo.productBehaviorId !== ProductBehavior.remodulin &&\r\n dosageInfo.productBehaviorId !== ProductBehavior.dacepton)) &&\r\n \r\n }\r\n options={supplyFrequencyList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n //disableFuture={true}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n export default FormCRU;","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol, dateColumn } from \"components/Form/Table\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n setCurrentRowObj,\r\n currentImpact,\r\n dosageInfo,\r\n showAddButton,\r\n readOnly,\r\n pendingInfusionRate,\r\n}) => {\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n const handleClick = (obj) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !obj ? null : obj\r\n );\r\n };\r\n const getRowObj = (tableMeta) => tableMeta.tableData[tableMeta.rowIndex];\r\n\r\n const isRemodulin = () => (dosageInfo && (dosageInfo.productBehaviorId === ProductBehavior.remodulin || dosageInfo.productBehaviorId === ProductBehavior.dacepton));\r\n\r\n const columns = [\r\n defaultCol(\"formulaCode\", \"formula.FormulaCode\"),\r\n dateColumn(\"formulaStartDate\", \"core.expeditionDate\"),\r\n defaultCol(\"durationTreatment\", \"formula.durationTreatment\"),\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"core.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"\",\r\n label: IntlGetText(\"core.dosage\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var obj = getRowObj(tableMeta);\r\n return obj.quantity +\" \"+ obj.dosageUnit;\r\n },\r\n },\r\n },\r\n {\r\n name: \"\",\r\n label: IntlGetText(isRemodulin() ? \"formula.infusionRate\": \"formula.supplyFrequency\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var obj = getRowObj(tableMeta);\r\n const colVal = isRemodulin() ? obj.infusionRate : obj.supplyFrequency;\r\n return (\r\n
    \r\n {!colVal ? \"\" : colVal}\r\n
    \r\n );\r\n } \r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => { \r\n var rowObj = getRowObj(tableMeta);\r\n if (!pendingInfusionRate && (rowObj.impactId != currentImpact || readOnly)) {\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && showAddButton && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport { \r\n callApiAsync,\r\n postCreateUpdateDosage\r\n} from \"api/apiList\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst pendingInfusionRate = (prescriptionId, dataList) => {\r\n const a = dataList.filter((x) => x.prescriptionId == prescriptionId);\r\n return (a.length == 1 && !a[0].infusionRate);\r\n}\r\n\r\nconst DosageDialog = ({open, handleRequestClose, loadDosage, dosageInfo}) =>{\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n \r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n \r\n useEffect(() => {\r\n if(open)\r\n loadDosage();\r\n }, [open]);\r\n\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n var isNew = data.id == 0;\r\n await callApiAsync(\r\n () => postCreateUpdateDosage(data),\r\n (newId) => {\r\n handleRequestCloseCRU();\r\n loadDosage();\r\n }\r\n );\r\n };\r\n\r\n const isRemodulin = (!dosageInfo \r\n || dosageInfo.productBehaviorId === ProductBehavior.remodulin \r\n || dosageInfo.productBehaviorId === ProductBehavior.dacepton );\r\n const pendingInfusion = !isRemodulin ? false : pendingInfusionRate(selectedPrescription.id, !dosageInfo || !dosageInfo.dosageList ? [] : dosageInfo.dosageList);\r\n const dosageInCurrentImpact = existItemsInImpact(selectedPrescription.impactId, !dosageInfo || !dosageInfo.dosageList ? [] : dosageInfo.dosageList);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DosageDialog;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Dialog from \"./Dialog\";\r\nimport { callActionApi, getDosageInfo } from \"api/apiList\";\r\nimport { callStartImpact, setReloadDosage } from \"actions/Impact\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst Dosage = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired, reloadDosageInfo } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n const msgWeightRequired = IntlGetText(\"impact.weightRequired\");\r\n\r\n const [open, setOpen] = useState(false);\r\n const [dosageInfo, setDosageInfo] = useState(null);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n \r\n const isRemodulin = (!dosageInfo \r\n || dosageInfo.productBehaviorId === ProductBehavior.remodulin \r\n || dosageInfo.productBehaviorId === ProductBehavior.dacepton );\r\n if (isRemodulin && dosageInfo && !dosageInfo.patientWeight ) {\r\n NotificationManager.warning(msgWeightRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const loadDosage = () => {\r\n callApi(\r\n () => getDosageInfo(selectedPrescription.id),\r\n (data) => {\r\n setDosageInfo(data);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadDosage();\r\n }, []);\r\n \r\n useEffect(() => {\r\n if(reloadDosageInfo){\r\n loadDosage();\r\n dispatch(setReloadDosage(false));\r\n }\r\n }, [reloadDosageInfo]);\r\n\r\n const handleRequestClose = () => setOpen(false);\r\n\r\n return (\r\n
    \r\n \r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Dosage;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAdverseEventByClinicalFinding,\r\n postAdverseEventPartialSave\r\n} from \"api/apiList\";\r\nimport { \r\n ProductBehavior, \r\n FormulaType,\r\n ForeamSeriousnessList,\r\n ForeamDenouementList,\r\n YesNoNotKnowList,\r\n YesNoNAList,\r\n AdverseEventStateEnum\r\n} from \"constants/Enums\";\r\n\r\nconst GetQuestionYesNo = () =>{\r\n const questionKeys = [1, 2, 3, 4, 5];\r\n return questionKeys.map(x => ({\r\n id: x,\r\n answer: null,\r\n name: \"questionYesNo\"+x,\r\n label: IntlGetText(\"foream.questionYesNo.q\"+x)\r\n }));\r\n};\r\n\r\nconst getReactionList = () =>{\r\n const reactionKeys = [1, 2, 3, 4, 5, 6];\r\n return reactionKeys.map(x => ({\r\n id: x,\r\n answer: false,\r\n name: \"reaction\"+x,\r\n label: IntlGetText(\"cioms.reaction\"+x)\r\n }));\r\n};\r\n\r\nconst Farmacovigilance = ({obj}) =>{ \r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const foreamSeriousnessList = ForeamSeriousnessList();\r\n const foreamDenouementList = ForeamDenouementList();\r\n const yesNoNotKnowList = YesNoNotKnowList();\r\n const yesNoNAList = YesNoNAList();\r\n\r\n const questionsYesNo = GetQuestionYesNo();\r\n const reactionList = getReactionList();\r\n\r\n const [adverseEvent, setAdverseEvent] = useState(null);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n let defaultValues = { \r\n creationDate: null,\r\n adverseEventType: \"\",\r\n dosage: \"\",\r\n infusionRate: \"\",\r\n supplyFrequency: \"\",\r\n adverseEventStartDate: null,\r\n descriptionAdverseEvent: \"\",\r\n denouement: null,\r\n seriousness: null,\r\n //questionsYesNo:\r\n //adverseReaction:\r\n reactionDecreased:null,\r\n reactionReappeared:null,\r\n anotherRelevantStory:\"\"\r\n };\r\n\r\n questionsYesNo.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n reactionList.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, setValue, errors } = methods;\r\n \r\n\r\n const loadData = (adverseEvent) => {\r\n setAdverseEvent(adverseEvent);\r\n setValue(\"creationDate\", !adverseEvent || !adverseEvent.creationDate ? null : dayjs(adverseEvent.creationDate));\r\n setValue(\"adverseEventType\", !adverseEvent || !adverseEvent.adverseEventType? \"\" : adverseEvent.adverseEventType);\r\n setValue(\"dosage\", !adverseEvent || !adverseEvent.dosage ? \"\" : adverseEvent.dosage);\r\n setValue(\"infusionRate\", !adverseEvent || !adverseEvent.infusionRate ? \"\" : adverseEvent.infusionRate);\r\n setValue(\"supplyFrequency\", !adverseEvent || !adverseEvent.supplyFrequency ? \"\" : adverseEvent.supplyFrequency);\r\n\r\n setValue(\"adverseEventStartDate\", !adverseEvent || !adverseEvent.adverseEventStartDate ? null : dayjs(adverseEvent.adverseEventStartDate));\r\n setValue(\"descriptionAdverseEvent\", !adverseEvent || !adverseEvent.descriptionAdverseEvent ? \"\" : adverseEvent.descriptionAdverseEvent);\r\n \r\n const pharmacovigilance = !adverseEvent ? null : adverseEvent.pharmacovigilance;\r\n setValue(\"denouement\", !pharmacovigilance ? \"\" : getCboValue(foreamDenouementList, pharmacovigilance.denouement));\r\n setValue(\"seriousness\", !pharmacovigilance ? \"\" : getCboValue(foreamSeriousnessList, pharmacovigilance.seriousness));\r\n if(pharmacovigilance && pharmacovigilance.questionsYesNo){\r\n pharmacovigilance.questionsYesNo.map((x)=>{\r\n setValue(\"questionYesNo\"+x.id, getCboValue(yesNoNotKnowList, x.answer));\r\n });\r\n }\r\n if(pharmacovigilance && pharmacovigilance.adverseReaction){\r\n pharmacovigilance.adverseReaction.map((x)=>{\r\n setValue(\"reaction\"+x, true);\r\n });\r\n }\r\n setValue(\"reactionDecreased\", !pharmacovigilance ? \"\" : getCboValue(yesNoNAList, pharmacovigilance.reactionDecreased));\r\n setValue(\"reactionReappeared\", !pharmacovigilance ? \"\" : getCboValue(yesNoNAList, pharmacovigilance.reactionReappeared));\r\n setValue(\"anotherRelevantStory\", !pharmacovigilance || !pharmacovigilance.anotherRelevantStory ? \"\" : pharmacovigilance.anotherRelevantStory);\r\n };\r\n\r\n useEffect(()=>{\r\n if(obj && obj.adverseEvent){\r\n callApi(\r\n ()=>getAdverseEventByClinicalFinding(obj.id),\r\n (data)=>loadData(data)\r\n );\r\n }\r\n },[obj]);\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const onSubmit = async (d, e) => {\r\n let result0 = !adverseEvent ? {} : {...adverseEvent};\r\n var result = { \r\n ...result0,\r\n adverseEventType: \"\",\r\n dosage: \"\",\r\n infusionRate: \"\",\r\n supplyFrequency: \"\",\r\n adverseEventStartDate: !d.adverseEventStartDate ? null : dayjs(d.adverseEventStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n descriptionAdverseEvent: d.descriptionAdverseEvent \r\n };\r\n result.pharmacovigilance.denouement = !d.denouement ? null : Number(d.denouement.value);\r\n result.pharmacovigilance.seriousness = !d.seriousness ? null : Number(d.seriousness.value);\r\n result.pharmacovigilance.reactionDecreased = !d.reactionDecreased ? null : Number(d.reactionDecreased.value);\r\n result.pharmacovigilance.reactionReappeared = !d.reactionReappeared ? null : Number(d.reactionReappeared.value);\r\n result.pharmacovigilance.anotherRelevantStory = d.anotherRelevantStory; \r\n\r\n const questionsYesNoAnswered = questionsYesNo.map((x)=>({\r\n id: x.id,\r\n answer: !d[x.name] ? null : Number(d[x.name].value)\r\n }));\r\n result.pharmacovigilance.questionsYesNo = questionsYesNoAnswered.filter(x=>x.answer !== null);\r\n\r\n const reactionsSelected = reactionList.map((x)=>{\r\n if(d[x.name])\r\n return x.id;\r\n });\r\n result.pharmacovigilance.adverseReaction = reactionsSelected.filter(x=>x !== undefined);\r\n\r\n await callApiAsync(\r\n ()=> postAdverseEventPartialSave(result),\r\n ()=> NotificationManager.success(msgSuccess),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const disabled = !(adverseEvent && (adverseEvent.status === AdverseEventStateEnum.pending || adverseEvent.status === AdverseEventStateEnum.inconsistentReport));\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n {(!obj || obj.productBehaviorId === ProductBehavior.remodulin || obj.productBehaviorId === ProductBehavior.dacepton ) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n { (!obj || (obj.formulaType === FormulaType.MIPRES &&\r\n obj.productBehaviorId !== ProductBehavior.remodulin &&\r\n obj.productBehaviorId !== ProductBehavior.dacepton)) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n options={foreamDenouementList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreamSeriousnessList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {questionsYesNo.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n \r\n {reactionList.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n
    \r\n {!disabled && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default Farmacovigilance","import React from 'react';\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport Switch from '@material-ui/core/Switch';\r\nimport Grid from '@material-ui/core/Grid';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport IntlMessages from \"util/IntlMessages\";\r\n\r\n//https://jumbo.g-axon.work/components/mui/switch\r\n\r\nconst AntSwitch = withStyles(theme => ({\r\n root: {\r\n width: 28,\r\n height: 16,\r\n padding: 0,\r\n display: 'flex',\r\n },\r\n switchBase: {\r\n padding: 2,\r\n color: theme.palette.grey[500],\r\n '&$checked': {\r\n transform: 'translateX(12px)',\r\n color: theme.palette.common.white,\r\n '& + $track': {\r\n opacity: 1,\r\n backgroundColor: theme.palette.primary.main,\r\n borderColor: theme.palette.primary.main,\r\n },\r\n },\r\n },\r\n thumb: {\r\n width: 12,\r\n height: 12,\r\n boxShadow: 'none',\r\n },\r\n track: {\r\n border: `1px solid ${theme.palette.grey[500]}`,\r\n borderRadius: 16 / 2,\r\n opacity: 1,\r\n backgroundColor: theme.palette.background.paper,\r\n },\r\n checked: {},\r\n }))(Switch);\r\n\r\nexport function SwitchYesNo(props) {\r\n const { control } = useFormContext();\r\n let { name, label, className, ...swProps } = props;\r\n className = !className ? \"ml-3\" : className;\r\n\r\n return (\r\n (\r\n \r\n \r\n \r\n \r\n onChange(e.target.checked)}\r\n checked={value}\r\n {...swProps}\r\n />\r\n \r\n \r\n \r\n \r\n )}\r\n />\r\n }\r\n />\r\n );\r\n};\r\n\r\nexport default SwitchYesNo;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { SwitchYesNo } from \"components/Form/Controls/switchYesNo\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAdverseEventByClinicalFinding,\r\n postAdverseEventPartialSave\r\n} from \"api/apiList\";\r\nimport { \r\n ProductBehavior, \r\n FormulaType,\r\n ForeiaDetectionList,\r\n ForeiaClassificationList,\r\n ForeiaDenouementList,\r\n AdverseEventStateEnum,\r\n ForeiaDenouementEnum\r\n} from \"constants/Enums\";\r\n\r\nconst Technovigilance = ({obj}) =>{\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n \r\n const [adverseEvent, setAdverseEvent] = useState(null);\r\n\r\n const foreiaDetectionList = ForeiaDetectionList();\r\n const foreiaClassificationList = ForeiaClassificationList();\r\n const foreiaDenouementList = ForeiaDenouementList();\r\n \r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = { \r\n creationDate: null,\r\n adverseEventType: \"\",\r\n dosage: \"\",\r\n eventDate: \"\",\r\n infusionRate: \"\",\r\n supplyFrequency: \"\",\r\n\r\n adverseEventStartDate: null,\r\n descriptionAdverseEvent: \"\",\r\n\r\n operatingArea: \"\",\r\n usedMoreThanOnce: false,\r\n detection: null,\r\n classification: null,\r\n denouement: null,\r\n denouementOther: \"\",\r\n actions: \"\",\r\n reportedToManufacturer: false,\r\n reportedToManufacturerDate: null,\r\n availableForEvaluation: false,\r\n sentToManufacturer: false,\r\n sentToManufacturerDate: null,\r\n authorizesDisclosure: false\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, setValue, watch, errors } = methods;\r\n\r\n const reportedToManufacturerValue = watch(\"reportedToManufacturer\");\r\n const sentToManufacturerValue = watch(\"sentToManufacturer\");\r\n const denouementValue = watch(\"denouement\");\r\n\r\n useEffect(()=>{\r\n if(!reportedToManufacturerValue)\r\n setValue(\"reportedToManufacturerDate\", null);\r\n },[reportedToManufacturerValue]);\r\n useEffect(()=>{\r\n if(!sentToManufacturerValue)\r\n setValue(\"sentToManufacturerDate\", null);\r\n },[sentToManufacturerValue]);\r\n useEffect(()=>{\r\n if(!denouementValue || denouementValue.value !== ForeiaDenouementEnum.other)\r\n setValue(\"denouementOther\", \"\");\r\n },[denouementValue]);\r\n\r\n const loadData = (data) => {\r\n setAdverseEvent(data);\r\n setValue(\"creationDate\", !data || !data.creationDate ? null : dayjs(data.creationDate));\r\n setValue(\"adverseEventType\", !data || !data.adverseEventType? \"\" : data.adverseEventType);\r\n setValue(\"dosage\", !data || !data.dosage ? \"\" : data.dosage);\r\n setValue(\"infusionRate\", !data || !data.infusionRate ? \"\" : data.infusionRate);\r\n setValue(\"supplyFrequency\", !data || !data.supplyFrequency ? \"\" : data.supplyFrequency);\r\n \r\n setValue(\"adverseEventStartDate\", !data || !data.adverseEventStartDate ? null : dayjs(data.adverseEventStartDate));\r\n setValue(\"descriptionAdverseEvent\", !data || !data.descriptionAdverseEvent ? \"\" : data.descriptionAdverseEvent);\r\n \r\n const obj = !data ? null : data.technovigilance;\r\n setValue(\"operatingArea\", !obj || !obj.operatingArea ? \"\" : obj.operatingArea);\r\n setValue(\"usedMoreThanOnce\", !obj || !obj.usedMoreThanOnce ? false : obj.usedMoreThanOnce);\r\n setValue(\"detection\", !obj ? \"\" : getCboValue(foreiaDetectionList, obj.detection));\r\n setValue(\"classification\", !obj ? \"\" : getCboValue(foreiaClassificationList, obj.classification));\r\n setValue(\"denouement\", !obj ? \"\" : getCboValue(foreiaDenouementList, obj.denouement));\r\n setValue(\"denouementOther\", !obj || !obj.denouementOther ? \"\" : obj.denouementOther);\r\n setValue(\"actions\", !obj || !obj.actions ? \"\" : obj.actions);\r\n setValue(\"reportedToManufacturer\", !obj || !obj.reportedToManufacturer ? false : obj.reportedToManufacturer);\r\n setValue(\"reportedToManufacturerDate\", !obj || !obj.reportedToManufacturerDate ? null : dayjs(obj.reportedToManufacturerDate));\r\n setValue(\"availableForEvaluation\", !obj || !obj.availableForEvaluation ? false : obj.availableForEvaluation);\r\n setValue(\"sentToManufacturer\", !obj || !obj.sentToManufacturer ? false : obj.sentToManufacturer);\r\n setValue(\"sentToManufacturerDate\", !obj || !obj.sentToManufacturerDate ? null : dayjs(obj.sentToManufacturerDate));\r\n setValue(\"authorizesDisclosure\", !obj || !obj.authorizesDisclosure ? false : obj.authorizesDisclosure);\r\n };\r\n\r\n useEffect(()=>{\r\n if(obj && obj.adverseEvent){\r\n callApi(\r\n ()=>getAdverseEventByClinicalFinding(obj.id),\r\n (data)=>loadData(data),\r\n fnSetLoader\r\n );\r\n }\r\n },[obj]);\r\n\r\n const onSubmit = async (d, e) => {\r\n let result0 = !adverseEvent ? {} : {...adverseEvent};\r\n var result = {\r\n ...result0,\r\n adverseEventStartDate: !d.adverseEventStartDate ? null : dayjs(d.adverseEventStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n descriptionAdverseEvent: d.descriptionAdverseEvent,\r\n \r\n technovigilance: {\r\n operatingArea: d.operatingArea,\r\n usedMoreThanOnce: d.usedMoreThanOnce,\r\n detection: !d.detection? null : Number(d.detection.value),\r\n classification: !d.classification? null : Number(d.classification.value),\r\n denouement: !d.denouement? null : Number(d.denouement.value),\r\n denouementOther: d.denouementOther,\r\n actions: d.actions,\r\n reportedToManufacturer: d.reportedToManufacturer,\r\n reportedToManufacturerDate: !d.reportedToManufacturerDate ? null : dayjs(d.reportedToManufacturerDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n availableForEvaluation: d.availableForEvaluation,\r\n sentToManufacturer: d.sentToManufacturer,\r\n sentToManufacturerDate: !d.sentToManufacturerDate ? null : dayjs(d.sentToManufacturerDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n authorizesDisclosure: d.authorizesDisclosure\r\n }\r\n }; \r\n\r\n await callApiAsync(\r\n ()=> postAdverseEventPartialSave(result),\r\n ()=> NotificationManager.success(msgSuccess),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const disabled = !(adverseEvent && (adverseEvent.status === AdverseEventStateEnum.pending || adverseEvent.status === AdverseEventStateEnum.inconsistentReport));\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n {(!obj || obj.productBehaviorId === ProductBehavior.remodulin || obj.productBehaviorId === ProductBehavior.dacepton ) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n { (!obj || (obj.formulaType === FormulaType.MIPRES &&\r\n obj.productBehaviorId !== ProductBehavior.remodulin &&\r\n obj.productBehaviorId !== ProductBehavior.dacepton)) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={2}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n options={foreiaDetectionList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreiaClassificationList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreiaDenouementList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={!(disabled || !denouementValue || denouementValue.value !== ForeiaDenouementEnum.other)}\r\n disabled={disabled || !denouementValue || denouementValue.value !== ForeiaDenouementEnum.other}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={3}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled || !reportedToManufacturerValue}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled || !sentToManufacturerValue}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {!disabled && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default Technovigilance;","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableComment = ({ data, setCurrentRowObj, currentImpact, readOnly }) => {\r\n const textYes = IntlGetText(\"core.yes\");\r\n const textNo = IntlGetText(\"button.no\");\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n viewColumns: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n \r\n const handleClick = (obj) => {\r\n setCurrentRowObj(\r\n !obj ? null : obj\r\n );\r\n };\r\n const getRowObj = (tableMeta) => tableMeta.tableData[tableMeta.rowIndex];\r\n\r\n const columns = [\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.creationDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"alert.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"contactDoctor\",\r\n label: IntlGetText(\"clinicalFindingState.contactDoctor\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? textYes : textNo;\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => { \r\n var rowObj = getRowObj(tableMeta);\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return \"\";\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableComment;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport TableComments from \"./TableComments\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { updateSelectedPrescription } from \"actions/Management\";\r\nimport { isOnlyTracing, isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getCommentsByClinicalFinding,\r\n postAddCommentToClinicalFinding,\r\n getPatientStateList\r\n} from \"api/apiList\";\r\nimport { \r\n ClinicalFindingStateList,\r\n ClinicalFindingStateEnum,\r\n PatientStateList,\r\n PatientStateEnum,\r\n MedicalSuspensionReasonList,\r\n ProductBehavior\r\n} from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormDetail = ({ rowObj, impactId, openCRU, reloadData, readOnly, selectedPrescription }) => {\r\n const dispatch = useDispatch();\r\n const [commentList, setCommentList] = useState([]);\r\n const [currentComment, setCurrentComment] = useState(null);\r\n const [reloadWhenClosing, setReloadWhenClosing] = useState(false);\r\n const [patientStates, setPatientStates] = useState([]);\r\n\r\n const clinicalFindingStateList = ClinicalFindingStateList();\r\n\r\n const isJaasModuleConfig = isJaasModule();\r\n const isOnlyTrace = isOnlyTracing();\r\n let patientStateList = [];\r\n\r\n useEffect(() => {\r\n callApi(\r\n getPatientStateList,\r\n (data)=>{\r\n setPatientStates(data.states);\r\n }\r\n );\r\n }, []);\r\n\r\n if(isJaasModuleConfig){\r\n patientStateList = patientStates;\r\n }else {\r\n patientStateList = PatientStateList().filter(x=>\r\n x.id === PatientStateEnum.medicalSuspension || x.id === PatientStateEnum.death\r\n || x.id === PatientStateEnum.active || x.id === PatientStateEnum.suspension\r\n || x.id === PatientStateEnum.voluntarySuspension || x.id === PatientStateEnum.dropout || x.id === PatientStateEnum.formulated\r\n || x.id === PatientStateEnum.process\r\n );\r\n\r\n if(!isOnlyTrace)\r\n patientStateList = patientStateList.filter(x=>x.id !== PatientStateEnum.formulated);\r\n }\r\n\r\n let medicalSuspensionReasonList = MedicalSuspensionReasonList();\r\n \r\n const defaultValues = {\r\n comment: \"\",\r\n state: null,\r\n endDate: null,\r\n newComment: \"\",\r\n contactDoctor: false,\r\n patientState: null,\r\n medicalSuspensionReason : null\r\n };\r\n\r\n const validationSchema = {\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n newComment: yup.string().required(),\r\n endDate: yup.date()\r\n .nullable(true)\r\n .when(\"state\", {\r\n is: (state) => state && Number(state.value) === ClinicalFindingStateEnum.closed,\r\n then: yup.date()\r\n .nullable(true)\r\n .min( !rowObj ? dayjs() : dayjs(rowObj.startDate), IntlGetText(\"clinicalFindingState.DetailEndDateInvalid\"))\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n }),\r\n patientState: yup.object()\r\n .when(\"contactDoctor\", {\r\n is: (contactDoctor) => selectedPrescription.patient.state === PatientStateEnum.active,\r\n then: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }) \r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, reset, setValue, errors } = methods;\r\n\r\n const contactDoctorValue = watch(\"contactDoctor\");\r\n\r\n const setEditComment = (objComment) => {\r\n setCurrentComment(objComment);\r\n setValue(\"newComment\", !objComment ? \"\" : objComment.comment);\r\n setValue(\"contactDoctor\", !objComment ? false : objComment.contactDoctor);\r\n };\r\n\r\n const loadComments = (id) => {\r\n if (!id) return;\r\n callApi(() => getCommentsByClinicalFinding(id), setCommentList);\r\n };\r\n\r\n const loadData = () => {\r\n setValue(\"comment\", !rowObj || !rowObj.comment ? \"\" : rowObj.comment);\r\n setValue(\"endDate\", !rowObj || !rowObj.endDate ? null : dayjs(rowObj.endDate));\r\n setValue(\"state\", !rowObj ? null : getCboValue(clinicalFindingStateList, rowObj.state));\r\n setValue(\"patientState\", !selectedPrescription ? null : getCboValue(patientStateList, selectedPrescription.patient.state));\r\n };\r\n const medicalSuspensionReasonValue = watch(\"medicalSuspensionReason\");\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n if(!openCRU && reloadWhenClosing){\r\n reloadData();\r\n setReloadWhenClosing(false);\r\n }\r\n if(openCRU && !medicalSuspensionReasonValue){\r\n setTimeout(()=>\r\n setValue(\"medicalSuspensionReason\", !selectedPrescription ? null : getCboValue(medicalSuspensionReasonList, selectedPrescription.patient.medicalSuspensionReason)),\r\n 150\r\n );\r\n }\r\n }, [openCRU]);\r\n\r\n useEffect(() => loadComments(!rowObj ? null : rowObj.id), [rowObj]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: currentComment ? currentComment.id : 0,\r\n impactId: impactId,\r\n clinicalFindingId: rowObj.id,\r\n comment: d.newComment,\r\n contactDoctor: d.contactDoctor,\r\n\r\n state: Number(d.state.value),\r\n endDate: !d.endDate ? null : dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n patientState: !d.patientState ? null : Number(d.patientState.value)\r\n };\r\n await callApiAsync(\r\n () => postAddCommentToClinicalFinding(obj),\r\n () => {\r\n loadComments(rowObj.id);\r\n reset({ ...d, newComment: \"\", contactDoctor: false });\r\n setCurrentComment(null);\r\n if(obj.patientState === PatientStateEnum.medicalSuspension || obj.patientState === PatientStateEnum.death\r\n || obj.patientState === PatientStateEnum.suspension || obj.patientState === PatientStateEnum.voluntarySuspension \r\n || obj.patientState === PatientStateEnum.dropout || obj.patientState === PatientStateEnum.formulated \r\n || obj.patientState === PatientStateEnum.process){\r\n const prescription = {\r\n ...selectedPrescription,\r\n patient:{\r\n ...selectedPrescription.patient,\r\n state: obj.patientState\r\n }\r\n }\r\n dispatch(updateSelectedPrescription(prescription));\r\n }\r\n setReloadWhenClosing(true);\r\n }\r\n );\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const disabled = (rowObj && rowObj.state === ClinicalFindingStateEnum.closed) || readOnly;\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n disabled={true}\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={patientStateList}\r\n disabled={ (isOnlyTrace || isJaasModuleConfig) ? false : (disabled || selectedPrescription.patient.state !== PatientStateEnum.active) }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n { !isJaasModuleConfig && (watch(\"patientState\") && (watch(\"patientState\").value === PatientStateEnum.medicalSuspension)) && (\r\n \r\n }\r\n options={medicalSuspensionReasonList}\r\n margin=\"normal\"\r\n disabled={ disabled || selectedPrescription.patient.state !== PatientStateEnum.active }\r\n required={watch(\"patientState\") && (watch(\"patientState\").value === PatientStateEnum.medicalSuspension)}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={clinicalFindingStateList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n { !disabled &&\r\n \r\n }\r\n name=\"newComment\"\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n { !disabled &&\r\n \r\n }\r\n value={watch(\"contactDoctor\")}\r\n onChange={chkHandleChange(\"contactDoctor\")}\r\n />\r\n \r\n }\r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n { currentComment &&\r\n setEditComment(null)}\r\n variant=\"contained\"\r\n className=\"jr-btn ml-2\"\r\n >\r\n \r\n \r\n }\r\n
    \r\n }\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default FormDetail;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n callActionApi,\r\n getAdverseEventTypeList,\r\n postGenerateAdverseEvent\r\n} from \"api/apiList\";\r\nimport { ProductBehavior, AdverseEventTypeEnum } from \"constants/Enums\";\r\n\r\n\r\nconst DialogAdd = ({ open, dialogTitle, callBack, closeDialog }) => {\r\n const [adverseEventTypeList, setAdverseEventTypeList] = useState([]);\r\n\r\n const defaultValues = { adverseEventTypeId: null };\r\n const validationSchema = yup.object().shape({\r\n adverseEventTypeId: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n });\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors, reset } = methods;\r\n\r\n useEffect(()=>{\r\n callActionApi(\r\n getAdverseEventTypeList,\r\n setAdverseEventTypeList,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n },[])\r\n\r\n const onSubmit = async (data, e) => {\r\n await callBack(Number(data.adverseEventTypeId.value));\r\n };\r\n\r\n const handleRequestClose = () => {\r\n reset(defaultValues);\r\n closeDialog();\r\n };\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n }\r\n options={adverseEventTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst AddAdverseEvent = ({ obj, generateAdverseEventReload, customProductBehaviorId }) =>{ \r\n const [openDlg, setOpenDlg] = useState(false);\r\n\r\n const callBack = async (adverseEventTypeId) => {\r\n var item = {\r\n clinicalFindingId: obj.id,\r\n adverseEventTypeId\r\n };\r\n await callApiAsync(\r\n ()=>postGenerateAdverseEvent(item),\r\n ()=>generateAdverseEventReload(obj.id)\r\n );\r\n };\r\n\r\n const onClickHandler = async () => {\r\n if(customProductBehaviorId === ProductBehavior.remodulin || customProductBehaviorId === ProductBehavior.dacepton){\r\n setOpenDlg(true);\r\n return;\r\n }\r\n await callBack(AdverseEventTypeEnum.pharmacovigilance);\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n callBack={callBack}\r\n closeDialog={()=>setOpenDlg(false)}\r\n />\r\n
    \r\n );\r\n};\r\n\r\nexport default AddAdverseEvent;","import React, { useState } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Tabs, Tab } from \"@material-ui/core\";\r\nimport Pharmacovigilance from \"./AdverseEvent/Pharmacovigilance\";\r\nimport Technovigilance from \"./AdverseEvent/Technovigilance\";\r\nimport FormDetail from \"./FormDetail\";\r\nimport AddAdverseEvent from \"./AddAdverseEvent\";\r\nimport { isOnlyTracing } from \"app/routes/psp/services/userService\";\r\nimport { AdverseEventTypeEnum, AdverseEventStateEnum } from \"constants/Enums\";\r\n\r\nconst ComponentTabs = ({ children, ...props }) => {\r\n const { rowObj, generateAdverseEventReload, customProductBehaviorId } = props;\r\n\r\n const [currentTab, setCurrentTab] = useState(0); \r\n const handleChange = (event, value) => setCurrentTab(value);\r\n\r\n return (\r\n
    \r\n \r\n }\r\n />\r\n {rowObj && rowObj.adverseEvent && rowObj.adverseEventStatus !== AdverseEventStateEnum.annulled && }\r\n />\r\n }\r\n \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n
    \r\n
    \r\n {!isOnlyTracing() && rowObj && !rowObj.adverseEvent && \r\n \r\n }\r\n \r\n
    \r\n
    \r\n )}\r\n {currentTab === 1 && (\r\n
    \r\n
    \r\n {rowObj && rowObj.adverseEvent && rowObj.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance &&\r\n \r\n }\r\n {rowObj && rowObj.adverseEvent && rowObj.adverseEventTypeId === AdverseEventTypeEnum.technovigilance &&\r\n \r\n }\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default ComponentTabs;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport TabComponent from \"./Tabs\";\r\n\r\nconst Dlg = (props) => {\r\n const { openCRU, handleRequestClose, rowObj } = props;\r\n\r\n return(\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Dlg;","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { updateSelectedPrescription } from \"actions/Management\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { isOnlyTracing, isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postAddClinicalFinding,\r\n getPatientStateList\r\n} from \"api/apiList\";\r\nimport { \r\n ClinicalFindingTypeList, \r\n ClinicalFindingStateList,\r\n ClinicalFindingStateEnum,\r\n PatientStateList,\r\n MedicalSuspensionReasonList,\r\n PatientStateEnum,\r\n ShardKeyEnum\r\n} from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormAdd = ({ impactId, openDlgAdd, handleRequestClose, reloadData, selectedPrescription }) => {\r\n const dispatch = useDispatch();\r\n const isOnlyTrace = isOnlyTracing();\r\n\r\n const [patientStates, setPatientStates] = useState([]);\r\n const clinicalFindingTypeList = ClinicalFindingTypeList();\r\n const clinicalFindingStateList = ClinicalFindingStateList();\r\n const msgEndDate = IntlGetText(\"clinicalFindingState.endDateInvalid\") + IntlGetText(\"clinicalFinding.startDate\");\r\n\r\n useEffect(() => {\r\n callApi(\r\n getPatientStateList,\r\n (data)=>{\r\n setPatientStates(data.states);\r\n }\r\n );\r\n }, []);\r\n\r\n const isJaasModuleConfig = isJaasModule(); \r\n let patientStateList = [];\r\n \r\n if(isJaasModuleConfig){\r\n patientStateList = patientStates;\r\n }else {\r\n patientStateList = PatientStateList().filter(x=>\r\n x.id === PatientStateEnum.medicalSuspension || x.id === PatientStateEnum.death\r\n || x.id === PatientStateEnum.active || x.id === PatientStateEnum.suspension\r\n || x.id === PatientStateEnum.voluntarySuspension || x.id === PatientStateEnum.dropout || x.id === PatientStateEnum.formulated\r\n || x.id === PatientStateEnum.process\r\n );\r\n \r\n if(getUserInfo().shardKey !== ShardKeyEnum.ullkupuy || getUserInfo().shardKey !== ShardKeyEnum.phg)\r\n patientStateList = patientStateList.filter(x=>x.id !== PatientStateEnum.dropout);\r\n\r\n if(getUserInfo().shardKey !== ShardKeyEnum.phg){\r\n patientStateList = patientStateList.filter(x=>x.id !== PatientStateEnum.process);\r\n }\r\n\r\n if(!isOnlyTrace)\r\n patientStateList = patientStateList.filter(x=>x.id !== PatientStateEnum.formulated);\r\n }\r\n \r\n \r\n let medicalSuspensionReasonList = MedicalSuspensionReasonList();\r\n const defaultValues = { \r\n startDate: null,\r\n endDate: null,\r\n state: null,\r\n comment: \"\",\r\n contactDoctor: false,\r\n type: null,\r\n patientState: null,\r\n medicalSuspensionReason : null\r\n };\r\n\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n endDate: yup\r\n .date()\r\n .nullable(true)\r\n .min(yup.ref(\"startDate\"), msgEndDate)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .when(\"state\", {\r\n is: (state) => state && Number(state.value) === ClinicalFindingStateEnum.closed,\r\n then: yup\r\n .date()\r\n .nullable(true)\r\n .min(yup.ref(\"startDate\"), msgEndDate)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n }),\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n comment: yup.string().required(),\r\n type: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n patientState: yup.object()\r\n .when(\"contactDoctor\", {\r\n is: (contactDoctor) => selectedPrescription.patient.state === PatientStateEnum.active,\r\n then: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }) \r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const contactDoctorValue = watch(\"contactDoctor\");\r\n const patientStateValue = watch(\"patientState\"); \r\n const medicalSuspensionReasonValue = watch(\"medicalSuspensionReason\");\r\n useEffect(()=>{\r\n if(openDlgAdd && !patientStateValue){\r\n setTimeout(()=>\r\n setValue(\"patientState\", !selectedPrescription ? null : getCboValue(patientStateList, selectedPrescription.patient.state)),\r\n 150\r\n );\r\n }\r\n if(openDlgAdd && !medicalSuspensionReasonValue){\r\n setTimeout(()=>\r\n setValue(\"medicalSuspensionReason\", !selectedPrescription ? null : getCboValue(medicalSuspensionReasonList, selectedPrescription.patient.medicalSuspensionReason)),\r\n 150\r\n );\r\n }\r\n },[openDlgAdd]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n impactId: impactId,\r\n startDate: dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n endDate: !d.endDate ? null : dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n state: Number(d.state.value),\r\n comment: d.comment,\r\n contactDoctor: d.contactDoctor,\r\n type: Number(d.type.value),\r\n patientState: !d.patientState ? null : Number(d.patientState.value),\r\n medicalSuspensionReason: !isJaasModuleConfig && d.patientState && (d.patientState.value == PatientStateEnum.medicalSuspension) ? Number(d.medicalSuspensionReason.value) : null\r\n };\r\n await callApiAsync(\r\n () => postAddClinicalFinding(obj),\r\n () => { \r\n handleRequestClose();\r\n reloadData();\r\n const prescription = {\r\n ...selectedPrescription,\r\n patient:{\r\n ...selectedPrescription.patient,\r\n state: obj.patientState\r\n }\r\n }\r\n dispatch(updateSelectedPrescription(prescription));\r\n }\r\n );\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={patientStateList}\r\n disabled={ (isOnlyTrace || isJaasModuleConfig) ? false : selectedPrescription.patient.state !== PatientStateEnum.active}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n { !isJaasModuleConfig && (watch(\"patientState\") && (watch(\"patientState\").value === PatientStateEnum.medicalSuspension)) && (\r\n \r\n }\r\n options={medicalSuspensionReasonList}\r\n margin=\"normal\"\r\n required={watch(\"patientState\") && (watch(\"patientState\").value === PatientStateEnum.medicalSuspension)}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={clinicalFindingTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={clinicalFindingStateList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true} \r\n disablePast={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={contactDoctorValue}\r\n onChange={chkHandleChange(\"contactDoctor\")}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormAdd;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { ClinicalFindingTypeList, ClinicalFindingStateList } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDlgAdd,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly\r\n}) => {\r\n const clinicalFindingTypeList = ClinicalFindingTypeList();\r\n const clinicalFindingStateList = ClinicalFindingStateList();\r\n const textYes = IntlGetText(\"core.yes\");\r\n const textNo = IntlGetText(\"button.no\");\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (obj) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !obj ? null : obj\r\n );\r\n };\r\n const handleClickAdd = () => {\r\n handleOpenDlgAdd();\r\n setCurrentRowObj(null);\r\n };\r\n const getRowObj = (tableMeta) => tableMeta.tableData[tableMeta.rowIndex];\r\n\r\n const columns = [\r\n {\r\n name: \"type\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var type = clinicalFindingTypeList.find(x=>x.id === value);\r\n return !type ? \"\" : type.name;\r\n },\r\n },\r\n },\r\n {\r\n name: \"adverseEvent\",\r\n label: IntlGetText(\"core.adverseEvent\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? textYes : textNo;\r\n },\r\n },\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var state = clinicalFindingStateList.find(x=>x.id === value);\r\n return !state ? \"\" : state.name;\r\n },\r\n },\r\n },\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"clinicalFinding.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"clinicalFinding.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"core.description\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value;\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => { \r\n var rowObj = getRowObj(tableMeta);\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClickAdd()}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Dlg from \"./Dlg\";\r\nimport FormAdd from \"./FormAdd\";\r\nimport Table from \"./Table\";\r\nimport { callActionApi, getClinicalFinding } from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst ClinicalFinding = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [open, setOpen] = useState(false);\r\n const [clinicalFindingList, setClinicalFindingList] = useState([]);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDlgAdd, setOpenDlgAdd] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getClinicalFinding(selectedPrescription.id),\r\n (data) => {\r\n setClinicalFindingList(data);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadData();\r\n }, []);\r\n\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n\r\n const generateAdverseEventReload = (clinicalFindingId) => {\r\n callApi(\r\n () => getClinicalFinding(selectedPrescription.id),\r\n (data) => {\r\n setClinicalFindingList(data);\r\n setCurrentRowObj(data.find((x) => x.id == clinicalFindingId));\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n setOpenDlgAdd(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={false}\r\n />\r\n setOpenDlgAdd(false)}\r\n reloadData={loadData}\r\n selectedPrescription={selectedPrescription}\r\n /> \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ClinicalFinding;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { MoriskyOptionsQuestion8List, MoriskyOptionsQuestion8Enum } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if(typeof(id) == \"object\"){\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst getDefaultQuestions = () => [\r\n {questionKey: 1, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 2, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 3, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 4, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 5, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 6, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 7, id: 0, moriskySurveyId:0, answer: 0},\r\n {questionKey: 8, id: 0, moriskySurveyId:0, answer: null}\r\n];\r\n\r\nconst getItemValue = (item) => {\r\n if(item.answer === true)\r\n return true;\r\n if(item.answer === 1)\r\n return true;\r\n return false;\r\n};\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, readOnly}) => { \r\n const moriskyOptionsQuestion8List = MoriskyOptionsQuestion8List();\r\n\r\n let defaultValues = {\r\n comment: !obj || !obj.comment ? \"\" : obj.comment\r\n };\r\n let validationSchema = {\r\n comment: yup.string().required()\r\n };\r\n\r\n if(!obj){\r\n obj = { moriskySurveyDetail: getDefaultQuestions() };\r\n }\r\n\r\n obj.moriskySurveyDetail = obj.moriskySurveyDetail.map(item => {\r\n return {...item, name : IntlGetText(\"morisky.question\"+item.questionKey)};\r\n });\r\n\r\n obj.moriskySurveyDetail.map(item => {\r\n if (item.questionKey === 8) {\r\n defaultValues[\"item\" + item.questionKey] = null;\r\n validationSchema[\"item\" + item.questionKey] = yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n } else {\r\n defaultValues[\"item\" + item.questionKey] = getItemValue(item);\r\n }\r\n });\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n obj.moriskySurveyDetail.map(item => {\r\n if (item.questionKey === 8) {\r\n setValue(\"item\" + item.questionKey, \r\n getCboValue(moriskyOptionsQuestion8List,item.answer)\r\n );\r\n } else {\r\n setValue(\"item\" + item.questionKey,getItemValue(item));\r\n }\r\n });\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n const getItemAnswer=(d, item, itemData)=>{\r\n if (itemData.questionKey === 8) {\r\n return Number(d[item].value);\r\n } else {\r\n return d[item] === true ? 1 : 0 ;\r\n }\r\n };\r\n const onSubmit = async (d, e) => {\r\n var survey = {\r\n id: !obj || !obj.id ? 0 : obj.id,\r\n impactId: impactId,\r\n comment: d.comment\r\n };\r\n\r\n var questionList = [];\r\n var objKeys = Object.keys(d);\r\n objKeys.map((item, index) => {\r\n if(item === \"comment\")\r\n return;\r\n\r\n const itemId = Number(item.substr(4));\r\n \r\n let itemData = obj.moriskySurveyDetail.find(x => x.questionKey === itemId);\r\n questionList.push({\r\n ...itemData,\r\n answer: getItemAnswer(d, item, itemData)\r\n });\r\n });\r\n survey.moriskySurveyDetail = questionList;\r\n\r\n await handleCreateUpdate(survey);\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const allowEdit = () => {\r\n if (!obj || !obj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return obj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n {\r\n obj.moriskySurveyDetail.map((item, index) => {\r\n if (item.questionKey !== 8) {\r\n return (\r\n //\r\n \r\n \r\n \r\n );\r\n }\r\n })\r\n }\r\n \r\n x.questionKey === 8).name}\r\n options={moriskyOptionsQuestion8List}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"dosage\",\r\n label: IntlGetText(\"core.dosage\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"result\",\r\n label: IntlGetText(\"morisKySurvey.result\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"morisKySurvey.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getMoriskySurveyList,\r\n postCreateUpdateMoriskySurvey,\r\n deleteMoriskySurvey,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst MoriskySurvey = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [morisKySurveyList, setMorisKySurveyList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getMoriskySurveyList(selectedPrescription.id),\r\n setMorisKySurveyList\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateMoriskySurvey(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteMoriskySurvey(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MoriskySurvey;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, medicineList, readOnly}) => {\r\n const [currentMedicine, setCurrentMedicine] = useState(null);\r\n\r\n const getCurrent = (realConsumption, medicationLoss) => {\r\n let current = 0;\r\n current += !Number(realConsumption) ? 0 : Number(realConsumption);\r\n current += !Number(medicationLoss) ? 0 : Number(medicationLoss);\r\n return current;\r\n };\r\n const openingDateRequired = (medicineDeliveryDetailId) => {\r\n if(!medicineDeliveryDetailId) return false;\r\n const medicine = medicineList.find(x=>x.id === Number(medicineDeliveryDetailId.value));\r\n return medicine && medicine.realConsumption === 0 && medicine.medicationLoss === 0;\r\n };\r\n const endDateRequired = (medicineDeliveryDetailId, realConsumption, medicationLoss) => {\r\n if(!medicineDeliveryDetailId) return false;\r\n const medicine = medicineList.find(x=>x.id === Number(medicineDeliveryDetailId.value));\r\n if(!medicine) return false;\r\n\r\n const current = getCurrent(realConsumption, medicationLoss);\r\n return medicine.pharmaceuticalQuantity === (medicine.realConsumption + medicine.medicationLoss + current);\r\n };\r\n const realConsumptionInvalid = (medicineDeliveryDetailId) => {\r\n if(!medicineDeliveryDetailId) return false;\r\n const medicine = medicineList.find(x=>x.id === Number(medicineDeliveryDetailId.value));\r\n if(!medicine) return false;\r\n\r\n const current = getCurrent(realConsumptionValue, medicationLossValue);\r\n return medicine.pharmaceuticalQuantity < (medicine.realConsumption + medicine.medicationLoss + current);\r\n };\r\n const getConsumptionMax = () => {\r\n if(!currentMedicine) return 0;\r\n const medicine = currentMedicine;\r\n\r\n return medicine.pharmaceuticalQuantity - (medicine.realConsumption + medicine.medicationLoss);\r\n };\r\n\r\n const mgsMax = IntlGetText(\"medicineDelivery.consumptionValidation\");\r\n\r\n const defaultValues = { \r\n medicineDeliveryDetailId : null,\r\n realConsumption: \"\",\r\n medicationLoss: null,\r\n comment : \"\",\r\n openingDate: null,\r\n endDate: null,\r\n };\r\n const validationSchema = { \r\n medicineDeliveryDetailId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n realConsumption: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required()\r\n .nullable()\r\n .when(\"medicineDeliveryDetailId\", {\r\n is: (medicineDeliveryDetailId) => realConsumptionInvalid(medicineDeliveryDetailId),\r\n then: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .required()\r\n .max(getConsumptionMax(), IntlGetText(\"medicineDelivery.consumptionValidation\")+\" ${max}\")\r\n .nullable() \r\n }),\r\n medicationLoss: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(0, IntlGetText(\"yup.numericValidation\"))\r\n .nullable().transform((v, o) => o === '' ? null : v)\r\n .when(\"medicineDeliveryDetailId\", {\r\n is: (medicineDeliveryDetailId) => realConsumptionInvalid(medicineDeliveryDetailId),\r\n then: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .nullable().transform((v, o) => o === '' ? null : v)\r\n .max(getConsumptionMax(), IntlGetText(\"medicineDelivery.consumptionValidation\")+\" ${max}\")\r\n }),\r\n comment: yup.string().when(\"medicationLoss\", {\r\n is: medicationLoss => medicationLoss,\r\n then: yup.string().required()\r\n }),\r\n openingDate: yup.date().nullable().when(\"medicineDeliveryDetailId\", {\r\n is: medicineDeliveryDetailId => openingDateRequired(medicineDeliveryDetailId),\r\n then: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n }),\r\n endDate: yup.date().nullable().when([\"medicineDeliveryDetailId\",\"realConsumption\",\"medicationLoss\"], {\r\n is: (medicineDeliveryDetailId, realConsumption, medicationLoss) => endDateRequired(medicineDeliveryDetailId, realConsumption, medicationLoss),\r\n then: yup.date()\r\n .nullable()\r\n .min(yup.ref(\"openingDate\"), IntlGetText(\"medicineDelivery.endDateInvalid\"))\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n })\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const medicineDeliveryDetailIdValue = watch(\"medicineDeliveryDetailId\");\r\n const realConsumptionValue = watch(\"realConsumption\");\r\n const medicationLossValue = watch(\"medicationLoss\");\r\n\r\n useEffect(() => {\r\n if(!medicineDeliveryDetailIdValue){\r\n setValue(\"openingDate\", null);\r\n setValue(\"endDate\", null);\r\n return;\r\n }\r\n\r\n const item = medicineList.find(x=>x.id === medicineDeliveryDetailIdValue.value);\r\n setCurrentMedicine(item); \r\n setValue(\"openingDate\", !item || !item.openingDate ? null : dayjs(item.openingDate));\r\n setValue(\"endDate\", !item || !item.endDate ? null : dayjs(item.endDate));\r\n },[medicineDeliveryDetailIdValue]);\r\n\r\n const loadData = () => {\r\n setValue(\"medicineDeliveryDetailId\", !obj || !obj.medicineDeliveryDetailId ? \"\" : getCboValue(medicineList,obj.medicineDeliveryDetailId));\r\n setValue(\"realConsumption\", !obj || !obj.realConsumption ? \"\" : obj.realConsumption);\r\n setValue(\"medicationLoss\", !obj || !obj.medicationLoss ? \"\" : obj.medicationLoss);\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n setValue(\"openingDate\", !obj || !obj.openingDate ? null : dayjs(obj.openingDate));\r\n setValue(\"endDate\", !obj || !obj.endDate ? null : dayjs(obj.endDate));\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n const onSubmit = async (d, e) => {\r\n if(realConsumptionInvalid(d.medicineDeliveryDetailId)){\r\n const max = getConsumptionMax();\r\n var msg = mgsMax + max;\r\n NotificationManager.warning(msg);\r\n return;\r\n }\r\n var item = {\r\n id: !obj || !obj.id ? 0 : obj.id,\r\n impactId: impactId,\r\n medicineDeliveryDetailId : Number(d.medicineDeliveryDetailId.value),\r\n realConsumption: Number(d.realConsumption),\r\n medicationLoss: !d.medicationLoss ? null : Number(d.medicationLoss),\r\n comment : !d.comment ? null : d.comment,\r\n openingDate: !d.openingDate ? null : dayjs(d.openingDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n endDate: !d.endDate ? null : dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const allowEdit = () => {\r\n if (!obj || !obj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return obj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={medicineList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n disabled={disabled || !openingDateRequired(medicineDeliveryDetailIdValue)}\r\n required={true}\r\n errorobj={errors}\r\n /> \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\" \r\n //disablePast={true}\r\n disableFuture={true}\r\n disabled={disabled || !endDateRequired(medicineDeliveryDetailIdValue,realConsumptionValue, medicationLossValue)}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormRemodulin = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, medicineList, readOnly}) => {\r\n const [currentMedicine, setCurrentMedicine] = useState(null);\r\n\r\n const defaultValues = { \r\n medicineDeliveryDetailId : null,\r\n comment : \"\",\r\n openingDate: null\r\n };\r\n const validationSchema = { \r\n medicineDeliveryDetailId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(), \r\n comment: yup.string(),\r\n openingDate: yup.date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const medicineDeliveryDetailIdValue = watch(\"medicineDeliveryDetailId\");\r\n\r\n useEffect(() => {\r\n if(!medicineDeliveryDetailIdValue){\r\n setValue(\"openingDate\", null);\r\n return;\r\n }\r\n\r\n const item = medicineList.find(x=>x.id === medicineDeliveryDetailIdValue.value);\r\n setCurrentMedicine(item); \r\n setValue(\"openingDate\", !item || !item.openingDate ? null : dayjs(item.openingDate));\r\n },[medicineDeliveryDetailIdValue]);\r\n\r\n const loadData = () => {\r\n setValue(\"medicineDeliveryDetailId\", !obj || !obj.medicineDeliveryDetailId ? \"\" : getCboValue(medicineList,obj.medicineDeliveryDetailId));\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n setValue(\"openingDate\", !obj || !obj.openingDate ? null : dayjs(obj.openingDate));\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj || !obj.id ? 0 : obj.id,\r\n impactId: impactId,\r\n medicineDeliveryDetailId : Number(d.medicineDeliveryDetailId.value),\r\n comment : !d.comment ? null : d.comment,\r\n openingDate: dayjs(d.openingDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const allowEdit = () => {\r\n if (!obj || !obj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return obj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n\r\n const enableDate = () => {\r\n return disabled || ((obj && obj.impactId != impactId) || (!obj && currentMedicine && currentMedicine.openingDate));\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={medicineList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n disabled={enableDate() ? true : false }\r\n required={true}\r\n errorobj={errors}\r\n /> \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormRemodulin;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n isRemodulin,\r\n readOnly\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n let columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impactDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"medicineDeliveryDetail\",\r\n label: IntlGetText(\"core.product\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n if(!isRemodulin){\r\n columns.splice(2, 0, \r\n {\r\n name: \"realConsumption\",\r\n label: IntlGetText(\"medicineDelivery.realConsumption\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n },\r\n }\r\n );\r\n \r\n columns.splice(3, 0, \r\n {\r\n name: \"medicationLoss\",\r\n label: IntlGetText(\"medicineDelivery.medicationLoss\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n }\r\n );\r\n }else{\r\n columns.splice(2, 0, \r\n {\r\n name: \"openingDate\",\r\n label: IntlGetText(\"medicineConsumption.vialOpeningDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n }\r\n }\r\n }\r\n );\r\n }\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React from \"react\";\r\nimport IntlMessages, {IntlGetText} from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n Grid,\r\n} from \"@material-ui/core\";\r\n\r\nconst Indicator =({ indicatorInfo, isRemodulin })=>{\r\n const msgDays = IntlGetText(\"medicineConsumption.days\");\r\n \r\n const getIndicador = (prop) => {\r\n if (!indicatorInfo) return \"\";\r\n var p = indicatorInfo[prop];\r\n if (!p && p !== 0) return \"\";\r\n return p;\r\n };\r\n const getEndDate = () => {\r\n if (!indicatorInfo) return \"\";\r\n var p = indicatorInfo[\"endDate\"];\r\n if (!p && p !== 0) return \"\";\r\n return dayjs(p).format(\"YYYY/MM/DD\");\r\n };\r\n const getIndicadorProjectedConsumption = () => {\r\n if (!indicatorInfo) return \"\";\r\n\r\n const quantity = Math.ceil(indicatorInfo.projectedConsumption);\r\n const days = indicatorInfo.projectedConsumptionDays;\r\n\r\n return quantity + ` (${days} ${msgDays})`;\r\n };\r\n\r\n return (\r\n \r\n {!isRemodulin &&\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Indicator;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport FormRemodulin from \"./FormRemodulin\";\r\nimport Table from \"./Table\";\r\nimport Indicator from \"./Indicator\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getMedicineConsumptionList,\r\n postCreateUpdateMedicineConsumption,\r\n deleteMedicineConsumption,\r\n getMedicineList,\r\n getGetIndicators,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst MedicineConsumption = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n const msgInvalidAddOperation = IntlGetText(\r\n \"medicineDelivery.invalidAddOperation\"\r\n );\r\n\r\n const [formLoaded, setFormLoaded] = useState(false);\r\n\r\n const [consumptionList, setConsumptionList] = useState([]);\r\n const [medicineList, setMedicineList] = useState([]);\r\n const [indicatorInfo, setIndicatorInfo] = useState(null);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getMedicineConsumptionList(selectedPrescription.id),\r\n setConsumptionList\r\n );\r\n callApi(() => getGetIndicators(selectedPrescription.id), setIndicatorInfo);\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n \r\n useEffect(() => {\r\n if(open){\r\n loadData();\r\n if(!formLoaded){\r\n callApi(\r\n () => getMedicineList(selectedPrescription.impactId),\r\n setMedicineList\r\n );\r\n setFormLoaded(true);\r\n }\r\n }\r\n }, [open]);\r\n\r\n const existMedicineInImpact = (medicineConsumption) => {\r\n return (\r\n consumptionList.find(\r\n (x) =>\r\n x.impactId == selectedPrescription.impactId &&\r\n x.medicineDeliveryDetailId ===\r\n medicineConsumption.medicineDeliveryDetailId &&\r\n x.id !== medicineConsumption.id\r\n ) !== undefined\r\n );\r\n };\r\n\r\n const handleCreateUpdate = async (data) => {\r\n if (existMedicineInImpact(data)) {\r\n NotificationManager.warning(msgInvalidAddOperation);\r\n return;\r\n }\r\n await callApiAsync(\r\n () => postCreateUpdateMedicineConsumption(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteMedicineConsumption(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n const isRemodulin = (selectedPrescription.customProductBehaviorId === ProductBehavior.remodulin || selectedPrescription.customProductBehaviorId === ProductBehavior.dacepton);\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n isRemodulin = {isRemodulin}\r\n readOnly={readOnly}\r\n />\r\n { !isRemodulin &&\r\n \r\n }\r\n { isRemodulin &&\r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MedicineConsumption;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { SupplyActionTypeList, ShardKeyEnum } from \"constants/Enums\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, supplyTypeList, readOnly}) => {\r\n const isPhg= getUserInfo().shardKey === ShardKeyEnum.phg;\r\n const supplyActionTypeList = SupplyActionTypeList(isPhg);\r\n\r\n const defaultValues = { \r\n supplyTypeId: null,\r\n date: null,\r\n amount: \"\",\r\n tipo: null,\r\n comment:\"\"\r\n };\r\n const validationSchema = { \r\n supplyTypeId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n date: yup.date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n amount: yup.number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .nullable().transform((v, o) => o === '' ? null : v)\r\n .positive()\r\n .required(),\r\n tipo: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"supplyTypeId\", !obj || !obj.supplyTypeId ? null : getCboValue(supplyTypeList,obj.supplyTypeId));\r\n setValue(\"date\", !obj || !obj.date ? null : dayjs(obj.date));\r\n setValue(\"amount\", !obj || !obj.amount ? \"\" : obj.amount);\r\n setValue(\"tipo\", !obj ? null : getCboValue(supplyActionTypeList,obj.tipo));\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n impactId: impactId,\r\n supplyTypeId: Number(d.supplyTypeId.value),\r\n date: dayjs(d.date).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n amount: Number(d.amount),\r\n tipo: Number(d.tipo.value),\r\n comment: d.comment\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const disabled = readOnly;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n /> \r\n \r\n \r\n }\r\n options={supplyActionTypeList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={supplyTypeList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { SupplyActionTypeList , ShardKeyEnum} from \"constants/Enums\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n readOnly,\r\n}) => {\r\n const isPhg= getUserInfo().shardKey === ShardKeyEnum.phg;\r\n const supplyActionTypeList = SupplyActionTypeList(isPhg);\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"tipo\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const type = supplyActionTypeList.find(x=>x.id === value);\r\n return !type ? \"\" : type.name;\r\n }\r\n } \r\n },\r\n {\r\n name: \"supplyType\",\r\n label: IntlGetText(\"healingMaterial.supplyType\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"amount\",\r\n label: IntlGetText(\"core.amount\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n },\r\n },\r\n {\r\n name: \"date\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if (readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getSupplyTypeList,\r\n getSupplyAditionalMedicationsList,\r\n postCreateUpdateSupplyAditionalMedications,\r\n deleteSupplyAditionalMedications,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst HealingMaterial = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [supplyTypeList, setSupplyTypeList] = useState([]);\r\n const [healingMaterialList, setHealingMaterialList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getSupplyAditionalMedicationsList(selectedPrescription.id),\r\n setHealingMaterialList\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadData();\r\n callApi(getSupplyTypeList, setSupplyTypeList);\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateSupplyAditionalMedications(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteSupplyAditionalMedications(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default HealingMaterial;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { GeneralStatusList } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n showAddButton,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const generalStatusList = GeneralStatusList();\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination: false,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const getStatus = (value) => {\r\n if (!value && value !== 0) return \"\";\r\n var status = generalStatusList.find((x) => x.id === value);\r\n return !status ? \"\" : status.name;\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"catheterStatus\",\r\n label: IntlGetText(\"infusionTracking.catheterStatusLabel\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => getStatus(value),\r\n },\r\n },\r\n {\r\n name: \"insertionDate\",\r\n label: IntlGetText(\"infusionTracking.insertionDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"location\",\r\n label: IntlGetText(\"infusionTracking.location\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"evapainScale\",\r\n label: IntlGetText(\"infusionTracking.evapainScale\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"infusionSystemStatus\",\r\n label: IntlGetText(\"infusionTracking.infusionSystemStatusLabel\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => getStatus(value),\r\n },\r\n },\r\n {\r\n name: \"infusionPumpStatus\",\r\n label: IntlGetText(\"infusionTracking.infusionPumpStatusLabel\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => getStatus(value),\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && showAddButton && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport {Card, CardHeader} from 'reactstrap';\r\nimport { FileUploadWithOriginalName } from \"components/Form/file-upload/index\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport { callActionApi } from \"api/apiList\";\r\nimport { ImpactFileTypeList } from \"constants/Enums\";\r\n\r\nconst clearFile = () => {\r\n const elementFile = document.getElementById(\"fm-file\");\r\n if (elementFile)\r\n elementFile.value = \"\";\r\n};\r\n\r\nconst UploadFileForm = ({ callBack, actionApi, actionApiInfo }) => {\r\n const [fileResult, setFileResult] = useState({fileName:\"\", originalName:\"\"});\r\n const handleFilenameChange = (filenameResult) => { setFileResult(filenameResult); };\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgFileWarning = IntlGetText(\"core.fileNotFound\");\r\n const impactFileTypeList = ImpactFileTypeList();\r\n\r\n const defaultValues = { impactFileType: null , comment: \"\" };\r\n const validationSchema = { \r\n impactFileType: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, reset, errors} = methods;\r\n\r\n const clear = () => {\r\n clearFile();\r\n reset({ impactFileType: null, comment: \"\" });\r\n setFileResult({fileName:\"\", originalName:\"\"});\r\n };\r\n\r\n const onSubmit = async (d, e) => { \r\n if (fileResult.fileName) {\r\n var obj = { \r\n ...actionApiInfo, \r\n tempFilename: fileResult.fileName, \r\n comment: d.comment,\r\n impactFileType: Number(d.impactFileType.value)\r\n };\r\n callActionApi(\r\n () => actionApi(obj),\r\n async (fileResult) => {\r\n NotificationManager.success(msgSuccess);\r\n clear(); \r\n callBack(fileResult); \r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n } else {\r\n NotificationManager.warning(msgFileWarning);\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {fileResult.originalName}\r\n \r\n \r\n }\r\n options={impactFileTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default UploadFileForm;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { ImpactFileTypeList } from \"constants/Enums\";\r\n\r\nconst TableFiles = ({\r\n data,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const impactFileTypeList = ImpactFileTypeList();\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const getFileType = (value) => { \r\n if(!value && value !== 0)\r\n return \"\";\r\n var status = impactFileTypeList.find(x=>x.id === value); \r\n return !status ? \"\" : status.name;\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactFileType\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => getFileType(value)\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"core.comment\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableFiles;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport UploadFileForm from \"components/Form/UploadFileForm\";\r\n//import Form from \"./Form\";\r\nimport {\r\n callActionApi,\r\n getImpactFileList,\r\n postAddImpactFile,\r\n deleteImpactFile\r\n } from \"api/apiList\";\r\nimport Table from \"./Table\";\r\nimport { ImpactFileTypeEnum } from \"constants/Enums\";\r\n\r\nconst PhotographicRecord = ({currentObj}) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const [fileList, setFileList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n \r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getImpactFileList({\r\n impactId: currentObj.impactId,\r\n impactFileType: [\r\n ImpactFileTypeEnum.remodulinCatheter,\r\n ImpactFileTypeEnum.remodulinPump,\r\n ImpactFileTypeEnum.visit\r\n ]\r\n }),\r\n setFileList\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n \r\n const callBackAddFile = (file) => loadData();\r\n \r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteImpactFile(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n return (\r\n
    \r\n {currentObj.impactId === selectedPrescription.impactId &&\r\n callBackAddFile(file)}\r\n actionApi={postAddImpactFile}\r\n actionApiInfo={{ impactId: selectedPrescription.impactId }}\r\n />\r\n }\r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PhotographicRecord;","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { GeneralStatusList } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCreateUpdate = ({\r\n openCRU,\r\n impactId,\r\n obj,\r\n handleCreateUpdate,\r\n readOnly,\r\n}) => {\r\n const generalStatusList = GeneralStatusList();\r\n\r\n const evaScaleList = [\r\n { id: 1, name: \"1\" },\r\n { id: 2, name: \"2\" },\r\n { id: 3, name: \"3\" },\r\n { id: 4, name: \"4\" },\r\n { id: 5, name: \"5\" },\r\n { id: 6, name: \"6\" },\r\n { id: 7, name: \"7\" },\r\n { id: 8, name: \"8\" },\r\n { id: 9, name: \"9\" },\r\n { id: 10, name: \"10\" },\r\n ];\r\n\r\n const defaultValues = {\r\n catheterStatus: \"\",\r\n insertionDate: null,\r\n location: \"\",\r\n evapainScale: \"\",\r\n infusionSystemStatus: \"\",\r\n infusionPumpStatus: \"\",\r\n comment: \"\",\r\n };\r\n const validationSchema = {\r\n location: yup.string().required(),\r\n comment: yup.string().required(),\r\n insertionDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n catheterStatus: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n evapainScale: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n infusionSystemStatus: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n infusionPumpStatus: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"location\", !obj || !obj.location ? \"\" : obj.location);\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n setValue(\r\n \"insertionDate\",\r\n !obj || !obj.insertionDate ? null : dayjs(obj.insertionDate)\r\n );\r\n setValue(\r\n \"catheterStatus\",\r\n !obj || (!obj.catheterStatus && obj.catheterStatus !== 0)\r\n ? null\r\n : getCboValue(generalStatusList, obj.catheterStatus)\r\n );\r\n setValue(\r\n \"infusionSystemStatus\",\r\n !obj || (!obj.infusionSystemStatus && obj.infusionSystemStatus !== 0)\r\n ? null\r\n : getCboValue(generalStatusList, obj.infusionSystemStatus)\r\n );\r\n setValue(\r\n \"infusionPumpStatus\",\r\n !obj || (!obj.infusionPumpStatus && obj.infusionPumpStatus !== 0)\r\n ? null\r\n : getCboValue(generalStatusList, obj.infusionPumpStatus)\r\n );\r\n setValue(\r\n \"evapainScale\",\r\n !obj || (!obj.evapainScale && obj.evapainScale !== 0)\r\n ? null\r\n : getCboValue(evaScaleList, obj.evapainScale)\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [openCRU]);\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n impactId: impactId,\r\n catheterStatus: Number(d.catheterStatus.value),\r\n insertionDate: dayjs(d.insertionDate),\r\n location: d.location,\r\n evapainScale: Number(d.evapainScale.value),\r\n infusionSystemStatus: Number(d.infusionSystemStatus.value),\r\n infusionPumpStatus: Number(d.infusionPumpStatus.value),\r\n comment: d.comment,\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const disabled = readOnly;\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n options={generalStatusList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n //disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n required={true}\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n options={evaScaleList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n options={generalStatusList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n options={generalStatusList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n required={true}\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n {!disabled && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React, { useState } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Tabs, Tab } from \"@material-ui/core\";\r\nimport PhotographicRecord from \"./PhotographicRecord/index.js\"\r\nimport Form from \"./Form\";\r\n\r\nconst TabComponent = (props) => {\r\n const { obj } = props;\r\n\r\n const [currentTab, setCurrentTab] = useState(0); \r\n const handleChange = (event, value) => setCurrentTab(value);\r\n\r\n return (\r\n
    \r\n \r\n }\r\n />\r\n {obj && obj.id &&\r\n }\r\n />\r\n }\r\n \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {currentTab === 1 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default TabComponent;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport TabComponent from \"./TabComponent\";\r\n\r\nconst Dlg = (props) => {\r\n const { openCRU, handleRequestClose, obj } = props;\r\n\r\n return(\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Dlg;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Table from \"./Table\";\r\nimport Dlg from \"./Dlg\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getRemodulinTrackingList,\r\n postCreateUpdateRemodulinTracking,\r\n deleteRemodulinTracking,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) => {\r\n return dataList.find((x) => x.impactId == impactId) != undefined;\r\n};\r\n\r\nconst InfusionPumps = ({ isRemodulin }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [remodulinTrackingList, setRemodulinTrackinList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const isBoidor = getUserInfo().shardKey === ShardKeyEnum.boidor;\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getRemodulinTrackingList(selectedPrescription.id),\r\n setRemodulinTrackinList,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateRemodulinTracking(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteRemodulinTracking(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n readOnly={readOnly}\r\n currentImpact={selectedPrescription.impactId}\r\n showAddButton={\r\n !existItemsInImpact(\r\n selectedPrescription.impactId,\r\n remodulinTrackingList\r\n )\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InfusionPumps;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { RemodulinPumpStateList } from \"constants/Enums\";\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, readOnly}) => {\r\n const remodulinPumpStateList = RemodulinPumpStateList();\r\n\r\n const defaultValues = { \r\n lotNumber: \"\",\r\n serial: \"\",\r\n model: \"\",\r\n state: null\r\n };\r\n const validationSchema = { \r\n lotNumber: yup.string().required(),\r\n serial: yup.string().required(),\r\n model: yup.string().required(),\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"lotNumber\", !obj || !obj.lotNumber ? \"\" : obj.lotNumber);\r\n setValue(\"serial\", !obj || !obj.serial ? \"\" : obj.serial);\r\n setValue(\"model\", !obj || !obj.model ? \"\" : obj.model);\r\n setValue(\"state\", !obj || (!obj.state && obj.state !== 0) ? \"\" : getCboValue(remodulinPumpStateList, obj.state));\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n impactId: impactId,\r\n lotNumber: d.lotNumber,\r\n serial: d.serial,\r\n model: d.model,\r\n state: Number(d.state.value)\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const disabled = readOnly;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={remodulinPumpStateList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { RemodulinPumpStateList } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n readOnly,\r\n}) => {\r\n const remodulinPumpStateList = RemodulinPumpStateList();\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const item = remodulinPumpStateList.find(x=>x.id === value);\r\n return !item ? \"\" : item.name;\r\n },\r\n },\r\n },\r\n {\r\n name: \"lotNumber\",\r\n label: IntlGetText(\"medicineDelivery.lotNumber\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"serial\",\r\n label: IntlGetText(\"core.serial\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n },\r\n },\r\n {\r\n name: \"model\",\r\n label: IntlGetText(\"core.model\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if (readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getRemodulinPumpList,\r\n postCreateUpdateRemodulinPump,\r\n deleteRemodulinPump,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst InfusionPumps = () => {\r\n const dispatch = useDispatch();\r\n const isOperando = getUserInfo().shardKey === ShardKeyEnum.operando;\r\n\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [remodulinPumpList, setRemodulinPumpList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getRemodulinPumpList(selectedPrescription.id),\r\n setRemodulinPumpList\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateRemodulinPump(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteRemodulinPump(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InfusionPumps;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { GeneralStatusList } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n};\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, impactId, obj, handleCreateUpdate, readOnly}) => { \r\n const generalStatusList = GeneralStatusList();\r\n\r\n const defaultValues = { \r\n state: \"\",\r\n comment: \"\",\r\n };\r\n const validationSchema = { \r\n state: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n comment: yup.string().required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"state\", !obj ? \"\" : getCboValue(generalStatusList,obj.state));\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n impactId: impactId,\r\n state : Number(d.state.value),\r\n comment : !d.comment ? null : d.comment,\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const allowEdit = () => {\r\n if (!obj || !obj.id) return true;\r\n\r\n if (readOnly) return false;\r\n\r\n return obj.impactId == impactId;\r\n };\r\n const disabled = !allowEdit();\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={generalStatusList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox\";\r\nimport { GeneralStatusList } from \"constants/Enums\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n}) => {\r\n const generalStatusList = GeneralStatusList();\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination:false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var state = generalStatusList.find(x=>x.id === value);\r\n return !state ? \"\" : state.name;\r\n },\r\n } \r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"core.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.impactId != currentImpact || readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getProductStatusList,\r\n postCreateUpdateProductStatus,\r\n deleteProductStatus,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst InfusionPumps = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(({ impact }) => impact);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [productStatusList, setProductStatusList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getProductStatusList(selectedPrescription.id),\r\n setProductStatusList\r\n );\r\n };\r\n\r\n useEffect(() => loadData(), []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateProductStatus(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = (data) => {\r\n callApi(\r\n () => deleteProductStatus(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n setCurrentRowObj(null);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default InfusionPumps;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getGetHealthData,\r\n getDiseasesByProductId,\r\n getDoctorList,\r\n postSaveHealthData,\r\n postFormulaFile,\r\n getCitiesByStateProvinceId,\r\n getAllStateProvince,\r\n getTracingDeliverList,\r\n} from \"api/apiList\";\r\nimport {\r\n setFormFormulaDone,\r\n setFormulaMedicineQuantity,\r\n callReloadConsumptionTracing,\r\n setHealthData,\r\n} from \"actions/Impact\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n PharmaceuticalUnitList,\r\n SupplyFrequencyList,\r\n TreatmentTypeList,\r\n} from \"constants/Enums\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\n\r\nconst HealthDataForm = ({\r\n openDlg,\r\n handleRequestClose,\r\n selectedPrescription,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [formulaData, setFormulaData] = useState(null);\r\n const [companyList, setCompanyList] = useState([]);\r\n const [visitTargetIdList, setVisitTargetIdList] = useState([]);\r\n const [diseaseList, setDiseaseList] = useState([]);\r\n const [productList, setProductList] = useState([]);\r\n const [unitList, setUnitList] = useState([]);\r\n const [unitDurationList, setUnitDurationList] = useState([]);\r\n const [dosageUnitList, setDosageUnitList] = useState([]);\r\n const [tracingDeliveryList, setTracingDeliveryList] = useState([]);\r\n const [attentionScopeList, setAttentionScopeList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n stateProvinceListLoaded: false,\r\n cityListLoaded: false,\r\n visitTargetIdListLoaded: false,\r\n diseaseListLoaded: false,\r\n });\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [cityList, setCityList] = useState([]);\r\n const [disabled, setDisabled] = useState(false);\r\n const [file, setFile] = useState(\"\");\r\n const [treatmentType, setTreatmentType] = useState(null);\r\n\r\n const [pharmaceuticalQuantityData, setPharmaceuticalQuantityData] = useState(\r\n null\r\n );\r\n const [medicineAmountData, setMedicineAmountData] = useState(null);\r\n\r\n const supplyFrequencyList = SupplyFrequencyList();\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n companyId: null,\r\n visitTargetId: null,\r\n cityId: null,\r\n stateProvinceId: null,\r\n diseaseId: null,\r\n productId: null,\r\n medicineAmount: \"\",\r\n additionalGuidelines: \"\",\r\n pharmaceuticalQuantity: \"\",\r\n pharmaceuticalUnit: \"\",\r\n dosageUnitId: \"\",\r\n dosage: \"\",\r\n quantity: \"\",\r\n supplyFrequency: \"\",\r\n durationTreatment: \"\",\r\n unitTime: \"\",\r\n period: \"\",\r\n deliveryRecord: null,\r\n treatmentType: null,\r\n profilaxis: \"\",\r\n attentionScopeId: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n expeditionDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n companyId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n stateProvinceId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n visitTargetId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n diseaseId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n productId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n durationTreatment: yup\r\n .number()\r\n .nullable(true)\r\n .typeError()\r\n .required(),\r\n period: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n supplyFrequency: yup\r\n .number()\r\n .nullable(true)\r\n .typeError()\r\n .required(),\r\n quantity: yup\r\n .number()\r\n .nullable(true)\r\n .typeError()\r\n .required(),\r\n unitTime: yup\r\n .object()\r\n .required()\r\n .nullable(),\r\n attentionScopeId: yup\r\n .object()\r\n .required()\r\n .nullable(),\r\n deliveryRecord: yup\r\n .number()\r\n .required()\r\n .typeError(),\r\n medicineAmount: yup\r\n .string()\r\n .matches(/^\\d+(\\.\\d+)?$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = parseFloat(value);\r\n return number > 0 && number < 10000;\r\n })\r\n .required(\"Required\"),\r\n pharmaceuticalQuantity: yup\r\n .string()\r\n .matches(/^\\d+(\\.\\d+)?$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = parseFloat(value);\r\n return number > 0 && number < 10000;\r\n })\r\n .required(\"Required\"),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const productIdValue = watch(\"productId\");\r\n const medicineAmountValue = watch(\"medicineAmount\");\r\n const medicineQuantityValue = watch(\"pharmaceuticalQuantity\");\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const attentionScopeIdValue = watch(\"attentionScopeId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const diseaseIdValue = watch(\"diseaseId\");\r\n const treatmentList = TreatmentTypeList();\r\n const getDInfo = (formulaData, prop) => {\r\n if (!formulaData) return \"\";\r\n\r\n return formulaData.dosage[prop] ? formulaData.dosage[prop] : \"\";\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getTracingDeliverList(selectedPrescription.id),\r\n setTracingDeliveryList\r\n );\r\n callApi(\r\n () => getGetHealthData(selectedPrescription.impactId),\r\n (data) => {\r\n setFormulaData(data);\r\n setFile(data.file);\r\n setCompanyList(data.companyList);\r\n setProductList(data.productList);\r\n setUnitList(data.dosageUnitTimeList);\r\n setUnitDurationList(data.dosageDurationUnitTimeList);\r\n setAttentionScopeList(data.attentionScopeList);\r\n const temp = !data.dosageUnitList ? [] : data.dosageUnitList;\r\n setDosageUnitList(temp);\r\n\r\n setValue(\r\n \"medicineAmount\",\r\n !data.medicineAmount ? \"\" : data.medicineAmount\r\n );\r\n setValue(\r\n \"attentionScopeId\",\r\n getCboValue(data.attentionScopeList, data.attentionScopeId)\r\n );\r\n setValue(\r\n \"additionalGuidelines\",\r\n !data.additionalGuidelines ? \"\" : data.additionalGuidelines\r\n );\r\n setValue(\r\n \"treatmentType\",\r\n getCboValue(treatmentList, data.treatmentType)\r\n );\r\n setTreatmentType(data.treatmentType);\r\n setValue(\"companyId\", getCboValue(data.companyList, data.companyId));\r\n setValue(\"productId\", getCboValue(data.productList, data.productId));\r\n setValue(\"code\", data.code);\r\n setValue(\r\n \"expeditionDate\",\r\n !data || !data.expeditionDate ? null : dayjs(data.expeditionDate)\r\n );\r\n setValue(\"durationTreatment\", data.durationTreatment);\r\n setValue(\"supplyFrequency\", data.supplyFrequency);\r\n setValue(\r\n \"unitTime\",\r\n getCboValue(data.dosageUnitTimeList, data.supplyFrequencyUnitId)\r\n );\r\n setValue(\r\n \"period\",\r\n getCboValue(\r\n data.dosageDurationUnitTimeList,\r\n data.durationTreatmentUnitId\r\n )\r\n );\r\n //Dosage\r\n setValue(\"quantity\", getDInfo(data, \"quantity\"));\r\n\r\n setValue(\r\n \"stateProvinceId\",\r\n getCboValue(data.stateProvinceList, data.stateProvinceId)\r\n );\r\n setValue(\"deliveryRecord\", data.numberDeliveries);\r\n setValue(\"profilaxis\", data.profilaxis);\r\n },\r\n fnSetLoader\r\n );\r\n callApi(getDoctorList, setVisitTargetIdList);\r\n };\r\n useEffect(() => {\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (openDlg) loadData();\r\n }, [openDlg]);\r\n\r\n useEffect(() => {\r\n setValue(\"diseaseId\", null);\r\n if (!productIdValue || !productIdValue.value) {\r\n setDiseaseList([]);\r\n return;\r\n }\r\n callApi(() => getDiseasesByProductId(productIdValue.value), setDiseaseList);\r\n\r\n var product = productList.find((x) => x.id == productIdValue.value);\r\n setValue(\r\n \"pharmaceuticalUnit\",\r\n getCboValue(PharmaceuticalUnitList(), product.pharmaceuticalUnit)\r\n );\r\n setValue(\r\n \"dosageUnitId\",\r\n getCboValue(formulaData.dosageUnitList, product.dosageUnitId)\r\n );\r\n\r\n updatePharmaceuticalQuantity();\r\n }, [productIdValue]);\r\n\r\n useEffect(() => {\r\n if (\r\n formulaData &&\r\n !loadForm.visitTargetIdListLoaded &&\r\n visitTargetIdList.length > 0\r\n ) {\r\n setValue(\r\n \"visitTargetId\",\r\n getCboValue(visitTargetIdList, formulaData.visitTargetId)\r\n );\r\n setLoadForm({ ...loadForm, visitTargetIdListLoaded: true });\r\n }\r\n }, [formulaData, visitTargetIdList]);\r\n\r\n useEffect(() => {\r\n if (formulaData && !loadForm.diseaseListLoaded && diseaseList.length > 0) {\r\n setValue(\"diseaseId\", getCboValue(diseaseList, formulaData.diseaseId));\r\n setLoadForm({ ...loadForm, diseaseListLoaded: true });\r\n const selectedDisease = diseaseList.find(\r\n (disease) => disease.id === formulaData.diseaseId\r\n );\r\n setValue(\r\n \"offlabel\",\r\n formulaData.treatmentType == 4\r\n ? \"Si\"\r\n : selectedDisease.offlabel\r\n ? \"Si\"\r\n : \"No\"\r\n );\r\n }\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\"cityId\", getCboValue(cityList, formulaData.cityId));\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n return;\r\n }\r\n }, [diseaseList, stateProvinceList, cityList]);\r\n\r\n const updatePharmaceuticalQuantity = () => {\r\n if (!productIdValue || !productIdValue.value) return;\r\n\r\n const product = productList.find((x) => x.id === productIdValue.value);\r\n if (!product) return;\r\n const sanitizedMedicineAmountValue = medicineAmountValue\r\n ? parseFloat(String(medicineAmountValue).replace(/,/g, \".\"))\r\n : 0;\r\n\r\n const pharmaceuticalQuantityCal = parseFloat(\r\n (product.pharmaceuticalQuantity * sanitizedMedicineAmountValue).toFixed(10)\r\n );\r\n\r\n setPharmaceuticalQuantityData(pharmaceuticalQuantityCal);\r\n\r\n setValue(\"pharmaceuticalQuantity\", pharmaceuticalQuantityCal);\r\n };\r\n\r\n const updateMedicineAmount = () => {\r\n if (!productIdValue || !productIdValue.value) return;\r\n const product = productList.find((x) => x.id === productIdValue.value);\r\n if (!product) return;\r\n\r\n const medicineAmountCal =\r\n medicineQuantityValue / product.pharmaceuticalQuantity;\r\n\r\n setMedicineAmountData(medicineAmountCal);\r\n\r\n setValue(\"medicineAmount\", medicineAmountCal);\r\n };\r\n\r\n const cboTreatmentTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n setValue(\"profilaxis\", \"\");\r\n setTreatmentType(event ? event.value : null);\r\n if (event && event.value == 4) {\r\n setValue(\"offlabel\", \"Si\");\r\n } else {\r\n const selectedDisease = diseaseList.find(\r\n (disease) => disease.id === watch(\"diseaseId\").value\r\n );\r\n setValue(\"offlabel\", selectedDisease.offlabel ? \"Si\" : \"No\");\r\n }\r\n };\r\n const cboDiseaseChange = (name) => (event) => {\r\n setValue(name, event);\r\n const selectedDisease = diseaseList.find(\r\n (disease) => disease.id === event.value\r\n );\r\n setValue(\"offlabel\", selectedDisease.offlabel ? \"Si\" : \"No\");\r\n setValue(\"treatmentType\", getCboValue(treatmentList, null));\r\n setTreatmentType(\"\");\r\n };\r\n\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n useEffect(() => {\r\n updatePharmaceuticalQuantity();\r\n }, [medicineAmountValue]);\r\n\r\n useEffect(() => {\r\n updateMedicineAmount();\r\n }, [medicineQuantityValue]);\r\n\r\n const onSubmit = async (d, e) => {\r\n const obj = {\r\n id: formulaData.id,\r\n impactId: formulaData.impactId,\r\n productId: Number(d.productId.value),\r\n diseaseId: Number(d.diseaseId.value),\r\n cityId: Number(d.cityId.value),\r\n visitTargetId: Number(d.visitTargetId.value),\r\n companyId: Number(d.companyId.value),\r\n attentionScopeId: d.attentionScopeId\r\n ? Number(d.attentionScopeId.value)\r\n : null,\r\n durationTreatment: Number(d.durationTreatment),\r\n medicineAmount: !d.medicineAmount ? null : Number(d.medicineAmount),\r\n additionalGuidelines: d.additionalGuidelines,\r\n code: d.code,\r\n expeditionDate:\r\n d.expeditionDate != null\r\n ? dayjs(d.expeditionDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n : null,\r\n\r\n dosageId: Number(getDInfo(formulaData, \"id\")),\r\n dosageQuantity: Number(d.quantity),\r\n supplyFrequency: Number(d.supplyFrequency),\r\n durationTreatmentUnitId: Number(d.period.value),\r\n supplyFrequencyUnitId: Number(d.unitTime.value),\r\n numberDeliveries: Number(d.deliveryRecord),\r\n treatmentType: d.treatmentType ? Number(d.treatmentType.value) : null,\r\n profilaxis: d.profilaxis,\r\n };\r\n const hasHigherDeliveryNumber = tracingDeliveryList.some(\r\n (item) => item.deliveryNumber > obj.numberDeliveries\r\n );\r\n\r\n if (hasHigherDeliveryNumber) {\r\n NotificationManager.warning(\r\n \"El número de entregas no puede ser menor al número de entregas realizadas\"\r\n );\r\n return;\r\n }\r\n await callApiAsync(\r\n () => postSaveHealthData(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n dispatch(setFormFormulaDone(data.expeditionDate));\r\n dispatch(setFormulaMedicineQuantity(data.medicineQuantity));\r\n dispatch(callReloadConsumptionTracing(true));\r\n dispatch(setHealthData(data));\r\n //dispatch(setSelectedPrescription(obj));\r\n handleRequestClose();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n value={stateProvinceIdValue}\r\n onChange={cboHandleChange(\"stateProvinceId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n value={cityIdValue}\r\n onChange={cboHandleChange(\"cityId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n }\r\n options={companyList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={visitTargetIdList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={productList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={PharmaceuticalUnitList()}\r\n value={watch(\"pharmaceuticalUnit\")}\r\n onChange={cboHandleChange(\"pharmaceuticalUnit\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={dosageUnitList}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitList}\r\n value={watch(\"unitTime\")}\r\n onChange={cboHandleChange(\"unitTime\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitDurationList}\r\n value={watch(\"period\")}\r\n onChange={cboHandleChange(\"period\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={attentionScopeList}\r\n value={attentionScopeIdValue}\r\n onChange={cboHandleChange(\"attentionScopeId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n value={watch(\"diseaseId\")}\r\n onChange={cboDiseaseChange(\"diseaseId\")}\r\n options={diseaseList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {/*

    numberDeliveries

    */}\r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n required={true}\r\n />\r\n
    \r\n \r\n }\r\n value={watch(\"treatmentType\")}\r\n onChange={cboTreatmentTypeChange(\"treatmentType\")}\r\n options={TreatmentTypeList()}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n {treatmentType == 4 && (\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n value={watch(\"offlabel\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n errorobj={errors}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n {(!disabled || file) && formulaData && (\r\n \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default HealthDataForm;\r\n","import React, { useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport HealthDataForm from \"./form\";\r\n\r\nconst HealthData = ({ loadDeliverHealthData }) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { expeditionDateFormula } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n\r\n const handleClickOpen = () => setOpen(true);\r\n const handleRequestClose = () => {\r\n loadDeliverHealthData();\r\n setOpen(false);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default HealthData;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n MedicineTypeList,\r\n} from \"constants/Enums\";\r\nconst FormCRU =({ rowObj2, impactId, unitList, unitDurationList, prescription, openCRU, handleRequestClose, handleCreateUpdate })=>{\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n \r\n const [ rowObj, setCurrentObj] = useState(null);\r\n const [medicineType, setMedicineType] = useState(\"1\");\r\n const [disabled, setDisabled] = useState(false);\r\n \r\n const defaultValues = {\r\n formulaCode: \"\",\r\n formulaStartDate: null,\r\n startDate: null,\r\n quantity: \"\",\r\n supplyFrequency: \"\",\r\n durationTreatment: \"\",\r\n supplyFrequencyUnitId: null,\r\n durationTreatmentUnitId: null,\r\n };\r\n \r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n quantity: yup.string()\r\n .matches(/^[0-9]+$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = Number(value);\r\n return number > 0 && number < 1001;\r\n })\r\n .required(\"Required\"),\r\n supplyFrequency: yup.string()\r\n .matches(/^[0-9]+$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = Number(value);\r\n return number > 0 && number < 1001;\r\n })\r\n .required(\"Required\"),\r\n durationTreatment: yup.string()\r\n .matches(/^[0-9]+$/, IntlGetText(\"yup.numericValidation\"))\r\n .test(\"is-valid-range\", IntlGetText(\"yup.invalidInput\"), (value) => {\r\n const number = Number(value);\r\n return number > 0 && number < 1001;\r\n })\r\n .required(\"Required\"),\r\n durationTreatmentUnitId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n supplyFrequencyUnitId:yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n \r\n const lifeTimeValue = watch(\"lifeTime\");\r\n const cboMedicineTypeChange = (name) => (event) => {\r\n setValue(name, event);\r\n setValue(\"productId\", \"\");\r\n setValue(\"activePrinciple\", \"\");\r\n setMedicineType(event ? event.value : null);\r\n };\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n impactId: !rowObj ? impactId : rowObj.impactId,\r\n quantity: Number(d.quantity),\r\n supplyFrequency: Number(d.supplyFrequency),\r\n supplyFrequencyUnitId: Number(d.supplyFrequencyUnitId.value),\r\n durationTreatment: Number(d.durationTreatment),\r\n durationTreatmentUnitId: Number(d.durationTreatmentUnitId.value),\r\n startDate: !d.startDate ? null : dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n await handleCreateUpdate(obj);\r\n handleRequestClose();\r\n };\r\n \r\n useEffect(()=>{ \r\n setCurrentObj(rowObj2);\r\n if ( rowObj2 ) {\r\n setDisabled(true);\r\n }\r\n },[rowObj2]);\r\n \r\n const loadData = () => {\r\n //ssetUnitList(rowObj.dosageUnitTimeList);\r\n setValue(\"formulaCode\", !rowObj ? prescription.code : rowObj.formulaCode);\r\n setValue(\"formulaStartDate\", !rowObj ? prescription.expeditionDate : rowObj.formulaStartDate);\r\n setValue(\"startDate\", !rowObj ? \"\" : rowObj.startDate);\r\n setValue(\"quantity\", !rowObj ? \"\" : rowObj.quantity);\r\n setValue(\"supplyFrequency\", !rowObj ? \"\" : rowObj.supplyFrequency);\r\n setValue(\"durationTreatment\", !rowObj ? \"\" : rowObj.durationTreatment);\r\n setValue(\"supplyFrequencyUnitId\", getCboValue(unitList, !rowObj ? null :rowObj.supplyFrequencyUnitId));\r\n setValue(\"durationTreatmentUnitId\", getCboValue(unitList, !rowObj ? null :rowObj.durationTreatmentUnitId));\r\n //setValue(\"unitTime\", getCboValue(rowObj.dosageUnitTimeList, rowObj.durationTreatmentUnitId));\r\n //setValue(\"period\", getCboValue(rowObj.dosageUnitTimeList, rowObj.supplyFrequencyUnitId));\r\n };\r\n const getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[rowObj,openCRU]);\r\n \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled = {true}\r\n //required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled = {true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitList}\r\n value={watch(\"unitTime\")}\r\n onChange={cboHandleChange(\"unitTime\")}\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={unitDurationList}\r\n value={watch(\"unitTime\")}\r\n onChange={cboHandleChange(\"unitTime\")}\r\n margin=\"normal\"\r\n disabled={false}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\n export default FormCRU;","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableAM = ({ data, handleOpenCRU, handleOpenDel, setCurrentRowObj }) => {\r\n const lifeTimeText = IntlGetText(\"additionalMedications.lifeTime\");\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"formulaCode\",\r\n label: \"Nº Prescripción\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"formulaStartDate\",\r\n label: \"Fecha de expedición\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"quantity\",\r\n label: \"Dosis\",\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n { \r\n name: \"supplyFrequencyText\",\r\n label: \"Frecuencia\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n { \r\n name: \"durationTreatmentText\",\r\n label: \"Periodo\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"startDate\",\r\n label: \"Fecha de inicio\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: \"Fecha fin\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if(rowObj.lifeTime)\r\n return lifeTimeText;\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const endDateIndex = 6;\r\n const endDate = tableMeta.rowData[endDateIndex];\r\n \r\n // Verifica si existe endDate\r\n if (!endDate) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n return null;\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport FormCRU from \"./FormCRU\";\r\nimport TableAM from \"./TableAM\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getDosageV2,\r\n postCreateUpdateDosageV2,\r\n deleteDosage,\r\n getUnitListTime,\r\n getUnitDurationListTime\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst DosageDialog = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired, healthData } = useSelector(({ impact }) => impact);\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [dosageList, setDosageList] = useState([]);\r\n const [unitList, setUnitList] = useState([]);\r\n const [unitDurationList, setUnitDurationList] = useState([]);\r\n\r\n const msgStartImpactRequired = IntlGetText(\"impact.startImpactRequired\");\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n const msgPrescriptionRequired = IntlGetText(\"core.msgPrescriptionRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if(!impactStartDate){\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if(isCIRequired && !consentSigned){\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }if(!(healthData?.dosage?.id)){\r\n NotificationManager.warning(msgPrescriptionRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpenCRU = () => {\r\n setOpenCRU(true);\r\n };\r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n };\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n const loadDosageTable = () => {\r\n callApi(\r\n () => getDosageV2(selectedPrescription.id),\r\n setDosageList\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadDosageTable();\r\n callApi(\r\n () => getUnitListTime(),\r\n setUnitList\r\n );\r\n callApi(\r\n () => getUnitDurationListTime(),\r\n setUnitDurationList\r\n );\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateDosageV2(data),\r\n setDosageList\r\n );\r\n };\r\n\r\n const handleDelete = () => {\r\n callApi(\r\n () => deleteDosage(currentRowObj.id),\r\n (data) => {\r\n setDosageList(data);\r\n handleRequestCloseDel();\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (open) {\r\n loadDosageTable();\r\n }\r\n },[open]);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DosageDialog;\r\n","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport Table, {\r\n minimalOptions,\r\n defaultCol,\r\n dateColumn,\r\n} from \"components/Form/Table\";\r\n\r\nconst PatientStateTable = ({dataList, setCurrentRowObj, setOpenDlg, currentImpactId}) => {\r\n const getObj = (tableMeta) =>\r\n dataList.find((x) => x.patientStatusId === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"patientStatusId\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n dateColumn(\"creationDate\", \"core.date\"),\r\n defaultCol(\"stateText\", \"core.state\"),\r\n defaultCol(\"comment\", \"core.comment\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if (rowObj.impactId !== currentImpactId) return \"\";\r\n \r\n var bottonIcon = \"zmdi zmdi-edit\";\r\n\r\n return (\r\n
    \r\n }\r\n placement=\"bottom-end\"\r\n >\r\n {\r\n setCurrentRowObj(rowObj);\r\n setOpenDlg(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default PatientStateTable;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n Button,\r\n} from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n callApi,\r\n getBarrierList,\r\n postUpdateBarrier,\r\n} from \"api/apiList\";\r\nimport { BarrierFlagEnum, PatientJaasModuleEnum } from \"constants/Enums\";\r\n\r\nconst BarriersModal = ({\r\n openDlg,\r\n closeDialog,\r\n currentImpactId,\r\n callBack,\r\n lastState,\r\n newState,\r\n}) => {\r\n const [barrierList, setBarrierList] = useState([]);\r\n const [currentBarrierId, setCurrentBarrierId] = useState(null);\r\n const [currentBarrierComment, setCurrentBarrierComment] = useState(\"\");\r\n const [currentBarrierName, setCurrentBarrierName] = useState(\"\");\r\n const [openBridgeModal, setOpenBridgeModal] = useState(false);\r\n const [textBridgeModal, setTextBridgeModal] = useState(false);\r\n const [barrierFlag, setBarrierFlag] = useState(false);\r\n const [openBarrierModal, setOpenBarrierModal] = useState(false);\r\n\r\n const textCommentBarrier = IntlGetText(\"barrier.inactiveInactive\");\r\n\r\n const handleOpenBridgeModal = () => {\r\n setOpenBridgeModal(true);\r\n };\r\n const handleCloseBridgeModal = () => {\r\n setOpenBridgeModal(false);\r\n closeDialog();\r\n };\r\n const handleOpenBarrierModal = () => {\r\n setOpenBarrierModal(true);\r\n };\r\n const handleCloseBarrierModal = () => {\r\n setOpenBarrierModal(false);\r\n };\r\n\r\n const defaultValues = {\r\n barrierId: null,\r\n comment: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n barrierId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n useEffect(() => {\r\n if (!openDlg) return;\r\n if (\r\n (lastState == null &&\r\n (newState == PatientJaasModuleEnum.SUSPENDED ||\r\n newState == PatientJaasModuleEnum.IMPOSSIBLE_CONTACT ||\r\n newState == PatientJaasModuleEnum.RETIRED)) ||\r\n (lastState == PatientJaasModuleEnum.ACTIVE &&\r\n (newState == PatientJaasModuleEnum.SUSPENDED ||\r\n newState == PatientJaasModuleEnum.IMPOSSIBLE_CONTACT ||\r\n newState == PatientJaasModuleEnum.RETIRED))\r\n ) {\r\n setBarrierFlag(BarrierFlagEnum.ACTIVE_INACTIVE);\r\n setTextBridgeModal();\r\n handleOpenBridgeModal();\r\n return;\r\n }\r\n if (\r\n newState == PatientJaasModuleEnum.ACTIVE &&\r\n (lastState == PatientJaasModuleEnum.SUSPENDED ||\r\n lastState == PatientJaasModuleEnum.IMPOSSIBLE_CONTACT ||\r\n lastState == PatientJaasModuleEnum.RETIRED)\r\n ) {\r\n if (currentBarrierId == null) {\r\n callBack();\r\n return;\r\n }\r\n setBarrierFlag(BarrierFlagEnum.INACTIVE_ACTIVE);\r\n setTextBridgeModal();\r\n handleOpenBridgeModal();\r\n return;\r\n }\r\n if (\r\n (newState == PatientJaasModuleEnum.SUSPENDED ||\r\n newState == PatientJaasModuleEnum.IMPOSSIBLE_CONTACT ||\r\n newState == PatientJaasModuleEnum.RETIRED) &&\r\n (lastState == PatientJaasModuleEnum.SUSPENDED ||\r\n lastState == PatientJaasModuleEnum.IMPOSSIBLE_CONTACT ||\r\n lastState == PatientJaasModuleEnum.RETIRED)\r\n ) {\r\n if (currentBarrierId !== null) {\r\n setBarrierFlag(BarrierFlagEnum.INACTIVE_INACTIVE);\r\n setTextBridgeModal(textCommentBarrier + \" \" + currentBarrierName);\r\n } else {\r\n setBarrierFlag(BarrierFlagEnum.ACTIVE_INACTIVE);\r\n setTextBridgeModal();\r\n }\r\n handleOpenBridgeModal();\r\n return;\r\n }\r\n callBack();\r\n }, [openDlg]);\r\n\r\n useEffect(() => {\r\n callApi(\r\n () => getBarrierList(currentImpactId),\r\n (data) => {\r\n setBarrierList(data.barrierList);\r\n setCurrentBarrierId(data.idSelected);\r\n setCurrentBarrierName(data.barrierName);\r\n setCurrentBarrierComment(data.comment);\r\n }\r\n );\r\n }, []);\r\n\r\n const onClickNo = () => {\r\n callBack();\r\n handleCloseBridgeModal();\r\n };\r\n\r\n const onClickYes = () => {\r\n switch (barrierFlag) {\r\n case BarrierFlagEnum.ACTIVE_INACTIVE:\r\n handleOpenBarrierModal();\r\n break;\r\n case BarrierFlagEnum.INACTIVE_ACTIVE:\r\n var obj = {\r\n impactId: currentImpactId,\r\n barrierId: null,\r\n comment: \"\",\r\n };\r\n updateBarrierFunction(obj);\r\n break;\r\n case BarrierFlagEnum.INACTIVE_INACTIVE:\r\n handleOpenBarrierModal();\r\n if (currentBarrierId != null) {\r\n setTimeout(() => {\r\n setValue(\"barrierId\", getCboValue(barrierList, currentBarrierId));\r\n setValue(\"comment\", currentBarrierComment);\r\n }, 100);\r\n }\r\n break;\r\n default:\r\n }\r\n };\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n var obj = {\r\n impactId: currentImpactId,\r\n barrierId: Number(d.barrierId.value),\r\n comment: d.comment,\r\n };\r\n await updateBarrierFunction(obj);\r\n });\r\n\r\n const updateBarrierFunction = async (obj) => {\r\n if (callBack) await callBack();\r\n\r\n await callApiAsync(\r\n () => postUpdateBarrier(obj),\r\n () => {\r\n closeDialog();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {textBridgeModal}\r\n \r\n \r\n \r\n {((BarrierFlagEnum.INACTIVE_INACTIVE == barrierFlag &&\r\n currentBarrierId != null) ||\r\n BarrierFlagEnum.ACTIVE_INACTIVE == barrierFlag) && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={barrierList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default BarriersModal;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { updateSelectedPrescription } from \"actions/Management\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n callApi,\r\n postPatientAssignState,\r\n getPatientStateList,\r\n} from \"api/apiList\";\r\nimport BarriersModal from \"./barriersModal\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\nimport { getUserInfo, isDirectTracing } from \"app/routes/psp/services/userService\";\r\n\r\nconst FormPatientState = ({\r\n openDlg,\r\n closeDialog,\r\n currentRowObj,\r\n currentImpactId,\r\n callBack,\r\n allowEdit = true,\r\n lastState,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const [patientStateParentList, setPatientStateParentList] = useState([]);\r\n const [patientStateList, setPatientStateList] = useState([]);\r\n const [isLoaded, setIsLoaded] = useState(false);\r\n const [openBarrierModal, setOpenBarrierModal] = useState(false);\r\n const [lastStateParent, setLastStateParent] = useState(null);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const isDirectTracingConfig = isDirectTracing();\r\n\r\n const defaultValues = {\r\n stateParent: null,\r\n state: null,\r\n comment: \"\",\r\n };\r\n\r\n useEffect(() => {\r\n callApi(getPatientStateList, (data) => {\r\n setPatientStateParentList(data.parentStates);\r\n setPatientStateList(data.states);\r\n });\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (lastState == null) return;\r\n setLastStateParent(getParentIdById(lastState));\r\n }, [lastState, patientStateList]);\r\n\r\n const getParentIdById = (id) => {\r\n if (id == null) return;\r\n const state = patientStateList.find((state) => state.id === id);\r\n return state ? state.parentId : null;\r\n };\r\n\r\n const validationSchema = {\r\n state: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const stateParentValue = watch(\"stateParent\");\r\n\r\n useEffect(() => {\r\n if (isLoaded) setValue(\"state\", null);\r\n }, [stateParentValue]);\r\n\r\n useEffect(() => {\r\n if (!openDlg) {\r\n setIsLoaded(false);\r\n return;\r\n }\r\n\r\n setTimeout(() => {\r\n setValue(\r\n \"comment\",\r\n !currentRowObj || !currentRowObj.comment ? \"\" : currentRowObj.comment\r\n );\r\n\r\n const hasState = currentRowObj && currentRowObj.state;\r\n if (hasState) {\r\n const state = patientStateList.find(\r\n (x) => x.id === currentRowObj.state\r\n );\r\n setValue(\r\n \"stateParent\",\r\n !hasState ? null : getCboValue(patientStateParentList, state.parentId)\r\n );\r\n setValue(\r\n \"state\",\r\n !hasState ? null : getCboValue(patientStateList, state.id)\r\n );\r\n setIsLoaded(true);\r\n } else {\r\n setIsLoaded(true);\r\n }\r\n }, 200);\r\n }, [openDlg, currentRowObj]);\r\n\r\n const isBehringer = getUserInfo().shardKey === ShardKeyEnum.behringer;\r\n // const isCelltrion = getUserInfo().shardKey === ShardKeyEnum.celltrion;\\\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n if (isDirectTracingConfig || isBehringer) {\r\n handleOpenBarrierModal();\r\n } else {\r\n onSubmitCallBack();\r\n }\r\n });\r\n\r\n const onSubmitCallBack = handleSubmit(async (d) => {\r\n var obj = {\r\n patientStatusId: !currentRowObj ? 0 : currentRowObj.patientStatusId,\r\n impactId: currentImpactId,\r\n state: Number(d.state.value),\r\n comment: d.comment,\r\n };\r\n\r\n await callApiAsync(\r\n () => postPatientAssignState(obj),\r\n () => {\r\n NotificationManager.success(msgSuccess);\r\n const prescription = {\r\n ...selectedPrescription,\r\n patient: {\r\n ...selectedPrescription.patient,\r\n state: obj.state,\r\n },\r\n };\r\n dispatch(updateSelectedPrescription(prescription));\r\n\r\n if (callBack) callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n const getPatientStates = (parentId) => {\r\n if (!parentId) return [];\r\n\r\n return patientStateList.filter((x) => x.parentId === parentId.value);\r\n };\r\n const handleOpenBarrierModal = () => {\r\n setOpenBarrierModal(true);\r\n };\r\n const handleCloseBarrierModal = () => {\r\n setOpenBarrierModal(false);\r\n };\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={patientStateParentList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={getPatientStates(stateParentValue)}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormPatientState;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport Table from \"./table\";\r\nimport FormAdd from \"./formAdd\";\r\nimport { callApi, getPatientStateLog } from \"api/apiList\";\r\n\r\nconst existItemsInImpact = (impactId, dataList) =>\r\n dataList.find((x) => x.impactId == impactId) != undefined;\r\n\r\nconst PatientStateBox = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [openDlgAdd, setOpenDlgAdd] = useState(false);\r\n const [patientStateLogList, setPatientStateLogList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n const [lastState, setLastState] = useState(null);\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpenDlg(true);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getPatientStateLog(selectedPrescription.patient.id),\r\n (data) => {\r\n setPatientStateLogList(data);\r\n if (data && data.length > 0) {\r\n setLastState(data[0].state);\r\n } else {\r\n setLastState(null);\r\n }\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!openDlg) return;\r\n\r\n loadData();\r\n }, [openDlg]);\r\n\r\n return (\r\n <>\r\n \r\n setOpenDlg(false)}\r\n titleTextId=\"jaasModule.patientStates\"\r\n >\r\n \r\n setOpenDlgAdd(false)}\r\n currentImpactId={selectedPrescription.impactId}\r\n callBack={loadData}\r\n currentRowObj={currentRowObj}\r\n lastState={lastState}\r\n />\r\n
    \r\n {\r\n setOpenDlgAdd(true);\r\n setCurrentRowObj(null);\r\n }}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n disabled={existItemsInImpact(\r\n selectedPrescription.impactId,\r\n patientStateLogList\r\n )}\r\n >\r\n {}\r\n \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PatientStateBox;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport dayjs from \"dayjs\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { ShardKeyEnum } from \"constants/Enums\";\r\n\r\nconst FormCreateUpdate = (props) => {\r\n const {\r\n openCRU,\r\n handleRequestClose,\r\n obj,\r\n handleCreateUpdate,\r\n stateProvinceList,\r\n companyList,\r\n oplList,\r\n prescriptionId,\r\n currentObjEdit,\r\n getCitiesByStateProvinceId,\r\n callApi,\r\n pharmaAmount,\r\n boolList,\r\n deliverHealthData,\r\n barrier\r\n } = props;\r\n\r\n const isBehringer = getUserInfo().shardKey === ShardKeyEnum.atulado;\r\n const oplLabelId = isBehringer ? \"deliveryTracing.oplSell\" : \"deliveryTracing.oplBuy\";\r\n\r\n const getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n };\r\n\r\n const defaultValues = {\r\n estimatedDeliveryDate: null,\r\n deliveryDate: null,\r\n marketchainId: null,\r\n marketchainDeliveryId: null,\r\n stateProvinceId: null,\r\n cityId: null,\r\n companyId: null,\r\n deliveryPoint: \"\",\r\n comment: \"\",\r\n amount: \"\",\r\n amountDelivery: \"\",\r\n amountPharmaceutical: \"\",\r\n delivery: null,\r\n rrdc: null,\r\n psp: null,\r\n deliveryNumber: \"\",\r\n pendingFormatAmount: \"\",\r\n pendingFormatDate: null,\r\n pendingFormatEndDate: null,\r\n barrier: null\r\n };\r\n\r\n let validationSchema = {\r\n stateProvinceId: yup\r\n .object()\r\n .when(\"delivery\", {\r\n is: (delivery) => delivery && Number(delivery.value) === 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable(),\r\n cityId: yup\r\n .object()\r\n .when(\"delivery\", {\r\n is: (delivery) => delivery && Number(delivery.value) === 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable(),\r\n marketchainId: yup\r\n .object()\r\n .when(\"delivery\", {\r\n is: (delivery) => delivery && Number(delivery.value) === 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable(),\r\n delivery: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n estimatedDeliveryDate: yup\r\n .date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n deliveryNumber: yup\r\n .number()\r\n .typeError(IntlGetText(\"yup.numericValidation\"))\r\n .min(1, IntlGetText(\"yup.numericValidation\"))\r\n .max(100, IntlGetText(\"yup.invalidInput\"))\r\n .required()\r\n };\r\n\r\n if(!isBehringer){\r\n validationSchema.rrdc= yup\r\n .object()\r\n .when(\"delivery\", {\r\n is: (delivery) => delivery && Number(delivery.value) === 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable();\r\n validationSchema.psp= yup\r\n .object()\r\n .when(\"delivery\", {\r\n is: (delivery) => delivery && Number(delivery.value) === 1,\r\n then: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n })\r\n .nullable();\r\n }\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n const deliveryValue = watch(\"delivery\");\r\n\r\n const stateProvinceIdValue = watch(\"stateProvinceId\");\r\n const cityIdValue = watch(\"cityId\");\r\n const amountPharmaceuticalValue = watch(\"amountPharmaceutical\");\r\n const amountDeliveryPharmaceuticalValue = watch(\"amountDeliveryPharmaceutical\");\r\n const [isDisabled, setIsDisabled] = useState(false);\r\n const [cityList, setCityList] = useState([]);\r\n const [loadForm, setLoadForm] = useState({\r\n stateProvinceListLoaded: false,\r\n cityListLoaded: false,\r\n dataLoaded: false\r\n });\r\n\r\n const cboHandleDeliveryChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n useEffect(() => {\r\n const numericAmountValue = parseFloat(amountPharmaceuticalValue) || 1;\r\n let finalAmount = numericAmountValue/pharmaAmount.pharmaAmount ;\r\n setValue(\"amount\", finalAmount);\r\n }, [amountPharmaceuticalValue]);\r\n\r\n useEffect(() => {\r\n const numericAmountValue = parseFloat(amountDeliveryPharmaceuticalValue) || 1;\r\n let finalAmount = numericAmountValue/pharmaAmount.pharmaAmount;\r\n setValue(\"amountDelivery\", finalAmount);\r\n }, [amountDeliveryPharmaceuticalValue]);\r\n useEffect(() => {\r\n setValue(\"cityId\", null);\r\n if (!stateProvinceIdValue || !stateProvinceIdValue.value) {\r\n setCityList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getCitiesByStateProvinceId(stateProvinceIdValue.value),\r\n setCityList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [stateProvinceIdValue]);\r\n\r\n useEffect(() => {\r\n if (!loadForm.cityListLoaded && cityList.length > 0) {\r\n setValue(\r\n \"cityId\",\r\n getCboValue(cityList, obj != null ? obj.cityId : null)\r\n );\r\n setLoadForm({ ...loadForm, cityListLoaded: true });\r\n }\r\n }, [stateProvinceList, cityList]);\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"stateProvinceId\",\r\n !obj || !obj.stateProvinceId\r\n ? \"\"\r\n : getCboValue(stateProvinceList, obj.stateProvinceId)\r\n );\r\n setValue(\r\n \"marketchainDeliveryId\",\r\n !obj || !obj.marketChainDeliveryId\r\n ? \"\"\r\n : getCboValue(oplList, obj.marketChainDeliveryId)\r\n );\r\n setValue(\r\n \"estimatedDeliveryDate\",\r\n !obj || !obj.estimatedDeliveryDate\r\n ? null\r\n : dayjs(obj.estimatedDeliveryDate)\r\n );\r\n setValue(\r\n \"deliveryDate\",\r\n !obj || !obj.deliveryDate ? null : dayjs(obj.deliveryDate)\r\n );\r\n setValue(\r\n \"marketchainId\",\r\n !obj || !obj.marketChainId ? \"\" : getCboValue(oplList, obj.marketChainId)\r\n );\r\n setValue(\r\n \"companyId\",\r\n !obj || !obj.companyId ? \"\" : getCboValue(companyList, obj.companyId)\r\n );\r\n setValue(\r\n \"deliveryNumber\",\r\n !obj || !obj.deliveryNumber ? \"\" : obj.deliveryNumber\r\n );\r\n\r\n setValue(\"comment\", !obj || !obj.comment ? \"\" : obj.comment);\r\n setValue(\r\n \"deliveryPoint\",\r\n !obj || !obj.deliveryPoint ? \"\" : obj.deliveryPoint\r\n );\r\n setValue(\"amount\", !obj || !obj.amount ? \"\" : obj.amount);\r\n setValue(\r\n \"amountPharmaceutical\",\r\n !obj || (!obj.amount && !obj.phamaceuticalQuantity)\r\n ? \"\"\r\n : obj.amount * obj.phamaceuticalQuantity\r\n );\r\n setValue(\r\n \"amountDelivery\",\r\n !obj || !obj.amountDelivery ? \"\" : obj.amountDelivery\r\n );\r\n setValue(\r\n \"amountDeliveryPharmaceutical\",\r\n !obj || (!obj.amountDelivery && !obj.phamaceuticalQuantity)\r\n ? \"\"\r\n : obj.amountDelivery * obj.phamaceuticalQuantity\r\n );\r\n\r\n setValue(\r\n \"delivery\",\r\n !obj || obj.record === null\r\n ? \"\"\r\n : getCboValue(boolList, obj.record ? 1 : 0)\r\n );\r\n setValue(\r\n \"rrdc\",\r\n !obj || obj.rrdc === null ? \"\" : getCboValue(boolList, obj.rrdc ? 1 : 0)\r\n );\r\n setValue(\r\n \"psp\",\r\n !obj || obj.psp === null ? \"\" : getCboValue(boolList, obj.psp ? 1 : 0)\r\n );\r\n setValue(\r\n \"cityId\",\r\n !obj || !obj.cityId ? \"\" : getCboValue(cityList, obj.cityId)\r\n );\r\n setValue(\r\n \"barrier\",\r\n !obj || !obj.stateProvinceId\r\n ? \"\"\r\n : getCboValue(barrier, obj.barrierOptionsId)\r\n );\r\n setValue(\r\n \"pendingFormatDate\",\r\n !obj || !obj.pendingFormatDate ? null : dayjs(obj.pendingFormatDate)\r\n );\r\n setValue(\r\n \"pendingFormatEndDate\",\r\n !obj || !obj.pendingFormatDate ? null : dayjs(obj.pendingFormatEndDate)\r\n );\r\n setValue(\r\n \"pendingFormatAmount\",\r\n !obj || !obj.pendingFormatAmount ? \"\" : obj.pendingFormatAmount\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (openCRU) {\r\n setTimeout(loadData, 150);\r\n return;\r\n }\r\n setLoadForm({\r\n stateProvinceListLoaded: false,\r\n cityListLoaded: false,\r\n dataLoaded: false\r\n });\r\n }, [openCRU]);\r\n\r\n const handleRequestCloseTmp = () => {\r\n setLoadForm({\r\n stateProvinceListLoaded: false,\r\n cityListLoaded: false,\r\n dataLoaded: false\r\n });\r\n handleRequestClose();\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n if (deliverHealthData < d.deliveryNumber) {\r\n NotificationManager.warning(\r\n \"El número de entrega no puede ser mayor que el número registrado en la fórmula médica.\"\r\n );\r\n return;\r\n }\r\n\r\n const item = {\r\n id: obj?.id || 0,\r\n prescriptionId: prescriptionId,\r\n estimatedDeliveryDate: d.estimatedDeliveryDate ? dayjs(d.estimatedDeliveryDate).startOf('day').format('YYYY-MM-DDTHH:mm:ss') : null,\r\n deliveryDate: d.deliveryDate ? dayjs(d.deliveryDate).startOf('day').format('YYYY-MM-DDTHH:mm:ss') : null,\r\n record: d.delivery?.value == 1 ? true : false,\r\n deliveryNumber: !d.deliveryNumber ? null : parseInt(d.deliveryNumber),\r\n marketChainId: parseInt(d.marketchainId?.value) ,\r\n marketChainDeliveryId:\r\n d.marketchainDeliveryId?.value\r\n ? parseInt(d.marketchainDeliveryId.value)\r\n : null,\r\n companyId:\r\n d.companyId?.value ? parseInt(d.companyId.value) : null,\r\n cityId: parseInt(d.cityId?.value) ,\r\n deliveryPoint: d.deliveryPoint || null,\r\n comment: d.comment || null ,\r\n amount: d.amount ? parseFloat(d.amount) : null,\r\n amountDelivery:\r\n d.amountDelivery ? parseFloat(d.amountDelivery) : null,\r\n rrdc: d.rrdc?.value == null ? null : d.rrdc.value == 1 ? true : false,\r\n psp: d.psp?.value == null ? null : d.psp.value == 1 ? true : false,\r\n barrierOptionsId: d.barrier?.value\r\n ? parseInt(d.barrier.value)\r\n : null,\r\n pendingFormatDate: d.pendingFormatDate ? dayjs(d.pendingFormatDate).format(\"YYYY-MM-DDTHH:mm:ss\") : null,\r\n pendingFormatEndDate: d.pendingFormatEndDate ? dayjs(d.pendingFormatEndDate).format(\"YYYY-MM-DDTHH:mm:ss\") : null,\r\n pendingFormatAmount:\r\n d.pendingFormatAmount\r\n ? parseFloat(d.pendingFormatAmount)\r\n : null\r\n };\r\n\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const allowEdit = () => {\r\n if (obj && obj.record == true) return true;\r\n };\r\n\r\n const disabled = allowEdit();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={false}\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={false}\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n onChange={cboHandleDeliveryChange(\"delivery\")}\r\n options={boolList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit || disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n options={stateProvinceList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cityList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={oplList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {!isBehringer && (\r\n \r\n }\r\n options={oplList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={companyList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={false}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n {!isBehringer && (\r\n <>\r\n \r\n }\r\n options={boolList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={boolList}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n )}\r\n \r\n }\r\n options={barrier}\r\n margin=\"normal\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={false}\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={false}\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n disabled={!currentObjEdit}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n {currentObjEdit && (\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React from \"react\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport { postTracingDeliveryFile } from \"api/apiList\";\r\n\r\nconst MediaModal = ({ rowObj, open, handleRequestClose, edit, loadTable }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n if (loadTable) {\r\n loadTable();\r\n }\r\n handleRequestClose();\r\n }}\r\n actionApi={postTracingDeliveryFile}\r\n actionApiInfo={{ id: rowObj?.id }}\r\n // disabled={edit}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MediaModal;\r\n","import React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport MediaModal from \"./mediaModal\";\r\n\r\nconst TableAM = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n currentImpact,\r\n readOnly,\r\n setCurrentObjEdit, \r\n loadTable\r\n}) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\"\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\"\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\"\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\"\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\"\r\n }\r\n }\r\n };\r\n\r\n const [open, setOpen] = useState(false);\r\n const [edit, setEdit] = useState(false);\r\n const [currentRow, setCurrentRow] = useState({});\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n pagination: false\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n function getMaxId(data) {\r\n if (!data || data.length === 0) {\r\n return null;\r\n }\r\n\r\n return data.reduce((maxId, currentObj) => {\r\n return currentObj.id > maxId ? currentObj.id : maxId;\r\n }, data[0].id);\r\n }\r\n const maxId = getMaxId(data);\r\n\r\n const closeModal = () => {\r\n setOpen(false);\r\n };\r\n\r\n const openModal = (obj, edit) => {\r\n setEdit(edit);\r\n setCurrentRow(obj);\r\n setOpen(true);\r\n };\r\n\r\n let columns = [\r\n {\r\n name: \"estimatedDeliveryDate\",\r\n label: IntlGetText(\"deliveryTracing.estimatedDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"deliveryTracing.deliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"delivery\",\r\n label: IntlGetText(\"deliveryTracing.delivery\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n }\r\n },\r\n {\r\n name: \"cityName\",\r\n label: IntlGetText(\"core.city\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"marketChainName\",\r\n label: IntlGetText(\"deliveryTracing.opl\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"core.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"recordText\",\r\n label: IntlGetText(\"core.record\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = tableMeta.tableData[tableMeta.rowIndex];\r\n if (rowObj.id === maxId) {\r\n return (\r\n
    \r\n {\r\n setCurrentObjEdit(true);\r\n handleClick(tableMeta);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n openModal(rowObj, false)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n } else {\r\n return (\r\n
    \r\n {\r\n setCurrentObjEdit(false);\r\n handleClick(tableMeta);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n openModal(rowObj, true)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n {!readOnly && (\r\n
    \r\n {\r\n setCurrentObjEdit(true);\r\n handleClick(null);\r\n }}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAM;\r\n","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\n\r\nconst Indicator = ({ indicatorInfo }) => {\r\n const getIndicador = (prop) => {\r\n if (!indicatorInfo) return \"0\";\r\n var p = indicatorInfo[prop];\r\n if (!p && p !== 0) return \"0\";\r\n return p;\r\n };\r\n \r\n const getRemainder = () => {\r\n const total = getIndicador(\"medicineQuantity\");\r\n if(!total)\r\n return 0;\r\n\r\n const consumption = getIndicador(\"consumption\");\r\n if(!consumption)\r\n return total ? total : 0;\r\n\r\n return (total - consumption);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Indicator;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Form from \"./Form\";\r\nimport Table from \"./Table\";\r\nimport Indicator from \"./indicator.js\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getMarketChainListTD,\r\n getGetCities,\r\n getTracingDeliverList,\r\n postCreateUpdateTracingDelivery,\r\n getAllStateProvince,\r\n getCitiesByStateProvinceId,\r\n getGetCompanies,\r\n getPharmaAmount,\r\n} from \"api/apiList\";\r\nimport { callStartImpact, callReloadConsumptionTracing } from \"actions/Impact\";\r\nimport { BoolList, BarrierList } from \"constants/Enums\";\r\n\r\nconst TracingDelivery = ({ deliverHealthData }) => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const {\r\n impactStartDate,\r\n consentSigned,\r\n isCIRequired,\r\n reloadConsumptionTracing,\r\n } = useSelector(({ impact }) => impact);\r\n const [open, setOpen] = useState(false);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const handleOpenCRU = () => setOpenCRU(true);\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n const handleRequestCloseDel = () => setOpenDeleteDialog(false);\r\n const [setCityList] = useState([]);\r\n const [oplList, setOplList] = useState([]);\r\n const [tracingDeliveryList, setTracingDeliveryList] = useState([]);\r\n const [indicatorInfo] = useState(null);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [pharmaAmount, setPharmaAmount] = useState(null);\r\n const [currentObjEdit, setCurrentObjEdit] = useState(false);\r\n const [stateProvinceList, setStateProvinceList] = useState([]);\r\n const [companyList, setCompanyList] = useState([]);\r\n\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n setCurrentObjEdit(false);\r\n };\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const handleClickOpen = async () => {\r\n console.log(\"deliverHealthData\", deliverHealthData);\r\n\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n\r\n if (!deliverHealthData || deliverHealthData === 0) {\r\n NotificationManager.warning(\r\n \"Es necesario tener registrado la entrega en formula médica\"\r\n );\r\n return;\r\n }\r\n\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const loadDeliveryData = () => {\r\n callApi(\r\n () => getTracingDeliverList(selectedPrescription.id),\r\n setTracingDeliveryList\r\n );\r\n };\r\n const loadData = () => {\r\n loadDeliveryData();\r\n callApiAsync(\r\n () => getPharmaAmount(selectedPrescription.id),\r\n setPharmaAmount\r\n );\r\n callApi(getGetCities, setCityList);\r\n callApi(getMarketChainListTD, setOplList);\r\n };\r\n\r\n useEffect(() => {\r\n loadData();\r\n }, []);\r\n\r\n useEffect(() => {\r\n callApi(getAllStateProvince, setStateProvinceList);\r\n callApi(getGetCompanies, setCompanyList);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n useEffect(() => {\r\n if (reloadConsumptionTracing) {\r\n loadData();\r\n dispatch(callReloadConsumptionTracing(false));\r\n }\r\n }, [reloadConsumptionTracing]);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postCreateUpdateTracingDelivery(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n NotificationManager.success(msgSuccess);\r\n loadData();\r\n }\r\n );\r\n };\r\n\r\n var readOnly = false;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n currentImpact={selectedPrescription.impactId}\r\n readOnly={readOnly}\r\n setCurrentObjEdit={setCurrentObjEdit}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default TracingDelivery;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableD = ({\r\n data,\r\n handleOpenCRU,\r\n handleOpenDel,\r\n setCurrentRowObj,\r\n handleOpenFamiliar,\r\n handleOpenTestDisease\r\n}) => {\r\n const lifeTimeText = IntlGetText(\"additionalMedications.lifeTime\");\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\"\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\"\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\"\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\"\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\"\r\n }\r\n }\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n const openModalFamiliar = (tableMeta) => {\r\n handleOpenFamiliar();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n const openModalTestDisease = (tableMeta) => {\r\n handleOpenTestDisease();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"diagnosisDate\",\r\n label: IntlGetText(\"Diagnosis.DiagnosisDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"DD/MM/YYYY\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"diseaseTx\",\r\n label: IntlGetText(\"Diagnosis.Diagnosis\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"isConfirmedTx\",\r\n label: IntlGetText(\"Diagnosis.DiagnosisConfirmed\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n }\r\n },\r\n {\r\n name: \"orphanDiseaseTx\",\r\n label: IntlGetText(\"Diagnosis.OrphanDisease\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n \r\n \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n \r\n openModalFamiliar(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n \r\n openModalTestDisease(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TableD;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { companyTestConfirmationEnum } from \"constants/Enums\";\r\nimport { callApi, getDiagnosisSelects } from \"api/apiList\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\n\r\nconst FormD = ({ rowObj2, openD, handleRequestClose, handleCreateUpdate }) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const [rowObj, setCurrentObj] = useState(null);\r\n //Selects\r\n const [familyHistory, setFamilyHistory] = useState(\"1\");\r\n const [testInstitution, setTestInstitution] = useState(\"1\");\r\n const [diagnosisSubDiagnosis, setDiagnosisSubDiagnosis] = useState(null);\r\n\r\n const [disabled, setDisabled] = useState(false);\r\n\r\n const testConfitmationList = companyTestConfirmationEnum();\r\n\r\n const defaultValues = {\r\n orphanDisease: false,\r\n diagnosisConfirmed: false,\r\n diagnosisDate: null\r\n };\r\n\r\n const validationSchema = {\r\n diagnosisSubDiagnosis: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n diagnosisDate: yup\r\n .date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n companyTestConfirmation: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const loadSelect = () => {\r\n callApi(getDiagnosisSelects, (data) =>\r\n setDiagnosisSubDiagnosis(data.diseasesSelect)\r\n );\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const familyHistoryChange = (name) => (event) => {\r\n setFamilyHistory(event ? event.value : null);\r\n };\r\n\r\n const testInstitutionChange = (name) => (event) => {\r\n setTestInstitution(event ? event.value : null);\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n diseaseId: parseInt(d.diagnosisSubDiagnosis.value),\r\n personId: selectedPrescription.patient.id,\r\n diagnosisDate: !d.diagnosisDate\r\n ? null\r\n : dayjs(d.diagnosisDate).format(\"YYYY-MM-DDTHH:mm:ss\"), \r\n orphanDisease: d.orphanDisease,\r\n isConfirmed: d.diagnosisConfirmed,\r\n companyTestConfirmationId: parseInt(testInstitution)\r\n };\r\n await handleCreateUpdate(obj);\r\n handleRequestClose();\r\n };\r\n\r\n const loadData = () => {\r\n setValue(\"diagnosisDate\", !rowObj ? null : rowObj.diagnosisDate);\r\n setValue(\r\n \"diagnosisSubDiagnosis\",\r\n getCboValue(diagnosisSubDiagnosis, !rowObj ? 0 : rowObj.diseaseId)\r\n );\r\n setValue(\r\n \"companyTestConfirmation\",\r\n getCboValue(\r\n testConfitmationList,\r\n !rowObj ? 0 : rowObj.companyTestConfirmationId\r\n )\r\n );\r\n setValue(\"orphanDisease\", !rowObj ? false : rowObj.orphanDisease);\r\n setValue(\"diagnosisConfirmed\", !rowObj ? false : rowObj.isConfirmed);\r\n };\r\n\r\n useEffect(() => {\r\n loadSelect();\r\n }, []);\r\n\r\n useEffect(() => {\r\n setCurrentObj(rowObj2);\r\n if (rowObj2) {\r\n setDisabled(true);\r\n }\r\n }, [rowObj2]);\r\n\r\n useEffect(() => {\r\n if (openD) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [rowObj, openD]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n required={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n \r\n }\r\n options={diagnosisSubDiagnosis}\r\n value={watch(\"diagnosisSubDiagnosis\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n }\r\n options={testConfitmationList}\r\n value={watch(\"companyTestConfirmation\")}\r\n onChange={testInstitutionChange(\"companyTestConfirmation\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n\r\n \r\n }\r\n value={watch(\"orphanDisease\")}\r\n onChange={chkHandleChange(\"orphanDisease\")}\r\n />\r\n \r\n\r\n \r\n }\r\n value={watch(\"diagnosisConfirmed\")}\r\n onChange={chkHandleChange(\"diagnosisConfirmed\")}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormD;\r\n","import React from \"react\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport { postDiagnosisFile } from \"api/apiList\";\r\n\r\nconst MediaModal = ({ rowObj, open, handleRequestClose, loadTable }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n if (loadTable) {\r\n loadTable();\r\n }\r\n handleRequestClose();\r\n }}\r\n actionApi={postDiagnosisFile}\r\n actionApiInfo={{ id: rowObj?.id }}\r\n disabled={false}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MediaModal;\r\n","import React, { useState } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport MediaModal from \"./mediaModal\";\r\n\r\nconst TableTestDisease = ({ data, handleOpenDel, setCurrentRowObj, loadTable }) => {\r\n const [open, setOpen] = useState(false);\r\n const [currentRow, setCurrentRow] = useState({});\r\n\r\n const closeModal = () => {\r\n setOpen(false);\r\n };\r\n\r\n const openModal = (obj) => {\r\n setCurrentRow(obj);\r\n setOpen(true);\r\n };\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\"\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\"\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\"\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\"\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\"\r\n }\r\n }\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels\r\n };\r\n\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const getObj = (tableMeta) => {\r\n return data.find((x) => x.id === tableMeta.rowData[0]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: IntlGetText(\"Diagnosis.Prove\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n display: false\r\n }\r\n },\r\n {\r\n name: \"diseaseConfirmationTestTx\",\r\n label: IntlGetText(\"Diagnosis.Prove\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"diseaseConfirmationTestId\",\r\n label: IntlGetText(\"Diagnosis.Prove\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n display: false\r\n }\r\n },\r\n {\r\n name: \"diagnosisConfirmationTypeId\",\r\n label: IntlGetText(\"Diagnosis.DiagnosisConfirmationMode\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value === 1 ? \"Clínico\" : \"Laboratorio\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n
    \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n\r\n openModal(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableTestDisease;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport { diagnosisConfirmation } from \"constants/Enums\";\r\nimport TableTestDisease from \"./tableTestDisease.js\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getDiagnosisSelects,\r\n saveDiagnosisRecordConfirmationTests,\r\n DeleteDiagnosticRecordConfirmationTestCommand,\r\n GetDiagnosisRecordConfirmationTestByDiagnosisRecordId\r\n} from \"api/apiList.js\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst FormTestDisease = ({\r\n rowObj2,\r\n impactId,\r\n openTestDisease,\r\n handleRequestClose,\r\n loadDiagnosisTable\r\n}) => {\r\n const [rowObj, setCurrentObj] = useState(null);\r\n //Selects\r\n const [testDisease, setTestDisease] = useState(null);\r\n const [testDiseaseTable, setTestDiseaseTable] = useState([]);\r\n const [disabled, setDisabled] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [diagnosisConfirmationMode, setDiagnosisConfirmationMode] = useState(\r\n null\r\n );\r\n const [\r\n diseaseConfirmationTestSelect,\r\n setDiseaseConfirmationTestSelect\r\n ] = useState([]);\r\n\r\n const defaultValues = {\r\n orphanDisease: false,\r\n diagnosisConfirmed: false,\r\n diagnosisDate: null\r\n };\r\n\r\n const loadSelect = () => {\r\n callApi(getDiagnosisSelects, (data) =>\r\n setDiseaseConfirmationTestSelect(data.diseaseConfirmationTestSelect)\r\n );\r\n };\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const validationSchema = {\r\n // testDisease: yup\r\n // .object()\r\n // .shape({ value: yup.string().required() })\r\n // .required()\r\n // .nullable()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const testDiseaseChange = (name) => (event) => {\r\n setTestDisease(event ? event.value : null);\r\n };\r\n\r\n const diagnosisConfirmationModeChange = (name) => (event) => {\r\n setDiagnosisConfirmationMode(event ? event.value : null);\r\n };\r\n\r\n const watchTestDisease = watch(\"testDisease\");\r\n const diagnosisConfirmationModeList = diagnosisConfirmation();\r\n\r\n const onSubmit = async (d, e) => {\r\n if (!watchTestDisease) {\r\n NotificationManager.warning(\r\n \"Debe seleccionar prueba confirmatoria de la enfermedad\"\r\n );\r\n return;\r\n }\r\n\r\n if (!diagnosisConfirmationMode) {\r\n NotificationManager.warning(\r\n \"Debe seleccionar modo de confirmación del diagnóstico\"\r\n );\r\n return;\r\n }\r\n var existRecords = 0;\r\n let updatedList = [];\r\n\r\n for (const item of watchTestDisease) {\r\n const alreadyExists = testDiseaseTable.some(\r\n (entry) => entry.diseaseConfirmationTestId === item.value\r\n );\r\n if (!alreadyExists) {\r\n const newEntry = {\r\n diseaseConfirmationTestId: item.value,\r\n diseaseConfirmationTestTx: item.label,\r\n diagnosisConfirmationTypeId: diagnosisConfirmationMode\r\n };\r\n setTestDiseaseTable((prev) => [...prev, newEntry]);\r\n\r\n const dataToSend = {\r\n diseaseConfirmationTestId: item.value,\r\n diagnosisConfirmationTypeId: diagnosisConfirmationMode\r\n };\r\n\r\n // Agregar a la lista temporal\r\n updatedList.push(dataToSend);\r\n } else {\r\n existRecords++;\r\n }\r\n }\r\n\r\n setTestDisease(null);\r\n setValue(\"testDisease\", null);\r\n\r\n setDiagnosisConfirmationMode(null);\r\n setValue(\"diagnosisConfirmationMode\", null);\r\n if (existRecords > 0) {\r\n if (existRecords == watchTestDisease.length) {\r\n NotificationManager.warning(\r\n \"Las opciones seleccionadas ya están registradas\"\r\n );\r\n return;\r\n }\r\n NotificationManager.warning(\r\n \"Algunas de las opciones seleccionadas ya están registradas. Solo se añadirán las nuevas opciones seleccionadas\"\r\n );\r\n }\r\n\r\n var data = {\r\n diagnosisRecordConfirmationTests: updatedList,\r\n diagnosisRecordId: rowObj.id\r\n };\r\n await callApiAsync(\r\n () => saveDiagnosisRecordConfirmationTests(data),\r\n (response) => {\r\n NotificationManager.success(msgSuccess);\r\n setTestDiseaseTable(response);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadSelect();\r\n }, []);\r\n\r\n useEffect(() => {\r\n setCurrentObj(rowObj2);\r\n if (rowObj2) {\r\n setDisabled(true);\r\n }\r\n }, [rowObj2]);\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => GetDiagnosisRecordConfirmationTestByDiagnosisRecordId(rowObj2?.id),\r\n (data) => setTestDiseaseTable(data)\r\n );\r\n };\r\n\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n useEffect(() => {\r\n if (openTestDisease) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [rowObj, openTestDisease]);\r\n\r\n const handleDelete = async (d, e) => {\r\n await callApiAsync(() =>\r\n DeleteDiagnosticRecordConfirmationTestCommand(currentRowObj[0])\r\n );\r\n setTestDiseaseTable((prev) =>\r\n prev.filter((item) => item.diseaseConfirmationTestId !== currentRowObj[2])\r\n );\r\n\r\n handleRequestCloseDel();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n }\r\n options={diseaseConfirmationTestSelect}\r\n value={watch(\"testDisease\")}\r\n onChange={testDiseaseChange(\"testDisease\")}\r\n margin=\"normal\"\r\n isMulti\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n \r\n }\r\n options={diagnosisConfirmation()}\r\n value={watch(\"diagnosisConfirmationMode\")}\r\n onChange={diagnosisConfirmationModeChange(\r\n \"diagnosisConfirmationMode\"\r\n )}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n {\r\n onSubmit();\r\n }}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n\r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n loadTable={loadData}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormTestDisease;\r\n","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TableFamiliar = ({ data, handleOpenDel, setCurrentRowObj }) => {\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\"\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\"\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\"\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\"\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\"\r\n }\r\n }\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels\r\n };\r\n\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(tableMeta.tableData[tableMeta.rowIndex]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"familyHistoryTx\",\r\n label: IntlGetText(\"Diagnosis.Familiar\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n
    \r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableFamiliar;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { diagnosisFamilyHistoryList } from \"constants/Enums\";\r\nimport TableFamiliar from \"./tableFamiliar.js\";\r\nimport { callApiAsync, saveFamilyHistoryIds, DeleteFamilyHistoryCommand } from \"api/apiList.js\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst FormFamiliar = ({\r\n rowObj2,\r\n impactId,\r\n openFamiliar,\r\n handleRequestClose\r\n}) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const [rowObj, setCurrentObj] = useState(null);\r\n //Selects\r\n const [familyHistory, setFamilyHistory] = useState(null);\r\n const [familiarTable, setFamiliarTable] = useState([]);\r\n const [disabled, setDisabled] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n\r\n const defaultValues = {\r\n orphanDisease: false,\r\n diagnosisConfirmed: false,\r\n diagnosisDate: null\r\n };\r\n\r\n const validationSchema = {\r\n familyHistory: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const familyHistoryChange = (name) => (event) => {\r\n setFamilyHistory(event ? event.value : null);\r\n };\r\n\r\n const watchFamilyHistory = watch(\"familyHistory\");\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n if (!watchFamilyHistory) {\r\n NotificationManager.warning(\"Debe seleccionar familiar\");\r\n return;\r\n }\r\n\r\n var existRecords=0;\r\n let updatedList = [];\r\n\r\n watchFamilyHistory.forEach((item) => {\r\n const alreadyExists = familiarTable.some(\r\n (entry) => entry.id === item.value\r\n );\r\n if (!alreadyExists) {\r\n const newEntry = {\r\n id: item.value,\r\n familyHistoryTx: item.label\r\n };\r\n updatedList.push(item.value);\r\n\r\n setFamiliarTable((prev) => [...prev, newEntry]);\r\n }else{\r\n existRecords++;\r\n }\r\n });\r\n setFamilyHistory(null);\r\n setValue(\"familyHistory\", null);\r\n if(existRecords>0){\r\n if(existRecords == watchFamilyHistory.length){\r\n NotificationManager.warning(\r\n \"Las opciones seleccionadas ya est�n registradas\"\r\n );\r\n return;\r\n }\r\n NotificationManager.warning(\r\n \"Algunas de las opciones seleccionadas ya est�n registradas. Solo se a�adir�n las nuevas opciones seleccionadas\"\r\n );\r\n }\r\n\r\n var dataToSend = {\r\n familyHistoryIds: updatedList,\r\n diagnosisRecordId: rowObj.id\r\n };\r\n await callApiAsync(\r\n () => saveFamilyHistoryIds(dataToSend),\r\n (response) => {\r\n NotificationManager.success(msgSuccess);\r\n setFamiliarTable(response);\r\n },\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n setCurrentObj(rowObj2);\r\n if (rowObj2) {\r\n setDisabled(true);\r\n }\r\n }, [rowObj2]);\r\n\r\n const loadData = () => {\r\n setFamiliarTable(rowObj ? rowObj.familyHistoryTable : []);\r\n };\r\n\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n useEffect(() => {\r\n if (openFamiliar) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [rowObj, openFamiliar]);\r\n\r\n const handleDelete = async (d, e) => {\r\n await callApiAsync(() => DeleteFamilyHistoryCommand(currentRowObj.id));\r\n setFamiliarTable((prev) =>\r\n prev.filter((item) => item.id !== currentRowObj.id)\r\n );\r\n \r\n handleRequestCloseDel();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={diagnosisFamilyHistoryList()}\r\n value={watch(\"familyHistory\")}\r\n onChange={familyHistoryChange(\"familyHistory\")}\r\n margin=\"normal\"\r\n isMulti\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n
    \r\n onSubmit()}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n\r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormFamiliar;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAdditionalMedications,\r\n getDiagnosisRecordByPersonId,\r\n SaveDiagnosisRecord,\r\n saveDiagnosisRecordConfirmationTests,\r\n saveFamilyHistoryIds\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport TableD from \"./TableD\";\r\nimport FormD from \"./FormD\";\r\nimport FormTestDisease from \"./formTestDisease\";\r\nimport FormFamiliar from \"./formFamiliar\";\r\n\r\nexport const getNameEnumById = (id) => {\r\n const confirmationTypes = [\r\n { id: 1, name: IntlGetText(\"Diagnosis.clinic\") },\r\n { id: 2, name: IntlGetText(\"Diagnosis.laboratory\") }\r\n ];\r\n const confirmation = confirmationTypes.find((item) => item.id === id);\r\n return confirmation ? confirmation.name : undefined;\r\n};\r\n\r\nconst Diagnosis = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openD, setOpenD] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [openFamiliarDialog, setOpenFamiliarDialog] = useState(false);\r\n const [openTestDiseaseDialog, setOpenTestDiseaseDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [diagnosisTableData, setDiagnosisTableData] = useState([]);\r\n\r\n const loadTable = () =>\r\n callApi(\r\n () => getDiagnosisRecordByPersonId(selectedPrescription.patient.id),\r\n (data) => setDiagnosisTableData(data)\r\n );\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpenCRU = () => {\r\n setOpenD(true);\r\n };\r\n const handleRequestCloseCRU = () => {\r\n setOpenD(false);\r\n };\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n const handleCloseFamiliar = () => {\r\n loadTable();\r\n setOpenFamiliarDialog(false);\r\n };\r\n\r\n const handleCloseTestDisease = () => {\r\n loadTable();\r\n setOpenTestDiseaseDialog(false);\r\n };\r\n\r\n useEffect(() => {\r\n loadTable();\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(() => SaveDiagnosisRecord(data));\r\n loadTable();\r\n };\r\n\r\n const handleCreateUpdateTestDisease = async (data) => {\r\n await callApiAsync(() => saveDiagnosisRecordConfirmationTests(data));\r\n };\r\n\r\n const handleDelete = () => {\r\n console.log(\"AQUI ELIMINAMOS UN REGISTRO\");\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n handleOpenFamiliar={() => setOpenFamiliarDialog(true)}\r\n handleOpenTestDisease={() => setOpenTestDiseaseDialog(true)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Diagnosis;\r\n","import React from \"react\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport { postAdverseReactionFile } from \"api/apiList\";\r\n\r\nconst MediaModal = ({ rowObj, open, handleRequestClose, loadTable }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n if (loadTable) {\r\n loadTable();\r\n }\r\n handleRequestClose();\r\n }}\r\n actionApi={postAdverseReactionFile}\r\n actionApiInfo={{ id: rowObj?.id }}\r\n disabled={false}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MediaModal;\r\n","import React, { useState } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport MediaModal from \"./mediaModal\";\r\n\r\nconst TableAdverseReaction = ({\r\n data,\r\n handleOpenCRU,\r\n setCurrentRowObj,\r\n loadTable,\r\n}) => {\r\n const [openFile, setFileOpen] = useState(false);\r\n const [currentRow, setCurrentRow] = useState({});\r\n\r\n const closeFileModal = () => {\r\n setFileOpen(false);\r\n };\r\n const openFileModal = (obj) => {\r\n setCurrentRow(obj);\r\n setFileOpen(true);\r\n };\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`,\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\",\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\",\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\",\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\",\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\",\r\n },\r\n },\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels,\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"productName\",\r\n label: IntlGetText(\"AdverseReaction.product\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"typeTx\",\r\n label: IntlGetText(\"AdverseReaction.type\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"eventDateTx\",\r\n label: IntlGetText(\"AdverseReaction.date\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"description\",\r\n label: IntlGetText(\"AdverseReaction.description\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"outcomeTx\",\r\n label: IntlGetText(\"AdverseReaction.outcome\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const rowData = tableMeta.tableData[tableMeta.rowIndex];\r\n\r\n if (rowData.outcomeId === 1 || rowData.outcomeId === 2) {\r\n return (\r\n
    \r\n openFileModal(rowData)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n openFileModal(rowData)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableAdverseReaction;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n adverseReactionOutcomeEnum,\r\n adverseReactionOutcomesEnum,\r\n} from \"constants/Enums\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { callApi, getAdverseReactionTypes } from \"api/apiList\";\r\n\r\nconst FormAdverseReaction = ({\r\n rowObj2,\r\n openForm,\r\n handleRequestClose,\r\n handleCreateUpdate,\r\n}) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const [adverseReactionTypes, setAdverseReactionTypes] = useState([]);\r\n\r\n const adverseReactionOutcomes = adverseReactionOutcomeEnum();\r\n const [isEditable, setIsEditable] = useState(false);\r\n\r\n const validationSchema = {\r\n typeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n reactionDate: yup\r\n .date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n description: yup\r\n .string()\r\n .max(500, \"La descripción no puede tener más de 500 caracteres\")\r\n .required(),\r\n outcomeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n\r\n const defaultValues = {\r\n reactionDate: null,\r\n typeId: null,\r\n outcomeId: null,\r\n description: \"\",\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n useEffect(() => {\r\n if (openForm && rowObj2 != null) {\r\n setTimeout(() => {\r\n loadData();\r\n }, 150);\r\n return;\r\n }\r\n setIsEditable(false);\r\n }, [rowObj2, openForm]);\r\n\r\n useEffect(() => {\r\n if (!openForm) return;\r\n adverseReactionTypesFn();\r\n }, [openForm]);\r\n\r\n const adverseReactionTypesFn = () => {\r\n callApi(getAdverseReactionTypes, (data) => setAdverseReactionTypes(data));\r\n };\r\n\r\n const loadData = () => {\r\n if (rowObj2.outcomeId == adverseReactionOutcomesEnum.RECOVERED) {\r\n setIsEditable(true);\r\n }\r\n setValue(\r\n \"reactionDate\",\r\n !rowObj2 || !rowObj2.eventDate ? null : dayjs(rowObj2.eventDate)\r\n );\r\n setValue(\"outcomeId\", !rowObj2 ? null : rowObj2.outcomeId);\r\n setValue(\r\n \"outcomeId\",\r\n !rowObj2 || !rowObj2.outcomeId\r\n ? \"\"\r\n : getCboValue(adverseReactionOutcomes, rowObj2.outcomeId)\r\n );\r\n setValue(\r\n \"typeId\",\r\n !rowObj2 || !rowObj2.typeId\r\n ? \"\"\r\n : getCboValue(adverseReactionTypes, rowObj2.typeId)\r\n );\r\n setValue(\"description\", !rowObj2 ? \"\" : rowObj2.description);\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj2 ? 0 : rowObj2.id,\r\n PrescriptionId: selectedPrescription.id,\r\n EventDate: !d.reactionDate\r\n ? null\r\n : dayjs(d.reactionDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n Description: d.description,\r\n TypeId: parseInt(d.typeId.value),\r\n OutcomeId: parseInt(d.outcomeId.value),\r\n };\r\n await handleCreateUpdate(obj);\r\n reset();\r\n handleRequestClose();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={adverseReactionTypes}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isEditable}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isEditable}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isEditable}\r\n />\r\n \r\n \r\n }\r\n options={adverseReactionOutcomes}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={isEditable}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormAdverseReaction;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getAdverseReactionByPersonId,\r\n saveAdverseReaction,\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport TableAdverseReaction from \"./TableAdverseReaction\";\r\nimport FormAdverseReaction from \"./formAdverseReaction\";\r\n\r\nconst AdverseReaction = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired} = useSelector(\r\n ({ impact }) => impact\r\n );\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openForm, setOpenForm] = useState(false);\r\n const [adverseReactionTableData, setAdverseReactionTableData] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleRequestCloseCRU = () => {\r\n setCurrentRowObj(null);\r\n setOpenForm(false);\r\n };\r\n\r\n const handleOpenCRU = () => {\r\n setOpenForm(true);\r\n };\r\n\r\n const loadTable = () =>\r\n callApi(\r\n () => getAdverseReactionByPersonId(selectedPrescription.patient.id),\r\n (data) => setAdverseReactionTableData(data)\r\n );\r\n\r\n useEffect(() => {\r\n loadTable();\r\n }, []);\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(() => saveAdverseReaction(data));\r\n loadTable();\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AdverseReaction;\r\n","import React from \"react\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport { postControlExamFile } from \"api/apiList\";\r\n\r\nconst MediaModal = ({ rowObj, open, handleRequestClose, loadTable }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n if (loadTable) {\r\n loadTable();\r\n }\r\n handleRequestClose();\r\n }}\r\n actionApi={postControlExamFile}\r\n actionApiInfo={{ id: rowObj?.id }}\r\n disabled={false}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MediaModal;\r\n","import React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport MUIDataTable from \"mui-datatables\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport MediaModal from \"./mediaModal\";\r\n\r\nconst TableCE = ({ data, handleOpenCRU, setCurrentRowObj, loadTable }) => {\r\n const [open, setOpen] = useState(false);\r\n const [currentRow, setCurrentRow] = useState({});\r\n\r\n const closeModal = () => {\r\n setOpen(false);\r\n };\r\n\r\n const openModal = (obj) => {\r\n setCurrentRow(obj);\r\n setOpen(true);\r\n };\r\n\r\n const datatableConfig = {\r\n textLabels: {\r\n body: {\r\n noMatch: \"No hay resultados para la búsqueda actual\",\r\n toolTip: \"Ordenar\",\r\n columnHeaderTooltip: (column) => `Ordernar por ${column.label}`\r\n },\r\n pagination: {\r\n next: \"Siguiente\",\r\n previous: \"Anterior\",\r\n rowsPerPage: \"Items por pagina:\",\r\n displayRows: \"de\"\r\n },\r\n toolbar: {\r\n search: \"Busqueda\",\r\n downloadCsv: \"Descargar CSV\",\r\n print: \"Imprimir\",\r\n viewColumns: \"Ver columnas\",\r\n filterTable: \"Filtro\"\r\n },\r\n filter: {\r\n all: \"Todos\",\r\n title: \"FILTRO\",\r\n reset: \"LIMPIAR\"\r\n },\r\n viewColumns: {\r\n title: \"Mostrar columnas\",\r\n titleAria: \"Mostrar/Ocultar columnas\"\r\n },\r\n selectedRows: {\r\n text: \"item(s) seleccionados\",\r\n delete: \"Borrar\",\r\n deleteAria: \"Borrar filas seleccionadas\"\r\n }\r\n }\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: datatableConfig.textLabels\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(\r\n !tableMeta ? null : tableMeta.tableData[tableMeta.rowIndex]\r\n );\r\n };\r\n\r\n const getObj = (tableMeta) => {\r\n return data.find((x) => x.id === tableMeta.rowData[0]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\"\r\n }\r\n },\r\n {\r\n name: \"examDate\",\r\n label: IntlGetText(\"ControlExam.ControlExamDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"DD/MM/YYYY\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"controlExamTx\",\r\n label: IntlGetText(\"ControlExam.ControlExamName\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"result\",\r\n label: IntlGetText(\"ControlExam.result\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"controlExamUnitTypeTx\",\r\n label: IntlGetText(\"ControlExam.units\"),\r\n options: {\r\n filter: false,\r\n sort: true\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: \"Acciones\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n\r\n openModal(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default TableCE;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { entityProviderTypeEnum } from \"constants/Enums\";\r\nimport { callApi, getControlExamSelects } from \"api/apiList\";\r\nimport { useSelector } from \"react-redux\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\n\r\nconst FormCE = ({\r\n rowObj2,\r\n impactId,\r\n openCE,\r\n handleRequestClose,\r\n handleCreateUpdate\r\n}) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management); //id\r\n\r\n const [rowObj, setCurrentObj] = useState(null);\r\n //Selects\r\n const [controlExamSelect, setControlExamSelect] = useState(null);\r\n const [controlExamUnitTypeSelect, setControlExamUnitTypeSelect] = useState(\r\n null\r\n );\r\n\r\n const [disabled, setDisabled] = useState(false);\r\n\r\n const entityProviderTypeList = entityProviderTypeEnum();\r\n\r\n const defaultValues = {\r\n controlExamDate: null\r\n };\r\n\r\n const validationSchema = {\r\n entityProviderType: yup\r\n .object()\r\n .shape({ value: yup.string().required(\"Este campo es obligatorio\") })\r\n .required(\"Este campo es obligatorio\")\r\n .nullable(),\r\n\r\n padCode: yup.string().when(\"entityProviderType\", {\r\n is: (entityProviderType) => entityProviderType?.value == 1,\r\n then: yup.string().required(),\r\n otherwise: yup.string().nullable()\r\n }),\r\n\r\n controlExamUnitType: yup\r\n .object()\r\n .shape({ value: yup.string().required(\"Este campo es obligatorio\") })\r\n .required(\"Este campo es obligatorio\")\r\n .nullable(),\r\n\r\n controlExamDate: yup\r\n .date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n\r\n result: yup\r\n .string()\r\n // .typeError(\"El resultado debe ser un número\")\r\n // .min(1, IntlGetText(\"yup.numericValidation\"))\r\n // .max(50000, IntlGetText(\"yup.invalidInput\"))\r\n .required(),\r\n\r\n units: yup\r\n .object()\r\n .shape({ value: yup.string().required(\"Este campo es obligatorio\") })\r\n .required(\"Este campo es obligatorio\")\r\n .nullable()\r\n };\r\n\r\n const loadSelect = () => {\r\n callApi(getControlExamSelects, (data) => {\r\n setControlExamSelect(data.controlExamSelect);\r\n setControlExamUnitTypeSelect(data.controlExamUnitTypeSelect);\r\n });\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors } = methods;\r\n\r\n const entityProviderTypeValue = watch(\"entityProviderType\");\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n personId: selectedPrescription.patient.id,\r\n controlExamId: parseInt(d.controlExamUnitType.value),\r\n entityProviderTypeId: parseInt(d.entityProviderType.value),\r\n examDate: !d.controlExamDate\r\n ? null\r\n : dayjs(d.controlExamDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n padcode: d.padCode,\r\n result: d.result,\r\n controlExamUnitTypeId: parseInt(d.units.value)\r\n };\r\n\r\n await handleCreateUpdate(obj);\r\n handleRequestClose();\r\n };\r\n\r\n const loadData = () => {\r\n setValue(\r\n \"controlExamUnitType\",\r\n getCboValue(controlExamSelect, !rowObj ? 0 : rowObj.controlExamId)\r\n );\r\n setValue(\"controlExamDate\", !rowObj ? null : rowObj.examDate);\r\n setValue(\"result\", !rowObj ? \"\" : rowObj.result);\r\n\r\n setValue(\r\n \"entityProviderType\",\r\n getCboValue(\r\n entityProviderTypeList,\r\n !rowObj ? 0 : rowObj.entityProviderTypeId\r\n )\r\n );\r\n setValue(\r\n \"units\",\r\n getCboValue(\r\n controlExamUnitTypeSelect,\r\n !rowObj ? 0 : rowObj.controlExamUnitTypeId\r\n )\r\n );\r\n setValue(\"padCode\", !rowObj ? \"\" : rowObj.padCode);\r\n };\r\n\r\n useEffect(() => {\r\n loadSelect();\r\n }, []);\r\n\r\n useEffect(() => {\r\n setCurrentObj(rowObj2);\r\n if (rowObj2) {\r\n setDisabled(true);\r\n }\r\n }, [rowObj2]);\r\n\r\n useEffect(() => {\r\n if (openCE) {\r\n setTimeout(loadData, 150);\r\n }\r\n }, [rowObj, openCE]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={entityProviderTypeList}\r\n value={watch(\"entityProviderType\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n\r\n {entityProviderTypeValue?.value === 1 && (\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n )}\r\n\r\n \r\n }\r\n options={controlExamSelect}\r\n value={watch(\"controlExamUnitType\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n }\r\n options={controlExamUnitTypeSelect}\r\n value={watch(\"units\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormCE;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { callApi, callApiAsync, getControlExamTable, saveControlExamRecord } from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\nimport TableCE from \"./tableCE\";\r\nimport FormCE from \"./formCE\";\r\n\r\nexport const getNameEnumById = (id) => {\r\n const confirmationTypes = [\r\n { id: 1, name: IntlGetText(\"Diagnosis.clinic\") },\r\n { id: 2, name: IntlGetText(\"Diagnosis.laboratory\") }\r\n ];\r\n const confirmation = confirmationTypes.find((item) => item.id === id);\r\n return confirmation ? confirmation.name : undefined;\r\n};\r\n\r\nconst ControlExam = () => {\r\n const dispatch = useDispatch();\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const { impactStartDate, consentSigned, isCIRequired } = useSelector(\r\n ({ impact }) => impact\r\n );\r\n\r\n const [open, setOpen] = useState(false);\r\n const [openCE, setOpenCE] = useState(false);\r\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [controlExamTable, setControlExamTable] = useState([]);\r\n\r\n const loadTable = () => {\r\n callApi(\r\n () => getControlExamTable(selectedPrescription.patient.id),\r\n (data) => setControlExamTable(data)\r\n );\r\n };\r\n\r\n const msgConsentRequired = IntlGetText(\"impact.consentRequired\");\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n if (isCIRequired && !consentSigned) {\r\n NotificationManager.warning(msgConsentRequired);\r\n return;\r\n }\r\n setOpen(true);\r\n };\r\n\r\n const handleRequestClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpenCRU = () => {\r\n setOpenCE(true);\r\n };\r\n const handleRequestCloseCRU = () => {\r\n setOpenCE(false);\r\n };\r\n const handleRequestCloseDel = () => {\r\n setOpenDeleteDialog(false);\r\n };\r\n\r\n useEffect(() => {\r\n loadTable();\r\n }, []);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(() => saveControlExamRecord(data));\r\n loadTable();\r\n };\r\n\r\n const handleDelete = () => {\r\n console.log(\"AQUI ELIMINAMOS UN REGISTRO\");\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDialog(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n loadTable={loadTable}\r\n />\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ControlExam;\r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, {\r\n getTextLabels,\r\n} from \"components/Form/Table\";\r\nimport CardBox from \"components/CardBox/index\";\r\n\r\nconst TablePT = ({ data, handleOpenPT, setCurrentRowObj }) => {\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n const handleClick = (obj) => {\r\n setCurrentRowObj(!obj ? null : obj);\r\n handleOpenPT();\r\n };\r\n\r\n const getRowObj = (tableMeta) => tableMeta.tableData[tableMeta.rowIndex];\r\n\r\n const columns = [\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n }\r\n }\r\n },\r\n {\r\n name: \"pharmacotherapeuticRiskLevelText\",\r\n label: IntlGetText(\"pharmacotherapeutic.risk\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var obj = getRowObj(tableMeta);\r\n return obj.pharmacotherapeuticRiskLevelText;\r\n }\r\n }\r\n },\r\n {\r\n name: \"pharmacotherapeuticRiskLevelDescreiption\",\r\n label: IntlGetText(\"core.detail\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var obj = getRowObj(tableMeta);\r\n return obj.pharmacotherapeuticRiskLevelDescreiption;\r\n }\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getRowObj(tableMeta);\r\n if (rowObj.state === 0) {\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n\r\n
    \r\n handleClick(null)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n {}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TablePT;\r\n","import React from \"react\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport {\r\n Radio,\r\n RadioGroup,\r\n FormControlLabel,\r\n FormLabel,\r\n FormHelperText\r\n} from \"@material-ui/core\";\r\n\r\nfunction FormRadioGroupYesNo(props) {\r\n const { control, errors } = useFormContext();\r\n const { name, label, defaultValue, ...radioProps } = props;\r\n\r\n const errorMessage = errors?.[name]?.message || \"\";\r\n\r\n return (\r\n
    \r\n {label}\r\n ( \r\n <>\r\n {\r\n const selectedValue = e.target.value === \"true\" ? true : false;\r\n onChange(selectedValue);\r\n if (props.onChange) props.onChange(selectedValue);\r\n }}\r\n >\r\n }\r\n label=\"Sí\"\r\n />\r\n }\r\n label=\"No\"\r\n />\r\n \r\n {errorMessage && (\r\n {errorMessage}\r\n )}\r\n \r\n )}\r\n />\r\n
    \r\n );\r\n}\r\n\r\nexport default FormRadioGroupYesNo;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n FormLabel,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormRadioGroupYesNo from \"components/Form/Controls/RadioGroupYesNo\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst FormPT = ({ rowObj, open, handleRequestClose, handleCreateUpdate }) => {\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n const onlyRead = rowObj?.state === 0;\r\n\r\n const defaultValues = {\r\n administrativeLimitations: null,\r\n socialDeterminants: null,\r\n healthcareAccessLimitations: null,\r\n inadequateMedicationUse: null,\r\n pharmaTreatmentFollowUp: null,\r\n therapeuticAdherence: null,\r\n multiPathology: \"\",\r\n patieRenalHepaticAlternt: null,\r\n polypharmacy: \"\",\r\n adverseReaction: null,\r\n treatmentIneffectiveness: null,\r\n hospitalReadmissions: null,\r\n urgentConsults: null,\r\n disability: null\r\n };\r\n\r\n const validationSchema = yup.object().shape({\r\n administrativeLimitations: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n socialDeterminants: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n healthcareAccessLimitations: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n inadequateMedicationUse: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n pharmaTreatmentFollowUp: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n therapeuticAdherence: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n multiPathology: yup\r\n .string()\r\n .nullable()\r\n .matches(/^\\d+(\\.\\d+)?$/, \"Debe ser un número válido.\")\r\n .test(\"is-valid-range\", \"Debe estar entre 0 y 20.\", (value) => {\r\n if (!value) return true; // Permitir vacío\r\n const number = parseFloat(value);\r\n return number >= 0 && number <= 20;\r\n })\r\n .required(\"Este campo es obligatorio.\"),\r\n patieRenalHepaticAlternt: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n polypharmacy: yup\r\n .string()\r\n .nullable()\r\n .matches(/^\\d+(\\.\\d+)?$/, \"Debe ser un número válido.\")\r\n .test(\"is-valid-range\", \"Debe estar entre 1 y 20.\", (value) => {\r\n if (!value) return true; // Permitir vacío\r\n const number = parseFloat(value);\r\n return number >= 0 && number <= 20;\r\n })\r\n .required(\"Este campo es obligatorio.\"),\r\n adverseReaction: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n treatmentIneffectiveness: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n hospitalReadmissions: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n urgentConsults: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n ),\r\n disability: yup\r\n .mixed()\r\n .test(\r\n \"is-boolean-or-null\",\r\n \"Este campo es obligatorio.\",\r\n (value) => value === true || value === false\r\n )\r\n });\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema)\r\n });\r\n\r\n const { handleSubmit, setValue, watch, errors } = methods;\r\n\r\n const loadData = (rowObj) => {\r\n setValue(\r\n \"inadequateMedicationUse\",\r\n rowObj?.inadequateMedicationUse ?? null\r\n );\r\n setValue(\r\n \"healthcareAccessLimitations\",\r\n rowObj?.healthcareAccessLimitations ?? null\r\n );\r\n setValue(\"disability\", rowObj?.disability ?? null);\r\n setValue(\r\n \"administrativeLimitations\",\r\n rowObj?.administrativeLimitations ?? null\r\n );\r\n setValue(\"adverseReaction\", rowObj?.adverseReaction ?? null);\r\n setValue(\"hospitalReadmissions\", rowObj?.hospitalReadmissions ?? null);\r\n setValue(\"multiPathology\", rowObj?.multiPathology ?? \"\");\r\n setValue(\r\n \"patieRenalHepaticAlternt\",\r\n rowObj?.patieRenalHepaticAlternt ?? null\r\n );\r\n setValue(\r\n \"pharmaTreatmentFollowUp\",\r\n rowObj?.pharmaTreatmentFollowUp ?? null\r\n );\r\n setValue(\"socialDeterminants\", rowObj?.socialDeterminants ?? null);\r\n setValue(\"therapeuticAdherence\", rowObj?.therapeuticAdherence ?? null);\r\n setValue(\r\n \"treatmentIneffectiveness\",\r\n rowObj?.treatmentIneffectiveness ?? null\r\n );\r\n setValue(\"urgentConsults\", rowObj?.urgentConsults ?? null);\r\n setValue(\"polypharmacy\", rowObj?.polypharmacy ?? \"\");\r\n };\r\n\r\n const onSubmit = (data) => {\r\n const dataToSend = {\r\n id: rowObj ? rowObj.id : 0,\r\n patientId: selectedPrescription.patient.id,\r\n inadequateMedicationUse: data.inadequateMedicationUse,\r\n healthcareAccessLimitations: data.healthcareAccessLimitations,\r\n disability: data.disability,\r\n administrativeLimitations: data.administrativeLimitations,\r\n adverseReaction: data.adverseReaction,\r\n hospitalReadmissions: data.hospitalReadmissions,\r\n multiPathology: Number(data.multiPathology),\r\n patieRenalHepaticAlternt: data.patieRenalHepaticAlternt,\r\n pharmaTreatmentFollowU: data.pharmaTreatmentFollowUp,\r\n polypharmacy: Number(data.polypharmacy),\r\n socialDeterminants: data.socialDeterminants,\r\n therapeuticAdherence: data.therapeuticAdherence,\r\n treatmentIneffectiveness: data.treatmentIneffectiveness,\r\n urgentConsults: data.urgentConsults\r\n };\r\n handleCreateUpdate(dataToSend);\r\n handleRequestClose();\r\n };\r\n\r\n useEffect(() => {\r\n if (open) {\r\n setTimeout(() => loadData(rowObj), 150);\r\n }\r\n }, [open]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* //-------------------------------------------------------- */}\r\n \r\n \r\n 7. ¿Cuántas enfermedades crónicas o condiciones de salud le\r\n han diagnosticado? (Ejemplo: hipertensión, diabetes,\r\n obesidad, etc.)\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 9. ¿Cuántos medicamentos está tomando actualmente de forma\r\n regular?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FormPT;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport TablePT from \"./table\";\r\nimport FormPT from \"./form\";\r\nimport {\r\n callApiAsync,\r\n getLastPharmacotherapeuticRiskLevel,\r\n postPharmacotherapeuticRisk\r\n} from \"api/apiList\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst PharmacotherapeuticRiskDialog = ({\r\n open,\r\n prescription,\r\n handleRequestClose,\r\n loadPharmacotherapeutic,\r\n pharmacotherapeuticData,\r\n setPharmacotherapeuticData,\r\n riskLevelData\r\n}) => {\r\n const patientData = prescription.patient;\r\n const [openPT, setOpenPT] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState({});\r\n const [riskLevel, seRiskLevel] = useState({});\r\n\r\n const successNotification = IntlGetText(\"core.SuccessSave\");\r\n\r\n useEffect(() => {\r\n if (open) loadPharmacotherapeutic();\r\n }, [open]);\r\n\r\n const handleOpenPT = () => setOpenPT(true);\r\n const handleRequestClosePT = () => setOpenPT(false);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postPharmacotherapeuticRisk(data),\r\n () => {\r\n NotificationManager.success(successNotification);\r\n loadPharmacotherapeutic();\r\n getLastRiskLevel();\r\n handleRequestClosePT();\r\n }\r\n );\r\n };\r\n const getLastRiskLevel = async (data) => {\r\n await callApiAsync(\r\n () => getLastPharmacotherapeuticRiskLevel(patientData.id),\r\n (data) => {\r\n seRiskLevel(data);\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if(riskLevelData) {\r\n return;\r\n } \r\n getLastRiskLevel();\r\n }, [pharmacotherapeuticData]);\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n\r\n

    \r\n {patientData.name +\r\n \" \" +\r\n patientData.lastName +\r\n \" - \" +\r\n riskLevel?.name}\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PharmacotherapeuticRiskDialog;\r\n","import InfoCard from \"components/InfoCard\";\r\nimport React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport PharmacotherapeuticRiskDialog from \"./dialog\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getLastPharmacotherapeuticRiskLevel,\r\n getPharmacotherapeuticRisk\r\n} from \"api/apiList\";\r\nimport { callStartImpact } from \"actions/Impact\";\r\n\r\nconst PharmacotherapeuticRisk = ({ prescription }) => {\r\n const [open, setOpen] = useState(false); \r\n const dispatch = useDispatch();\r\n \r\n const [pharmacotherapeuticData, setPharmacotherapeuticData] = useState(null);\r\n const [riskLevel, seRiskLevel] = useState({});\r\n const { impactStartDate} = useSelector(\r\n ({ impact }) => impact\r\n );\r\n const { selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const handleRequestClose = () => setOpen(false);\r\n\r\n const patientData = prescription.patient;\r\n\r\n const loadPharmacotherapeutic = () => {\r\n callApiAsync(\r\n () => getPharmacotherapeuticRisk(selectedPrescription.patient.id),\r\n (data) => {\r\n setPharmacotherapeuticData(data);\r\n }\r\n );\r\n };\r\n\r\n const getLastRiskLevel = async (data) => {\r\n await callApiAsync(\r\n () => getLastPharmacotherapeuticRiskLevel(patientData.id),\r\n (data) => {\r\n seRiskLevel(data);\r\n }\r\n );\r\n };\r\n\r\n const handleClickOpen = () => {\r\n if (!impactStartDate) {\r\n dispatch(callStartImpact(true));\r\n return;\r\n }\r\n // if (isCIRequired && !consentSigned) { //notificacion condicional\r\n // NotificationManager.warning(msgConsentRequired);\r\n // return;\r\n // }\r\n getLastRiskLevel();\r\n setOpen(true);\r\n };\r\n\r\n return (\r\n
    \r\n \r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PharmacotherapeuticRisk;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport Consent from \"../Impact/Consent\";\r\nimport FormulaDialog from \"../Impact/Formula\";\r\nimport ClinicalHistory from \"../Impact/ClinicalHistory\";\r\nimport PatientInfo from \"../Impact/PatientInfo\";\r\nimport Education from \"../Impact/Education\";\r\nimport RadicacionInsurance from \"./RadicacionInsurance\";\r\nimport InsuranceAuthorization from \"./InsuranceAuthorization\";\r\nimport RadicadoOLF from \"./RadicadoOLF\";\r\nimport Delivery from \"./MedicineDelivery\";\r\nimport Alert from \"./Alert\";\r\nimport Dosage from \"./Dosage\";\r\nimport ClinicalFinding from \"./ClinicalFinding\";\r\nimport MorisKySurvey from \"./MorisKySurvey\";\r\nimport MedicineConsumption from \"./MedicineConsumption\";\r\nimport EducationLevelSurvey from \"./EducationLevelSurvey\";\r\nimport HealingMaterial from \"./HealingMaterial\";\r\nimport CatheterStatus from \"./CatheterStatus\";\r\nimport InfusionPumps from \"./InfusionPumps\";\r\nimport ProductStatus from \"./ProductStatus\";\r\nimport HealthData from \"./HealthData\";\r\nimport AdditionalMedications from \"../Impact/AdditionalMedications\";\r\nimport DosageDlg from \"../Impact/Dosage\";\r\nimport PatientStateBox from \"components/JaasModule/PatientStateBox\";\r\nimport IsOnlyTracingBox from \"components/JaasModule/IsOnlyTracingBox\";\r\nimport {\r\n isOnlyTracing,\r\n isDirectTracing,\r\n isJaasModule,\r\n getBoolSetting,\r\n isTracingDeliveryBox,\r\n getUserInfo,\r\n isPharmacotherapeuticRisk\r\n} from \"app/routes/psp/services/userService\";\r\nimport { loadInfoImpact, setHealthData } from \"actions/Impact\";\r\nimport {\r\n PrescripStateEnum,\r\n ProductBehavior,\r\n FolderType,\r\n RoleEnum,\r\n SettingsEnum,\r\n ShardKeyEnum\r\n} from \"constants/Enums\";\r\nimport { callActionApi, getInfoImpact } from \"api/apiList\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport TracingDelivery from \"./TracingDelivery\";\r\nimport Diagnosis from \"./Diagnosis\";\r\nimport AdverseReaction from \"./AdverseReaction\";\r\nimport ControlExam from \"./ControlExam\";\r\nimport { callApi, getGetHealthData } from \"api/apiList\";\r\nimport PharmacotherapeuticRisk from \"./PharmacotherapeuticRisk\";\r\n\r\nconst FirstImpact = () => {\r\n const [deliverHealthData, setDeliverHealthData] = useState(null);\r\n const dispatch = useDispatch();\r\n const { selectedPrescription, selectedMenuItem } = useSelector(\r\n ({ management }) => management\r\n );\r\n const isJaasModuleConfig = isJaasModule();\r\n const isTracingDeliveryBoxConfig = isTracingDeliveryBox();\r\n\r\n const isNurseProcedure = isRole(RoleEnum.nurse_procedure);\r\n\r\n const loadDeliverHealthData = () => {\r\n callApi(\r\n () => getGetHealthData(selectedPrescription.impactId),\r\n (data) => {\r\n setDeliverHealthData(data.numberDeliveries);\r\n dispatch(setHealthData(data));\r\n }\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n loadDeliverHealthData();\r\n callActionApi(\r\n () => getInfoImpact(selectedPrescription.impactId),\r\n (data) => {\r\n dispatch(loadInfoImpact(data));\r\n },\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n } //, (data) => dispatch(setLoader(data))\r\n );\r\n }, []);\r\n\r\n const isOnlyTrace =\r\n isOnlyTracing() === true ||\r\n selectedPrescription.patient.isOnlyTracing === true ||\r\n !selectedPrescription.expeditionDate;\r\n const isPSPBoxesPhg = getBoolSetting(SettingsEnum.hideBoxes);\r\n const isOperando = getUserInfo().shardKey === ShardKeyEnum.operando;\r\n const isDirectTracingConfig = isDirectTracing();\r\n\r\n return (\r\n
    \r\n
    \r\n {(selectedMenuItem === FolderType.tracing ||\r\n selectedPrescription.stateId === PrescripStateEnum.fristImpact) && (\r\n
    \r\n \r\n
    \r\n )}\r\n {!isNurseProcedure && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n {!(\r\n isOnlyTracing() === true ||\r\n selectedPrescription.patient.isOnlyTracing === true\r\n ) && }\r\n {(isOnlyTracing() === true ||\r\n selectedPrescription.patient.isOnlyTracing === true) && (\r\n \r\n )}\r\n
    \r\n
    \r\n \r\n
    \r\n\r\n {selectedPrescription.stateId !== PrescripStateEnum.NewFormulation &&\r\n selectedMenuItem === FolderType.inProcess && (\r\n
    \r\n \r\n
    \r\n )}\r\n {(selectedMenuItem === FolderType.tracing ||\r\n selectedPrescription.stateId === PrescripStateEnum.fristImpact) && (\r\n \r\n
    \r\n \r\n
    \r\n {isDirectTracing() === true && (\r\n
    \r\n \r\n
    \r\n )}\r\n {isTracingDeliveryBoxConfig ? (\r\n <>\r\n ) : (\r\n
    \r\n \r\n
    \r\n )}\r\n {/*
    \r\n \r\n
    */}\r\n
    \r\n )}\r\n\r\n {(selectedPrescription.stateId === PrescripStateEnum.radicacionEPS ||\r\n selectedPrescription.stateId === PrescripStateEnum.noAuthorized ||\r\n selectedPrescription.stateId ===\r\n PrescripStateEnum.radicacionEPSNonEffective ||\r\n selectedPrescription.stateId ===\r\n PrescripStateEnum.authorizationWithInconsistencies) &&\r\n selectedMenuItem === FolderType.inProcess && (\r\n
    \r\n \r\n
    \r\n )}\r\n {selectedPrescription.stateId == PrescripStateEnum.authorized &&\r\n selectedMenuItem === FolderType.inProcess && (\r\n
    \r\n \r\n
    \r\n )}\r\n {(selectedPrescription.stateId === PrescripStateEnum.radicacionOLF ||\r\n selectedPrescription.stateId ===\r\n PrescripStateEnum.radicacionOLFNonEffective ||\r\n selectedPrescription.stateId === PrescripStateEnum.delivered ||\r\n selectedPrescription.stateId === PrescripStateEnum.deliveryNotMade ||\r\n selectedPrescription.stateId ===\r\n PrescripStateEnum.incompleteDelivery) &&\r\n selectedMenuItem === FolderType.inProcess && (\r\n
    \r\n \r\n
    \r\n )}\r\n {(selectedPrescription.stateId === PrescripStateEnum.delivered ||\r\n selectedPrescription.stateId === PrescripStateEnum.deliveryNotMade ||\r\n selectedPrescription.stateId ===\r\n PrescripStateEnum.incompleteDelivery) &&\r\n selectedMenuItem === FolderType.inProcess && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n {selectedMenuItem === FolderType.tracing && (\r\n <>\r\n {!isOnlyTrace && (\r\n
    \r\n \r\n
    \r\n )}\r\n {isJaasModuleConfig && (\r\n
    \r\n \r\n
    \r\n )}\r\n {!isTracingDeliveryBoxConfig && (\r\n
    \r\n \r\n
    \r\n )}\r\n {!isOnlyTrace && (\r\n
    \r\n \r\n
    \r\n )}\r\n {/* {isOnlyTrace && (\r\n
    \r\n \r\n
    \r\n )} */}\r\n
    \r\n \r\n
    \r\n {isTracingDeliveryBoxConfig && (\r\n
    \r\n \r\n
    \r\n )}\r\n \r\n )}\r\n {((!isOnlyTrace &&\r\n selectedMenuItem == FolderType.tracing &&\r\n selectedPrescription.customProductBehaviorId ===\r\n ProductBehavior.iclusig) ||\r\n (selectedMenuItem == FolderType.tracing &&\r\n selectedPrescription.customProductBehaviorId ===\r\n ProductBehavior.dacepton)) && (\r\n
    \r\n \r\n
    \r\n )}\r\n {((!isOnlyTrace &&\r\n selectedMenuItem === FolderType.tracing &&\r\n selectedPrescription.customProductBehaviorId ===\r\n ProductBehavior.remodulin) ||\r\n (selectedMenuItem === FolderType.tracing &&\r\n selectedPrescription.customProductBehaviorId ===\r\n ProductBehavior.dacepton)) && (\r\n \r\n {!isPSPBoxesPhg && (\r\n
    \r\n \r\n
    \r\n )}\r\n {!isPSPBoxesPhg && (\r\n
    \r\n \r\n
    \r\n )}\r\n {selectedPrescription.customProductBehaviorId ===\r\n ProductBehavior.remodulin && (\r\n
    \r\n \r\n
    \r\n )}\r\n {!isPSPBoxesPhg && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n )}\r\n {!isDirectTracingConfig && isJaasModuleConfig && (\r\n
    \r\n \r\n
    \r\n )}\r\n {isOperando && (\r\n
    \r\n \r\n
    \r\n )}\r\n {isDirectTracing() === true && (\r\n
    \r\n \r\n
    \r\n )}\r\n {isDirectTracing() == true && (\r\n <>\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n )}\r\n {isPharmacotherapeuticRisk() == true && ( \r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default FirstImpact; \r\n","import React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport { QueryAdverseEventStateList } from \"constants/Enums\";\r\n\r\nconst CommentTable = ({data, setCurrentRowObj, readOnly}) =>{\r\n const queryAdverseEventStateList = QueryAdverseEventStateList();\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const handleClick = (tableMeta) => {\r\n setCurrentRowObj(!tableMeta ? null : getObj(tableMeta));\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"userName\",\r\n label: IntlGetText(\"alert.userName\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"queryState\",\r\n label: IntlGetText(\"queryAdverseEventComment.queryState\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const state = queryAdverseEventStateList.find(x=>x.id == value); \r\n return !state ? \"\" : state.name;\r\n }\r\n },\r\n },\r\n {\r\n name: \"comment\",\r\n label: IntlGetText(\"core.comment\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const rowObj = getObj(tableMeta);\r\n if (!rowObj.editable || readOnly) {\r\n return \"\";\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default CommentTable;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport CommentTable from \"./CommentTable\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getCommentsByQuery,\r\n postCreateUpdateCommentToQuery\r\n} from \"api/apiList\";\r\nimport { \r\n QueryAdverseEventTypeList, \r\n QueryAdverseEventStateList,\r\n RoleEnum\r\n} from \"constants/Enums\";\r\nimport { getRoleUser } from \"app/routes/psp/services/userService\";\r\n\r\nconst FormComment =({ query, openCRU, handleRequestClose, readOnly, reloadQueries, setCurrentRowObj})=>{\r\n const [commentList, setCommentList] = useState([]);\r\n const [currentComment, setCurrentComment] = useState(null);\r\n\r\n const queryAdverseEventStateList = QueryAdverseEventStateList();\r\n const queryAdverseEventTypeList = QueryAdverseEventTypeList();\r\n const userInfo = getRoleUser();\r\n const isNurseProfile = () =>{\r\n const role = userInfo.role.toUpperCase();\r\n return role === RoleEnum.nurse;\r\n };\r\n \r\n const defaultValues = {\r\n creationDate: null,\r\n type: null,\r\n state: null,\r\n description: null,\r\n comment: \"\",\r\n assignedToNurse: false\r\n };\r\n \r\n const validationSchema = { \r\n comment: yup.string().required(),\r\n state: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, reset, errors } = methods;\r\n \r\n const loadComments = (queryId) => { \r\n callApi(() => getCommentsByQuery(queryId), setCommentList);\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n loadComments(query.id);\r\n }\r\n },[query,openCRU]);\r\n \r\n const setString = (obj, prop) => setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) => setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue = (obj, prop, list) => setValue(prop, !obj ? null : getCboValue(list, obj[prop]));\r\n const setBool = (obj, prop) => setValue(prop, !obj || !obj[prop] ? false : obj[prop]);\r\n\r\n const loadData = () => {\r\n setDate(query,\"creationDate\");\r\n setCboValue(query, \"type\", queryAdverseEventTypeList);\r\n setCboValue(query, \"state\", queryAdverseEventStateList);\r\n setString(query, \"description\");\r\n setBool(query, \"assignedToNurse\"); \r\n };\r\n \r\n const setEditComment = (objComment) => {\r\n setCurrentComment(objComment);\r\n setValue(\"comment\", !objComment ? \"\" : objComment.comment);\r\n };\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: currentComment ? currentComment.id : 0,\r\n queryAdverseEventId: query.id,\r\n comment: d.comment,\r\n queryState: Number(d.state.value),\r\n assignedToNurse: d.assignedToNurse\r\n };\r\n await callApiAsync(\r\n () => postCreateUpdateCommentToQuery(obj),\r\n () => {\r\n loadComments(query.id);\r\n reset({ ...d, comment: \"\" });\r\n setCurrentComment(null);\r\n reloadQueries();\r\n setCurrentRowObj({...query, state: obj.queryState, assignedToNurse: obj.assignedToNurse});\r\n }\r\n );\r\n };\r\n \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={queryAdverseEventTypeList}\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n name=\"description\"\r\n disabled={true}\r\n multiline\r\n rows={2}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={queryAdverseEventStateList}\r\n margin=\"normal\"\r\n disabled={readOnly}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {!isNurseProfile() && \r\n \r\n }\r\n onChange={chkHandleChange(\"assignedToNurse\")}\r\n disabled={readOnly}\r\n />\r\n \r\n }\r\n { !readOnly && \r\n \r\n }\r\n name=\"comment\"\r\n required={true}\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n } \r\n \r\n \r\n
    \r\n {!readOnly &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\nexport default FormComment;","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n postCreateUpdateQueryAdverseEvent\r\n} from \"api/apiList\";\r\nimport { QueryAdverseEventTypeList, QueryAdverseEventTypeEnum } from \"constants/Enums\";\r\n\r\n\r\nconst DialogAdd = ({ open, dialogTitle, callBackAsync, closeDialog }) => {\r\n const queryAdverseEventTypeList = QueryAdverseEventTypeList().filter(x=>x.id !== QueryAdverseEventTypeEnum.pharmacovigilance);\r\n\r\n const defaultValues = {\r\n type: null,\r\n description: \"\",\r\n assignedToNurse: false\r\n };\r\n\r\n const validationSchema = {\r\n type: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n description: yup.string().required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n type: Number(d.type.value),\r\n description: d.description,\r\n assignedToNurse: d.assignedToNurse\r\n };\r\n await callBackAsync(obj);\r\n };\r\n\r\n return (\r\n \r\n {dialogTitle}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={queryAdverseEventTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n name=\"description\"\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n onChange={chkHandleChange(\"assignedToNurse\")}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst BtnAddQuery = ({ adverseEvent, loadQueries }) =>{ \r\n const [openDlg, setOpenDlg] = useState(false);\r\n\r\n const callBackAsync = async (query) => {\r\n var item = {\r\n ...query,\r\n adverseEventId: adverseEvent.id\r\n };\r\n await callApiAsync(\r\n ()=>postCreateUpdateQueryAdverseEvent(item),\r\n ()=>{\r\n setOpenDlg(false);\r\n loadQueries();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n }\r\n callBackAsync={callBackAsync}\r\n closeDialog={()=>setOpenDlg(false)}\r\n />\r\n
    \r\n );\r\n};\r\n\r\nexport default BtnAddQuery;","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n postAdverseEventCreateFollowUpQuery\r\n} from \"api/apiList\";\r\n\r\n\r\nconst DialogAdd = ({ open, handleRequestClose, adverseEvent, setIsDone }) => {\r\n const defaultValues = { descriptionQuery: \"\" };\r\n const validationSchema = {\r\n descriptionQuery: yup.string().required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n await callApiAsync(\r\n () =>\r\n postAdverseEventCreateFollowUpQuery({\r\n adverseEventId: adverseEvent.id,\r\n descriptionQuery: d.descriptionQuery,\r\n }),\r\n () => {\r\n handleRequestClose();\r\n setIsDone(true);\r\n }\r\n );\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\n\r\nconst BtnAddFollowUp = (props) =>{ \r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [isDone, setIsDone] = useState(false);\r\n\r\n return (\r\n
    \r\n { isDone && }\r\n
    \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n setOpenDlg(false)}\r\n setIsDone={setIsDone}\r\n {...props}\r\n />\r\n
    \r\n );\r\n};\r\n\r\nexport default BtnAddFollowUp;","import React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport FormEdit from \"./FormEdit\";\r\nimport BtnAddQuery from \"./btnAdd\";\r\nimport BtnAddFollowUp from \"./btnAddFollowUp\";\r\nimport { \r\n QueryAdverseEventTypeList,\r\n QueryAdverseEventStateList, \r\n RoleEnum,\r\n AdverseEventStateEnum,\r\n QueryAdverseEventStateEnum,\r\n AdverseEventTypeEnum\r\n} from \"constants/Enums\";\r\nimport { getRoleUser } from \"app/routes/psp/services/userService\";\r\n\r\nconst allowAdd=(dataList)=>{\r\n if(dataList.length === 0)\r\n return true;\r\n const result = dataList.find(x=>x.state !== QueryAdverseEventStateEnum.approved);\r\n return !result;\r\n};\r\n\r\nconst QueryAdverseEvent = ({adverseEvent, queryAdverseEventList, reloadQueries}) =>{ \r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n\r\n const queryAdverseEventStateList = QueryAdverseEventStateList();\r\n const queryAdverseEventTypeList = QueryAdverseEventTypeList();\r\n const userInfo = getRoleUser();\r\n const isPharmacovigilanceProfile = () =>{\r\n const role = userInfo.role.toUpperCase();\r\n return role === RoleEnum.pharmacovigilance;\r\n };\r\n\r\n const notAllowEdit = (rowObj) => {\r\n return (rowObj && \r\n ((rowObj.state === QueryAdverseEventStateEnum.approved || (rowObj.state === QueryAdverseEventStateEnum.resolved && !isPharmacovigilanceProfile()))\r\n || (!isPharmacovigilanceProfile() && !rowObj.assignedToNurse))\r\n );\r\n };\r\n \r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n\r\n const readOnly = false;\r\n \r\n const getObj = (tableMeta) => queryAdverseEventList.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const handleClick = (tableMeta) => {\r\n setOpenCRU(true);\r\n setCurrentRowObj(!tableMeta ? null : getObj(tableMeta));\r\n };\r\n\r\n\r\n const showBtnFollowUp = (adverseEvent, queryAdverseEventList) => {\r\n if(!allowAdd(queryAdverseEventList))\r\n return false;\r\n if(adverseEvent.status > AdverseEventStateEnum.verified)\r\n return true;\r\n return false;\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"type\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const type = queryAdverseEventTypeList.find(x=>x.id == value); \r\n return !type ? \"\" : type.name;\r\n }\r\n }\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const state = queryAdverseEventStateList.find(x=>x.id == value); \r\n return !state ? \"\" : state.name;\r\n }\r\n }\r\n },\r\n {\r\n name: \"description\",\r\n label: IntlGetText(\"core.description\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"core.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const rowObj = getObj(tableMeta);\r\n if (readOnly || notAllowEdit(rowObj)){//rowObj.state === QueryAdverseEventStateEnum.resolved || rowObj.state === QueryAdverseEventStateEnum.approved) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n \r\n \r\n { isPharmacovigilanceProfile() && adverseEvent.status >= AdverseEventStateEnum.sentToRegulator && allowAdd(queryAdverseEventList) &&\r\n \r\n }\r\n { isPharmacovigilanceProfile() && adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance &&\r\n showBtnFollowUp(adverseEvent, queryAdverseEventList) &&\r\n \r\n }\r\n \r\n \r\n );\r\n};\r\n\r\nexport default QueryAdverseEvent","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport { SciList } from \"constants/Enums\";\r\n\r\nconst FormCRU =({ rowObj, openCRU, handleRequestClose, handleCreateUpdateAsync, readOnly })=>{ \r\n const sciList = SciList();\r\n \r\n const defaultValues = {\r\n sci: null,\r\n medicine: \"\",\r\n indication: \"\",\r\n dosage: \"\",\r\n measurementUnit: \"\",\r\n administrationRoute: \"\",\r\n supplyFrequency: \"\",\r\n startDate : null,\r\n endDate: null\r\n };\r\n \r\n const validationSchema = {\r\n sci: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n \r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[rowObj,openCRU]);\r\n \r\n const loadData = () => {\r\n setValue(\"sci\", !rowObj ? null : getCboValue(sciList,rowObj.sci));\r\n setValue(\"activePrinciple\", !rowObj ? \"\" : rowObj.medicine);\r\n setValue(\"dosage\", !rowObj ? \"\" : rowObj.dosage);\r\n setValue(\"measurementUnit\", !rowObj ? \"\" : rowObj.measurementUnit);\r\n setValue(\"administrationRoute\", !rowObj ? \"\" : rowObj.administrationRoute);\r\n setValue(\"supplyFrequency\", !rowObj ? \"\" : rowObj.supplyFrequency);\r\n setValue(\"startDate\", !rowObj ? null : dayjs(rowObj.startDate));\r\n setValue(\"endDate\", !rowObj ? null : dayjs(rowObj.endDate));\r\n };\r\n \r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n id: !rowObj ? 0 : rowObj.id,\r\n sci: Number(d.sci.value),\r\n dosage: d.dosage,\r\n measurementUnit: d.measurementUnit,\r\n administrationRoute: d.administrationRoute,\r\n supplyFrequency: d.supplyFrequency\r\n };\r\n \r\n await handleCreateUpdateAsync(obj);\r\n handleRequestClose();\r\n };\r\n \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={sciList}\r\n margin=\"normal\"\r\n disabled={readOnly}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n {!readOnly &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n };\r\n\r\nexport default FormCRU;","import React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Form from \"./Form\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport {\r\n callApiAsync,\r\n postConcomitantMedicationSave\r\n} from \"api/apiList\";\r\nimport { SciList } from \"constants/Enums\";\r\n\r\nconst Farmacovigilance = ({readOnly, concomitantMedicationList, loadConcomitants}) =>{ \r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n\r\n const sciList = SciList();\r\n const handleRequestCloseCRU = () => setOpenCRU(false);\r\n\r\n const msgLifeTime = IntlGetText(\"additionalMedications.lifeTime\");\r\n \r\n const handleCreateUpdateAsync = async (data) => {\r\n await callApiAsync(\r\n () => postConcomitantMedicationSave(data),\r\n loadConcomitants\r\n );\r\n };\r\n\r\n const getObj = (tableMeta) => concomitantMedicationList.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const handleClick = (tableMeta) => {\r\n setOpenCRU(true);\r\n setCurrentRowObj(!tableMeta ? null : getObj(tableMeta));\r\n };\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"sci\",\r\n label: IntlGetText(\"concomitantMedication.sci\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const rowObj = getObj(tableMeta);\r\n const sci = sciList.find(x=>x.id == value); \r\n return !sci ? \"\" : sci.name;\r\n }\r\n }\r\n },\r\n {\r\n name: \"medicine\",\r\n label: IntlGetText(\"core.activePrinciple\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"indication\",\r\n label: IntlGetText(\"concomitantMedication.indication\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"dosage\",\r\n label: IntlGetText(\"core.dosage\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return rowObj.measurementUnit ? value + \" \" + rowObj.measurementUnit : value;\r\n }\r\n }\r\n },\r\n {\r\n name: \"administrationRoute\",\r\n label: IntlGetText(\"formula.administrationRoute\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"supplyFrequency\",\r\n label: IntlGetText(\"formula.supplyFrequency\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"additionalMedications.treatmentStartDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"additionalMedications.treatmentEndDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(rowObj.lifeTime)\r\n return msgLifeTime;\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if (readOnly) {\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n \r\n
    \r\n

    \r\n
    \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Farmacovigilance","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApiAsync,\r\n postAdverseEventNullify,\r\n getPrescriptions\r\n} from \"api/apiList\";\r\nimport { loadPrescriptions, setSelectedPrescription } from \"actions/Management\";\r\nimport { AdverseEventStateEnum } from \"constants/Enums\";\r\n\r\n\r\nconst BtnNullify = ({ adverseEvent }) => {\r\n const dispatch = useDispatch(); \r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [openDlg, setOpenDlg] = useState(false);\r\n\r\n const onNullifyAsync = async () => {\r\n await callApiAsync(\r\n () => postAdverseEventNullify({ adverseEventId: adverseEvent.id }),\r\n async () => {\r\n await callApiAsync(\r\n ()=> getPrescriptions(selectedMenuItem), \r\n (data)=>{\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n { adverseEvent && adverseEvent.status === AdverseEventStateEnum.pending &&\r\n <>\r\n } placement=\"bottom-end\">\r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n className=\"ml-1 jr-btn bg-red text-white\"\r\n >\r\n \r\n \r\n \r\n }\r\n text={}\r\n handleRequestClose={() => setOpenDlg(false)}\r\n onAcceptClickAsync={onNullifyAsync}\r\n />\r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default BtnNullify;\r\n","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n IconButton,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n postAddKnownAdverseEvent\r\n} from \"api/apiList\";\r\n\r\nconst AddKnownAdverseEvent = ({adverseEventId, callBack}) =>{\r\n const [openCRU, setOpenCRU] = useState(false);\r\n \r\n const handleRequestClose = () => setOpenCRU(false);\r\n\r\n const defaultValues = { name: \"\" };\r\n\r\n const validationSchema = yup.object().shape({\r\n name: yup.string().required()\r\n });\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, reset, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n adverseEventId: adverseEventId,\r\n name: d.name,\r\n };\r\n\r\n callApi(\r\n () => postAddKnownAdverseEvent(obj),\r\n (data) => {\r\n callBack(data);\r\n handleRequestClose();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n setOpenCRU(true)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default AddKnownAdverseEvent;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, IconButton } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, { getCboValue, getCboValues } from \"components/Form/Controls/select-autocomplete\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport ConcomitantMedication from \"components/AdverseEvent/ConcomitantMedication\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport BtnNullify from \"components/AdverseEvent/BtnNullify\";\r\nimport AddknownAdverseEvent from \"./addknownAdverseEvent\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getEventsFollowUp,\r\n getKnownAdverseEvent,\r\n postAdverseEventSave,\r\n postAdverseEventUpdateState,\r\n getPrescriptions,\r\n getConcomitantMedicationList\r\n} from \"api/apiList\";\r\nimport { \r\n setSelectedPrescription, \r\n loadPrescriptions\r\n} from \"actions/Management\";\r\nimport { \r\n ProductBehavior,\r\n FormulaType,\r\n ForeamSeriousnessList,\r\n ForeamDenouementList,\r\n YesNoNotKnowList,\r\n YesNoNAList,\r\n genderList,\r\n CiomsTypeList,\r\n AdverseEventStateEnum,\r\n RoleEnum,\r\n CiomsTypeEnum,\r\n QueryAdverseEventStateEnum,\r\n QueryAdverseEventTypeEnum\r\n} from \"constants/Enums\";\r\nimport { getRoleUser } from \"app/routes/psp/services/userService\";\r\n\r\nconst GetQuestionYesNo = () =>{\r\n const questionKeys = [1, 2, 3, 4, 5];\r\n return questionKeys.map(x => ({\r\n id: x,\r\n answer: null,\r\n name: \"questionYesNo\"+x,\r\n label: IntlGetText(\"foream.questionYesNo.q\"+x)\r\n }));\r\n};\r\n\r\nconst getReactionList = () =>{\r\n const reactionKeys = [1, 2, 3, 4, 5, 6];\r\n return reactionKeys.map(x => ({\r\n id: x,\r\n answer: false,\r\n name: \"reaction\"+x,\r\n label: IntlGetText(\"cioms.reaction\"+x)\r\n }));\r\n};\r\n\r\nconst Farmacovigilance = ({adverseEvent, reloadAdverseEvent}) =>{ \r\n const dispatch = useDispatch(); \r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [knownAdverseEvents,setKnownAdverseEvents] = useState([]);\r\n const [followUpList,setFollowUpList] = useState([]);\r\n const [concomitantMedicationList,setConcomitantMedicationList] = useState([]);\r\n const [dlgConfirm, setDlgConfirm] = useState(false);\r\n const [objSendFormat, setObjSendFormat] = useState(null);\r\n\r\n const foreamSeriousnessList = ForeamSeriousnessList();\r\n const foreamDenouementList = ForeamDenouementList();\r\n const yesNoNotKnowList = YesNoNotKnowList();\r\n const yesNoNAList = YesNoNAList();\r\n const questionsYesNo = GetQuestionYesNo();\r\n const reactionList = getReactionList();\r\n const genderrList = genderList();\r\n const ciomsTypeList = CiomsTypeList();\r\n const userInfo = getRoleUser();\r\n const isNurseProfile = () =>{\r\n const role = userInfo.role.toUpperCase();\r\n return role === RoleEnum.nurse;\r\n };\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgConcomitantsNotValid = IntlGetText(\"concomitantMedication.notValid\");\r\n\r\n let defaultValues = {\r\n adverseEventType: \"\",\r\n creationDate: null,\r\n reportSource: \"\", //(stateProvince - city)\r\n //status,\r\n \r\n dosage: \"\",\r\n infusionRate: \"\",\r\n supplyFrequency: \"\",\r\n\r\n country: null,\r\n patientBirthDate: null,\r\n age: \"\", // age (unitAge)\r\n documentType: \"\",\r\n document: \"\",\r\n initialsPatientName: \"\",\r\n gender: \"\",\r\n weight: \"\",\r\n size: \"\",\r\n\r\n disease: \"\",\r\n healthRegisterHolder:\"\",\r\n healthRegister:\"\",\r\n medicine:\"\", // tradename (genericName)\r\n medicineLotNumber:\"\",\r\n medicineExpirationDate : null,\r\n\r\n adverseEventStartDate: null,\r\n knownAdverseEvents: null,\r\n descriptionAdverseEvent: \"\",\r\n denouement: null,\r\n seriousness: null,\r\n //questionsYesNo:\r\n\r\n //adverseReaction:\r\n reactionDecreased:null,\r\n reactionReappeared:null,\r\n administrationRoute:\"\",\r\n anotherRelevantStory:\"\",\r\n startTherapy:null,\r\n endTherapy:null,\r\n therapyDays:null,\r\n studyIdentificationCode: \"\",\r\n reportType: \"\",\r\n type:null,\r\n followUpId: null,\r\n };\r\n questionsYesNo.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n reactionList.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n\r\n const validationSchema = {\r\n weight: yup.string().required(),\r\n size: yup.string().required(),\r\n medicineLotNumber: yup.string().required(),\r\n medicineExpirationDate: yup.date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n adverseEventStartDate: yup.date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n descriptionAdverseEvent: yup.string().required(),\r\n denouement: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n seriousness: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(), \r\n reactionDecreased: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n reactionReappeared: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n anotherRelevantStory: yup.string().required(),\r\n type: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(), \r\n followUpId: yup.object().when(\"type\",{\r\n is: type => type && Number(type.value) === CiomsTypeEnum.tracing,\r\n then: yup.object().shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }).nullable()\r\n };\r\n questionsYesNo.map((x)=>{\r\n validationSchema[x.name] = yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n });\r\n\r\n const methods = useForm({ defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, setValue, watch, errors, getValues, clearErrors } = methods;\r\n\r\n const typeValue = watch(\"type\");\r\n const knownAdverseEventsValue = watch(\"knownAdverseEvents\"); \r\n\r\n const setString = (obj, prop) => setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) => setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue = (obj, prop, list) => setValue(prop, !obj ? null : getCboValue(list, obj[prop]));\r\n\r\n const loadData = (adverseEvent) => {\r\n setValue(\"adverseEventType\", !adverseEvent || !adverseEvent.adverseEventType? \"\" : adverseEvent.adverseEventType);\r\n setDate(adverseEvent,\"creationDate\");\r\n \r\n if(adverseEvent){\r\n setValue(\"medicine\",`${adverseEvent.tradename} (${adverseEvent.genericName })`);\r\n setValue(\"reportSource\",`${adverseEvent.stateProvince} - ${adverseEvent.city}`);\r\n setValue(\"age\",`${adverseEvent.age} (${adverseEvent.unitAge})`);\r\n }\r\n\r\n const pharmacovigilance = !adverseEvent ? null : adverseEvent.pharmacovigilance;\r\n\r\n setString(adverseEvent,\"dosage\");\r\n setString(pharmacovigilance,\"administrationRoute\");\r\n setString(adverseEvent,\"infusionRate\");\r\n setString(adverseEvent,\"supplyFrequency\");\r\n\r\n setString(adverseEvent,\"country\");\r\n setDate(adverseEvent,\"patientBirthDate\");\r\n setString(adverseEvent,\"documentType\");\r\n setString(adverseEvent,\"document\");\r\n setString(adverseEvent,\"initialsPatientName\");\r\n setCboValue(adverseEvent,\"gender\",genderrList);\r\n setString(pharmacovigilance,\"weight\");\r\n setString(pharmacovigilance,\"size\");\r\n\r\n setString(adverseEvent,\"disease\"); \r\n setString(pharmacovigilance,\"healthRegisterHolder\");\r\n setString(pharmacovigilance,\"healthRegister\");\r\n setString(adverseEvent,\"medicineLotNumber\");\r\n setDate(adverseEvent,\"medicineExpirationDate\");\r\n\r\n setDate(adverseEvent,\"adverseEventStartDate\");\r\n setString(adverseEvent,\"descriptionAdverseEvent\");\r\n setCboValue(pharmacovigilance,\"denouement\",foreamDenouementList);\r\n setCboValue(pharmacovigilance,\"seriousness\",foreamSeriousnessList);\r\n if(pharmacovigilance && pharmacovigilance.questionsYesNo){\r\n pharmacovigilance.questionsYesNo.map((x)=>{\r\n setValue(\"questionYesNo\"+x.id, getCboValue(yesNoNotKnowList, x.answer));\r\n });\r\n }\r\n\r\n\r\n if(pharmacovigilance && pharmacovigilance.adverseReaction){\r\n pharmacovigilance.adverseReaction.map((x)=>{\r\n setValue(\"reaction\"+x, true);\r\n });\r\n }\r\n setCboValue(pharmacovigilance,\"reactionDecreased\",yesNoNAList);\r\n setCboValue(pharmacovigilance,\"reactionReappeared\",yesNoNAList);\r\n setString(pharmacovigilance,\"anotherRelevantStory\");\r\n setDate(pharmacovigilance,\"startTherapy\");\r\n setDate(pharmacovigilance,\"endTherapy\");\r\n setString(pharmacovigilance,\"therapyDays\"); \r\n setString(pharmacovigilance,\"studyIdentificationCode\");\r\n setString(pharmacovigilance,\"reportType\");\r\n setCboValue(pharmacovigilance,\"type\",ciomsTypeList);\r\n };\r\n\r\n const loadConcomitants = () => {\r\n callApi(\r\n ()=>getConcomitantMedicationList(adverseEvent.id),\r\n setConcomitantMedicationList\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n if(adverseEvent){\r\n callApi(\r\n ()=>getKnownAdverseEvent(adverseEvent.id),\r\n setKnownAdverseEvents\r\n );\r\n\r\n loadData(adverseEvent);\r\n loadConcomitants();\r\n callApi(\r\n ()=>getEventsFollowUp(adverseEvent.id),\r\n setFollowUpList\r\n );\r\n }\r\n },[adverseEvent]);\r\n \r\n useEffect(()=>{\r\n if(knownAdverseEvents){\r\n setValue(\"knownAdverseEvents\",getCboValues(knownAdverseEvents, adverseEvent.knownAdverseEvents));\r\n }\r\n },[knownAdverseEvents]);\r\n useEffect(()=>{\r\n if(followUpList){\r\n setCboValue(adverseEvent,\"followUpId\",followUpList);\r\n }\r\n },[followUpList]);\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const areMedicationsValid = () => {\r\n var item = concomitantMedicationList.find(x=> x.sci === undefined || x.sci === null);\r\n return item === undefined;\r\n };\r\n\r\n const onSubmit = async (d, e) => {\r\n if(adverseEvent && adverseEvent.status !== AdverseEventStateEnum.pending && !areMedicationsValid()){\r\n NotificationManager.warning(msgConcomitantsNotValid);\r\n return;\r\n }\r\n\r\n if(!d)\r\n d = getValues();\r\n\r\n var result = {\r\n id: adverseEvent.id,\r\n adverseEventTypeId : adverseEvent.adverseEventTypeId,\r\n adverseEventStartDate: !d.adverseEventStartDate ? null : dayjs(d.adverseEventStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n descriptionAdverseEvent: d.descriptionAdverseEvent,\r\n followUpId: !d.followUpId ? null : Number(d.followUpId.value),\r\n knownAdverseEvents: !d.knownAdverseEvents ? [] : d.knownAdverseEvents.map(x=>Number(x.value)),\r\n medicineLotNumber: d.medicineLotNumber,\r\n medicineExpirationDate: !d.medicineExpirationDate ? null : dayjs(d.medicineExpirationDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n\r\n let pharmacovigilance = {};\r\n pharmacovigilance.weight = !d.weight ? null : Number(d.weight);\r\n pharmacovigilance.size = !d.size ? null : Number(d.size);\r\n pharmacovigilance.denouement = !d.denouement && d.denouement !== 0 ? null : Number(d.denouement.value);\r\n pharmacovigilance.seriousness = !d.seriousness && d.seriousness !== 0 ? null : Number(d.seriousness.value);\r\n const questionsYesNoAnswered = questionsYesNo.map((x)=>({\r\n id: x.id,\r\n answer: !d[x.name] ? null : Number(d[x.name].value)\r\n }));\r\n pharmacovigilance.questionsYesNo = questionsYesNoAnswered.filter(x=>x.answer !== null);\r\n\r\n const reactionsSelected = reactionList.map((x)=>{\r\n if(d[x.name])\r\n return x.id;\r\n });\r\n pharmacovigilance.adverseReaction = reactionsSelected.filter(x=>x !== undefined);\r\n pharmacovigilance.reactionDecreased = !d.reactionDecreased && d.reactionDecreased !== 0 ? null : Number(d.reactionDecreased.value);\r\n pharmacovigilance.reactionReappeared = !d.reactionReappeared && d.reactionReappeared !== 0 ? null : Number(d.reactionReappeared.value);\r\n pharmacovigilance.anotherRelevantStory = d.anotherRelevantStory;\r\n pharmacovigilance.endTherapy = !d.endTherapy ? null : dayjs(d.endTherapy).format(\"YYYY-MM-DDTHH:mm:ss\");\r\n pharmacovigilance.type = !d.type ? null : Number(d.type.value);\r\n\r\n result.pharmacovigilance = pharmacovigilance;\r\n clearErrors();\r\n await callApiAsync(\r\n ()=> postAdverseEventSave(result),\r\n ()=> {\r\n reloadAdverseEvent();\r\n NotificationManager.success(msgSuccess);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const callSentFormatAsync = async (obj) => {\r\n await callApiAsync(\r\n ()=> postAdverseEventUpdateState(obj),\r\n ()=> {\r\n callApi(\r\n ()=> getPrescriptions(selectedMenuItem), \r\n (data)=>{\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const onBtnSendSubmit = async (d, e) => {\r\n if(!areMedicationsValid()){\r\n await onSubmit();\r\n NotificationManager.warning(msgConcomitantsNotValid);\r\n return;\r\n }\r\n\r\n var obj = { \r\n id: adverseEvent.id,\r\n state: AdverseEventStateEnum.pendingToVerify\r\n };\r\n\r\n await onSubmit();\r\n\r\n if(isNurseProfile()){\r\n setDlgConfirm(true);\r\n setObjSendFormat(obj);\r\n return;\r\n }\r\n\r\n await callSentFormatAsync(obj);\r\n };\r\n\r\n const isDisabled =()=>{\r\n if(adverseEvent && isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && adverseEvent.pendingQuery.state !== QueryAdverseEventStateEnum.resolved && adverseEvent.pendingQuery.assignedToNurse)\r\n else\r\n return !(adverseEvent.status === AdverseEventStateEnum.pending || adverseEvent.status === AdverseEventStateEnum.inconsistentReport);\r\n }\r\n return true;\r\n };\r\n const isForeamDisabled =()=>{\r\n if(adverseEvent && isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && adverseEvent.pendingQuery.state !== QueryAdverseEventStateEnum.resolved \r\n && adverseEvent.pendingQuery.assignedToNurse && adverseEvent.pendingQuery.type === QueryAdverseEventTypeEnum.regulator)\r\n else\r\n return !(adverseEvent.status === AdverseEventStateEnum.pending || adverseEvent.status === AdverseEventStateEnum.inconsistentReport);\r\n }\r\n return true;\r\n };\r\n const isCiomsDisabled =()=>{\r\n if(adverseEvent && isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && adverseEvent.pendingQuery.state !== QueryAdverseEventStateEnum.resolved \r\n && adverseEvent.pendingQuery.assignedToNurse && adverseEvent.pendingQuery.type === QueryAdverseEventTypeEnum.partner)\r\n else\r\n return !(adverseEvent.status === AdverseEventStateEnum.pending || adverseEvent.status === AdverseEventStateEnum.inconsistentReport);\r\n }\r\n return true;\r\n };\r\n const disabled = isDisabled();\r\n const foreamDisabled = isForeamDisabled();\r\n const ciomsDisabled = isCiomsDisabled();\r\n\r\n const handleAddknownAdverseEvent = (data) =>{\r\n setKnownAdverseEvents([...knownAdverseEvents,data]);\r\n setValue(\"knownAdverseEvents\",[...knownAdverseEventsValue, { label: data.name, value: data.id }]);\r\n }\r\n\r\n return (\r\n
    \r\n {adverseEvent && adverseEvent.pharmacovigilance && adverseEvent.pharmacovigilance.foreamLetterFile &&\r\n
    \r\n }\r\n >\r\n \r\n \r\n
    \r\n }\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n {/* {(!adverseEvent || adverseEvent.productBehaviorId === ProductBehavior.remodulin ) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n } */}\r\n { (!adverseEvent || (adverseEvent.formulaType === FormulaType.MIPRES &&\r\n adverseEvent.productBehaviorId !== ProductBehavior.remodulin &&\r\n adverseEvent.productBehaviorId !== ProductBehavior.dacepton)) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n\r\n {/* Patient info */}\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={genderrList}\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {/* End patient info */}\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n\r\n\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n isMulti\r\n options={knownAdverseEvents}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n {!foreamDisabled && \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreamDenouementList}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreamSeriousnessList}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {questionsYesNo.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n\r\n \r\n \r\n \r\n \r\n \r\n {reactionList.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n \r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={ciomsTypeList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {(typeValue === null || typeValue.value === CiomsTypeEnum.tracing) &&\r\n \r\n }\r\n options={followUpList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n \r\n {!disabled &&\r\n
    \r\n \r\n {}\r\n \r\n {adverseEvent.status === AdverseEventStateEnum.pending &&\r\n \r\n \r\n {}\r\n \r\n }\r\n text={}\r\n handleRequestClose={() => setDlgConfirm(false)}\r\n onAcceptClickAsync={async () => {\r\n await callSentFormatAsync(objSendFormat);\r\n setDlgConfirm(false);\r\n }}\r\n />\r\n \r\n }\r\n
    \r\n }\r\n
    \r\n );\r\n};\r\n\r\nexport default Farmacovigilance","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, { getCboValue, getCboValues } from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport { SwitchYesNo } from \"components/Form/Controls/switchYesNo\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport BtnNullify from \"components/AdverseEvent/BtnNullify\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postAdverseEventSave,\r\n postAdverseEventUpdateState,\r\n getPrescriptions\r\n} from \"api/apiList\";\r\nimport { \r\n setSelectedPrescription, \r\n loadPrescriptions\r\n} from \"actions/Management\";\r\nimport {\r\n ForeiaDetectionList,\r\n ForeiaClassificationList,\r\n ForeiaDenouementList,\r\n genderList,\r\n AdverseEventStateEnum,\r\n RoleEnum,\r\n ForeiaDenouementEnum,\r\n QueryAdverseEventStateEnum\r\n} from \"constants/Enums\";\r\nimport { getRoleUser } from \"app/routes/psp/services/userService\";\r\n\r\nconst Technovigilance = ({obj}) =>{\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { selectedMenuItem } = useSelector(({ management }) => management);\r\n \r\n const [causeOptionsList, setCauseOptionsList] = useState([]);\r\n const [reportedToManufacturerState, setReportedToManufacturerState] = useState(false);\r\n const [sentToManufacturerState, setSentToManufacturerState] = useState(false);\r\n const [dlgConfirm, setDlgConfirm] = useState(false);\r\n const [objSendFormat, setObjSendFormat] = useState(null);\r\n\r\n const foreiaDetectionList = ForeiaDetectionList();\r\n const foreiaClassificationList = ForeiaClassificationList();\r\n const foreiaDenouementList = ForeiaDenouementList();\r\n const genderrList = genderList();\r\n const userInfo = getRoleUser();\r\n const isNurseProfile = () =>{\r\n const role = userInfo.role.toUpperCase();\r\n return role === RoleEnum.nurse;\r\n };\r\n \r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n //Patient info\r\n documentType: \"\",\r\n document: \"\",\r\n gender: null,\r\n age: \"\",\r\n unitAge: \"\",\r\n disease:\"\",\r\n\r\n //medical device\r\n genericName:\"\", //readOnly\r\n tradename:\"\", //readOnly\r\n healthRegister: \"\", //readOnly\r\n medicineLotNumber: \"\",\r\n deviceModel: \"\", //readOnly\r\n deviceReference: \"\", //readOnly\r\n deviceSerial:\"\",\r\n manufacturer:\"\", //readOnly\r\n distributorImporter: \"\", //readOnly\r\n operatingArea: \"\",\r\n usedMoreThanOnce: false,\r\n\r\n //Adverse event info\r\n adverseEventStartDate: null,\r\n creationDate: null, //reportPreparationDate?\r\n detection: null,\r\n classification: null,\r\n descriptionAdverseEvent: \"\",\r\n denouement: null,\r\n denouementOther: \"\",\r\n\r\n //Management\r\n causes: null,\r\n actions: \"\",\r\n reportedToManufacturer: false,\r\n reportedToManufacturerDate: null,\r\n availableForEvaluation: false,\r\n sentToManufacturer: false,\r\n sentToManufacturerDate: null,\r\n\r\n //Reporter info\r\n reporterName: \"\",\r\n reporterProfession: \"\",\r\n reporterArea: \"\",\r\n address:\"\",\r\n phone:\"\",\r\n reporterStateProvince: \"\",\r\n reporterCity: \"\",\r\n email:\"\",\r\n notificationDate: null, //Fecha en la que se envía a farmacovigilancia\r\n authorizesDisclosure: false\r\n };\r\n \r\n //yup array validation https://github.com/jquense/yup/issues/725\r\n const validationSchema = {\r\n medicineLotNumber: yup.string().required(),\r\n deviceSerial: yup.string().required(),\r\n operatingArea: yup.string().required(),\r\n adverseEventStartDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n detection: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n classification: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n descriptionAdverseEvent: yup.string().required(),\r\n denouement: yup .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n denouementOther: yup.string().when(\"denouement\", {\r\n is: denouement => denouement && denouementValue.value === ForeiaDenouementEnum.other,\r\n then: yup.string().required()\r\n }),\r\n causes: yup.array()\r\n .required()\r\n .nullable(),\r\n actions: yup.string().required(),\r\n reportedToManufacturerDate: yup.date().nullable().when(\"reportedToManufacturer\", {\r\n is: () => reportedToManufacturerState,\r\n then: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n }),\r\n sentToManufacturerDate: yup.date().nullable().when(\"sentToManufacturer\", {\r\n is: () => sentToManufacturerState,\r\n then: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n }),\r\n notificationDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, watch, errors, getValues, clearErrors } = methods;\r\n\r\n const reportedToManufacturerValue = watch(\"reportedToManufacturer\");\r\n const sentToManufacturerValue = watch(\"sentToManufacturer\");\r\n const denouementValue = watch(\"denouement\");\r\n\r\n useEffect(()=>{\r\n setReportedToManufacturerState(reportedToManufacturerValue);\r\n if(!reportedToManufacturerValue)\r\n setValue(\"reportedToManufacturerDate\", null);\r\n },[reportedToManufacturerValue]);\r\n useEffect(()=>{\r\n setSentToManufacturerState(sentToManufacturerValue);\r\n if(!sentToManufacturerValue)\r\n setValue(\"sentToManufacturerDate\", null);\r\n },[sentToManufacturerValue]);\r\n useEffect(()=>{\r\n if(!denouementValue || denouementValue.value !== ForeiaDenouementEnum.other)\r\n setValue(\"denouementOther\", \"\");\r\n },[denouementValue]);\r\n\r\n const setString = (obj, prop) => setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) => setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue = (obj, prop, list) => setValue(prop, !obj ? null : getCboValue(list, obj[prop]));\r\n const setBool = (obj, prop) => setValue(prop, !obj || !obj[prop] ? false : obj[prop]);\r\n\r\n const loadData = (data) => {\r\n const technovigilance = !data ? null : data.technovigilance;\r\n\r\n if(data){\r\n setValue(\"age\",`${data.age} (${data.unitAge})`);\r\n setCauseOptionsList(data.causeOptions);\r\n }\r\n\r\n setString(data, \"documentType\");\r\n setString(data, \"document\");\r\n setCboValue(data,\"gender\",genderrList);\r\n setString(data, \"disease\");\r\n\r\n setString(data, \"genericName\");\r\n setString(data, \"tradename\");\r\n setString(technovigilance, \"healthRegister\");\r\n setString(data, \"medicineLotNumber\");\r\n setString(technovigilance, \"deviceModel\");\r\n setString(technovigilance, \"deviceReference\");\r\n setString(technovigilance, \"deviceSerial\");\r\n setString(technovigilance, \"manufacturer\");\r\n setString(technovigilance, \"distributorImporter\");\r\n setString(technovigilance, \"operatingArea\");\r\n setBool(technovigilance, \"usedMoreThanOnce\");\r\n\r\n setDate(data,\"adverseEventStartDate\");\r\n setDate(data,\"creationDate\");\r\n setCboValue(technovigilance,\"detection\",foreiaDetectionList);\r\n setCboValue(technovigilance,\"classification\",foreiaClassificationList);\r\n setString(data, \"descriptionAdverseEvent\");\r\n setCboValue(technovigilance,\"denouement\",foreiaDenouementList);\r\n setString(technovigilance, \"denouementOther\");\r\n \r\n setString(technovigilance, \"actions\");\r\n setBool(technovigilance, \"reportedToManufacturer\");\r\n setDate(technovigilance,\"reportedToManufacturerDate\");\r\n setBool(technovigilance, \"availableForEvaluation\");\r\n setBool(technovigilance, \"sentToManufacturer\");\r\n setDate(technovigilance,\"sentToManufacturerDate\");\r\n\r\n setString(technovigilance, \"reporterName\");\r\n setString(technovigilance, \"reporterProfession\");\r\n setString(technovigilance, \"reporterArea\");\r\n setString(technovigilance, \"address\");\r\n setString(technovigilance, \"phone\");\r\n setString(technovigilance, \"reporterStateProvince\");\r\n setString(technovigilance, \"reporterCity\");\r\n setString(technovigilance, \"email\");\r\n setDate(data,\"notificationDate\");\r\n setBool(technovigilance, \"authorizesDisclosure\");\r\n };\r\n\r\n useEffect(()=>{\r\n if(obj){\r\n loadData(obj);\r\n }\r\n },[obj]);\r\n\r\n useEffect(()=>{\r\n if(causeOptionsList)\r\n setValue(\"causes\",getCboValues(causeOptionsList, obj.technovigilance.causes));\r\n },[causeOptionsList]);\r\n\r\n const onSubmit = async (d, e) => {\r\n if(!d)\r\n d = getValues();\r\n\r\n let result0 = !obj ? {} : {...obj};\r\n var result = {\r\n ...result0,\r\n adverseEventStartDate: !d.adverseEventStartDate ? null : dayjs(d.adverseEventStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n descriptionAdverseEvent: d.descriptionAdverseEvent,\r\n medicineLotNumber: d.medicineLotNumber,\r\n notificationDate: !d.notificationDate ? null : dayjs(d.notificationDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n\r\n technovigilance: {\r\n deviceSerial: d.deviceSerial,\r\n operatingArea: d.operatingArea,\r\n usedMoreThanOnce: d.usedMoreThanOnce,\r\n\r\n detection: !d.detection? null : Number(d.detection.value),\r\n classification: !d.classification? null : Number(d.classification.value),\r\n denouement: !d.denouement? null : Number(d.denouement.value),\r\n denouementOther: d.denouementOther,\r\n\r\n causes: !d.causes ? [] : d.causes.map(x=>Number(x.value)),\r\n actions: d.actions,\r\n reportedToManufacturer: d.reportedToManufacturer,\r\n reportedToManufacturerDate: !d.reportedToManufacturerDate ? null : dayjs(d.reportedToManufacturerDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n availableForEvaluation: d.availableForEvaluation,\r\n sentToManufacturer: d.sentToManufacturer,\r\n sentToManufacturerDate: !d.sentToManufacturerDate ? null : dayjs(d.sentToManufacturerDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n \r\n authorizesDisclosure: d.authorizesDisclosure\r\n }\r\n }; \r\n\r\n clearErrors();\r\n await callApiAsync(\r\n ()=> postAdverseEventSave(result),\r\n ()=> NotificationManager.success(msgSuccess),\r\n fnSetLoader\r\n );\r\n };\r\n \r\n const callSentFormatAsync = async (objData) => {\r\n await callApiAsync(\r\n ()=> postAdverseEventUpdateState(objData),\r\n ()=> {\r\n callApi(\r\n ()=> getPrescriptions(selectedMenuItem), \r\n (data)=>{\r\n dispatch(loadPrescriptions(data, selectedMenuItem));\r\n dispatch(setSelectedPrescription(null));\r\n }\r\n );\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const onBtnSendSubmit = async (d, e) => {\r\n var objData = { \r\n id: obj.id,\r\n state: AdverseEventStateEnum.pendingToVerify\r\n };\r\n\r\n await onSubmit();\r\n \r\n if(isNurseProfile()){\r\n setDlgConfirm(true);\r\n setObjSendFormat(objData);\r\n return;\r\n }\r\n\r\n await callSentFormatAsync(obj);\r\n };\r\n\r\n const isDisabled =()=>{\r\n if(isNurseProfile()){\r\n if(obj.status === AdverseEventStateEnum.pendingQuery)\r\n return !(obj.pendingQuery && obj.pendingQuery.state !== QueryAdverseEventStateEnum.resolved && obj.pendingQuery.assignedToNurse)\r\n else\r\n return !(obj.status === AdverseEventStateEnum.pending || obj.status === AdverseEventStateEnum.inconsistentReport);\r\n }\r\n else {\r\n if(obj.status === AdverseEventStateEnum.pendingQuery)\r\n return !(obj.pendingQuery && (!obj.pendingQuery.assignedToNurse || obj.pendingQuery.state === QueryAdverseEventStateEnum.resolved))\r\n else\r\n return obj.status !== AdverseEventStateEnum.pendingToVerify;\r\n }\r\n };\r\n const disabled = isDisabled();\r\n return (\r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={genderrList}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n\r\n\r\n {/* Medical device */}\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={2}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n {/* Adverse event info */}\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={foreiaDetectionList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreiaClassificationList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreiaDenouementList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={!(disabled || !denouementValue || denouementValue.value !== ForeiaDenouementEnum.other)}\r\n disabled={disabled || !denouementValue || denouementValue.value !== ForeiaDenouementEnum.other}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n\r\n {/* Management */} \r\n \r\n }\r\n isMulti\r\n options={causeOptionsList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={3}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={!(disabled || !reportedToManufacturerValue)}\r\n disabled={disabled || !reportedToManufacturerValue}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={!(disabled || !sentToManufacturerValue)}\r\n disabled={disabled || !sentToManufacturerValue}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n\r\n {/* Reporter info */}\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n { obj.status === AdverseEventStateEnum.pending && isNurseProfile() &&\r\n \r\n \r\n {}\r\n \r\n }\r\n text={}\r\n handleRequestClose={() => setDlgConfirm(false)}\r\n onAcceptClickAsync={async () => {\r\n await callSentFormatAsync(objSendFormat);\r\n setDlgConfirm(false);\r\n }}\r\n />\r\n \r\n }\r\n
    \r\n } \r\n
    \r\n );\r\n};\r\n\r\nexport default Technovigilance;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Tabs, Tab } from \"@material-ui/core\";\r\nimport QueryAdverseEvent from \"components/AdverseEvent/QueryAdverseEvent\";\r\nimport Pharmacovigilance from \"./Pharmacovigilance\";\r\nimport Technovigilance from \"../../../../../components/AdverseEvent/Technovigilance\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n getAdverseEventGetDetail,\r\n getQueryAdverseEventList\r\n} from \"api/apiList\";\r\nimport { AdverseEventTypeEnum } from \"constants/Enums\";\r\n\r\nconst AdverseEventDetail = ({ prescription }) =>{ \r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [currentTab, setCurrentTab] = useState(0);\r\n const [adverseEvent, setAdverseEvent] = useState(null);\r\n const [queryAdverseEventList,setQueryAdverseEventList] = useState([]);\r\n\r\n const reloadQueries = () => {\r\n callApi(\r\n ()=>getQueryAdverseEventList(prescription.adverseEvent.id),\r\n setQueryAdverseEventList\r\n );\r\n };\r\n\r\n const reloadAdverseEvent = () => {\r\n callApi(\r\n ()=>getAdverseEventGetDetail(prescription.adverseEvent.id),\r\n setAdverseEvent,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n if(prescription){\r\n reloadAdverseEvent();\r\n reloadQueries();\r\n }\r\n },[prescription]);\r\n\r\n const handleChange = (event, value) => setCurrentTab(value);\r\n\r\n return (\r\n
    \r\n \r\n }\r\n />\r\n { queryAdverseEventList.length !== 0 && \r\n }\r\n />\r\n }\r\n \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n
    \r\n
    \r\n { adverseEvent && adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance &&\r\n \r\n }\r\n { adverseEvent && adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.technovigilance &&\r\n \r\n }\r\n
    \r\n
    \r\n )}\r\n {currentTab === 1 && (\r\n
    \r\n
    \r\n {\r\n reloadAdverseEvent();\r\n reloadQueries();\r\n }}\r\n />\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default AdverseEventDetail;","import React, { useState} from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { TrainingResourceTypeEnum } from \"constants/Enums\";\r\n\r\nconst processData = (eventTrainingInfo) => {\r\n if(!eventTrainingInfo || !eventTrainingInfo.eventTrainingFile)\r\n return [];\r\n\r\n const onClick = (fileLink, type) => () => {\r\n const link = document.createElement(\"a\");\r\n link.href = fileLink;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n };\r\n\r\n return eventTrainingInfo.eventTrainingFile.map((x) => {\r\n return {\r\n ...x,\r\n url: (\r\n \r\n \r\n \r\n ),\r\n };\r\n });\r\n};\r\n\r\nconst Resources = ({eventTrainingInfo, typeId}) => {\r\n const [open, setOpen] = useState(false);\r\n\r\n const handleClickOpen = () => setOpen(true)\r\n const handleRequestClose = () => setOpen(false)\r\n\r\n const columns = [\r\n defaultCol('name','core.name'),\r\n defaultCol('description','core.description'),\r\n {\r\n name: \"url\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Resources;\r\n","import React, { useState, useEffect} from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport {\r\n callApi,\r\n postAddUpdateFeedback\r\n} from \"api/apiList\";\r\n\r\nconst Feedback = ({eventTrainingInfo, refreshEventTrainingInfo}) => {\r\n const [open, setOpen] = useState(false);\r\n const msgFeedbackValidation = IntlGetText(\"eventTraining.feedbackValidation\")\r\n\r\n const handleClickOpen = () => {\r\n if(!eventTrainingInfo || dayjs(eventTrainingInfo.trainingDate) > dayjs()){\r\n NotificationManager.warning(msgFeedbackValidation);\r\n return;\r\n }\r\n setOpen(true)\r\n }\r\n const handleRequestClose = () => setOpen(false)\r\n \r\n const defaultValues = { comment: \"\" };\r\n const validationSchema = { \r\n comment: yup.string().required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(()=>{\r\n if(!open) return\r\n setTimeout(()=>{\r\n setValue('comment',!eventTrainingInfo || !eventTrainingInfo.comment ? \"\" : eventTrainingInfo.comment)\r\n },150) \r\n },[open])\r\n\r\n const onSubmit = (d, e) => {\r\n var obj = {\r\n eventTrainingId: !eventTrainingInfo ? 0 : eventTrainingInfo.id,\r\n comment: d.comment\r\n };\r\n callApi(\r\n ()=>postAddUpdateFeedback(obj),\r\n ()=>{ \r\n refreshEventTrainingInfo()\r\n handleRequestClose()\r\n })\r\n };\r\n \r\n const disabled = false;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={4}\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Feedback;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport ScrollContent from \"../scrollContent\";\r\nimport LabelsSection from \"../labelsSection\";\r\nimport Resources from \"./components/resources\";\r\nimport Feedback from \"./components/feedback\";\r\nimport { callApi, getEventTrainingDetail } from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst EventTrainingDetail = ({ prescription }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { width } = useSelector(({ settings }) => settings);\r\n\r\n const [eventTrainingInfo, setEventTrainingInfo] = useState(null);\r\n\r\n const refreshEventTrainingInfo = () => {\r\n callApi(\r\n () => getEventTrainingDetail(prescription.eventTraining.id),\r\n setEventTrainingInfo,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!prescription) return;\r\n\r\n refreshEventTrainingInfo();\r\n }, [prescription]);\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n
    \r\n {prescription.eventTraining.name.toUpperCase()}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n {prescription.eventTraining.typeId !== 2 && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default EventTrainingDetail;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport ScrollContent from \"../scrollContent\";\r\nimport ContactPlanning from \"./components/ContactPlanning\";\r\nimport NameAndLabelsContent from \"./components/NameAndLabelsContent\";\r\nimport ContactInfo from \"./components/ContactInfo\";\r\nimport ContactPatientForm from \"./components/ContactPatientForm\";\r\nimport DialogDoctorAuthorization from \"./components/DialogDoctorAuthorization\";\r\nimport StartEndImpact from \"./components/StartEndImpact\";\r\nimport FirstImpact from \"../Impact/FirstImpact\";\r\nimport GeneralImpact from \"../GeneralImpact\";\r\nimport AdverseEventDetail from \"../AdverseEventDetail\";\r\nimport EventTrainingDetail from \"../EventTrainingDetail\";\r\nimport {\r\n setPrescriptionState,\r\n setLoader,\r\n removeSelectedPrescription,\r\n} from \"actions/Management\";\r\nimport {\r\n callActionApi,\r\n postDoctorAuthorization,\r\n postPatientAuthorization\r\n} from \"api/apiList\";\r\nimport { PrescripStateEnum, FolderType } from \"constants/Enums\";\r\n\r\nconst NewPatient = ({ prescription }) => {\r\n const dispatch = useDispatch();\r\n const { width } = useSelector(({ settings }) => settings);\r\n\r\n const msgDoctorSuccess = IntlGetText(\"doctorAuthorization.MsgSuccess\");\r\n\r\n const onProcessStateChange = (state) => {\r\n dispatch(setPrescriptionState(state));\r\n };\r\n\r\n const [doctorAuthDialog, setDoctorAuthDialog] = useState(false);\r\n const handleDoctorAuth = (accept) => {\r\n if (accept) {\r\n sendDoctorAuth(accept, null);\r\n } else {\r\n handleDoctorAuthDialog(true);\r\n }\r\n };\r\n const handleDoctorAuthDialog = (open) => {\r\n setDoctorAuthDialog(open);\r\n };\r\n const sendDoctorAuth = (accept, comment) => {\r\n callActionApi(\r\n () =>\r\n postDoctorAuthorization({\r\n prescriptionId: prescription.id,\r\n accept,\r\n comment,\r\n }),\r\n (data) => {\r\n onProcessStateChange(data);\r\n if (accept === false) \r\n dispatch(removeSelectedPrescription());\r\n else\r\n NotificationManager.success(msgDoctorSuccess);\r\n },\r\n (error) => {\r\n if (typeof error === \"string\")\r\n dispatch(NotificationManager.error(error));\r\n },\r\n setLoader\r\n );\r\n };\r\n\r\n const [patientAuthDialog, setPatientAuthDialog] = useState(false);\r\n const handlePatientAuth = (accept) => {\r\n if (accept) {\r\n sendPatientAuth(accept, null);\r\n } else {\r\n handlePatientAuthDialog(true);\r\n }\r\n };\r\n const handlePatientAuthDialog = (open) => {\r\n setPatientAuthDialog(open);\r\n };\r\n const sendPatientAuth = (accept, comment) => {\r\n callActionApi(\r\n () =>\r\n postPatientAuthorization({\r\n prescriptionId: prescription.id,\r\n accept,\r\n comment,\r\n }),\r\n (data) => {\r\n onProcessStateChange(data);\r\n if (accept === false) dispatch(removeSelectedPrescription(null));\r\n },\r\n (error) => {\r\n if (typeof error === \"string\")\r\n dispatch(NotificationManager.error(error));\r\n },\r\n setLoader\r\n );\r\n };\r\n\r\n return (\r\n \r\n
    \r\n \r\n\r\n {/* Medico autoriza */}\r\n {prescription.stateId === PrescripStateEnum.pending && (\r\n
    \r\n \r\n {\r\n handleDoctorAuth(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n {\r\n handleDoctorAuth(false);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn bg-red text-white\"\r\n >\r\n \r\n \r\n
    \r\n )}\r\n {/* Paciente autoriza */}\r\n {prescription.stateId === PrescripStateEnum.doctorAccepted && prescription.patient && (\r\n
    \r\n \r\n {\r\n handlePatientAuth(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n {\r\n handlePatientAuth(false);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn bg-red text-white\"\r\n >\r\n \r\n \r\n
    \r\n )}\r\n {/* Finalizar primer impacto */}\r\n \r\n\r\n }\r\n key={0}\r\n open={doctorAuthDialog}\r\n sendDoctorAuth={sendDoctorAuth}\r\n handleDoctorAuthDialog={handleDoctorAuthDialog}\r\n />\r\n }\r\n key={1}\r\n open={patientAuthDialog}\r\n sendDoctorAuth={sendPatientAuth}\r\n handleDoctorAuthDialog={handlePatientAuthDialog}\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n {prescription.stateId < PrescripStateEnum.fristImpact && (\r\n \r\n )}\r\n {(prescription.stateId === PrescripStateEnum.doctorAccepted || prescription.stateId === PrescripStateEnum.patientAccepted) &&\r\n !prescription.firstImpactDate && (\r\n \r\n )}\r\n
    \r\n\r\n {prescription.stateId === PrescripStateEnum.patientAccepted && !prescription.firstImpactDate && (\r\n \r\n )}\r\n\r\n {/* PRIMER IMPACTO */}\r\n {prescription.stateId === PrescripStateEnum.fristImpact && }\r\n\r\n {/* {((prescription.stateId >= PrescripStateEnum.formulated && prescription.stateId <= PrescripStateEnum.deliveryNotMade)\r\n || prescription.stateId === PrescripStateEnum.NewFormulation)\r\n && } */}\r\n {(prescription.stateId >= PrescripStateEnum.formulated)\r\n && }\r\n \r\n );\r\n};\r\n\r\nconst ContentDetail = () => {\r\n const { selectedMenuItem, selectedPrescription } = useSelector(\r\n ({ management }) => management\r\n );\r\n if (\r\n selectedMenuItem === FolderType.newPatients || selectedMenuItem === FolderType.inProcess || selectedMenuItem === FolderType.tracing\r\n ) {\r\n return ;\r\n }\r\n\r\n if (selectedMenuItem === FolderType.adverseEvents) {\r\n return ;\r\n }\r\n\r\n if (selectedMenuItem === FolderType.trainingsAndEvents) {\r\n return ;\r\n }\r\n \r\n return
    Hola
    ;\r\n};\r\n\r\nexport default ContentDetail;\r\n","import React from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { IconButton } from \"@material-ui/core\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport ScrollContent from \"../scrollContent\";\r\nimport PrescriptionList from \"./PrescriptionList\";\r\nimport ContentDetail from \"../PrescriptionDetail/prescriptionDetail\";\r\nimport { setSelectedPrescription } from \"actions/Management\";\r\nimport { FolderType } from \"constants/Enums\";\r\n\r\nconst getHeight = (selectedMenuItem, defaultHeight) => {\r\n return selectedMenuItem === FolderType.adverseEvents\r\n ? \"calc(100vh - 180px)\"\r\n : \"calc(100vh - \"+defaultHeight+\")\";\r\n};\r\n\r\nconst ArrowBack = () => {\r\n const dispatch = useDispatch();\r\n const handlerClick = () => {\r\n dispatch(setSelectedPrescription(null));\r\n };\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n };\r\n \r\n const ManageContent = () => {\r\n const { width } = useSelector(({ settings }) => settings);\r\n const { prescriptionsByMenuItem, selectedPrescription, selectedMenuItem } = useSelector(\r\n ({ management }) => management\r\n );\r\n \r\n const noContentFoundMessage = IntlGetText(\"core.noContentFound\"); //\"No hay pacientes en este espacio\";\r\n \r\n return (\r\n
    \r\n {!selectedPrescription ? (\r\n prescriptionsByMenuItem.length === 0 ? (\r\n = 1200 ? \"calc(100vh - 259px)\" : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n {noContentFoundMessage}\r\n
    \r\n ) : (\r\n \r\n \r\n \r\n )\r\n ) : (\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n )}\r\n \r\n );\r\n };\r\n\r\n export default ManageContent;","import React, { useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { Drawer, CircularProgress } from \"@material-ui/core\";\r\nimport SideBar from \"./sideBar\";\r\nimport SearchHeader from \"./searchHeader\";\r\nimport ManageContent from \"./ManageContent\";\r\nimport { onToggleDrawer, loadManageModule } from \"actions/Management\";\r\nimport { callApi, getProductsAndStates } from \"../../../../api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { FolderType } from \"constants/Enums\";\r\n\r\nconst Management = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { width } = useSelector(({ settings }) => settings);\r\n const { loader, drawerState, selectedMenuItem, selectedPrescription } = useSelector(({ management }) => management);\r\n\r\n const handleToggleDrawer = () => dispatch(onToggleDrawer()); \r\n \r\n useEffect(() => {\r\n callApi(\r\n getProductsAndStates,\r\n ({productLines,prescriptionStates})=>{dispatch(loadManageModule(productLines,prescriptionStates));}, \r\n fnSetLoader\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n \r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {SideBar()}\r\n \r\n
    \r\n
    \r\n {SideBar()}\r\n
    \r\n
    \r\n { (!selectedPrescription || selectedMenuItem !== FolderType.adverseEvents)\r\n && \r\n }\r\n
    \r\n {loader ? (\r\n = 1200\r\n ? \"calc(100vh - 259px)\"\r\n : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n \r\n
    \r\n ) : \r\n }\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n}; \r\n\r\nexport default Management;","export default [\r\n {\r\n id: 0,\r\n handle: \"inbox\",\r\n title: \"Nuevos eventos\",\r\n icon: \"accounts-alt\",\r\n },\r\n {\r\n id: 1,\r\n handle: \"sent\",\r\n title: \"En Tramite\",\r\n icon: \"hourglass-alt\",\r\n },\r\n {\r\n id: 2,\r\n handle: \"drafts\",\r\n title: \"Suspención/Fallecidos\",\r\n icon: \"folder\",\r\n },\r\n {\r\n id: 3,\r\n handle: \"spam\",\r\n title: \"Cerrados\",\r\n icon: \"alert-octagon\",\r\n },\r\n];\r\n","export default [\r\n {\r\n id: 0,\r\n handle: \"first-impact\",\r\n title: \"Nuevo\",\r\n color: \"badge-first-impact\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 1,\r\n handle: \"inhospital-visit\",\r\n title: \"Verificado\",\r\n color: \"green\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 2,\r\n handle: \"home-visit\",\r\n title: \"Reporte Incompleto\",\r\n color: \"orange\",\r\n type: \"new-patient\",\r\n },\r\n {\r\n id: 3,\r\n handle: \"follow-up\",\r\n title: \"Reportado ER\",\r\n color: \"green\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 4,\r\n handle: \"accompaniment\",\r\n title: \"ER no efectivo\",\r\n color: \"orange\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 5,\r\n handle: \"remodulin\",\r\n title: \"REMODULIN\",\r\n color: \"badge-remodulin\",\r\n type: \"product-line\",\r\n },\r\n {\r\n id: 6,\r\n handle: \"iclusig\",\r\n title: \"ICLUSIG\",\r\n color: \"badge-iclusig\",\r\n type: \"product-line\",\r\n },\r\n {\r\n id: 7,\r\n handle: \"doctorok\",\r\n title: \"PARTNER\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 8,\r\n handle: \"pacienteok\",\r\n title: \"Partner no efectivo\",\r\n color: \"red\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 9,\r\n handle: \"query\",\r\n title: \"Query\",\r\n color: \"amber\",\r\n type: \"state\",\r\n },\r\n {\r\n id: 10,\r\n handle: \"suspended\",\r\n title: \"SUSPENSIÓN\",\r\n color: \"orange\",\r\n type: \"suspended\",\r\n },\r\n {\r\n id: 11,\r\n handle: \"dead\",\r\n title: \"FALLECIDO\",\r\n color: \"red\",\r\n type: \"suspended\",\r\n },\r\n];\r\n","export default [\r\n {\r\n title: \"All\",\r\n },\r\n {\r\n title: \"None\",\r\n },\r\n /*{\r\n 'title': 'Read',\r\n },\r\n {\r\n 'title': 'Unread',\r\n },\r\n {\r\n 'title': 'Starred',\r\n },\r\n {\r\n 'title': 'Unstarred',\r\n },\r\n {\r\n 'title': 'Important',\r\n },\r\n {\r\n 'title': 'Unimportant',\r\n }*/\r\n];\r\n","import React from \"react\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport labels from \"app/routes/psp/managepharma/data/labels\";\r\n\r\nconst MailListItem = ({ mail, onMailSelect, onMailChecked, onStartSelect }) => {\r\n return (\r\n
    \r\n {\r\n event.stopPropagation();\r\n onMailChecked(mail);\r\n }}\r\n value=\"SelectMail\"\r\n />\r\n {/* {\r\n onStartSelect(mail);\r\n }}\r\n >\r\n {mail.starred ? (\r\n \r\n ) : (\r\n \r\n )}\r\n */}\r\n\r\n
    \r\n {mail.from.avatar === \"\" ? (\r\n \r\n {\" \"}\r\n {mail.from.name.charAt(0).toUpperCase()}\r\n
    \r\n ) : (\r\n \r\n )}\r\n
    \r\n\r\n {\r\n onMailSelect(mail);\r\n }}\r\n >\r\n
    \r\n
    \r\n \r\n {mail.from.name} {mail.from.lastname}\r\n \r\n\r\n \r\n\r\n \r\n {mail.subject}\r\n \r\n\r\n {mail.hasAttachments && }\r\n\r\n
    {mail.time}
    \r\n
    \r\n\r\n
    \r\n

    {mail.message}

    \r\n
    \r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default MailListItem;\r\n","import React from \"react\";\r\nimport MailListItem from \"./MailListItem/index\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\n\r\nconst MailList = ({\r\n mails,\r\n onMailSelect,\r\n onMailChecked,\r\n onStartSelect,\r\n width,\r\n}) => {\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 259px)\" : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n {mails.map((mail, index) => (\r\n \r\n ))}\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default MailList;\r\n","import React from \"react\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport MoreVertIcon from \"@material-ui/icons/MoreVert\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\n\r\nimport labels from \"app/routes/psp/managepharma/data/labels\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\n\r\nclass MailDetail extends React.Component {\r\n state = {\r\n anchorEl: undefined,\r\n open: false,\r\n showDetail: false,\r\n };\r\n\r\n handleClick = (event) => {\r\n this.setState({ open: true, anchorEl: event.currentTarget });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n handleClickCIBox = () => {\r\n console.log(\"CI CLICKED\");\r\n };\r\n\r\n handleClickFMBox = () => {\r\n console.log(\"FM CLICKED\");\r\n };\r\n\r\n render() {\r\n const {\r\n mail,\r\n onStartSelect,\r\n onImportantSelect,\r\n onProcessStateChange,\r\n width,\r\n } = this.props;\r\n const options = [\"Reply\", \"Forward\", \"Print\"];\r\n\r\n // Nuevo paciente\r\n if (mail.folder === 0) {\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    \r\n {mail.hasPatient &&\r\n \"Paciente: \" +\r\n mail.from.name +\r\n \" \" +\r\n mail.from.lastname +\r\n \" | \"}\r\n {mail.from.doctorName}\r\n
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n {/* Medico autoriza */}\r\n {mail.states.length === 0 && (\r\n
    \r\n ¿Verificar?\r\n {\r\n onProcessStateChange(1);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n )}\r\n {/* Paciente autoriza */}\r\n {mail.labels.includes(7) &&\r\n !mail.states.includes(8) &&\r\n mail.hasPatient && (\r\n
    \r\n ¿Paciente Autoriza?\r\n {\r\n onProcessStateChange(7);\r\n onProcessStateChange(8);\r\n }}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n\r\n {!mail.states.includes(0) && (\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n )}\r\n \r\n \r\n );\r\n }\r\n\r\n if (mail.folder === 1 || mail.folder === 2) {\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    {mail.subject}
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n {\r\n return false;\r\n }}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n
    \r\n = 1200 ? \"calc(100vh - 309px)\" : \"calc(100vh - 288px)\",\r\n }}\r\n >\r\n
    \r\n
    \r\n
    {mail.subject}
    \r\n\r\n
    \r\n {labels.map((label, index) => {\r\n return (\r\n mail.labels.includes(label.id) && (\r\n \r\n {label.title}\r\n
    \r\n )\r\n );\r\n })}\r\n
    \r\n
    \r\n\r\n
    \r\n {\r\n onStartSelect(mail);\r\n }}\r\n >\r\n {mail.starred ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n {\r\n onImportantSelect(mail);\r\n }}\r\n >\r\n {mail.important ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n {mail.from.avatar === \"\" ? (\r\n \r\n {\" \"}\r\n {mail.from.name.charAt(0).toUpperCase()}\r\n
    \r\n ) : (\r\n \r\n )}\r\n\r\n
    \r\n {mail.from.name}\r\n
    to me
    \r\n
    \r\n\r\n \r\n \r\n \r\n\r\n \r\n {options.map((option) => (\r\n \r\n {option}\r\n \r\n ))}\r\n \r\n \r\n\r\n {\r\n this.setState({ showDetail: !this.state.showDetail });\r\n }}\r\n >\r\n {this.state.showDetail ? \"Hide Detail\" : \"Show Detail\"}\r\n \r\n {this.state.showDetail && (\r\n
    \r\n
    \r\n From: \r\n {mail.from.email}\r\n
    \r\n
    \r\n To: \r\n {mail.to.map((to, index) => (\r\n \r\n {index > 0 && \", \"} {to.email}\r\n \r\n ))}\r\n
    \r\n
    \r\n Date: \r\n {mail.time}{\" \"}\r\n
    \r\n
    \r\n )}\r\n\r\n

    {mail.message}

    \r\n\r\n {mail.hasAttachments && (\r\n
    \r\n

    Attachments ({mail.hasAttachments.length})

    \r\n
    \r\n {mail.attachments.map((attachment, index) => (\r\n
    \r\n \r\n
    {attachment.size}
    \r\n
    \r\n ))}\r\n
    \r\n
    \r\n )}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default MailDetail;\r\n","import React, { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport Drawer from \"@material-ui/core/Drawer\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Snackbar from \"@material-ui/core/Snackbar\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport folders from \"./data/folders\";\r\nimport labels from \"./data/labels\";\r\nimport options from \"./data/options\";\r\nimport MailList from \"./components/MailList/index\";\r\nimport MailDetail from \"./components/MailDetail/index\";\r\n\r\nimport ComposeMail from \"components/mail/Compose/index\";\r\nimport AppModuleHeader from \"components/AppModuleHeader/index\";\r\n\r\nimport {\r\n getAllMail,\r\n getImportantMail,\r\n getMailNavLabels,\r\n getNavFolders,\r\n getReadMail,\r\n getStarredMail,\r\n getUnimportantMail,\r\n getUnreadMail,\r\n getUnselectedAllMail,\r\n getUnStarredMail,\r\n handleMailRequestClose,\r\n hideMailLoader,\r\n onFolderMenuItemSelect,\r\n onImportantSelect,\r\n onMailChecked,\r\n onMailLabelMenuItemSelect,\r\n onMailOptionMenuSelect,\r\n onMailSelect,\r\n onMailSend,\r\n onMailToggleDrawer,\r\n onSearchMail,\r\n onStartSelect,\r\n setCurrentMailNull,\r\n updateMailSearch,\r\n onProcessStateChange,\r\n onPatientContactSave,\r\n} from \"actions/PharmaMails\";\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\n\r\nconst ManagePharma = () => {\r\n const [anchorEl, setAnchorEl] = useState(null);\r\n const dispatch = useDispatch();\r\n const { width } = useSelector(({ settings }) => settings);\r\n\r\n const {\r\n searchMail,\r\n noContentFoundMessage,\r\n alertMessage,\r\n showMessage,\r\n drawerState,\r\n optionName,\r\n loader,\r\n currentMail,\r\n user,\r\n selectedMails,\r\n selectedFolder,\r\n composeMail,\r\n labelMenuState,\r\n folderMenuState,\r\n optionMenuState,\r\n folderMails,\r\n } = useSelector(({ pharma }) => pharma);\r\n\r\n const MailSideBar = () => {\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n Gestión\r\n
    \r\n
    \r\n\r\n
    \r\n = 1200 ? \"calc(100vh - 200px)\" : \"calc(100vh - 80px)\",\r\n }}\r\n >\r\n {/*
    \r\n {\r\n dispatch(onComposeMail());\r\n }}\r\n >\r\n \r\n {\" \"}\r\n \r\n
    */}\r\n\r\n
      \r\n {handleGetNavFolders()}\r\n\r\n
    • Línea de producto
    • \r\n\r\n {/*getNavFilters()*/}\r\n {getNavLabels(\"product-line\")}\r\n\r\n
    • Estados
    • \r\n\r\n {selectedFolder === 0\r\n ? getNavLabels(\"new-patient\")\r\n : selectedFolder === 0\r\n ? getNavLabels(\"suspended\")\r\n : getNavLabels(\"state\")}\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n };\r\n\r\n\r\n const handleGetNavFolders = () => {\r\n return folders.map((folder, index) => (\r\n {\r\n dispatch(getNavFolders(folder));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n }}\r\n >\r\n \r\n \r\n {folder.title}\r\n \r\n \r\n ));\r\n };\r\n const handleFolderMenuItemSelect = (folderId) => {\r\n dispatch(handleMailRequestClose());\r\n dispatch(onFolderMenuItemSelect(folderId));\r\n };\r\n const handleLabelMenuItemSelect = (label) => {\r\n dispatch(handleMailRequestClose());\r\n dispatch(onMailLabelMenuItemSelect(label));\r\n };\r\n const handleProcessStateChange = (labelid) => {\r\n const label = labels.filter((x) => x.id === labelid);\r\n if (label) {\r\n dispatch(onProcessStateChange(label));\r\n }\r\n };\r\n const handleRequestClose = () => {\r\n dispatch(handleMailRequestClose());\r\n };\r\n\r\n const onOptionMenuSelect = (event) => {\r\n dispatch(onMailOptionMenuSelect());\r\n setAnchorEl(event.currentTarget);\r\n };\r\n const handleOptionMenuItemSelect = (option) => {\r\n switch (option.title) {\r\n case \"All\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getAllMail());\r\n break;\r\n case \"None\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnselectedAllMail());\r\n break;\r\n case \"Read\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getReadMail());\r\n break;\r\n case \"Unread\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnreadMail());\r\n break;\r\n case \"Starred\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getStarredMail());\r\n break;\r\n case \"Unstarred\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnStarredMail());\r\n break;\r\n case \"Important\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getImportantMail());\r\n break;\r\n case \"Unimportant\":\r\n dispatch(handleMailRequestClose());\r\n dispatch(getUnimportantMail());\r\n break;\r\n default:\r\n dispatch(handleMailRequestClose());\r\n dispatch(getAllMail());\r\n }\r\n };\r\n const handleGetAllMail = () => {\r\n dispatch(getAllMail());\r\n };\r\n const handleGetUnselectedAllMail = () => {\r\n dispatch(getUnselectedAllMail());\r\n };\r\n\r\n const getNavLabels = (type) => {\r\n const labelByType = labels.filter((x) => x.type === type);\r\n return labelByType.map((label, index) => {\r\n return (\r\n {\r\n dispatch(getMailNavLabels(label));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n }}\r\n >\r\n \r\n \r\n {label.title}\r\n \r\n \r\n );\r\n });\r\n };\r\n\r\n const displayMail = (currentMail, folderMails, noContentFoundMessage) => {\r\n return (\r\n
    \r\n {currentMail === null ? (\r\n folderMails.length === 0 ? (\r\n = 1200 ? \"calc(100vh - 259px)\" : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n {noContentFoundMessage}\r\n
    \r\n ) : (\r\n \r\n )\r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n };\r\n const handleGetMailActions = () => {\r\n return (\r\n
    \r\n\r\n
    \r\n );\r\n };\r\n\r\n const handleMailChecked = (data) => {\r\n dispatch(onMailChecked(data));\r\n };\r\n\r\n const handleAllMailSelect = () => {\r\n const selectAll = selectedMails <= folderMails.length;\r\n if (selectAll) {\r\n handleGetAllMail();\r\n } else {\r\n handleGetUnselectedAllMail();\r\n }\r\n };\r\n\r\n const handleStartSelect = (data) => {\r\n dispatch(onStartSelect(data));\r\n };\r\n\r\n const handleImportantSelect = (data) => {\r\n dispatch(onImportantSelect(data));\r\n };\r\n\r\n const handleMailSend = (data) => {\r\n dispatch(onMailSend(data));\r\n };\r\n\r\n const handleMailSelect = (mail) => {\r\n dispatch(onMailSelect(mail));\r\n setTimeout(() => {\r\n dispatch(hideMailLoader());\r\n }, 1500);\r\n };\r\n\r\n const handlePatientSaveContact = (patient) => {\r\n dispatch(onPatientContactSave(patient));\r\n dispatch(setCurrentMailNull());\r\n };\r\n const handleSetCurrentProcessNull = (patient) => {\r\n dispatch(setCurrentMailNull());\r\n };\r\n const updateSearch = (evt) => {\r\n dispatch(updateMailSearch(evt.target.value));\r\n dispatch(onSearchMail(evt.target.value));\r\n };\r\n\r\n const handleToggleDrawer = () => {\r\n dispatch(onMailToggleDrawer());\r\n };\r\n console.log(\"stared mails\", folderMails);\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {MailSideBar()}\r\n \r\n
    \r\n
    \r\n {MailSideBar()}\r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n {currentMail === null ? (\r\n
    \r\n 0 && selectedMails < folderMails.length\r\n }\r\n checked={selectedMails > 0}\r\n onChange={handleAllMailSelect}\r\n value=\"SelectMail\"\r\n />\r\n\r\n \r\n {optionName}\r\n \r\n \r\n \r\n
    \r\n
    \r\n ) : (\r\n {\r\n dispatch(setCurrentMailNull());\r\n }}\r\n >\r\n \r\n \r\n )}\r\n\r\n {selectedMails > 0 && handleGetMailActions()}\r\n\r\n \r\n {options.map((option) => (\r\n handleOptionMenuItemSelect(option)}\r\n >\r\n {option.title}\r\n \r\n ))}\r\n \r\n\r\n \r\n {folders.map((folder) => (\r\n handleFolderMenuItemSelect(folder.id)}\r\n >\r\n {folder.title}\r\n \r\n ))}\r\n \r\n \r\n {labels.map((label) => (\r\n handleLabelMenuItemSelect(label)}\r\n >\r\n {label.title}\r\n \r\n ))}\r\n \r\n
    \r\n\r\n {loader ? (\r\n = 1200\r\n ? \"calc(100vh - 259px)\"\r\n : \"calc(100vh - 238px)\",\r\n }}\r\n >\r\n \r\n
    \r\n ) : (\r\n displayMail(currentMail, folderMails, noContentFoundMessage)\r\n )}\r\n\r\n \r\n
    \r\n
    \r\n
    \r\n {alertMessage}}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default ManagePharma;\r\n","export const dataProgramAdherence = [\r\n { name: \"Aug\", uv: 71.6 },\r\n { name: \"Sep\", uv: 79.5 },\r\n { name: \"Oct\", uv: 95.7 },\r\n { name: \"Nov\", uv: 94.6 },\r\n { name: \"Dec\", uv: 94.6 },\r\n { name: \"Ene\", uv: 94.5 },\r\n { name: \"Feb\", uv: 93.4 },\r\n { name: \"Mar\", uv: 95.7 },\r\n { name: \"Apr\", uv: 95.5 },\r\n { name: \"May\", uv: 95.9 },\r\n];\r\n\r\nexport const dataPharmaceuticalAdherence = [\r\n { name: \"Aug-19\", uv: 37 },\r\n { name: \"Sep-19\", uv: 41 },\r\n { name: \"Oct-19\", uv: 48 },\r\n { name: \"Nov-19\", uv: 52 },\r\n { name: \"Dec-19\", uv: 60 },\r\n { name: \"Jan-19\", uv: 58 },\r\n { name: \"Feb-19\", uv: 58 },\r\n { name: \"Mar-19\", uv: 63 },\r\n { name: \"Apr-19\", uv: 67 },\r\n { name: \"May-19\", uv: 71 },\r\n];\r\n\r\nexport const dataActivePatients = [\r\n { name: \"15 mg diarios\", uv: 9 },\r\n { name: \"30 mg diarios\", uv: 33 },\r\n { name: \"45 mg diarios\", uv: 29 },\r\n];\r\n\r\nexport const data = [\r\n { name: \"ICLUSIG\", value: 51.4 },\r\n { name: \"REMODULIN\", value: 41.3 },\r\n { name: \"KALBITOR\", value: 3.6 },\r\n { name: \"GALAFORD\", value: 3.6 },\r\n];\r\n\r\nexport const data1 = [\r\n { name: \"Contributivo\", value: 70 },\r\n { name: \"Subsidiado\", value: 30 },\r\n];\r\n","import React from 'react';\r\nimport {Breadcrumb, BreadcrumbItem} from 'reactstrap';\r\n\r\nconst getDisplayString = (sub) => {\r\n const arr = sub.split(\"-\");\r\n if (arr.length > 1) {\r\n return arr[0].charAt(0).toUpperCase() + arr[0].slice(1) + \" \" + arr[1].charAt(0).toUpperCase() + arr[1].slice(1)\r\n } else {\r\n return sub.charAt(0).toUpperCase() + sub.slice(1)\r\n }\r\n\r\n};\r\nconst getUrlString = (path, sub, index) => {\r\n if (index === 0) {\r\n return '#/';\r\n } else {\r\n return '#/' + path.split(sub)[0] + sub;\r\n }\r\n};\r\n\r\nconst ContainerHeader = ({title, match}) => {\r\n const path = match.path.substr(1);\r\n const subPath = path.split('/');\r\n return (\r\n
    \r\n

    {title}

    \r\n\r\n \r\n {subPath.map((sub, index) => {\r\n return {getDisplayString(sub)}\r\n }\r\n )}\r\n \r\n
    \r\n )\r\n};\r\n\r\nexport default ContainerHeader;\r\n\r\n","import React, { PureComponent } from \"react\";\r\nimport {\r\n Pie,\r\n PieChart,\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n Legend,\r\n Line,\r\n LineChart,\r\n Tooltip,\r\n XAxis,\r\n YAxis,\r\n Cell,\r\n} from \"recharts\";\r\n\r\nimport { dataProgramAdherence, data } from \"./data\";\r\n\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox\";\r\nimport YearlyProfitChart from \"components/dashboard/eCommerce/YearlyProfitChart\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nconst COLORS = [\"#00C49F\", \"#0088FE\", \"#3367d6\", \"#FFBB28\", \"#FF8042\"];\r\n\r\nclass CustomizedLabel extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value + \"%\"}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst remodulin = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n }\r\n styleName=\"col-md-8 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n\r\n }\r\n styleName=\"col-md-4 text-center\"\r\n >\r\n
    \r\n \r\n \r\n \r\n \r\n {data.map((entry, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default remodulin;\r\n","export const dataProgramAdherence = [\r\n { name: \"Agosto\", uv: 71.6 },\r\n { name: \"Septiembre\", uv: 79.5 },\r\n { name: \"Octubre\", uv: 95.7 },\r\n { name: \"Noviembre\", uv: 94.6 },\r\n { name: \"Diciembre\", uv: 94.6 },\r\n { name: \"Enero\", uv: 94.5 },\r\n { name: \"Febrero\", uv: 93.4 },\r\n { name: \"Marzo\", uv: 95.7 },\r\n { name: \"Abril\", uv: 95.5 },\r\n { name: \"Mayo\", uv: 95.9 },\r\n];\r\n\r\nexport const dataPharmaceuticalAdherence = [\r\n { name: \"Aug-19\", uv: 52, pv: 4, amt: 4 },\r\n { name: \"Sep-19\", uv: 51, pv: 2, amt: 1 },\r\n { name: \"Oct-19\", uv: 51, pv: 3, amt: 3 },\r\n { name: \"Nov-19\", uv: 49, pv: 3, amt: 1 },\r\n { name: \"Dec-19\", uv: 48, pv: 2, amt: 1 },\r\n { name: \"Jan-19\", uv: 50, pv: 2, amt: 4 },\r\n { name: \"Feb-19\", uv: 53, pv: 0, amt: 3 },\r\n { name: \"Mar-19\", uv: 53, pv: 1, amt: 1 },\r\n { name: \"Apr-19\", uv: 53, pv: 2, amt: 2 },\r\n { name: \"May-19\", uv: 57, pv: 0, amt: 4 },\r\n];\r\n\r\nexport const dataActivePatients = [\r\n { name: \"1 mg\", uv: 1 },\r\n { name: \"2,5 mg\", uv: 17 },\r\n { name: \"5 mg\", uv: 36 },\r\n { name: \"10 mg\", uv: 3 },\r\n];\r\n","import React, { PureComponent } from \"react\";\r\nimport {\r\n Bar,\r\n BarChart,\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n Legend,\r\n Line,\r\n LineChart,\r\n Tooltip,\r\n XAxis,\r\n YAxis,\r\n LabelList,\r\n} from \"recharts\";\r\n\r\nimport {\r\n dataProgramAdherence,\r\n dataPharmaceuticalAdherence,\r\n dataActivePatients,\r\n} from \"./data\";\r\n\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\nclass CustomizedLabel extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value + \"%\"}\r\n \r\n );\r\n }\r\n}\r\n\r\nclass CustomizedLabel2 extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst remodulin = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n\r\n }\r\n styleName=\"col-md-8 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n }\r\n styleName=\"col-md-4 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n styleName=\"col-md-8 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default remodulin;\r\n","export const dataProgramAdherence = [\r\n { name: \"Aug\", uv: 65.7 },\r\n { name: \"Sep\", uv: 78.2 },\r\n { name: \"Oct\", uv: 96.7 },\r\n { name: \"Nov\", uv: 93.3 },\r\n { name: \"Dec\", uv: 94.5 },\r\n { name: \"Ene\", uv: 90.7 },\r\n { name: \"Feb\", uv: 90.6 },\r\n { name: \"Mar\", uv: 93.84 },\r\n { name: \"Apr\", uv: 92.6 },\r\n { name: \"May\", uv: 93.8 },\r\n];\r\n\r\nexport const dataPharmaceuticalAdherence = [\r\n { name: \"Aug-19\", uv: 37 },\r\n { name: \"Sep-19\", uv: 41 },\r\n { name: \"Oct-19\", uv: 48 },\r\n { name: \"Nov-19\", uv: 52 },\r\n { name: \"Dec-19\", uv: 60 },\r\n { name: \"Jan-19\", uv: 58 },\r\n { name: \"Feb-19\", uv: 58 },\r\n { name: \"Mar-19\", uv: 63 },\r\n { name: \"Apr-19\", uv: 67 },\r\n { name: \"May-19\", uv: 71 },\r\n];\r\n\r\nexport const dataActivePatients = [\r\n { name: \"15 mg diarios\", uv: 9 },\r\n { name: \"30 mg diarios\", uv: 33 },\r\n { name: \"45 mg diarios\", uv: 29 },\r\n];\r\n\r\nexport const data = [\r\n { name: \"Especial\", value: 4.5 },\r\n { name: \"Subsidiado\", value: 29.9 },\r\n { name: \"Contributivo\", value: 65.7 },\r\n];\r\n","import React, { PureComponent } from \"react\";\r\nimport {\r\n Bar,\r\n BarChart,\r\n Area,\r\n AreaChart,\r\n Pie,\r\n PieChart,\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n LabelList,\r\n Legend,\r\n Line,\r\n LineChart,\r\n Tooltip,\r\n XAxis,\r\n YAxis,\r\n Cell,\r\n} from \"recharts\";\r\n\r\nimport {\r\n dataProgramAdherence,\r\n dataPharmaceuticalAdherence,\r\n dataActivePatients,\r\n data,\r\n} from \"./data\";\r\n\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\nconst COLORS = [\"#00C49F\", \"#0088FE\", \"#3367d6\", \"#FFBB28\", \"#FF8042\"];\r\n\r\nclass CustomizedLabel extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value + \"%\"}\r\n \r\n );\r\n }\r\n}\r\n\r\nclass CustomizedLabel2 extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst remodulin = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n }\r\n styleName=\"col-md-8 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n }\r\n styleName=\"col-md-3 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n {data.map((entry, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n }\r\n styleName=\"col-md-6 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label={}\r\n />\r\n \r\n \r\n \r\n }\r\n styleName=\"col-md-3 text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default remodulin;\r\n","export const data1 = [\r\n { name: \"Enero\", uv: 685 },\r\n { name: \"Febrero\", uv: 743 },\r\n { name: \"Marzo\", uv: 701 },\r\n { name: \"Abril\", uv: 1327 },\r\n { name: \"Mayo\", uv: 1167 },\r\n];\r\n\r\nexport const data2 = [\r\n { name: \"Enero\", uv: 3.1 },\r\n { name: \"Febrero\", uv: 3.4 },\r\n { name: \"Marzo\", uv: 3.2 },\r\n { name: \"Abril\", uv: 6 },\r\n { name: \"Mayo\", uv: 5.3 },\r\n { name: \"Promedio General\", uv: 4.2 },\r\n];\r\n\r\nexport const data3 = [\r\n { name: \"Enero\", b1: 45, b2: 50, l1: 72, l2: 202, l3: 316 },\r\n { name: \"Febrero\", b1: 92, b2: 104, l1: 63, l2: 237, l3: 247 },\r\n { name: \"Marzo\", b1: 56, b2: 75, l1: 60, l2: 192, l3: 318 },\r\n { name: \"Abril\", b1: 13, b2: 105, l1: 270, l2: 299, l3: 640 },\r\n { name: \"Mayo\", b1: 25, b2: 120, l1: 184, l2: 295, l3: 543 },\r\n];\r\n","import React, { PureComponent } from \"react\";\r\nimport {\r\n Bar,\r\n ComposedChart,\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n Legend,\r\n Line,\r\n LineChart,\r\n Tooltip,\r\n XAxis,\r\n YAxis,\r\n} from \"recharts\";\r\n\r\nimport { data1, data2, data3 } from \"./data\";\r\n\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\n\r\nclass CustomizedLabel extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst remodulin = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n
    \r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label={}\r\n />\r\n \r\n \r\n \r\n\r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label={}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n name={\r\n \r\n }\r\n />\r\n }\r\n name={\r\n \r\n }\r\n />\r\n }\r\n name={\r\n \r\n }\r\n />\r\n }\r\n name={\r\n \r\n }\r\n />\r\n }\r\n name={\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default remodulin;\r\n","export const data = [\r\n { name: \"Jan-20\", value: 21 },\r\n { name: \"Feb-20\", value: 13 },\r\n { name: \"Mar-20\", value: 10 },\r\n { name: \"Apr-20\", value: 35 },\r\n { name: \"May-20\", value: 41 },\r\n];\r\n\r\nexport const data1 = [\r\n { name: \"DEFINITIVA\", uv: 1 },\r\n { name: \"IMPROBABLE\", uv: 2 },\r\n { name: \"NA\", uv: 2 },\r\n { name: \"POSIBLE\", uv: 16 },\r\n { name: \"PROBABLE\", uv: 20 },\r\n];\r\n\r\nexport const data2 = [\r\n { name: \"Enero\", uv: 3.1 },\r\n { name: \"Febrero\", uv: 3.4 },\r\n { name: \"Marzo\", uv: 3.2 },\r\n { name: \"Abril\", uv: 6 },\r\n { name: \"Mayo\", uv: 5.3 },\r\n { name: \"Promedio General\", uv: 4.2 },\r\n];\r\n\r\nexport const data3 = [\r\n { name: \"Enero\", b1: 45, b2: 50, l1: 72, l2: 202, l3: 316 },\r\n { name: \"Febrero\", b1: 92, b2: 104, l1: 63, l2: 237, l3: 247 },\r\n { name: \"Marzo\", b1: 56, b2: 75, l1: 60, l2: 192, l3: 318 },\r\n { name: \"Abril\", b1: 13, b2: 105, l1: 270, l2: 299, l3: 640 },\r\n { name: \"Mayo\", b1: 25, b2: 120, l1: 184, l2: 295, l3: 543 },\r\n];\r\n\r\nexport const dataActivePatients = [\r\n { name: \"15 mg diarios\", uv: 9 },\r\n { name: \"30 mg diarios\", uv: 33 },\r\n { name: \"45 mg diarios\", uv: 29 },\r\n];\r\n\r\nexport const data7 = [\r\n { name: \"REMODULIN\", uv: 32 },\r\n { name: \"KALBITOR\", uv: 1 },\r\n { name: \"ICLUSIG\", uv: 7 },\r\n { name: \"GALAFORD\", uv: 1 },\r\n];\r\n","import React, { PureComponent } from \"react\";\r\nimport {\r\n Bar,\r\n BarChart,\r\n ComposedChart,\r\n LabelList,\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n Legend,\r\n Line,\r\n LineChart,\r\n Tooltip,\r\n XAxis,\r\n YAxis,\r\n} from \"recharts\";\r\n\r\nimport { data1, data7, data } from \"./data\";\r\n\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox\";\r\n\r\nclass CustomizedLabel extends PureComponent {\r\n render() {\r\n const { x, y, stroke, value } = this.props;\r\n\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst remodulin = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n
    \r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n name={}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n }\r\n styleName=\"text-center\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default remodulin;\r\n","import React from \"react\";\r\n\r\nexport const data = [\r\n { name: \"Let A\", uv: 0, pv: 0, amt: 20 },\r\n { name: \"Let B\", uv: 30, pv: 13, amt: 21 },\r\n { name: \"Let C\", uv: 20, pv: 98, amt: 29 },\r\n { name: \"Let D\", uv: 27, pv: 39, amt: 20 },\r\n { name: \"Let E\", uv: 18, pv: 48, amt: 28 },\r\n { name: \"Let F\", uv: 23, pv: 38, amt: 20 },\r\n { name: \"Let G\", uv: 0, pv: 0, amt: 20 },\r\n];\r\nexport const chartData = [\r\n { name: \"J\", amt: 600 },\r\n { name: \"F\", amt: 900 },\r\n { name: \"M\", amt: 1200 },\r\n { name: \"A\", amt: 800 },\r\n { name: \"M\", amt: 1100 },\r\n { name: \"J\", amt: 800 },\r\n { name: \"J\", amt: 1000 },\r\n { name: \"A\", amt: 1400 },\r\n];\r\nexport const lineChartData = [\r\n { name: \"J\", amt: 1400 },\r\n { name: \"F\", amt: 210 },\r\n { name: \"M\", amt: 1200 },\r\n { name: \"A\", amt: 590 },\r\n { name: \"M\", amt: 1500 },\r\n];\r\nexport const pieChartData = [\r\n { name: \"J\", amt: 24 },\r\n { name: \"F\", amt: 18 },\r\n { name: \"M\", amt: 22 },\r\n { name: \"A\", amt: 17 },\r\n { name: \"M\", amt: 25 },\r\n { name: \"J\", amt: 12 },\r\n { name: \"J\", amt: 21 },\r\n];\r\n\r\nexport const newEvents = [\r\n {\r\n id: 1,\r\n name: \"M. L.\",\r\n about: \"2020/07/13\",\r\n detail: \"Remodulin\",\r\n color: \"pink\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 2,\r\n name: \"S. R.\",\r\n about: \"2020/07/13\",\r\n detail: \"Remodulin\",\r\n color: \"pink\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 3,\r\n name: \"J. O.\",\r\n about: \"2020/07/17\",\r\n detail: \"Iclusig\",\r\n color: \"blue\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n];\r\n\r\nexport const eventsInProgress = [\r\n {\r\n id: 1,\r\n name: \"P. R.\",\r\n about: \"2020/07/10\",\r\n detail: \"PARTNER\",\r\n color: \"red\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 2,\r\n name: \"M. G.\",\r\n about: \"2020/07/13\",\r\n detail: \"ER NO EFECTIVO\",\r\n color: \"orange\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 3,\r\n name: \"J. R.\",\r\n about: \"2020/07/16\",\r\n detail: \"VERIFICADO\",\r\n color: \"green\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n];\r\n\r\nexport const suspensionPatients = [\r\n {\r\n id: 1,\r\n name: \"L. D.\",\r\n about: \"2020/07/10\",\r\n detail: \"FALLECIDO\",\r\n color: \"red\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 2,\r\n name: \"I. A.\",\r\n about: \"2020/07/15\",\r\n detail: \"SUSPENSIÓN\",\r\n color: \"orange\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n {\r\n id: 3,\r\n name: \"S. P.\",\r\n about: \"2020/07/21\",\r\n detail: \"SUSPENSIÓN\",\r\n color: \"orange\",\r\n redirectTo: \"/app/managepharma\",\r\n },\r\n];\r\n\r\nexport const article = [\r\n {\r\n image: \"https://via.placeholder.com/500x334\",\r\n title: \"There are many variations of passages of\",\r\n description: \"25th Aug 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x330\",\r\n title: \"Contrary to popular belief, Lorem Ipsum\",\r\n description: \"29th Aug 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x350\",\r\n title: \"Various versions have evolved over the years\",\r\n description: \"5th Sept 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x336\",\r\n title: \"All the Lorem Ipsum generators on the \",\r\n description: \"25th sept 2017\",\r\n },\r\n];\r\n\r\nexport const appNotification = [\r\n {\r\n id: 1,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n Stella,\r\n \" has placed an order for 3 items of $234.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 2,\r\n title: \"Support ticket\",\r\n desc: [\r\n \r\n Jeson Born\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 3,\r\n title: \"new enquiry\",\r\n desc: [\r\n \r\n Guptil\r\n ,\r\n \" has placed an order for 5 items of $425.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n];\r\n\r\nexport const announcementsNotification = [\r\n {\r\n id: 4,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n \r\n Alex Dolgove\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/128x128\",\r\n },\r\n {\r\n id: 5,\r\n title: \"Support ticket\",\r\n desc: [\r\n \r\n Jeson Born\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 6,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n \r\n Stella\r\n ,\r\n \" has placed an order for 3 items of $234.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n];\r\n\r\nexport const marketingData = [\r\n {\r\n id: 1,\r\n name: \"Facebook Ads\",\r\n desc: \"63 Likes, 387 Shares\",\r\n icon: \"facebook\",\r\n color: \"bg-indigo lighten-1\",\r\n budget: 570,\r\n growth: 20,\r\n },\r\n {\r\n id: 2,\r\n name: \"Twitter Ads\",\r\n desc: \"43 Likes, 545 Shares\",\r\n icon: \"twitter\",\r\n color: \"bg-light-blue accent-2\",\r\n budget: 811,\r\n growth: -5,\r\n },\r\n {\r\n id: 3,\r\n name: \"Instagram\",\r\n desc: \"83 Follows, 210 Likes\",\r\n icon: \"instagram\",\r\n color: \"bg-brown lighten-1\",\r\n budget: 685,\r\n growth: 20,\r\n },\r\n {\r\n id: 4,\r\n name: \"LinkedIn\",\r\n desc: \"23 Shares, 764 Likes\",\r\n icon: \"linkedin\",\r\n color: \"bg-light-blue darken-3\",\r\n budget: 868,\r\n growth: 25,\r\n },\r\n {\r\n id: 5,\r\n name: \"Youtube\",\r\n desc: \"2k subscribe, 1M Likes\",\r\n icon: \"youtube\",\r\n color: \"bg-red accent-4\",\r\n budget: 780,\r\n growth: 45,\r\n },\r\n];\r\n\r\nexport const newArticlesData = {\r\n chartData: [25, 35, 34, 40, 20, 35, 25, 30, 50],\r\n labels: [\"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\"],\r\n};\r\n","import React from \"react\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nconst UserDetailCell = ({ data }) => {\r\n const { id, name, detail, about, color, product, color2, redirectTo } = data;\r\n return (\r\n
    \r\n \r\n \r\n \r\n\r\n \r\n \r\n );\r\n};\r\n\r\nexport default UserDetailCell;\r\n","import React from 'react';\r\nimport UserDetailCell from './UserDetailCell';\r\n\r\nconst UserDetailTable = ({data, tableStyle}) => {\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {name}
    \r\n

    {about}

    \r\n
    \r\n
    \r\n
    \r\n \r\n {detail}\r\n \r\n \r\n \r\n {product}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {data.map(data => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default UserDetailTable;","import React from \"react\";\r\nimport { Bar, BarChart, ResponsiveContainer } from \"recharts\";\r\n\r\nimport {\r\n eventsInProgress,\r\n newEvents,\r\n chartData,\r\n suspensionPatients,\r\n newArticlesData,\r\n} from \"./data\";\r\n\r\nimport ReportBox from \"components/ReportBox/index\";\r\nimport ContainerHeader from \"components/ContainerHeader/index\";\r\nimport CardHeader from \"components/dashboard/Common/CardHeader/index\";\r\nimport UserDetailTable from \"components/dashboard/Common/UserDetailTable\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport YearlyProfitChart from \"components/dashboard/eCommerce/YearlyProfitChart\";\r\nimport CustomLineChart from \"components/CustomLineChart/index\";\r\n\r\nconst Pharmacovigilant = (props) => {\r\n return (\r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n
    \r\n\r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Pharmacovigilant;\r\n","export default [\r\n {\r\n title: \"Acompañamiento a cita de control - Paciente RM0021\",\r\n allDay: true,\r\n start: new Date(2020, 6, 3),\r\n end: new Date(2020, 6, 3),\r\n },\r\n {\r\n title: \"Acompañamiento a cita de control - Paciente RM0021\",\r\n allDay: true,\r\n start: new Date(2020, 6, 1),\r\n end: new Date(2020, 6, 1),\r\n },\r\n {\r\n title: \"Llamada de Seguimiento - Paciente RM0015\",\r\n allDay: true,\r\n start: new Date(2020, 6, 2),\r\n end: new Date(2020, 6, 2),\r\n },\r\n {\r\n title: \"Visita domiciliaria - Paciente RM0044\",\r\n allDay: true,\r\n start: new Date(2020, 6, 6),\r\n end: new Date(2020, 6, 6),\r\n },\r\n {\r\n title: \"Gestión OLF - Paciente RM0014\",\r\n allDay: true,\r\n start: new Date(2020, 6, 6),\r\n end: new Date(2020, 6, 6),\r\n },\r\n {\r\n title: \"Gestión IPS - Paciente RM0037\",\r\n allDay: true,\r\n start: new Date(2020, 6, 7),\r\n end: new Date(2020, 6, 7),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente RM0008\",\r\n allDay: true,\r\n start: new Date(2020, 6, 9),\r\n end: new Date(2020, 6, 9),\r\n },\r\n {\r\n title: \"Acompañamiento cita de control - Paciente RM0011\",\r\n allDay: true,\r\n start: new Date(2020, 6, 9),\r\n end: new Date(2020, 6, 9),\r\n },\r\n {\r\n title: \"Gestión IPS - Paciente IC0055\",\r\n allDay: true,\r\n start: new Date(2020, 6, 2),\r\n end: new Date(2020, 6, 2),\r\n },\r\n {\r\n title: \"Gestión IPS - Paciente RM0037\",\r\n start: new Date(2020, 6, 21),\r\n end: new Date(2020, 6, 21),\r\n },\r\n {\r\n title: \"Visita domiciliaria - Paciente IC0032\",\r\n start: new Date(2020, 6, 8),\r\n end: new Date(2020, 6, 8),\r\n },\r\n {\r\n title: \"Visita domiciliaria - Paciente IC0014\",\r\n start: new Date(2020, 6, 14),\r\n end: new Date(2020, 6, 14),\r\n },\r\n {\r\n title: \"Acompañamiento cita de control - Paciente RM0019\",\r\n allDay: true,\r\n start: new Date(2020, 6, 14),\r\n end: new Date(2020, 6, 14),\r\n },\r\n {\r\n title: \"Visita intrahospitalaria - Paciente RM0068\",\r\n start: new Date(2020, 6, 21),\r\n end: new Date(2020, 6, 21),\r\n },\r\n {\r\n title: \"Llamada de Seguimiento - Paciente RM0046\",\r\n start: new Date(2020, 6, 10),\r\n end: new Date(2020, 6, 10),\r\n },\r\n {\r\n title: \"Llamada de Seguimiento - Paciente RM0020\",\r\n start: new Date(2020, 6, 13),\r\n end: new Date(2020, 6, 13),\r\n },\r\n {\r\n title: \"Entrega de medicamento - Paciente RM0029\",\r\n allDay: true,\r\n start: new Date(2020, 6, 22),\r\n end: new Date(2020, 6, 22),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente RM0039\",\r\n start: new Date(2020, 6, 13),\r\n end: new Date(2020, 6, 13),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente RM0033\",\r\n start: new Date(2020, 6, 17),\r\n end: new Date(2020, 6, 17),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente RM0012\",\r\n start: new Date(2020, 6, 22),\r\n end: new Date(2020, 6, 22),\r\n },\r\n {\r\n title: \"Primer Impacto - Paciente RM0042\",\r\n start: new Date(2020, 6, 15),\r\n end: new Date(2020, 6, 15),\r\n },\r\n {\r\n title: \"Gestión OLF - Paciente RM0026\",\r\n start: new Date(2020, 6, 23),\r\n end: new Date(2020, 6, 23),\r\n },\r\n {\r\n title: \"Gestión OLF - Paciente RM0075\",\r\n start: new Date(2020, 6, 7),\r\n end: new Date(2020, 6, 7),\r\n },\r\n {\r\n title: \"Primer Impacto - Paciente IC0051\",\r\n start: new Date(2020, 6, 23),\r\n end: new Date(2020, 6, 23),\r\n },\r\n {\r\n title: \"Llamada de Seguimiento - Paciente RM0084\",\r\n start: new Date(2020, 6, 16),\r\n end: new Date(2020, 6, 16),\r\n },\r\n {\r\n title: \"Capacitación Iclusig\",\r\n start: new Date(2020, 6, 24),\r\n end: new Date(2020, 6, 24),\r\n detail: true,\r\n },\r\n {\r\n title: \"Capacitación Remodulin\",\r\n start: new Date(2020, 6, 29),\r\n end: new Date(2020, 6, 29),\r\n detail: true,\r\n },\r\n {\r\n title: \"Gestión OLF - Paciente IC0026\",\r\n start: new Date(2020, 6, 27),\r\n end: new Date(2020, 6, 27),\r\n },\r\n {\r\n title: \"Gestión IPS - Paciente RM0036\",\r\n start: new Date(2020, 6, 28),\r\n end: new Date(2020, 6, 28),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente IC0020\",\r\n start: new Date(2020, 6, 29),\r\n end: new Date(2020, 6, 29),\r\n },\r\n {\r\n title: \"Gestión EPS - Paciente RM0039\",\r\n start: new Date(2020, 6, 30),\r\n end: new Date(2020, 6, 30),\r\n },\r\n {\r\n title: \"Llamada de Seguimiento - Paciente IC0039\",\r\n start: new Date(2020, 6, 28),\r\n end: new Date(2020, 6, 28),\r\n },\r\n {\r\n title: \"Primer Impacto - Paciente RM0022\",\r\n start: new Date(2020, 6, 27),\r\n end: new Date(2020, 6, 27),\r\n },\r\n {\r\n title: \"Visita domiciliaria - Paciente RM0032\",\r\n start: new Date(2020, 6, 24),\r\n end: new Date(2020, 6, 24),\r\n },\r\n {\r\n title: \"Visita domiciliaria - Paciente IC0033\",\r\n start: new Date(2020, 6, 30),\r\n end: new Date(2020, 6, 30),\r\n },\r\n {\r\n title: \"Encuentro de Salud\",\r\n start: new Date(2020, 6, 31),\r\n end: new Date(2020, 6, 31),\r\n detail: true,\r\n },\r\n {\r\n title: \"Conference\",\r\n start: new Date(2015, 3, 11),\r\n end: new Date(2015, 3, 13),\r\n desc: \"Big conference for important people\",\r\n },\r\n {\r\n title: \"Meeting\",\r\n start: new Date(2015, 3, 12, 10, 30, 0, 0),\r\n end: new Date(2015, 3, 12, 12, 30, 0, 0),\r\n desc: \"Pre-meeting meeting, to prepare for the meeting\",\r\n },\r\n {\r\n title: \"Lunch\",\r\n start: new Date(2015, 3, 12, 12, 0, 0, 0),\r\n end: new Date(2015, 3, 12, 13, 0, 0, 0),\r\n desc: \"Power lunch\",\r\n },\r\n {\r\n title: \"Meeting\",\r\n start: new Date(2015, 3, 12, 14, 0, 0, 0),\r\n end: new Date(2015, 3, 12, 15, 0, 0, 0),\r\n },\r\n {\r\n title: \"Happy Hour\",\r\n start: new Date(2015, 3, 12, 17, 0, 0, 0),\r\n end: new Date(2015, 3, 12, 17, 30, 0, 0),\r\n desc: \"Most important meal of the day\",\r\n },\r\n {\r\n title: \"Dinner\",\r\n start: new Date(2015, 3, 12, 20, 0, 0, 0),\r\n end: new Date(2015, 3, 12, 21, 0, 0, 0),\r\n },\r\n {\r\n title: \"Birthday Party\",\r\n start: new Date(2015, 3, 13, 7, 0, 0),\r\n end: new Date(2015, 3, 13, 10, 30, 0),\r\n },\r\n {\r\n title: \"Birthday Party 2\",\r\n start: new Date(2015, 3, 13, 7, 0, 0),\r\n end: new Date(2015, 3, 13, 10, 30, 0),\r\n },\r\n {\r\n title: \"Birthday Party 3\",\r\n start: new Date(2015, 3, 13, 7, 0, 0),\r\n end: new Date(2015, 3, 13, 10, 30, 0),\r\n },\r\n {\r\n title: \"Late Night Event\",\r\n start: new Date(2015, 3, 17, 19, 30, 0),\r\n end: new Date(2015, 3, 18, 2, 0, 0),\r\n },\r\n {\r\n title: \"Multi-day Event\",\r\n start: new Date(2015, 3, 20, 19, 30, 0),\r\n end: new Date(2015, 3, 22, 2, 0, 0),\r\n },\r\n];\r\n","import React from \"react\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport Input from \"@material-ui/core/Input\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Select from \"@material-ui/core/Select\";\r\n\r\nclass AddEventDialog extends React.Component {\r\n state = {\r\n open: false,\r\n theme: \"\",\r\n name: \"hai\",\r\n };\r\n\r\n handleChange = (name) => (event) => {\r\n this.setState({ [name]: event.target.value });\r\n };\r\n\r\n handleClickOpen = () => {\r\n this.setState({ open: true });\r\n };\r\n\r\n handleRequestClose = () => {\r\n this.setState({ open: false });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n EVENTO NUEVO\r\n \r\n \r\n \r\n Agendar Evento\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n Tema\r\n }\r\n >\r\n \r\n Ninguno\r\n \r\n Remodulin\r\n Iclusig\r\n PSP\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default AddEventDialog;\r\n","import React, { useState } from \"react\";\r\nimport { Calendar, momentLocalizer } from \"react-big-calendar\";\r\nimport moment from \"moment\";\r\nimport events from \"./Components/events\";\r\nimport AddEventDialog from \"./Components/AddEventDialog\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport Input from \"@material-ui/core/Input\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Select from \"@material-ui/core/Select\";\r\n\r\nconst localizer = momentLocalizer(moment);\r\n\r\nconst ManagerCalendar = () => {\r\n const [openDialog, setOpenDialog] = useState(false);\r\n const [currentEvt, setCurrentEvent] = useState({ title: \"\" });\r\n\r\n let nurses = [\r\n \"Dorian Jaimes\",\r\n \"Gabriel Gutierrez\",\r\n \"Ramón Bolaños\",\r\n \"Pedro Pérez\",\r\n ];\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n

    \r\n {\" \"}\r\n setNurse(e.target.value)}\r\n >\r\n {nurses.map((c, idx) => (\r\n \r\n ))}\r\n \r\n

    \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n {\r\n if (event.detail) {\r\n setOpenDialog(true);\r\n setCurrentEvent(event);\r\n }\r\n }}\r\n />\r\n setOpenDialog(false)}>\r\n {currentEvt.title}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n Tema\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n ADJUNTAR ARCHIVO\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default ManagerCalendar;\r\n","import React, { useState ,useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n getImpactTypeList\r\n} from \"api/apiList\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { FolderType, RoleEnum } from \"constants/Enums\";\r\n\r\n\r\nconst DialogPlanningImpact = ({open, handleRequestClose, prescriptionList, callPlanImpact }) => { \r\n const [impactTypeList, setImpactTypeList] = useState([]);\r\n\r\n const defaultValues = {\r\n prescriptionId: \"\",\r\n impactTypeId: \"\",\r\n planningDate: null\r\n };\r\n const validationSchema = {\r\n prescriptionId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n impactTypeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n planningDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const isNurseProcedure = isRole(RoleEnum.nurse_procedure);\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, setValue, errors } = methods;\r\n \r\n // const loadData = () => {\r\n // setValue(\"impactTypeId\", !prescription ? \"\" : getCboValue(impactTypeList, prescription.impactTypeId));\r\n // setValue(\"planningDate\", !prescription || !prescription.planningDate ? null : prescription.planningDate);\r\n // };\r\n\r\n useEffect(()=>{\r\n callApi(getImpactTypeList, \r\n (data) => {\r\n if(isNurseProcedure){\r\n data = data.filter( x => x.folderType == FolderType.inProcess);\r\n }\r\n setImpactTypeList(data)\r\n }\r\n );\r\n },[]);\r\n\r\n // useEffect(()=>{\r\n // if(open){\r\n // setTimeout(loadData,150);\r\n // }\r\n // },[open]);\r\n\r\n const onSubmit = async (data, e) => { \r\n const obj = {\r\n prescriptionId: Number(data.prescriptionId.value),\r\n planningDate: dayjs(data.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n impactTypeId: Number(data.impactTypeId.value)\r\n };\r\n await callPlanImpact(obj);\r\n };\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={impactTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n
    \r\n );\r\n };\r\n\r\n export default DialogPlanningImpact;","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { Button, Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\n\r\nconst DialogRescheduleImpact = ({open, handleRequestClose, callRescheduleImpact, commentsList, impact, readOnly }) => { \r\n const msgValidation = IntlGetText(\"rescheduleImpact.breachValidation\");\r\n const msgActionNotAllowed = IntlGetText(\"rescheduleImpact.actionNotAllowed\");\r\n \r\n const defaultValues = { \r\n planningDate: null,\r\n breachId: null,\r\n breachComment: null\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const isBreach = (impact) => {\r\n return impact && impact.planningDate \r\n && dayjs(impact.planningDate).format(\"YYYY-MM-DD\") == dayjs().format(\"YYYY-MM-DD\");\r\n }\r\n \r\n const loadData = () => {\r\n setValue(\"planningDate\",dayjs(impact.planningDate));\r\n };\r\n\r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(loadData,150);\r\n }\r\n },[open]);\r\n \r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n const onSubmit = async (data, e) => {\r\n if(isBreach(impact) && ( !data.breachId && !data.breachComment)){\r\n NotificationManager.warning(msgValidation);\r\n return;\r\n }\r\n\r\n if(dayjs(impact.planningDate).format(\"YYYY-MM-DD\") < dayjs().format(\"YYYY-MM-DD\")){\r\n NotificationManager.warning(msgActionNotAllowed);\r\n return;\r\n }\r\n\r\n const obj = {\r\n impactId: impact.id,\r\n planningDate: dayjs(data.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n breachId: !data.breachId ? data.breachId : data.breachId.value,\r\n breachComment: data.breachComment\r\n };\r\n callRescheduleImpact(obj);\r\n };\r\n \r\n return (\r\n \r\n { !readOnly && {}}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { isBreach(impact) &&\r\n \r\n }\r\n options={commentsList}\r\n value={watch(\"breachId\")}\r\n onChange={cboHandleChange(\"breachId\")}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={readOnly}\r\n />\r\n \r\n } \r\n { isBreach(impact) &&\r\n \r\n } \r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={readOnly}\r\n />\r\n \r\n }\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n };\r\n\r\n export default DialogRescheduleImpact;","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { Button, Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport { ImpactStateList, ImpactStateEnum } from \"constants/Enums\";\r\n\r\nconst getCboValue = (items, id) => {\r\n if (typeof id == \"object\") {\r\n return id;\r\n }\r\n const result = items.find((x) => x.id === id);\r\n return result ? { label: result.name, value: result.id } : \"\";\r\n}; \r\n\r\nconst DialogRescheduleImpact = ({open, handleRequestClose, commentsList, impact }) => {\r\n const impactStateList = ImpactStateList();\r\n \r\n const defaultValues = { \r\n planningDate: null,\r\n breachId: null,\r\n breachComment: null,\r\n state: null\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { watch, setValue, errors } = methods;\r\n \r\n const isBreach = (impact) => {\r\n return impact && impact.state == ImpactStateEnum.cancelled;\r\n }\r\n \r\n const loadData = () => {\r\n setValue(\"planningDate\",dayjs(impact.planningDate));\r\n setValue(\"breachId\", getCboValue(commentsList, impact.breachId));\r\n setValue(\"breachComment\", impact.breachComment);\r\n setValue(\"state\", getCboValue(impactStateList, impact.state));\r\n };\r\n\r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(loadData,150);\r\n }\r\n },[open]);\r\n \r\n const cboHandleChange = (name) => (event) => {\r\n setValue(name, event);\r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n }\r\n options={impactStateList}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n { isBreach(impact) &&\r\n \r\n }\r\n options={commentsList}\r\n value={watch(\"breachId\")}\r\n onChange={cboHandleChange(\"breachId\")}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n } \r\n { isBreach(impact) &&\r\n \r\n } \r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n };\r\n\r\n export default DialogRescheduleImpact;","import React from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { TrainingResourceTypeEnum } from \"constants/Enums\";\r\n\r\nconst onClick = (fileLink, type) => () => {\r\n const link = document.createElement(\"a\");\r\n link.href = fileLink;\r\n link.setAttribute(\"target\", type === TrainingResourceTypeEnum.video ? \"_blank\": \"_self\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n};\r\n\r\nconst getData = (eventTrainingInfo) => {\r\n if(!eventTrainingInfo || !eventTrainingInfo.eventTrainingFile)\r\n return [];\r\n return eventTrainingInfo.eventTrainingFile;\r\n}\r\n\r\nconst CustomTable = ({eventTrainingInfo,handleOpenCRU,\r\n handleOpenDel, setCurrentRowObj, readOnly}) => {\r\n const getObj = (tableMeta) => getData(eventTrainingInfo).find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const handleClick = (obj) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(obj);\r\n };\r\n \r\n const handleClickDelete = (obj) => {\r\n handleOpenDel();\r\n setCurrentRowObj(obj);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n defaultCol('name','core.name'),\r\n defaultCol('description','core.description'),\r\n {\r\n name: \"url\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n <>\r\n \r\n \r\n \r\n {!readOnly &&\r\n <>\r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleClickDelete(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n }\r\n \r\n )\r\n }\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default CustomTable;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, FormHelperText } from \"@material-ui/core\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {Card, CardHeader} from 'reactstrap';\r\nimport { FileUploadWithOriginalName } from \"components/Form/file-upload/index\";\r\nimport DownloadButton from \"components/DownloadButton/index\";\r\nimport { callApiAsync } from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst clearFile = () => {\r\n const elementFile = document.getElementById(\"fm-file\");\r\n if (elementFile)\r\n elementFile.value = \"\";\r\n};\r\n\r\nconst CardFileUpload = ({name, file, fileResult, setFileResult, errors }) => {\r\n const handleFilenameChange = (filenameResult) => { setFileResult(filenameResult); };\r\n\r\n const resetControlFile = () =>{\r\n clearFile();\r\n setFileResult({fileName:\"\", originalName:\"\"}); \r\n };\r\n\r\n useEffect(() => {\r\n return () => {\r\n resetControlFile();\r\n }\r\n }, [])\r\n\r\n const isError = () => errors && errors.hasOwnProperty(name);\r\n const disabled = false;\r\n return (\r\n \r\n { (!disabled || file) && \r\n \r\n \r\n { !disabled && \r\n \r\n \r\n \r\n }\r\n {fileResult.originalName}\r\n {!fileResult.originalName && file && }\r\n {!isError() ? \"\" : errors[name].message}\r\n \r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default CardFileUpload;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport InputFile from \"components/Form/inputFile\";\r\nimport { TrainingResourceTypeList, TrainingResourceTypeEnum } from \"constants/Enums\";\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, eventId, obj, handleCreateUpdate, readOnly}) => { \r\n const [fileResult, setFileResult] = useState({fileName:\"\", originalName:\"\"});\r\n\r\n const trainingResourceTypeList = TrainingResourceTypeList();\r\n\r\n const defaultValues = {\r\n name: \"\",\r\n description: \"\",\r\n link: \"\",\r\n type: null\r\n };\r\n const validationSchema = { \r\n name: yup.string().required(),\r\n description: yup.string().required(),\r\n link: yup.string().required(),\r\n type: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors, getValues } = methods;\r\n const typeValue = watch(\"type\")\r\n const linkValue = watch(\"link\")\r\n\r\n const loadData = () => {\r\n setValue(\"name\", !obj || !obj.name ? \"\" : obj.name);\r\n setValue(\"description\", !obj || !obj.description ? \"\" : obj.description);\r\n setValue(\"link\", !obj || !obj.url ? \"\" : obj.url);\r\n setValue(\"type\", !obj || (!obj.type && obj.type !== 0) ? \"\" : getCboValue(trainingResourceTypeList, obj.type));\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n eventTrainingId: eventId,\r\n name: d.name,\r\n description: d.description,\r\n url: d.link,\r\n type: Number(d.type.value)\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const disabled = readOnly;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={trainingResourceTypeList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n hidden={(typeValue && typeValue.value !== TrainingResourceTypeEnum.video)}\r\n />\r\n {typeValue && typeValue.value === TrainingResourceTypeEnum.file &&\r\n {\r\n setFileResult(f)\r\n setValue(\"link\",f.fileName)\r\n }}\r\n errors={errors}/>\r\n }\r\n \r\n \r\n \r\n
    \r\n
    \r\n { !disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React, { useState, useEffect} from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n IconButton,\r\n Dialog,\r\n DialogTitle,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport CustomTable from \"./table\"\r\nimport FormCreateUpdate from \"./form\"\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getEventTrainingDetail,\r\n postAddUpdateResource,\r\n deleteEventTrainingResource\r\n} from \"api/apiList\";\r\n\r\nconst Resources = ({eventTraining, readOnly}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [eventTrainingInfo, setEventTrainingInfo] = useState(null);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDlgDelete, setOpenDlgDelete] = useState(false);\r\n \r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n setCurrentRowObj(null);\r\n }\r\n const handleRequestCloseDel = () => {\r\n setOpenDlgDelete(false);\r\n setCurrentRowObj(null);\r\n }\r\n\r\n const refreshEventTrainingInfo = () => {\r\n callApi(\r\n ()=>getEventTrainingDetail(eventTraining.id), \r\n setEventTrainingInfo,\r\n fnSetLoader)\r\n }\r\n\r\n useEffect(()=>{\r\n if(!eventTraining)\r\n return;\r\n\r\n refreshEventTrainingInfo();\r\n },[eventTraining])\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postAddUpdateResource(data),\r\n () => {\r\n handleRequestCloseCRU();\r\n refreshEventTrainingInfo();\r\n }\r\n );\r\n };\r\n\r\n const handleDelete = () => {\r\n callApi(\r\n () => deleteEventTrainingResource(currentRowObj.id),\r\n () => {\r\n handleRequestCloseDel();\r\n refreshEventTrainingInfo();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n {!readOnly &&\r\n setOpenCRU(true)}\r\n >\r\n \r\n \r\n }\r\n setOpenCRU(true)}\r\n handleOpenDel={() => setOpenDlgDelete(true)}\r\n setCurrentRowObj={setCurrentRowObj}\r\n readOnly={readOnly}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Resources;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Button, Grid,\r\n Dialog,\r\n DialogTitle,\r\n DialogContent,\r\n DialogActions \r\n} from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport Resources from \"./resources\"\r\nimport { \r\n callApi,\r\n getProductsAndStates\r\n} from \"api/apiList\";\r\nimport { TrainingStateEnum, TrainingStateList } from \"constants/Enums\"\r\n\r\nconst DlgEventTraining = ({open, handleRequestClose, event, readOnly, handleEventTraining }) => { \r\n const [ productLineList, setProductLineList ] = useState([]);\r\n\r\n const trainingStateList = TrainingStateList();\r\n const msgStateValidation = IntlGetText(\"eventTraining.stateValidation\");\r\n \r\n const defaultValues = { \r\n trainingDate: null,\r\n name: \"\",\r\n description: \"\",\r\n productlineId: null,\r\n state:null\r\n };\r\n\r\n const validationSchema = {\r\n trainingDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n name: yup.string().required(),\r\n description: yup.string().required(),\r\n productlineId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"trainingDate\", !event ? null : dayjs(event.planningDate));\r\n setValue(\"name\", !event || !event.name ? \"\" : event.name);\r\n setValue(\"description\", !event || !event.description ? \"\" : event.description);\r\n setValue(\"productlineId\", !event || !event.productLineId ? null : getCboValue(productLineList,event.productLineId));\r\n setValue(\"state\", !event || (!event.state && event.state !== 0) ? null : getCboValue(trainingStateList,event.state));\r\n };\r\n\r\n useEffect(() => {\r\n callApi(\r\n getProductsAndStates,\r\n ({productLines})=>setProductLineList(productLines.map(x=>({\r\n name:x.title,\r\n ...x\r\n })))\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(()=>{\r\n if(open){\r\n setTimeout(loadData,150);\r\n }\r\n },[open]);\r\n \r\n const onSubmit = async (data, e) => {\r\n const obj = {\r\n id: !event || !event.id ? 0 : event.id,\r\n trainingDate: dayjs(data.trainingDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n name: data.name,\r\n description: data.description,\r\n productlineId: Number(data.productlineId.value),\r\n state: event && event.id > 0 ? Number(data.state.value) : TrainingStateEnum.planned\r\n };\r\n if(obj.state == TrainingStateEnum.done && dayjs(data.trainingDate) > dayjs()){\r\n NotificationManager.warning(msgStateValidation)\r\n return;\r\n }\r\n\r\n await handleEventTraining(obj)\r\n };\r\n\r\n const isDone = () => event && event.state === TrainingStateEnum.done;\r\n const disabled = !readOnly ? isDone() : readOnly;\r\n \r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n } \r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n options={productLineList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n {event && event.id > 0 &&\r\n \r\n }\r\n options={trainingStateList}\r\n margin=\"normal\"\r\n isClearable={false}\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n
    \r\n
    \r\n {event && event.id > 0 &&\r\n \r\n }\r\n
    \r\n \r\n \r\n {!disabled &&\r\n \r\n {}\r\n \r\n }\r\n \r\n
    \r\n );\r\n };\r\n\r\n export default DlgEventTraining;","import React, { useState, useEffect } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Calendar, momentLocalizer } from \"react-big-calendar\";\r\nimport moment from \"moment\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport DialogPlanningImpact from \"./DialogPlanningImpact\";\r\nimport DialogRescheduleImpact from \"./DialogRescheduleImpact\";\r\nimport DialogImpactInfo from \"./DialogImpactInfo\";\r\nimport DlgEventTraining from \"./dlgEventTraining\";\r\nimport { getRoleUser, isRole } from \"app/routes/psp/services/userService\";\r\nimport { ReactSelect } from \"components/Form/Controls/select-autocomplete\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getPlannedImpacts,\r\n getPlannedImpactsByNurseId,\r\n getUserByRole,\r\n postPlanImpact,\r\n getPrescriptionsForPlanning,\r\n GetCommentsByType,\r\n postRescheduleImpact,\r\n postAddUpdateEventTraining,\r\n} from \"api/apiList\";\r\nimport {\r\n ImpactStateList,\r\n ImpactStateEnum,\r\n PlanningTypeEnum,\r\n RoleEnum,\r\n} from \"constants/Enums\";\r\n\r\nDate.prototype.addHours = function(h) {\r\n this.setHours(this.getHours() + h);\r\n return this;\r\n};\r\n\r\nconst getImpactState = (state, impactStateList) => {\r\n var stateItem = impactStateList.find((x) => x.id == state);\r\n return stateItem ? stateItem.name : \"\";\r\n};\r\n\r\nconst getEvents = (data, impactStateList) => {\r\n return data.map((x) => {\r\n if (x.type === PlanningTypeEnum.eventTraining) {\r\n return {\r\n title: x.name,\r\n allDay: false,\r\n impactState: \"training\",\r\n start: new Date(x.planningDate),\r\n end: new Date(x.planningDate).addHours(1),\r\n ...x,\r\n };\r\n }\r\n\r\n return {\r\n title: `${x.patient} (${x.patientCode}) [${getImpactState(\r\n x.state,\r\n impactStateList\r\n )}]- ${x.impactType}`,\r\n impactState: getImpactState(x.state, impactStateList),\r\n allDay: false,\r\n start: new Date(x.planningDate),\r\n end: new Date(x.planningDate).addHours(1),\r\n ...x,\r\n };\r\n });\r\n};\r\nconst getNurses = (data) => {\r\n return data.map((x) => ({\r\n value: x.id,\r\n label: x.fullName,\r\n }));\r\n};\r\nconst localizer = momentLocalizer(moment);\r\n\r\nconst CalendarPlanning = () => {\r\n const [openDialog, setOpenDialog] = useState(false);\r\n const [openDlgInfo, setOpenDlgInfo] = useState(false);\r\n const [openDlgTraining, setOpenDlgTraining] = useState(false);\r\n const [currentEvt, setCurrentEvent] = useState({ title: \"\" });\r\n const [currentNurseId, setCurrentNurseId] = useState(null);\r\n const [eventList, setEventList] = useState([]);\r\n const [nurseList, setNurseList] = useState([]);\r\n const [\r\n prescriptionsForPlanningList,\r\n setPrescriptionsForPlanningList,\r\n ] = useState([]);\r\n const [commentsList, setCommentsList] = useState([]);\r\n\r\n const [openDlgPlanning, setOpenDlgPlanning] = useState(false);\r\n\r\n const impactStateList = ImpactStateList();\r\n\r\n const isPSPCoordinator = isRole(RoleEnum.psp_coordinator);\r\n const IsPspManager = () => {\r\n const roleUser = getRoleUser();\r\n return roleUser.role === \"psp_manager\";\r\n };\r\n\r\n const loadImpacts = () => {\r\n if (!IsPspManager() && !isPSPCoordinator) {\r\n callApi(getPlannedImpacts, (data) => {\r\n setEventList(getEvents(data, impactStateList));\r\n });\r\n } else {\r\n if (currentNurseId) {\r\n callApi(\r\n () => getPlannedImpactsByNurseId(currentNurseId),\r\n (data) => {\r\n setEventList(getEvents(data, impactStateList));\r\n }\r\n );\r\n } else {\r\n setEventList([]);\r\n }\r\n }\r\n };\r\n\r\n const loadNurses = () => {\r\n callApi(\r\n () => getUserByRole(RoleEnum.nurse),\r\n (data) => {\r\n setNurseList(getNurses(data));\r\n }\r\n );\r\n };\r\n\r\n const HandleNurseChange = (selectedOption) => {\r\n setCurrentNurseId(selectedOption ? selectedOption.value : null);\r\n };\r\n useEffect(loadImpacts, [currentNurseId]);\r\n\r\n useEffect(() => {\r\n !IsPspManager() && !isPSPCoordinator ? loadImpacts() : loadNurses();\r\n callApi(getPrescriptionsForPlanning, setPrescriptionsForPlanningList);\r\n callApi(() => GetCommentsByType(0), setCommentsList);\r\n }, []);\r\n\r\n const handleRequestCloseDlgPlanning = () => setOpenDlgPlanning(false);\r\n\r\n const callPlanImpact = async (obj) => {\r\n await callApiAsync(\r\n () => postPlanImpact(obj),\r\n (data) => {\r\n handleRequestCloseDlgPlanning();\r\n loadImpacts();\r\n }\r\n );\r\n };\r\n\r\n const callRescheduleImpact = (obj) => {\r\n callApi(\r\n () => postRescheduleImpact(obj),\r\n (data) => {\r\n setOpenDialog(false);\r\n loadImpacts();\r\n }\r\n );\r\n };\r\n\r\n const handleEventTraining = async (obj) => {\r\n await callApiAsync(\r\n () => postAddUpdateEventTraining(obj),\r\n (data) => {\r\n setOpenDlgTraining(false);\r\n setCurrentEvent({ title: \"\" });\r\n loadImpacts();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {(IsPspManager() || isPSPCoordinator) && (\r\n <>\r\n \r\n \r\n \r\n )}\r\n
    \r\n {!IsPspManager() && !isPSPCoordinator && (\r\n setOpenDlgPlanning(true)}\r\n className=\"jr-btn jr-btn-md text-white bg-cyan\"\r\n >\r\n \r\n \r\n \r\n )}\r\n {IsPspManager() && (\r\n setOpenDlgTraining(true)}\r\n className=\"jr-btn jr-btn-md text-white bg-cyan\"\r\n >\r\n \r\n \r\n )}\r\n\r\n \r\n
    \r\n
    \r\n

    \r\n {\r\n if (event.type === PlanningTypeEnum.eventTraining) {\r\n setOpenDlgTraining(true);\r\n } else {\r\n if (event.state == ImpactStateEnum.planning) {\r\n setOpenDialog(true);\r\n } else {\r\n setOpenDlgInfo(true);\r\n }\r\n }\r\n setCurrentEvent(event);\r\n }}\r\n eventPropGetter={(event) => ({\r\n className: ` ${event.colorState}-color`,\r\n })}\r\n />\r\n setOpenDialog(false)}\r\n commentsList={commentsList}\r\n impact={currentEvt}\r\n callRescheduleImpact={callRescheduleImpact}\r\n readOnly={false}\r\n />\r\n setOpenDlgInfo(false)}\r\n commentsList={commentsList}\r\n impact={currentEvt}\r\n />\r\n {\r\n setOpenDlgTraining(false);\r\n setCurrentEvent({ title: \"\" });\r\n }}\r\n event={currentEvt}\r\n handleEventTraining={handleEventTraining}\r\n readOnly={!IsPspManager()}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default CalendarPlanning;\r\n","import React from \"react\";\r\nimport CalendarPlanning from \"./Calendar\";\r\n\r\nconst ImpactPlanning = () => {\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n}; \r\n\r\nexport default ImpactPlanning;","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport { callApi, getAdverseEventList } from \"api/apiList\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { AdverseEventStateList } from \"constants/Enums\";\r\n\r\nconst PharmacovigilanceHome = (props) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]); \r\n\r\n const adverseEventStateList = AdverseEventStateList();\r\n const txtOnTime = IntlGetText(\"adverseEventTime.onTime\");\r\n const txtDelayed = IntlGetText(\"adverseEventTime.delayed\");\r\n const txtFollowUp = IntlGetText(\"adverseEvent.followUp\");\r\n\r\n useEffect(() => {\r\n callApi(\r\n getAdverseEventList,\r\n setData,\r\n fnSetLoader\r\n );\r\n }, []);\r\n \r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n \r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: 'excluded',\r\n customSearch: (value, rowData) => {\r\n const documentValue = rowData[3];\r\n return documentValue.toLowerCase().indexOf(value.toLowerCase()) !== -1;\r\n },\r\n }\r\n },\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: false,\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patient\"),\r\n {\r\n name: \"adverseEventType\",\r\n label: IntlGetText(\"core.type\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n var followUp = !rowObj.followUpId ? \"\" : \" (\"+txtFollowUp+\")\";\r\n return
    {value+followUp}
    ;\r\n }\r\n }\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n const state = adverseEventStateList.find(x=>x.id === rowObj.state);\r\n return (\r\n
    \r\n {state.name}\r\n
    \r\n );\r\n }\r\n }\r\n },\r\n {\r\n name: \"isOnTime\",\r\n label: IntlGetText(\"adverseEvent.isOnTime\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n //return value === null ? \"null\" : (value ? \"true\" : \"false\");\r\n if(value === null) return \"\";\r\n return value \r\n ?
    {txtOnTime}
    \r\n :
    {txtDelayed}
    ;\r\n }\r\n }\r\n },\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"productLine\",\r\n label: IntlGetText(\"core.productLine\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return
    {value}
    ;\r\n }\r\n }\r\n },\r\n defaultCol(\"nurse\", \"role.nurse\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return ( \r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n\r\n const options = {\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n selectableRows: \"none\",\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default PharmacovigilanceHome;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Link } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, { getCboValue, getCboValues } from \"components/Form/Controls/select-autocomplete\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport ConcomitantMedication from \"components/AdverseEvent/ConcomitantMedication\";\r\nimport AddknownAdverseEvent from \"../../../management/AdverseEventDetail/Pharmacovigilance/addknownAdverseEvent\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getEventsFollowUp,\r\n getKnownAdverseEvent,\r\n postAdverseEventSave,\r\n getConcomitantMedicationList,\r\n} from \"api/apiList\";\r\nimport { \r\n ProductBehavior,\r\n FormulaType,\r\n ForeamSeriousnessList,\r\n ForeamDenouementList,\r\n YesNoNotKnowList,\r\n YesNoNAList,\r\n genderList,\r\n CiomsTypeList,\r\n AdverseEventStateEnum,\r\n RoleEnum,\r\n CiomsTypeEnum,\r\n QueryAdverseEventStateEnum,\r\n QueryAdverseEventTypeEnum\r\n} from \"constants/Enums\";\r\nimport { getRoleUser } from \"app/routes/psp/services/userService\";\r\n\r\nconst GetQuestionYesNo = () =>{\r\n const questionKeys = [1, 2, 3, 4, 5];\r\n return questionKeys.map(x => ({\r\n id: x,\r\n answer: null,\r\n name: \"questionYesNo\"+x,\r\n label: IntlGetText(\"foream.questionYesNo.q\"+x)\r\n }));\r\n};\r\n\r\nconst getReactionList = () =>{\r\n const reactionKeys = [1, 2, 3, 4, 5, 6];\r\n return reactionKeys.map(x => ({\r\n id: x,\r\n answer: false,\r\n name: \"reaction\"+x,\r\n label: IntlGetText(\"cioms.reaction\"+x)\r\n }));\r\n};\r\n\r\nconst Farmacovigilance = ({adverseEvent}) =>{ \r\n const dispatch = useDispatch(); \r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n //const { selectedMenuItem } = useSelector(({ management }) => management);\r\n\r\n const [knownAdverseEvents,setKnownAdverseEvents] = useState([]);\r\n const [followUpList,setFollowUpList] = useState([]);\r\n const [concomitantMedicationList,setConcomitantMedicationList] = useState([]);\r\n\r\n const foreamSeriousnessList = ForeamSeriousnessList();\r\n const foreamDenouementList = ForeamDenouementList();\r\n const yesNoNotKnowList = YesNoNotKnowList();\r\n const yesNoNAList = YesNoNAList();\r\n const questionsYesNo = GetQuestionYesNo();\r\n const reactionList = getReactionList();\r\n const genderrList = genderList();\r\n const ciomsTypeList = CiomsTypeList();\r\n const userInfo = getRoleUser();\r\n const isNurseProfile = () =>{\r\n const role = userInfo.role.toUpperCase();\r\n return role === RoleEnum.nurse;\r\n };\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgConcomitantsNotValid = IntlGetText(\"concomitantMedication.notValid\");\r\n\r\n let defaultValues = {\r\n creationDate: null,\r\n reportSource: \"\", //(stateProvince - city)\r\n primaryReporter:\"\",\r\n reportingProfession:\"\",\r\n reportingEmail:\"\",\r\n\r\n patientBirthDate: null,\r\n age: \"\", // age (unitAge)\r\n documentType: \"\",\r\n document: \"\",\r\n initialsPatientName: \"\",\r\n gender: \"\",\r\n weight: \"\",\r\n size: \"\",\r\n\r\n disease: \"\",\r\n healthRegisterHolder:\"\",\r\n tradename:\"\",\r\n healthRegister:\"\",\r\n lotNumber:\"\",\r\n\r\n adverseEventStartDate: null,\r\n knownAdverseEvents: null,\r\n descriptionAdverseEvent: \"\",\r\n denouement: null,\r\n seriousness: null,\r\n //questionsYesNo:\r\n causality:\"\",\r\n\r\n //CIOMS\r\n country: null,\r\n //adverseReaction:\r\n medicine:\"\", // tradename (genericName)\r\n dosage: \"\",\r\n administrationRoute:\"\",\r\n startTherapy:null,\r\n endTherapy:null,\r\n therapyDays:null,\r\n reactionDecreased:null,\r\n reactionReappeared:null,\r\n anotherRelevantStory:\"\",\r\n ciomsReportSource:\"\", //***\r\n studyIdentificationCode: \"\",\r\n type:null,\r\n followUpId: null,\r\n reportType: \"\",\r\n\r\n // infusionRate: \"\",\r\n // supplyFrequency: \"\",\r\n //medicationExpirationDate\r\n };\r\n questionsYesNo.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n reactionList.map((x)=>{\r\n defaultValues[x.name] = x.answer;\r\n });\r\n \r\n const validationSchema = {\r\n weight: yup.string().required(),\r\n size: yup.string().required(),\r\n medicineLotNumber: yup.string().required(),\r\n // medicineExpirationDate: yup.date()\r\n // .nullable()\r\n // .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n // .required(),\r\n adverseEventStartDate: yup.date()\r\n .nullable()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n descriptionAdverseEvent: yup.string().required(),\r\n denouement: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n seriousness: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(), \r\n reactionDecreased: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n reactionReappeared: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n anotherRelevantStory: yup.string().required(),\r\n type: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(), \r\n followUpId: yup.object().when(\"type\",{\r\n is: type => type && Number(type.value) === CiomsTypeEnum.tracing,\r\n then: yup.object().shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }).nullable()\r\n };\r\n questionsYesNo.map((x)=>{\r\n validationSchema[x.name] = yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n });\r\n\r\n const methods = useForm({ defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema))\r\n });\r\n const { handleSubmit, setValue, watch, errors } = methods; \r\n\r\n const typeValue = watch(\"type\"); \r\n const knownAdverseEventsValue = watch(\"knownAdverseEvents\"); \r\n\r\n const setString = (obj, prop) => setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) => setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue = (obj, prop, list) => setValue(prop, !obj ? null : getCboValue(list, obj[prop]));\r\n const setString2 = (obj, prop) => setValue(prop+\"2\", !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate2 = (obj, prop) => setValue(prop+\"2\", !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue2 = (obj, prop, list) => setValue(prop+\"2\", !obj ? null : getCboValue(list, obj[prop]));\r\n\r\n const loadData = (adverseEvent) => {\r\n const pharmacovigilance = !adverseEvent ? null : adverseEvent.pharmacovigilance;\r\n\r\n if(adverseEvent){\r\n setValue(\"medicine\",`${adverseEvent.tradename} (${adverseEvent.genericName })`);\r\n setValue(\"reportSource\",`${adverseEvent.stateProvince} - ${adverseEvent.city}`);\r\n setValue(\"age\",`${adverseEvent.age} (${adverseEvent.unitAge})`);\r\n\r\n setValue(\"age2\",`${adverseEvent.age} (${adverseEvent.unitAge})`);\r\n\r\n if(adverseEvent.formulaType === FormulaType.MIPRES \r\n && adverseEvent.productBehaviorId !== ProductBehavior.remodulin\r\n && adverseEvent.productBehaviorId !== ProductBehavior.dacepton){\r\n var frequency = !adverseEvent.supplyFrequency ? '' : ` (${adverseEvent.supplyFrequency}hrs)`;\r\n setValue(\"dosage\", adverseEvent.dosage + frequency );\r\n }\r\n else{\r\n setString(adverseEvent,\"dosage\");\r\n }\r\n }\r\n if(pharmacovigilance)\r\n setValue(\"ciomsReportSource\", `${pharmacovigilance.primaryReporter} (${pharmacovigilance.reportingProfession})`);\r\n\r\n setDate(adverseEvent,\"creationDate\");\r\n setString(pharmacovigilance,\"primaryReporter\");\r\n setString(pharmacovigilance,\"reportingProfession\");\r\n setString(pharmacovigilance,\"reportingEmail\");\r\n \r\n setDate(adverseEvent,\"patientBirthDate\");\r\n setString(adverseEvent,\"documentType\");\r\n setString(adverseEvent,\"document\");\r\n setString(adverseEvent,\"initialsPatientName\");\r\n setCboValue(adverseEvent,\"gender\",genderrList);\r\n setString(pharmacovigilance,\"weight\");\r\n setString(pharmacovigilance,\"size\");\r\n \r\n setString(adverseEvent,\"disease\");\r\n setString(pharmacovigilance,\"healthRegisterHolder\");\r\n setString(adverseEvent,\"tradename\");\r\n setString(pharmacovigilance,\"healthRegister\");\r\n setString(adverseEvent,\"medicineLotNumber\");\r\n\r\n setDate(adverseEvent,\"adverseEventStartDate\");\r\n setString(adverseEvent,\"descriptionAdverseEvent\");\r\n setCboValue(pharmacovigilance,\"denouement\",foreamDenouementList);\r\n setCboValue(pharmacovigilance,\"seriousness\",foreamSeriousnessList);\r\n if(pharmacovigilance && pharmacovigilance.questionsYesNo){\r\n pharmacovigilance.questionsYesNo.map((x)=>{\r\n setValue(\"questionYesNo\"+x.id, getCboValue(yesNoNotKnowList, x.answer));\r\n });\r\n }\r\n setString(adverseEvent,\"causality\"); \r\n\r\n setString2(adverseEvent,\"initialsPatientName\");\r\n setString(adverseEvent,\"country\");\r\n setDate2(adverseEvent,\"patientBirthDate\");\r\n setCboValue2(adverseEvent,\"gender\",genderrList);\r\n setDate2(adverseEvent,\"adverseEventStartDate\");\r\n setString2(adverseEvent,\"descriptionAdverseEvent\");\r\n if(pharmacovigilance && pharmacovigilance.adverseReaction){\r\n pharmacovigilance.adverseReaction.map((x)=>{\r\n setValue(\"reaction\"+x, true);\r\n });\r\n }\r\n //setString(adverseEvent,\"dosage\");\r\n setString(pharmacovigilance,\"administrationRoute\");\r\n setString2(adverseEvent,\"disease\");\r\n setDate(pharmacovigilance,\"startTherapy\");\r\n setDate(pharmacovigilance,\"endTherapy\");\r\n setString(pharmacovigilance,\"therapyDays\");\r\n setCboValue(pharmacovigilance,\"reactionDecreased\",yesNoNAList);\r\n setCboValue(pharmacovigilance,\"reactionReappeared\",yesNoNAList);\r\n setString(pharmacovigilance,\"anotherRelevantStory\");\r\n setString(pharmacovigilance,\"studyIdentificationCode\");\r\n setCboValue(pharmacovigilance,\"type\",ciomsTypeList);\r\n setString(pharmacovigilance,\"reportType\");\r\n\r\n // setString(adverseEvent,\"infusionRate\");\r\n // setString(adverseEvent,\"supplyFrequency\");\r\n };\r\n\r\n const loadConcomitants = () => {\r\n callApi(\r\n ()=>getConcomitantMedicationList(adverseEvent.id),\r\n setConcomitantMedicationList\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n if(adverseEvent){\r\n callApi(\r\n ()=>getKnownAdverseEvent(adverseEvent.id),\r\n setKnownAdverseEvents\r\n );\r\n\r\n loadData(adverseEvent);\r\n loadConcomitants();\r\n callApi(\r\n ()=>getEventsFollowUp(adverseEvent.id),\r\n setFollowUpList\r\n );\r\n }\r\n },[adverseEvent]);\r\n \r\n useEffect(()=>{\r\n if(knownAdverseEvents){\r\n setValue(\"knownAdverseEvents\",getCboValues(knownAdverseEvents, adverseEvent.knownAdverseEvents));\r\n }\r\n },[knownAdverseEvents]);\r\n useEffect(()=>{\r\n if(followUpList){\r\n setCboValue(adverseEvent,\"followUpId\",followUpList);\r\n }\r\n },[followUpList]);\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n const areMedicationsValid = () => {\r\n var item = concomitantMedicationList.find(x=> x.sci === undefined || x.sci === null);\r\n return item === undefined;\r\n };\r\n\r\n const isDisabled =()=>{\r\n if(adverseEvent && !isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && (!adverseEvent.pendingQuery.assignedToNurse || adverseEvent.pendingQuery.state === QueryAdverseEventStateEnum.resolved))\r\n else\r\n return adverseEvent.status !== AdverseEventStateEnum.pendingToVerify;\r\n }\r\n };\r\n const isForeamDisabled =()=>{\r\n if(adverseEvent && !isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && (!adverseEvent.pendingQuery.assignedToNurse || adverseEvent.pendingQuery.state === QueryAdverseEventStateEnum.resolved)\r\n && adverseEvent.pendingQuery.type === QueryAdverseEventTypeEnum.regulator);\r\n else\r\n return adverseEvent.status !== AdverseEventStateEnum.pendingToVerify;\r\n }\r\n };\r\n const isCiomsDisabled =()=>{\r\n if(adverseEvent && !isNurseProfile()){\r\n if(adverseEvent.status === AdverseEventStateEnum.pendingQuery)\r\n return !(adverseEvent.pendingQuery && (!adverseEvent.pendingQuery.assignedToNurse || adverseEvent.pendingQuery.state === QueryAdverseEventStateEnum.resolved)\r\n && adverseEvent.pendingQuery.type === QueryAdverseEventTypeEnum.partner);\r\n else\r\n return adverseEvent.status !== AdverseEventStateEnum.pendingToVerify;\r\n }\r\n };\r\n const disabled = isDisabled();\r\n const foreamDisabled = isForeamDisabled();\r\n const ciomsDisabled = isCiomsDisabled();\r\n\r\n\r\n const getDate = (obj, prop) => !obj[prop] ? null : dayjs(obj[prop]).format(\"YYYY-MM-DDTHH:mm:ss\");\r\n const onSubmit = async (d, e) => {\r\n if(adverseEvent && !areMedicationsValid()){\r\n NotificationManager.success(msgConcomitantsNotValid);\r\n return;\r\n }\r\n \r\n var result = { \r\n id: adverseEvent.id,\r\n adverseEventTypeId : adverseEvent.adverseEventTypeId,\r\n adverseEventStartDate: getDate(d, ciomsDisabled ? \"adverseEventStartDate\" : \"adverseEventStartDate2\"),\r\n descriptionAdverseEvent: ciomsDisabled ? d.descriptionAdverseEvent : d.descriptionAdverseEvent2,\r\n followUpId: !d.followUpId ? null : Number(d.followUpId.value),\r\n knownAdverseEvents: !d.knownAdverseEvents ? [] : d.knownAdverseEvents.map(x=>Number(x.value)),\r\n medicineLotNumber: d.medicineLotNumber,medicineExpirationDate: !d.medicineExpirationDate ? null : dayjs(d.medicineExpirationDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n medicineExpirationDate: adverseEvent.medicineExpirationDate\r\n };\r\n\r\n\r\n let pharmacovigilance = {};\r\n pharmacovigilance.weight = !d.weight ? null : Number(d.weight);\r\n pharmacovigilance.size = !d.size ? null : Number(d.size);\r\n pharmacovigilance.denouement = !d.denouement && d.denouement !== 0 ? null : Number(d.denouement.value);\r\n pharmacovigilance.seriousness = !d.seriousness && d.seriousness !== 0 ? null : Number(d.seriousness.value);\r\n const questionsYesNoAnswered = questionsYesNo.map((x)=>({\r\n id: x.id,\r\n answer: !d[x.name] ? null : Number(d[x.name].value)\r\n }));\r\n pharmacovigilance.questionsYesNo = questionsYesNoAnswered.filter(x=>x.answer !== null);\r\n\r\n const reactionsSelected = reactionList.map((x)=>{\r\n if(d[x.name])\r\n return x.id;\r\n });\r\n pharmacovigilance.adverseReaction = reactionsSelected.filter(x=>x !== undefined);\r\n pharmacovigilance.reactionDecreased = !d.reactionDecreased && d.reactionDecreased !== 0 ? null : Number(d.reactionDecreased.value);\r\n pharmacovigilance.reactionReappeared = !d.reactionReappeared && d.reactionReappeared !== 0 ? null : Number(d.reactionReappeared.value);\r\n pharmacovigilance.anotherRelevantStory = d.anotherRelevantStory;\r\n pharmacovigilance.endTherapy = !d.endTherapy ? null : dayjs(d.endTherapy).format(\"YYYY-MM-DDTHH:mm:ss\");\r\n pharmacovigilance.type = !d.type ? null : Number(d.type.value);\r\n\r\n result.pharmacovigilance = pharmacovigilance;\r\n await callApiAsync(\r\n ()=> postAdverseEventSave(result),\r\n ()=> NotificationManager.success(msgSuccess),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const handleAddknownAdverseEvent = (data) =>{\r\n setKnownAdverseEvents([...knownAdverseEvents,data]);\r\n setValue(\"knownAdverseEvents\",[...knownAdverseEventsValue, { label: data.name, value: data.id }]);\r\n }\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n CIOMS\r\n \r\n \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n\r\n {/* Patient info */}\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={genderrList}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n {/* End patient info */}\r\n\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n\r\n\r\n {/* Información medicamento sospechoso */}\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n\r\n\r\n {/* Información del evento adverso */}\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n \r\n }\r\n isMulti\r\n options={knownAdverseEvents}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n {!foreamDisabled && \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n />\r\n \r\n \r\n }\r\n options={foreamDenouementList}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={foreamSeriousnessList}\r\n margin=\"normal\"\r\n disabled={foreamDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n

    \r\n {questionsYesNo.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n {!adverseEvent || (adverseEvent && adverseEvent.causality) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n\r\n\r\n {/* CIOMS */}\r\n \r\n

    \r\n

    \r\n

    \r\n \r\n
    \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={genderrList}\r\n margin=\"normal\"\r\n disabled={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n />\r\n \r\n \r\n \r\n \r\n {reactionList.map((x, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={yesNoNAList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n\r\n\r\n \r\n }\r\n variant=\"outlined\"\r\n multiline\r\n rows={4}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n options={ciomsTypeList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {(typeValue === null || typeValue.value === CiomsTypeEnum.tracing) &&\r\n \r\n }\r\n options={followUpList}\r\n margin=\"normal\"\r\n disabled={ciomsDisabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n {/* {(!adverseEvent || adverseEvent.productBehaviorId === ProductBehavior.remodulin ) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n { (!adverseEvent || (adverseEvent.formulaType === FormulaType.MIPRES &&\r\n adverseEvent.productBehaviorId !== ProductBehavior.remodulin)) &&\r\n \r\n }\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n } */}\r\n
    \r\n
    \r\n
    \r\n \r\n {!disabled &&\r\n
    \r\n \r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n );\r\n};\r\n\r\nexport default Farmacovigilance","import React, { useEffect, useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport { AdverseEventStateList } from \"constants/Enums\";\r\n\r\nconst getStates = (processData) => {\r\n if(!processData || !processData.adverseEventState)\r\n return [];\r\n return processData.adverseEventState;\r\n};\r\n\r\nconst round = (number, decimalPlaces) => {\r\n const factorOfTen = Math.pow(10, decimalPlaces)\r\n return Math.round(number * factorOfTen) / factorOfTen\r\n};\r\n\r\nconst CommentTable = ({ processData }) =>{\r\n const [data, setData] = useState([]);\r\n\r\n const adverseEventStateList = AdverseEventStateList();\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n useEffect(()=>{\r\n if(processData)\r\n setData(getStates(processData));\r\n },[processData]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n }\r\n },\r\n {\r\n name: \"creationDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"time\",\r\n label: IntlGetText(\"core.time\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n }\r\n },\r\n {\r\n name: \"state\",\r\n label: IntlGetText(\"core.state\"),\r\n options: {\r\n filter: true,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n const state = adverseEventStateList.find(x=>x.id === rowObj.state);\r\n return (\r\n
    \r\n {state.name}\r\n
    \r\n );\r\n }\r\n }\r\n },\r\n {\r\n name: \"file\",\r\n label: IntlGetText(\"adverseEventProcess.files\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(value){\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return \"\";\r\n },\r\n },\r\n }\r\n ];\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default CommentTable;","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApiAsync,\r\n postAdverseEventReject\r\n} from \"api/apiList\";\r\nimport { QueryAdverseEventStateEnum, QueryAdverseEventTypeEnum } from \"constants/Enums\";\r\n\r\nconst DialogReject = ({ open, closeDialog, callBack, adverseEvent }) => {\r\n const defaultValues = { description: \"\" };\r\n const validationSchema = {\r\n description: yup.string().required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n adverseEventId: adverseEvent.id,\r\n type: QueryAdverseEventTypeEnum.pharmacovigilance,\r\n state: QueryAdverseEventStateEnum.neww,\r\n description: d.description\r\n };\r\n await callApiAsync(\r\n ()=> postAdverseEventReject(obj),\r\n ()=> {\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n }; \r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n name=\"description\"\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DialogReject;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postAdverseEventRegisterCausality,\r\n getAllCausality\r\n} from \"api/apiList\";\r\n\r\nconst DialogCausality = ({ open, closeDialog, callBack, adverseEvent }) => {\r\n const [causalities, setCausalities] = useState([])\r\n\r\n useEffect(()=>callApi(getAllCausality,setCausalities),[])\r\n\r\n const defaultValues = { causality: \"\" };\r\n const validationSchema = {\r\n causality: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = async (d, e) => {\r\n var obj = {\r\n adverseEventId: adverseEvent.id,\r\n causalityId: Number(d.causality.value)\r\n };\r\n await callApiAsync(\r\n ()=> postAdverseEventRegisterCausality(obj),\r\n ()=> {\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n }; \r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={causalities}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DialogCausality;","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport ProcessTable from \"./ProcessTable\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport DialogReject from \"./DialogReject\";\r\nimport DialogCausality from \"./DialogCausality\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getProcessDataByAdverseEvent,\r\n postAdverseEventUpdateState,\r\n postAdverseEventGenerateFormat\r\n} from \"api/apiList\";\r\nimport { \r\n AdverseEventStateEnum, \r\n FormatTypeEnum,\r\n AdverseEventTypeEnum,\r\n QueryAdverseEventStateEnum\r\n} from \"constants/Enums\";\r\n\r\n\r\nconst getBtnFormatName = (adverseEvent) => {\r\n return adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance ? \r\n \"adverseEvent.btnGenerateFormat.foream\" : \"adverseEvent.btnGenerateFormat.foreia\";\r\n};\r\n\r\nconst getFormatType = (adverseEvent) => {\r\n return adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance ? FormatTypeEnum.foream : FormatTypeEnum.foreia;\r\n};\r\n\r\nconst getLastStates = (processData) => {\r\n if(!processData || !processData.adverseEventState)\r\n return [];\r\n return !processData.lastStateVerificationId ? [] \r\n : processData.adverseEventState.filter(x=>x.id > processData.lastStateVerificationId);\r\n};\r\n\r\nconst showBtnGenerateFormat =(lastStates, currentState, type)=>{\r\n if(currentState < AdverseEventStateEnum.verified)\r\n return false;\r\n return ((lastStates.find(x=>x.state === AdverseEventStateEnum.generatedFoream) === undefined && type === AdverseEventTypeEnum.pharmacovigilance)\r\n || (lastStates.find(x=>x.state === AdverseEventStateEnum.generatedForeia) === undefined && type === AdverseEventTypeEnum.technovigilance));\r\n};\r\nconst showBtnSendToRegulator =(lastStates)=>{\r\n return ((lastStates.find(x=>x.state === AdverseEventStateEnum.generatedFoream) !== undefined \r\n || lastStates.find(x=>x.state === AdverseEventStateEnum.generatedForeia) !== undefined)\r\n && lastStates.find(x=>x.state === AdverseEventStateEnum.sentToRegulator) === undefined);\r\n};\r\nconst showBtnCausality =(lastStates)=>{\r\n return (lastStates.find(x=>x.state === AdverseEventStateEnum.sentToRegulator) !== undefined\r\n && lastStates.find(x=>x.state === AdverseEventStateEnum.generatedCioms) !== undefined\r\n && lastStates.find(x=>x.state === AdverseEventStateEnum.registeredCausality) === undefined);\r\n};\r\nconst showBtnGenerateCioms =(lastStates, currentState)=>{\r\n return (currentState >= AdverseEventStateEnum.verified\r\n && lastStates.find(x=>x.state === AdverseEventStateEnum.generatedCioms) === undefined);\r\n};\r\nconst showBtnSendToPartner =(lastStates)=>{\r\n return (lastStates.find(x=>x.state === AdverseEventStateEnum.generatedCioms) !== undefined\r\n && lastStates.find(x=>x.state === AdverseEventStateEnum.sentToPartner) === undefined);\r\n};\r\n\r\n\r\nconst Dlg = ({ open, closeDialog, adverseEvent, adverseEventRefresh, reloadQueries, queryAdverseEventList }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [processData, setProcessData] = useState(null);\r\n const [openDlgReject, setOpenDlgReject] = useState(false);\r\n const [openDlgCausality, setOpenDlgCausality] = useState(false);\r\n const [lastStates, setLastStates] = useState([]);\r\n\r\n const loadData = (adverseEventId) => {\r\n callApi(\r\n ()=>getProcessDataByAdverseEvent(adverseEventId),\r\n (data)=>{\r\n setProcessData(data);\r\n setLastStates(getLastStates(data))\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const refreshData = () => {\r\n adverseEventRefresh();\r\n loadData(adverseEvent.id);\r\n };\r\n\r\n useEffect(()=>{\r\n if(open && adverseEvent)\r\n loadData(adverseEvent.id);\r\n },[open]);\r\n\r\n\r\n const onUpdateState = async (state) => {\r\n var obj = { \r\n id: adverseEvent.id,\r\n state: state\r\n };\r\n\r\n await callApiAsync(\r\n ()=> postAdverseEventUpdateState(obj),\r\n refreshData,\r\n fnSetLoader\r\n );\r\n }\r\n\r\n const onAproveAsync = async () => {\r\n await onUpdateState(AdverseEventStateEnum.verified);\r\n };\r\n\r\n const onGenerateFormatAsync = async () => {\r\n var obj = { \r\n adverseEventId: adverseEvent.id,\r\n formatType: getFormatType(adverseEvent)\r\n };\r\n\r\n await callApiAsync(\r\n ()=> postAdverseEventGenerateFormat(obj),\r\n refreshData\r\n );\r\n };\r\n const onGenerateCiomsAsync = async () => {\r\n var obj = { \r\n adverseEventId: adverseEvent.id,\r\n formatType: FormatTypeEnum.cioms\r\n };\r\n\r\n await callApiAsync(\r\n ()=> postAdverseEventGenerateFormat(obj),\r\n refreshData\r\n );\r\n };\r\n \r\n \r\n const onSentToRegulatorAsync = async () => {\r\n await onUpdateState(AdverseEventStateEnum.sentToRegulator);\r\n };\r\n\r\n const onSentToPartnerAsync = async () => {\r\n await onUpdateState(AdverseEventStateEnum.sentToPartner);\r\n };\r\n\r\n const GetPendingQuery = () => {\r\n if(!queryAdverseEventList)\r\n return false;\r\n const result = queryAdverseEventList.find(x=>x.state !== QueryAdverseEventStateEnum.approved);\r\n return result !== undefined;\r\n };\r\n const anyPendingQuery = GetPendingQuery();\r\n\r\n return (\r\n \r\n \r\n \r\n { adverseEvent && !anyPendingQuery && adverseEvent.status === AdverseEventStateEnum.pendingToVerify &&\r\n \r\n \r\n {}\r\n \r\n \r\n setOpenDlgReject(false)}\r\n callBack={()=>{\r\n refreshData();\r\n reloadQueries();\r\n }}\r\n adverseEvent={adverseEvent}\r\n />\r\n \r\n }\r\n { adverseEvent && !anyPendingQuery && showBtnGenerateFormat(lastStates, adverseEvent.status, adverseEvent.adverseEventTypeId) &&\r\n \r\n \r\n \r\n }\r\n { adverseEvent && !anyPendingQuery && \r\n showBtnSendToRegulator(lastStates) &&\r\n \r\n \r\n \r\n }\r\n { adverseEvent && !anyPendingQuery && \r\n ( adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance && showBtnCausality(lastStates)) &&\r\n \r\n \r\n setOpenDlgCausality(false)}\r\n callBack={refreshData}\r\n adverseEvent={adverseEvent}\r\n />\r\n \r\n }\r\n { adverseEvent && !anyPendingQuery && \r\n (adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance && showBtnGenerateCioms(lastStates, adverseEvent.status)) &&\r\n \r\n \r\n \r\n }\r\n { adverseEvent && !anyPendingQuery && \r\n (adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance && showBtnSendToPartner(lastStates)) &&\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Dlg;","import React, { useState } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Dlg from \"./Dlg\";\r\n\r\nconst BtnProcess = (props) =>{ \r\n const [openDlg, setOpenDlg] = useState(false);\r\n\r\n return (\r\n
    \r\n
    \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n setOpenDlg(false)}\r\n {...props}\r\n />\r\n
    \r\n );\r\n};\r\n\r\nexport default BtnProcess;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Tabs, Tab } from \"@material-ui/core\";\r\nimport Pharmacovigilance from \"./Pharmacovigilance\";\r\nimport Technovigilance from \"../../../../../components/AdverseEvent/Technovigilance\";\r\nimport QueryAdverseEvent from \"components/AdverseEvent/QueryAdverseEvent\";\r\nimport BtnProcess from \"./BtnProcess\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n getAdverseEventGetDetail,\r\n getQueryAdverseEventList\r\n} from \"api/apiList\";\r\nimport { AdverseEventTypeEnum, AdverseEventStateEnum } from \"constants/Enums\";\r\n\r\nconst AdverseEventDetail = (props) =>{ \r\n const { adverseEventId } = props.location;\r\n\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [currentTab, setCurrentTab] = useState(0);\r\n const [adverseEvent, setAdverseEvent] = useState(null);\r\n const [queryAdverseEventList,setQueryAdverseEventList] = useState([]);\r\n\r\n const adverseEventRefresh = () => { \r\n callApi(\r\n ()=>getAdverseEventGetDetail(adverseEventId),\r\n setAdverseEvent,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const reloadQueries = () => {\r\n callApi(\r\n ()=>getQueryAdverseEventList(adverseEventId),\r\n setQueryAdverseEventList\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n if(adverseEventId){\r\n adverseEventRefresh();\r\n reloadQueries();\r\n }\r\n },[adverseEventId]);\r\n\r\n const handleChange = (event, value) => setCurrentTab(value);\r\n \r\n return (\r\n
    \r\n \r\n }\r\n />\r\n { (queryAdverseEventList.length !== 0 || (adverseEvent && adverseEvent.status > AdverseEventStateEnum.verified)) && \r\n }\r\n />\r\n }\r\n \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n
    \r\n
    \r\n \r\n

    \r\n {adverseEvent && adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.pharmacovigilance &&\r\n \r\n }\r\n {adverseEvent && adverseEvent.adverseEventTypeId === AdverseEventTypeEnum.technovigilance &&\r\n \r\n }\r\n
    \r\n
    \r\n )}\r\n {currentTab === 1 && (\r\n
    \r\n
    \r\n { \r\n adverseEventRefresh();\r\n reloadQueries();\r\n }}\r\n />\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default AdverseEventDetail;","export const downloadFile = (fileDto) => {\r\n const link = document.createElement(\"a\");\r\n\r\n link.href = fileDto.file;\r\n link.setAttribute(\"download\", fileDto.fileName);\r\n link.setAttribute(\"target\", \"_self\");\r\n \r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n}","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { callApi, getImpactReport, getImpactReportFile } from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst ImpactReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => getImpactReportFile(dateRange.startDate, dateRange.endDate),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getImpactReport(dateRange.startDate, dateRange.endDate),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const getObj = (tableMeta) =>\r\n reportData.find((x) => x.impactId === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"impactId\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"impactType\", \"core.activity\"),\r\n defaultCol(\"year\", \"core.year\"),\r\n defaultCol(\"month\", \"core.timeFrame\"),\r\n defaultCol(\"fortnight\", \"core.q\"),\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"core.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"productline\", \"core.line\"),\r\n defaultCol(\"nurse\", \"role.nurse\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"patientCode\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"nursingNote\", \"impact.NursingNote\"),\r\n ];\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ImpactReport;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport {\r\n callApi,\r\n getControlPanelReport,\r\n getControlPanelReportFile,\r\n} from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol, dateColumn } from \"components/Form/Table\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\nimport DlgNurses from \"components/DlgNurses\";\r\n\r\nconst getObj = (tableMeta, data) =>\r\n data.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\nconst dateFormat = \"YYYY/MM/DD\";\r\n\r\nconst getIclusigCols = (data) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patientName\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"residenceCity\", \"core.residenceCity\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"pathology\", \"core.pathology\"),\r\n defaultCol(\"age\", \"core.age\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n dateColumn(\"treatmentStartDate\", \"additionalMedications.treatmentStartDate\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"formulatedDose\", \"core.formulatedDose\"),\r\n defaultCol(\"actualDose\", \"core.actualDose\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"formulaDuration\", \"core.formulaDuration\"),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n dateColumn(\"lastProcessingDate\", \"core.lastProcessingDate\"),\r\n dateColumn(\"olfRadicacionDate\", \"core.olfRadicacionDate\"),\r\n dateColumn(\"previousDeliveryDate\", \"core.previousDeliveryDate\"),\r\n dateColumn(\"actualDeliveryDate\", \"core.actualDeliveryDate\"), \r\n defaultCol(\"currentDeliveryNumber\", \"core.currentDeliveryNumber\"),\r\n defaultCol(\"numberScheduledDeliveries\", \"core.numberScheduledDeliveries\"),\r\n defaultCol(\"medicineDeliverd\", \"core.medicineDeliverd\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\"),\r\n defaultCol(\"lastNoteNursingTracing\", \"core.lastNoteNursingTracing\"),\r\n ];\r\n};\r\n\r\nconst getGalafoldCols = (data) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patientName\"),\r\n defaultCol(\"stateProvince\", \"core.stateProvince\"),\r\n defaultCol(\"residenceCity\", \"core.residenceCity\"),\r\n defaultCol(\"nurse\", \"role.nurse\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"treatmentStartDate\", \"core.treatmentStartDate\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"formulaDuration\", \"core.formulationPeriod\"),\r\n defaultCol(\"expirationDateFormula\", \"core.expirationDateFormula\"),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n {\r\n name: \"lastProcessingDate\",\r\n label: IntlGetText(\"core.lastProcessingDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"olfRadicacionDate\", \"core.olfRadicacionDate\"),\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n {\r\n name: \"previousDeliveryDate\",\r\n label: IntlGetText(\"controlPanelGl.previousDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actualDeliveryDate\",\r\n label: IntlGetText(\"controlPanelGl.actualDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"deliveriesMade\", \"core.deliveriesMade\"),\r\n defaultCol(\"scheduledDeliveries\", \"core.scheduledDeliveries\"),\r\n defaultCol(\"blisterStartDate\", \"controlPanelGl.blisterStartDate\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\"),\r\n defaultCol(\"formulaDuration\", \"core.formulaDuration\"),\r\n defaultCol(\"lastNoteNursingTracing\", \"core.lastNoteNursingTracing\")\r\n ];\r\n};\r\n\r\nconst getRemodulinCols = (data) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patientName\"),\r\n defaultCol(\"documentType\", \"core.documentType\"),\r\n defaultCol(\"document\", \"core.document\"),\r\n defaultCol(\"gender\", \"adverseEvent.gender\"),\r\n defaultCol(\"age\", \"core.age\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n dateColumn(\"treatmentStartDate\", \"additionalMedications.treatmentStartDate\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"actualWeight\", \"core.weight\"),\r\n defaultCol(\"actualDose\", \"controlPanelRm.dose\"),\r\n defaultCol(\"infusionRate\", \"formula.infusionRate\"),\r\n defaultCol(\"concentration\", \"controlPanelRm.concentration\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"medicineAmount\", \"core.medicineAmountFormulated\"),\r\n defaultCol(\r\n \"prescriptionDescription\",\r\n \"controlPanelRm.prescriptionDescription\"\r\n ),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n {\r\n name: \"lastProcessingDate\",\r\n label: IntlGetText(\"core.lastProcessingDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"olfRadicacionDate\", \"core.olfRadicacionDate\"),\r\n {\r\n name: \"previousDeliveryDate\",\r\n label: IntlGetText(\"core.previousDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actualDeliveryDate\",\r\n label: IntlGetText(\"core.actualDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"totalDeliveredMonth\", \"core.totalDeliveredMonth\"),\r\n defaultCol(\"currentDeliveryNumber\", \"core.currentDeliveryNumber\"),\r\n defaultCol(\"numberScheduledDeliveries\", \"core.numberScheduledDeliveries\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\"),\r\n defaultCol(\"lastNoteNursingTracing\", \"core.lastNoteNursingTracing\"),\r\n ];\r\n};\r\n\r\nconst ControlPanelReport = ({ productBehavior }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => getControlPanelReportFile(productBehavior),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!productBehavior && productBehavior !== 0) return;\r\n\r\n callApi(\r\n () => getControlPanelReport(productBehavior),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [productBehavior]);\r\n\r\n let columns = [];\r\n if (productBehavior === ProductBehavior.remodulin)\r\n columns = getRemodulinCols(reportData);\r\n else if (productBehavior === ProductBehavior.iclusig)\r\n columns = getIclusigCols(reportData);\r\n else if (productBehavior === ProductBehavior.galafold)\r\n columns = getGalafoldCols(reportData);\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ControlPanelReport;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport {\r\n callApi,\r\n getRemodulinPumpReport,\r\n getRemodulinPumpReportFile,\r\n} from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst RemodulinPumpsReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => getRemodulinPumpReportFile(dateRange.startDate, dateRange.endDate),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getRemodulinPumpReport(dateRange.startDate, dateRange.endDate),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const getObj = (tableMeta) =>\r\n reportData.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"nurse\", \"core.activity\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impactDate\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"lotNumber\", \"medicineDelivery.lotNumber\"),\r\n defaultCol(\"serial\", \"core.serial\"),\r\n defaultCol(\"model\", \"core.model\"),\r\n defaultCol(\"state\", \"core.state\"),\r\n ];\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default RemodulinPumpsReport;\r\n","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { callApi } from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\n\r\nconst DownloadReportFile = ({ dateRange, actionApi }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => actionApi(dateRange.startDate, dateRange.endDate),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default DownloadReportFile;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { callApi, getReportBCRHema } from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst BCRHemogramaReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getReportBCRHema(dateRange.startDate, dateRange.endDate),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const getObj = (tableMeta) =>\r\n reportData.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patient\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n {\r\n name: \"formulationDate\",\r\n label: IntlGetText(\"core.formulationDate\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"nurse\", \"core.activity\"),\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"bcrDateTake\", \"reportBCRHemograma.bcrDateTake\"),\r\n defaultCol(\"hemaDateTake\", \"reportBCRHemograma.hemaDateTake\"),\r\n ];\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default BCRHemogramaReport;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport DlgNurses from \"components/DlgNurses\";\r\nimport { callApi, getExpirationReport } from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\nimport { ExpirationReportTypeEnum } from \"constants/Enums\";\r\n\r\nconst getObj = (tableMeta, data) =>\r\n data.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\nconst getDateCol = (name, textId) => {\r\n return {\r\n name: name,\r\n label: IntlGetText(textId),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n };\r\n};\r\n\r\nconst getBaseCols = (data) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patientName\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"pathology\", \"core.pathology\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n ];\r\n};\r\n\r\nconst ExpirationReport = ({ dateRange, type }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getExpirationReport(type, dateRange.startDate, dateRange.endDate),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const columns = getBaseCols(reportData);\r\n if (type === ExpirationReportTypeEnum.formula) {\r\n columns.push(getDateCol(\"endDate\", \"core.expirationDateFormula\"));\r\n } else if (type === ExpirationReportTypeEnum.authorization) {\r\n columns.push(\r\n getDateCol(\r\n \"authorizationDate\",\r\n \"insuranceAuthorization.authorizationDate\"\r\n )\r\n );\r\n columns.push(\r\n defaultCol(\"authorizationCode\", \"insuranceAuthorization.code\")\r\n );\r\n columns.push(defaultCol(\"medicineAmount\", \"formula.medicineAmount\"));\r\n columns.push(\r\n getDateCol(\"expirationDate\", \"insuranceAuthorization.expirationDate\")\r\n );\r\n } else if (type === ExpirationReportTypeEnum.delivery) {\r\n columns.push(getDateCol(\"lasDeliveryDate\", \"reports.lasDeliveryDate\"));\r\n columns.push(defaultCol(\"medicineAmount\", \"formula.medicineAmount\"));\r\n }\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ExpirationReport;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n callApi,\r\n getMoriskyExtended,\r\n getMoriskyExtendedReport,\r\n} from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nfunction MoriskyInfo(props) {\r\n const { dateRange } = props;\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => getMoriskyExtendedReport(dateRange.startDate, dateRange.endDate),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getMoriskyExtended(dateRange.startDate, dateRange.endDate),\r\n (data) => setData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const getObj = (tableMeta) =>\r\n data.find((x) => x.patientCode === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"patientCode\",\r\n label: IntlGetText(\"core.patient\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"nurse\", \"core.nurse\"),\r\n defaultCol(\"doctor\", \"core.doctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"patology\", \"core.patology\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"prescribedDosage\", \"core.prescribedDosage\"),\r\n defaultCol(\"currentDosage\", \"core.currentDosage\"),\r\n {\r\n name: \"question\",\r\n label: IntlGetText(\"core.question\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n const key = \"morisky.question\" + value;\r\n return ;\r\n },\r\n },\r\n },\r\n defaultCol(\"answerScore\", \"core.answer\"),\r\n defaultCol(\"result\", \"morisKySurvey.result\"),\r\n defaultCol(\"comment\", \"core.comment\"),\r\n ];\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default MoriskyInfo;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { callApi, getReportPendingRSVariables } from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst PendingRSVariables = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n useEffect(() => {\r\n callApi(\r\n getReportPendingRSVariables,\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, []);\r\n\r\n const getObj = (tableMeta) =>\r\n reportData.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"patient\", \"core.patient\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n {\r\n name: \"formulationDate\",\r\n label: IntlGetText(\"core.formulationDate\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"nurse\", \"core.activity\"),\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"catheterism\", \"reportPendingRSVariables.catheterism\"),\r\n defaultCol(\"ecocardiogram\", \"core.ecocardiogram\"),\r\n defaultCol(\"proBNP\", \"core.proBNP\"),\r\n defaultCol(\"hike6M\", \"core.hike6M\"),\r\n ];\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PendingRSVariables;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport {\r\n callApi,\r\n postSuspendedOrDeceasedFile,\r\n postSuspendedOrDeceased,\r\n} from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nfunction SuspendedPatients() {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => postSuspendedOrDeceasedFile(),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n useEffect(() => {\r\n callApi(\r\n () => postSuspendedOrDeceased(),\r\n (data) => setData(data),\r\n fnSetLoader\r\n );\r\n }, []);\r\n\r\n const getObj = (tableMeta) =>\r\n data.find((x) => x.code === tableMeta.rowData[0]);\r\n const columns = [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"fullName\", \"PatientSuspended.Header.PatientName\"),\r\n defaultCol(\r\n \"accessProfessional\",\r\n \"core.city\"\r\n ),\r\n defaultCol(\"doctor\", \"PatientSuspended.Header.Doctor\"),\r\n defaultCol(\"eps\", \"PatientSuspended.Header.Eps\"),\r\n defaultCol(\"ips\", \"PatientSuspended.Header.Ips\"),\r\n {\r\n name: \"treatmentStartDate\",\r\n label: IntlGetText(\"PatientSuspended.Header.TreatmentStartDate\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"dosage\", \"PatientSuspended.Header.Dosage\"),\r\n {\r\n name: \"findingDate\",\r\n label: IntlGetText(\"PatientSuspended.Header.FindingDate\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"patientState\", \"PatientSuspended.Header.PatientType\"),\r\n defaultCol(\r\n \"medicalSuspensionReason\",\r\n \"PatientSuspended.Header.SuspensionReason\"\r\n ),\r\n defaultCol(\"comment\", \"PatientSuspended.Header.Comment\"),\r\n ];\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n}\r\n\r\nexport default SuspendedPatients;\r\n","import React, { useEffect} from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { callApi, getAllExternalReports, deleteExternalReport } from \"api/apiList\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst onClick = (url) => () => {\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n};\r\n\r\nconst CustomTable = ({handleOpenCRU, data, setData, setCurrentRowObj}) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const handleDelete = (id) => {\r\n callApi(\r\n () => deleteExternalReport(id),\r\n (data)=>setData(data)\r\n );\r\n };\r\n useEffect(() => {\r\n callApi(\r\n ()=>getAllExternalReports(),\r\n (data)=> setData(data),\r\n fnSetLoader);\r\n }, []);\r\n \r\n const handleClick = (obj) => {\r\n handleOpenCRU();\r\n setCurrentRowObj(obj);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"date\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"DD-MM-YYYY\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol('description','core.description'),\r\n {\r\n name: \"url\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n <>\r\n \r\n \r\n \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n handleDelete(rowObj.id)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n )\r\n }\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n };\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default CustomTable;\r\n","import React, { useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, obj, handleCreateUpdate}) => { \r\n\r\n const defaultValues = {\r\n date: new Date(),\r\n description: \"\",\r\n link: \"\"\r\n };\r\n const validationSchema = { \r\n description: yup.string().required(),\r\n link: yup.string().required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, reset, errors, getValues } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"date\", !obj || !obj.date ? \"\" : obj.date);\r\n setValue(\"description\", !obj || !obj.description ? \"\" : obj.description);\r\n setValue(\"link\", !obj || !obj.link ? \"\" : obj.link);\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n date: d.date == \"\" ? new Date() : d.date,\r\n description: d.description,\r\n link: d.link\r\n };\r\n await handleCreateUpdate(item);\r\n };\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"DD-MM-YYYY\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React, { useState } from \"react\";\r\nimport { IconButton } from \"@material-ui/core\";\r\nimport CustomTable from \"./table\";\r\nimport FormCreateUpdate from \"./form\";\r\nimport { callApi, putExternalReport, patchExternalReport } from \"api/apiList\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst ExternalReports = () => {\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n const [openDlgDelete, setOpenDlgDelete] = useState(false);\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => {\r\n dispatch(setLoader(data))\r\n setOpenCRU(false)\r\n };\r\n const [data, setData] = useState();\r\n\r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n setCurrentRowObj(null);\r\n }\r\n const handleCreateUpdate = async (report) => {\r\n if (report.id < 1)\r\n {\r\n callApi(\r\n ()=>putExternalReport(report),\r\n (data)=> setData(data),\r\n fnSetLoader);\r\n }\r\n else\r\n {\r\n callApi(\r\n ()=>patchExternalReport(report),\r\n (data)=> setData(data),\r\n fnSetLoader);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n
    \r\n setOpenCRU(true)}\r\n >\r\n \r\n \r\n
    \r\n setOpenCRU(true)}\r\n data={data}\r\n setData={setData}\r\n setCurrentRowObj={setCurrentRowObj}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default ExternalReports;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { callApi, getEventTrainingReport } from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst FeedbackEventTraining = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getEventTrainingReport(dateRange.startDate, dateRange.endDate),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const columns = [\r\n {\r\n name: \"trainingDate\",\r\n label: IntlGetText(\"core.date\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"name\", \"core.name\"),\r\n defaultCol(\"description\", \"core.description\"),\r\n defaultCol(\"nurse\", \"core.nurse\"),\r\n defaultCol(\"comment\", \"core.comment\")\r\n ];\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default FeedbackEventTraining;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ImpactReport from \"./impacts\";\r\nimport ControlPanelReport from \"./controlPanel\";\r\nimport RemodulinPumps from \"./remodulinPumps\";\r\nimport DownloadReportFile from \"./downloadReportFile\";\r\nimport BCRHemogramaReport from \"./bcrHemograma\";\r\nimport ExpirationReport from \"./expirationReport\";\r\n//import ExpirationReport from \"./patientReport\";\r\nimport MoriskyInfo from \"./moriskyInfo\";\r\nimport PendingRSVariables from \"./pendingRSVariables\";\r\nimport SuspendedPatients from \"./suspendedPatients\";\r\nimport ExternalReports from \"./externalReport\"\r\nimport FeedbackEventTraining from \"./feedbackEventTraining\"\r\nimport { getUserInfo, isJaasModule, isRole, getBoolSetting } from \"app/routes/psp/services/userService\";\r\nimport {\r\n ProductBehavior,\r\n ReportListPint,\r\n ReportListGeneric,\r\n ReportEnum,\r\n ExpirationReportTypeEnum,\r\n ShardKeyEnum,\r\n RoleEnum,\r\n SettingsEnum\r\n} from \"constants/Enums\";\r\nimport {\r\n getClinicHistoryReportFile,\r\n getSuveyMoriskyReportFile,\r\n getConsumptionReportFile,\r\n getCatheterChangeReportFile,\r\n getCubeReportFile,\r\n getConsolidatedSupplyReport,\r\n getDoseChangeReportFile,\r\n GetPatientsTotalFile,\r\n postControlPanelDeliveries,\r\n postRemodulinVialsReport,\r\n getWoundClinicReportFile,\r\n getGeneralJaasielReportFile,\r\n getBehringerReportFile,\r\n getCelltrionReportFile\r\n} from \"api/apiList\";\r\n\r\nconst Reports = () => {\r\n const [dateRange, setDateRange] = useState(null);\r\n const [maxEndDate, setMaxEndDate] = useState(undefined);\r\n const [minEndDate, setMinEndDate] = useState(undefined);\r\n const [disabledEndDate, setDisabledEndDate] = useState(false);\r\n const msgEndDate =\r\n IntlGetText(\"clinicalFindingState.endDateInvalid\") +\r\n IntlGetText(\"core.startDate\");\r\n\r\n const defaultValues = {\r\n startDate: null\r\n };\r\n\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, trigger, getValues, watch , setValue} = methods;\r\n\r\n const reportValue = watch(\"report\");\r\n const startDateValue = watch(\"startDate\");\r\n\r\n const showReport = (reportId) =>\r\n reportValue && reportValue.value === reportId;\r\n\r\n const showDateRange = (reportId) => {\r\n if (!reportValue) return true;\r\n var reportId = reportValue.value;\r\n return (\r\n reportId !== ReportEnum.controlPanelRemodulin &&\r\n reportId !== ReportEnum.controlPanelIclusig &&\r\n reportId !== ReportEnum.controlPanelGalafold &&\r\n reportId !== ReportEnum.pendingRSVariables &&\r\n reportId !== ReportEnum.suspendedPatients &&\r\n reportId !== ReportEnum.externalReports &&\r\n reportId !== ReportEnum.deliveries \r\n );\r\n };\r\n const isCelltrion = getUserInfo().shardKey === ShardKeyEnum.celltrion;\r\n const isBehringer = getUserInfo().shardKey === ShardKeyEnum.atulado;\r\n const isUllpukuy = getUserInfo().shardKey === ShardKeyEnum.ullkupuy;\r\n const isJaasielModule = isJaasModule();\r\n const isReportMorisky = getBoolSetting(SettingsEnum.reportMorisky);\r\n\r\n const getReportList = () => {\r\n if(isBehringer){\r\n const filteredReports = ReportListGeneric().filter(x=>x.id != ReportEnum.woundClinic && x.id != ReportEnum.generalJaasiel);\r\n filteredReports.push({ id: 32, name: IntlGetText(\"report.behringer\") });\r\n return filteredReports;\r\n }\r\n if(isCelltrion){\r\n const filteredReports = ReportListGeneric().filter(x=>x.id != ReportEnum.woundClinic && x.id != ReportEnum.generalJaasiel);\r\n filteredReports.push({ id: 33, name: IntlGetText(\"report.celltrion\") });\r\n return filteredReports;\r\n }\r\n if(getUserInfo().shardKey === ShardKeyEnum.pintPharma){\r\n return ReportListPint();\r\n }\r\n if(isUllpukuy){\r\n const isPatientAssignment = isRole(RoleEnum.patient_assignment);\r\n const isCoordinator = isRole(RoleEnum.psp_coordinator);\r\n const isManager = isRole(RoleEnum.psp_manager);\r\n if(isPatientAssignment && !isManager && !isCoordinator)\r\n return ReportListGeneric().filter(x=>x.id == ReportEnum.impacts);\r\n return ReportListGeneric().filter(x=>x.id != ReportEnum.generalJaasiel && x.id);\r\n }\r\n if(isJaasielModule)\r\n {\r\n if(isReportMorisky){\r\n const filteredReports = ReportListGeneric().filter(x=>x.id != ReportEnum.woundClinic);\r\n filteredReports.push({ id: 26, name: IntlGetText(\"reports.surveyMorisky\") });\r\n return filteredReports;\r\n }\r\n return ReportListGeneric().filter(x=>x.id != ReportEnum.woundClinic);\r\n }\r\n \r\n if(isReportMorisky){\r\n const filteredReports = ReportListGeneric().filter(x => x.id != ReportEnum.woundClinic && x.id != ReportEnum.generalJaasiel);\r\n filteredReports.push({ id: 26, name: IntlGetText(\"reports.surveyMorisky\") });\r\n return filteredReports;\r\n }\r\n return ReportListGeneric().filter(x=>x.id != ReportEnum.woundClinic && x.id != ReportEnum.generalJaasiel);\r\n }\r\n\r\n useEffect(() => {\r\n if(reportValue && reportValue.value == ReportEnum.behringerReport){\r\n setDisabledEndDate(true);\r\n if(startDateValue != null){\r\n const year = dayjs(startDateValue).year(); \r\n const month = dayjs(startDateValue).month(); \r\n const lastDayOfMonth = dayjs(startDateValue).endOf('month').date();\r\n setMinEndDate(dayjs(`${year}-${month + 1}-01`));\r\n setMaxEndDate(dayjs(`${year}-${month + 1}-${lastDayOfMonth}`));\r\n setValue(\"endDate\",dayjs(`${year}-${month + 1}-${lastDayOfMonth}`));\r\n }\r\n }else{\r\n setDisabledEndDate(false);\r\n setMinEndDate(undefined);\r\n setMaxEndDate(undefined);\r\n }\r\n }, [reportValue, startDateValue])\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n }\r\n options={getReportList()}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {showDateRange() && (\r\n <>\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n minDate = {minEndDate}\r\n maxDate = {maxEndDate}\r\n disabled = {disabledEndDate}\r\n />\r\n \r\n\r\n \r\n {\r\n if (!(await trigger())) return;\r\n var range = getValues();\r\n var rangeFormated = {\r\n startDate: dayjs(range.startDate).format(\r\n \"YYYY-MM-DDT00:00:00\"\r\n ),\r\n endDate: !range.endDate ? \r\n dayjs().format(\"YYYY-MM-DDT00:00:00\"): \r\n dayjs(range.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n };\r\n setDateRange(rangeFormated);\r\n }}\r\n className=\"mt-3\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n
    \r\n {showReport(ReportEnum.impacts) && }\r\n {showReport(ReportEnum.controlPanelRemodulin) && (\r\n \r\n )}\r\n {showReport(ReportEnum.controlPanelIclusig) && (\r\n \r\n )}\r\n {showReport(ReportEnum.controlPanelGalafold) && (\r\n \r\n )}\r\n {showReport(ReportEnum.clinicHistory) && (\r\n \r\n )}\r\n {showReport(ReportEnum.surveyMorisky) && (\r\n \r\n )}\r\n {showReport(ReportEnum.patientsReport) && (\r\n \r\n )}\r\n {showReport(ReportEnum.medicineConsumption) && (\r\n \r\n )}\r\n {showReport(ReportEnum.remodulinPumps) && (\r\n \r\n )}\r\n {showReport(ReportEnum.catherChange) && (\r\n \r\n )}\r\n {showReport(ReportEnum.bcrHemograma) && (\r\n \r\n )}\r\n {showReport(ReportEnum.pspCube) && (\r\n \r\n )}\r\n {showReport(ReportEnum.formulaExpiration) && (\r\n \r\n )}\r\n {showReport(ReportEnum.authorizationExpiration) && (\r\n \r\n )}\r\n {showReport(ReportEnum.deliveryExpiration) && (\r\n \r\n )}\r\n {showReport(ReportEnum.supplyReport) && (\r\n \r\n )}\r\n {showReport(ReportEnum.morisky) && }\r\n {showReport(ReportEnum.pendingRSVariables) && }\r\n {showReport(ReportEnum.doseChange) && (\r\n \r\n )}\r\n {showReport(ReportEnum.suspendedPatients) && }\r\n {showReport(ReportEnum.externalReports) && }\r\n {showReport(ReportEnum.feedbackEventTraining) && (\r\n \r\n )}\r\n {showReport(ReportEnum.deliveries) && (\r\n postControlPanelDeliveries({})}\r\n />\r\n )} \r\n {showReport(ReportEnum.remodulinVials) && (\r\n postRemodulinVialsReport(dateRange)}\r\n />\r\n )} \r\n {showReport(ReportEnum.woundClinic) && (\r\n \r\n )}\r\n {showReport(ReportEnum.generalJaasiel) && (\r\n \r\n )}\r\n {showReport(ReportEnum.behringerReport) && (\r\n \r\n )}\r\n {showReport(ReportEnum.celltrionReport) && (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default Reports;\r\n","import React from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { callApi } from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\n\r\n\r\nconst DownloadReportFile = ({ dateRange, actionApi, className=\"col-lg-12 col-md-12 col-xs-12 text-left mt-2 mb-4\" }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const downloadReport = () => {\r\n if(!actionApi)\r\n return;\r\n callApi(\r\n () => actionApi(dateRange.startDate, dateRange.endDate, true),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default DownloadReportFile;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n getPrescriptionReportFile\r\n} from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol, dateColumn } from \"components/Form/Table\";\r\n\r\nconst PrescripctionsReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getPrescriptionReportFile(dateRange.startDate, dateRange.endDate, false),\r\n (data) => setReportData(data.dataTable),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const columns = [\r\n defaultCol(\"nurse\", \"role.callAgent\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"insurance\", \"core.insurance\"),\r\n defaultCol(\"patientDocument\", \"core.documentShort\"),\r\n defaultCol(\"patient\", \"core.patient\"),\r\n defaultCol(\"marketchain\", \"reports.marketChain\"),\r\n defaultCol(\"prescriptionCode\", \"core.mipres\"),\r\n dateColumn(\"expeditionDate\", \"core.expeditionDateShort\"),\r\n dateColumn(\"expirationDate\", \"core.expirationDate\"),\r\n defaultCol(\"causal\", \"core.causal\"),\r\n defaultCol(\"state\", \"core.state\"),\r\n defaultCol(\"numberDeliveries\", \"insuranceAuthorization.deliveryNumber\"),\r\n defaultCol(\"medicineAmount\", \"core.totalAmount\"),\r\n defaultCol(\"unitValue\", \"core.unitValue\"),\r\n defaultCol(\"product\", \"core.product\"),\r\n defaultCol(\"deliveriesMade\", \"medicineDelivery.medicineAmount\"),\r\n dateColumn(\"lastDelivery\", \"controlPanelGl.previousDeliveryDate\"),\r\n ];\r\n\r\n return (\r\n <> \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PrescripctionsReport;\r\n","export const currencyFormat = (locale, number) => {\r\n return new Intl.NumberFormat(locale).format(number)\r\n};","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n getDeliveriesReportFile\r\n} from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol, dateColumn, numberCol } from \"components/Form/Table\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\nimport AppLocale from \"lngProvider\";\r\n\r\nconst DeliveriesReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => getDeliveriesReportFile(dateRange.startDate, dateRange.endDate, false),\r\n (data) => setReportData(data.dataTable),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const columns = [\r\n defaultCol(\"nurse\", \"role.callAgent\"),\r\n dateColumn(\"impactDate\", \"core.impactDate\"),\r\n defaultCol(\"patientDocument\", \"adverseEvent.document\"),\r\n defaultCol(\"patient\", \"core.patient\"),\r\n defaultCol(\"marketchain\", \"reports.marketChain\"),\r\n defaultCol(\"prescriptionCode\", \"core.mipres\"),\r\n dateColumn(\"expeditionDate\", \"core.expeditionDateShort\"),\r\n dateColumn(\"expirationDate\", \"core.expirationDate\"),\r\n defaultCol(\"causal\", \"core.causal\"),\r\n defaultCol(\"state\", \"core.state\"),\r\n defaultCol(\"numberDeliveries\", \"insuranceAuthorization.deliveryNumber\"),\r\n defaultCol(\"medicineAmount\", \"core.totalAmount\"),\r\n numberCol(\"unitValue\", \"core.unitValue\", currentLocale, currencyFormat),\r\n defaultCol(\"product\", \"core.product\"),\r\n defaultCol(\"deliveredAmount\", \"medicineDelivery.medicineAmount\"),\r\n dateColumn(\"deliveryDate\", \"radicadoOLF.dlvrDate\"),\r\n dateColumn(\"planningDate\", \"reports.planninDate\"),\r\n defaultCol(\"deliveryMode\", \"dashboard.charTitle.deliveryMode\"),\r\n // defaultCol(\"city\", \"core.city\"),\r\n // defaultCol(\"insurance\", \"core.insurance\"),\r\n // defaultCol(\"point\", \"insuranceAuthorization.marketChainBranch\"),\r\n // defaultCol(\"comment\", \"core.comment\"),\r\n ];\r\n\r\n return (\r\n <> \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default DeliveriesReport;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport { callApiAsync, postCoordinatorComment } from \"api/apiList\";\r\n\r\nconst DlgCoachComment = ({openDlg, closeDialog, callBack, impact, isManager }) =>{ \r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [disabled, setDisabled] = useState(false);\r\n \r\n const defaultValues = { comment:\"\" };\r\n\r\n const validationSchema = {\r\n comment: yup.string().required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const isEditable = (impact) =>{\r\n if(!isManager)\r\n return false;\r\n\r\n if(impact && !impact.coordComment)\r\n return true;\r\n\r\n var isEditable = impact && impact.coordCommentDate && dayjs(impact.coordCommentDate).format(\"YYYY/MM/DD\") === dayjs().format(\"YYYY/MM/DD\");\r\n return isEditable;\r\n }\r\n\r\n const loadData=(data)=>{\r\n setDisabled(!isEditable(data));\r\n setValue(\"comment\", !data || !data.coordComment ? \"\" : data.coordComment);\r\n setValue(\"coordinator\", !data || !data.coordinator ? \"\" : data.coordinator);\r\n };\r\n\r\n useEffect(() => {\r\n if(!openDlg) return;\r\n setTimeout(() => {\r\n loadData(impact);\r\n }, 300);\r\n }, [openDlg,impact]);\r\n\r\n const onSubmitAsync = handleSubmit(async (d)=>{\r\n const coordComment = {\r\n impactId: impact.id,\r\n comment: d.comment\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postCoordinatorComment(coordComment),\r\n ()=>{\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n },\r\n fnSetLoader\r\n );\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n { impact && impact.coordinator && \r\n \r\n }\r\n variant=\"outlined\"\r\n disabled={true}\r\n />\r\n \r\n }\r\n \r\n }\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default DlgCoachComment;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport {\r\n callApi,\r\n getImpactsReportFile\r\n} from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol, dateColumn } from \"components/Form/Table\";\r\nimport { RoleEnum } from 'constants/Enums';\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport DlgCoachComment from \"../components/dlgCoachComment\";\r\n\r\nconst ImpactsReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n const [currentImpact, setCurrentImpact] = useState(null);\r\n const [openDlgComment, setOpenDlgComment] = useState(false);\r\n \r\n const isManager = isRole(RoleEnum.callAgentManager);\r\n\r\n const loadTable = () => {\r\n callApi(\r\n () => getImpactsReportFile(dateRange.startDate, dateRange.endDate, false),\r\n (data) => setReportData(data.dataTable),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n loadTable();\r\n }, [dateRange]);\r\n\r\n const getObj = (tableMeta) =>\r\n reportData.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"nurse\", \"role.callAgent\"),\r\n defaultCol(\"marketchain\", \"reports.marketChain\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"patientDocument\", \"core.patient\"),\r\n defaultCol(\"prescriptionCode\", \"core.mipres\"),\r\n defaultCol(\"impactType\", \"impact.ImpactType\"),\r\n dateColumn(\"startDate\", \"core.startDate\"),\r\n dateColumn(\"endDate\", \"core.endDate\"),\r\n defaultCol(\"nursingNote\", \"core.comment\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"table.coordinatorComment\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(!isManager && !rowObj.coordComment)\r\n return \"\";\r\n\r\n var tooltipTitle = \"reports.coordinatorComment\";\r\n var isEditable = rowObj.coordCommentDate && dayjs(rowObj.coordCommentDate).format(\"YYYY/MM/DD\") === dayjs().format(\"YYYY/MM/DD\");\r\n var bottonIcon = isManager ? (!rowObj.coordComment ? \"zmdi zmdi-plus\" : ( isEditable ? \"zmdi zmdi-edit\" : \"zmdi zmdi-eye\")) : \"zmdi zmdi-eye\";// \"zmdi zmdi-plus\" \r\n \r\n return (\r\n
    \r\n } \r\n placement=\"bottom-end\">\r\n {\r\n setCurrentImpact(rowObj);\r\n setOpenDlgComment(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n }\r\n ];\r\n\r\n return (\r\n <>\r\n {\r\n setCurrentImpact(null);\r\n setOpenDlgComment(false);\r\n }}\r\n callBack={loadTable}\r\n impact={currentImpact}\r\n isManager={isManager}/>\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ImpactsReport;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n GetPrescriptionsTotalReportFile\r\n} from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol, dateColumn, numberCol } from \"components/Form/Table\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\nimport AppLocale from \"lngProvider\";\r\n\r\nconst PrescripctionsTotalReport = ({ dateRange }) => {\r\n const dispatch = useDispatch();\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n useEffect(() => {\r\n if (!dateRange) return;\r\n\r\n callApi(\r\n () => GetPrescriptionsTotalReportFile(dateRange.startDate, dateRange.endDate, false),\r\n (data) => setReportData(data.dataTable),\r\n fnSetLoader\r\n );\r\n }, [dateRange]);\r\n\r\n const columns = [\r\n defaultCol(\"mipres\", \"core.mipres\"),\r\n dateColumn(\"creationDate\", \"core.creationDate\"),\r\n defaultCol(\"causal\", \"core.causal\"),\r\n defaultCol(\"classificationId\", \"foreia.classification\"),\r\n defaultCol(\"dataState\", \"core.state\"),\r\n defaultCol(\"amount\", \"core.totalAmount\"),\r\n defaultCol(\"unitValue\", \"core.unitValue\", currentLocale, currencyFormat),\r\n defaultCol(\"product\", \"core.product\"),\r\n defaultCol(\"agent\", \"role.callAgent\"),\r\n defaultCol(\"olf\", \"reports.marketChain\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n ];\r\n\r\n return (\r\n <> \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PrescripctionsTotalReport;\r\n","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport DownloadReportFile from \"components/Reports/downloadReportFile\";\r\nimport PrescripctionsReport from \"./prescriptions\"\r\nimport DeliveriesReport from \"./deliveries\"\r\nimport ImpactsReport from \"./impacts\"\r\nimport PrescripctionsTotalReport from \"./prescriptionsTotal\"\r\nimport { \r\n getPrescriptionReportFile,\r\n getDeliveriesReportFile,\r\n getImpactsReportFile,\r\n GetPrescriptionsTotalReportFile\r\n} from \"api/apiList\";\r\nimport {\r\n ReportList,\r\n ReportListEnum\r\n} from \"constants/Enums\";\r\n\r\nconst Reports = () => {\r\n const [dateRange, setDateRange] = useState(null);\r\n const msgEndDate =\r\n IntlGetText(\"clinicalFindingState.endDateInvalid\") +\r\n IntlGetText(\"core.startDate\");\r\n\r\n const defaultValues = {\r\n startDate: null\r\n };\r\n\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, trigger, getValues, watch } = methods;\r\n\r\n const reportValue = watch(\"report\");\r\n\r\n const showReport = (reportId) =>\r\n reportValue && reportValue.value === reportId;\r\n\r\n const getAction=(reportItem)=>{\r\n if(!reportItem)\r\n return;\r\n const reportId = reportItem.value;\r\n switch(reportId){\r\n case ReportListEnum.prescriptions: return getPrescriptionReportFile;\r\n case ReportListEnum.deliveries: return getDeliveriesReportFile;\r\n case ReportListEnum.impacts: return getImpactsReportFile;\r\n case ReportListEnum.callAgent: return GetPrescriptionsTotalReportFile;\r\n }\r\n return null;\r\n }\r\n\r\n const showDateRange = (reportId) => {\r\n if (!reportValue) return true;\r\n\r\n return true;\r\n // var reportId = reportValue.value;\r\n // return (\r\n // reportId !== ReportEnum.controlPanelRemodulin &&\r\n // reportId !== ReportEnum.controlPanelIclusig &&\r\n // reportId !== ReportEnum.controlPanelGalafold &&\r\n // reportId !== ReportEnum.pendingRSVariables &&\r\n // reportId !== ReportEnum.suspendedPatients &&\r\n // reportId !== ReportEnum.externalReports\r\n // );\r\n };\r\n\r\n const getReportList = () => ReportList();\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n }\r\n options={getReportList()}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {showDateRange() && (\r\n <>\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n {\r\n if (!(await trigger())) return;\r\n var range = getValues();\r\n var rangeFormated = {\r\n startDate: dayjs(range.startDate).format(\r\n \"YYYY-MM-DDTHH:mm:ss\"\r\n ),\r\n endDate: !range.endDate ? \r\n dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"): \r\n dayjs(range.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n setDateRange(rangeFormated);\r\n }}\r\n className=\"mt-3\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n
    \r\n \r\n {showReport(ReportListEnum.prescriptions) && (\r\n \r\n )}\r\n {showReport(ReportListEnum.deliveries) && (\r\n \r\n )}\r\n {showReport(ReportListEnum.impacts) && (\r\n \r\n )}\r\n {showReport(ReportListEnum.callAgent) && (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default Reports;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport {\r\n callApi,\r\n getControlPanelReportRepKam,\r\n getControlPanelReportFileRepKam,\r\n} from \"api/apiList\";\r\nimport { downloadFile } from \"services/fileService\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\nimport { ProductBehavior } from \"constants/Enums\";\r\nimport DlgNurses from \"components/DlgNurses\";\r\n\r\nconst getObj = (tableMeta, data) =>\r\n data.find((x) => x.code === tableMeta.rowData[0]);\r\n\r\nconst dateFormat = \"YYYY/MM/DD\";\r\n\r\nconst getIclusigCols = (data, setCurrentPatientId) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n {\r\n setCurrentPatientId(rowObj.patientId);\r\n }}>\r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"formulatedDose\", \"core.formulatedDose\"),\r\n defaultCol(\"actualDose\", \"core.actualDose\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"formulaDuration\", \"core.formulaDuration\"),\r\n defaultCol(\r\n \"prescriptionDescription\",\r\n \"controlPanelRm.prescriptionDescription\"\r\n ),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n {\r\n name: \"lastProcessingDate\",\r\n label: IntlGetText(\"core.lastProcessingDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"olfRadicacionDate\",\r\n label: IntlGetText(\"core.olfRadicacionDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"previousDeliveryDate\",\r\n label: IntlGetText(\"core.previousDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actualDeliveryDate\",\r\n label: IntlGetText(\"core.actualDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"proyectionDeliveryDate\",\r\n label: IntlGetText(\"core.currentMonthProjection\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"currentDeliveryNumber\", \"core.currentDeliveryNumber\"),\r\n defaultCol(\"numberScheduledDeliveries\", \"core.numberScheduledDeliveries\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\")\r\n ];\r\n};\r\n\r\nconst getGalafoldCols = (data, setCurrentPatientId) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n {\r\n setCurrentPatientId(rowObj.patientId);\r\n }}>\r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\"formulaDuration\", \"core.formulationPeriod\"),\r\n defaultCol(\r\n \"prescriptionDescription\",\r\n \"controlPanelRm.prescriptionDescription\"\r\n ),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n {\r\n name: \"lastProcessingDate\",\r\n label: IntlGetText(\"core.lastProcessingDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"olfRadicacionDate\", \"core.olfRadicacionDate\"),\r\n {\r\n name: \"previousDeliveryDate\",\r\n label: IntlGetText(\"controlPanelGl.previousDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actualDeliveryDate\",\r\n label: IntlGetText(\"controlPanelGl.actualDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"proyectionDeliveryDate\",\r\n label: IntlGetText(\"core.currentMonthProjection\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"deliveriesMade\", \"core.deliveriesMade\"),\r\n defaultCol(\"scheduledDeliveries\", \"core.scheduledDeliveries\"),\r\n defaultCol(\"blisterStartDate\", \"controlPanelGl.blisterStartDate\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\")\r\n ];\r\n};\r\n\r\nconst getRemodulinCols = (data, setCurrentPatientId) => {\r\n return [\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return (\r\n {\r\n setCurrentPatientId(rowObj.patientId);\r\n }}>\r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"core.nurse\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta, data);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol(\"doctor\", \"core.attendingDoctor\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"regime\", \"core.regime\"),\r\n defaultCol(\"ips\", \"core.institution\"),\r\n defaultCol(\"olf\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"patientState\", \"core.status\"),\r\n defaultCol(\"actualDose\", \"controlPanelRm.dose\"),\r\n //defaultCol(\"infusionRate\", \"formula.infusionRate\"),\r\n defaultCol(\"concentration\", \"controlPanelRm.concentration\"),\r\n defaultCol(\"formulationDate\", \"core.formulationDate\"),\r\n defaultCol(\r\n \"prescriptionDescription\",\r\n \"controlPanelRm.prescriptionDescription\"\r\n ),\r\n defaultCol(\"formulaDuration\", \"core.formulaDuration\"),\r\n defaultCol(\"prescriptionState\", \"core.prescriptionState\"),\r\n {\r\n name: \"lastProcessingDate\",\r\n label: IntlGetText(\"core.lastProcessingDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"olfRadicacionDate\", \"core.olfRadicacionDate\"),\r\n {\r\n name: \"previousDeliveryDate\",\r\n label: IntlGetText(\"core.previousDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"actualDeliveryDate\",\r\n label: IntlGetText(\"core.actualDeliveryDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"proyectionDeliveryDate\",\r\n label: IntlGetText(\"core.currentMonthProjection\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(dateFormat) : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"currentDeliveryNumber\", \"core.currentDeliveryNumber\"),\r\n defaultCol(\"numberScheduledDeliveries\", \"core.numberScheduledDeliveries\"),\r\n defaultCol(\"lastNoteNursing\", \"morisKySurvey.comment\"),\r\n ];\r\n};\r\n\r\nconst ControlPanelReport = ({ productBehavior, setOpenDlgDetail, setCurrentPatientId }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [reportData, setReportData] = useState([]);\r\n\r\n const downloadReport = () => {\r\n callApi(\r\n () => getControlPanelReportFileRepKam(productBehavior),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (!productBehavior && productBehavior !== 0) return;\r\n\r\n callApi(\r\n () => getControlPanelReportRepKam(productBehavior),\r\n (data) => setReportData(data),\r\n fnSetLoader\r\n );\r\n }, [productBehavior]);\r\n\r\n let columns = [];\r\n if (productBehavior === ProductBehavior.remodulin)\r\n columns = getRemodulinCols(reportData, setCurrentPatientId);\r\n else if (productBehavior === ProductBehavior.iclusig)\r\n columns = getIclusigCols(reportData, setCurrentPatientId);\r\n else if (productBehavior === ProductBehavior.galafold)\r\n columns = getGalafoldCols(reportData, setCurrentPatientId);\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ControlPanelReport;\r\n","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { callApi, getProductsAndStates } from \"api/apiList\";\r\n\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const [impactTypeList,setImpactTypeList] = useState([]);\r\n\r\n useEffect(()=>{\r\n callApi(\r\n getProductsAndStates,\r\n (data)=>{ \r\n setImpactTypeList(data.prescriptionStates.filter(x=>x.isImpactType));\r\n }\r\n );\r\n },[]);\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"code\", \"radicacionInsurance.Code\"),\r\n {\r\n name: \"radicacionDate\",\r\n label: IntlGetText(\"radicadoOLF.radicadoDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"radicacionPoint\", \"radicacionInsurance.radicacionPoint\")\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","\r\nimport React, { useState, useEffect } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"radicadoInsuranceCode\",\r\n label: IntlGetText(\"insuranceAuthorization.radicadoInsuranceCode\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return rowObj.radicadoInsuranceCode \r\n ? rowObj.radicadoInsuranceCode \r\n : ( !rowObj.radicadoInsuranceDate ? \"\" : dayjs(rowObj.radicadoInsuranceDate).format(\"YYYY/MM/DD\"));\r\n }\r\n }\r\n },\r\n defaultCol(\"code\", \"insuranceAuthorization.codeNumber\"),\r\n defaultCol(\"marketChain\", \"insuranceAuthorization.marketChain\"),\r\n defaultCol(\"medicineAmount\", \"insuranceAuthorization.medicineAmountDelivery\"),\r\n {\r\n name: \"expirationDate\",\r\n label: IntlGetText(\"insuranceAuthorization.expirationDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"adverseEventProcess.files\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if(value){\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n return \"\";\r\n },\r\n },\r\n }\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","\r\nimport React from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\n\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"authorizationCode\", \"insuranceAuthorization.codeNumber\"),\r\n defaultCol(\"code\", \"radicadoOLF.pendDate\"),\r\n {\r\n name: \"radicadoDate\",\r\n label: IntlGetText(\"radicadoOLF.radicadoDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"medicineAmount\", \"core.amount\"),\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"adverseEventProcess.files\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if(value){\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n return \"\";\r\n },\r\n },\r\n }\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle\r\n} from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\n\r\n\r\nconst DeliveryDetail = ({data, openDlg, handleRequestClose}) => {\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n defaultCol(\"lotNumber\", \"medicineDelivery.lotNumber\"),\r\n {\r\n name: \"expirationDate\",\r\n label: IntlGetText(\"medicineDelivery.expirationDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n ];\r\n \r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}; \r\n\r\nexport default DeliveryDetail;","\r\nimport React, { useState } from \"react\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\nimport { DownloadButton2 } from \"components/DownloadButton/index\";\r\nimport DeliveryDetail from \"./DeliveryDetail\";\r\n\r\nconst ImpactTable = ({ data }) => {\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [deliveryDetailList, setDeliveryDetailList] = useState([]);\r\n\r\n const getObj = (tableMeta) => data.find(x=>x.id === tableMeta.rowData[0]); \r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n pagination:false,\r\n textLabels: getTextLabels()\r\n };\r\n\r\n const handleClick = (tableMeta) => {\r\n setOpenDlg(true);\r\n setDeliveryDetailList(getObj(tableMeta).deliveryDetail);\r\n };\r\n\r\n var columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: \"impactDate\",\r\n label: IntlGetText(\"core.impact\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n defaultCol(\"radicadoOLFCode\", \"radicadoOLF.pendDate\"),\r\n {\r\n name: \"deliveryDate\",\r\n label: IntlGetText(\"radicadoOLF.dlvrDate\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"medicineAmount\",\r\n label: IntlGetText(\"medicineDelivery.medAmountDlvr\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n },\r\n },\r\n {\r\n name: \"filePath\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return (\r\n \r\n handleClick(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n {value &&\r\n \r\n \r\n \r\n }\r\n \r\n );\r\n },\r\n },\r\n }\r\n ]; \r\n\r\n return (\r\n \r\n \r\n setOpenDlg(false)}/>\r\n \r\n );\r\n};\r\n\r\nexport default ImpactTable;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {getCboValue} from \"components/Form/Controls/select-autocomplete\";\r\nimport RadicadoInsuranceTable from \"./RadicadoInsuranceTable\";\r\nimport InsuranceAuthorizationTable from \"./InsuranceAuthorizationTable\";\r\nimport RadicadoOLFTable from \"./RadicadoOLFTable\";\r\nimport DeliveryTable from \"./DeliveryTable\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport {\r\n callApi,\r\n getPrescriptionByPatient,\r\n getGetProcessDetailPatient,\r\n} from \"api/apiList\";\r\n\r\nconst ProcessDetail = ({patientId, openDlg, handleRequestClose}) => {\r\n const dispatch = useDispatch(); \r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [prescriptionList, setPrescriptionList] = useState([]);\r\n const [currentPrescriptionId, setCurrentPrescriptionId] = useState(null);\r\n const [radicadoInsuranceList, setRadicadoInsuranceList] = useState([]);\r\n const [authorizationList, setAuthorizationList] = useState([]);\r\n const [radicadoOLFList, setRadicadoOLFList] = useState([]);\r\n const [deliveryList, setDeliveryList] = useState([]);\r\n\r\n const handleCloseDlg = () => {\r\n setRadicadoInsuranceList([]);\r\n setAuthorizationList([]);\r\n setRadicadoOLFList([]);\r\n setDeliveryList([]);\r\n handleRequestClose();\r\n }\r\n \r\n const defaultValues = { prescriptionId: \"\" };\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, getValues, setValue } = methods;\r\n\r\n useEffect(() => {\r\n if(patientId === null){\r\n setPrescriptionList([]);\r\n return;\r\n }\r\n\r\n callApi(\r\n ()=>getPrescriptionByPatient(patientId),\r\n (data)=>{\r\n setPrescriptionList(data);\r\n if(data.length === 1){\r\n setValue('prescriptionId', getCboValue(data,data[0].id));\r\n setCurrentPrescriptionId(data[0].id);\r\n }\r\n }\r\n );\r\n }, [patientId]);\r\n\r\n useEffect(()=>{\r\n if(!currentPrescriptionId)\r\n return;\r\n\r\n callApi(\r\n () => getGetProcessDetailPatient(currentPrescriptionId),\r\n (detail)=>{\r\n setRadicadoInsuranceList(detail.radicadoInsurance);\r\n setAuthorizationList(detail.authorization);\r\n setRadicadoOLFList(detail.radicadoOLF);\r\n setDeliveryList(detail.delivery);\r\n },\r\n fnSetLoader\r\n );\r\n },[currentPrescriptionId]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n if(!d.prescriptionId){\r\n setCurrentPrescriptionId(null);\r\n return;\r\n }\r\n setCurrentPrescriptionId(d.prescriptionId.value);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={prescriptionList}\r\n onChange={handleSubmit(onSubmit)}\r\n margin=\"normal\"\r\n className=\"mr-2\"\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n

    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n}; \r\n\r\nexport default ProcessDetail;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ControlPanelRepKam from \"./controlPanelRepKam\";\r\nimport ProcessDetail from './ProcessDetail'\r\nimport { ProductBehavior } from \"constants/Enums\";\r\n\r\nconst ReportList = () => [\r\n { id: 2, name: IntlGetText(\"reports.controlPanelRemodulin\") },\r\n { id: 3, name: IntlGetText(\"reports.controlPanelIclusig\") },\r\n { id: 4, name: IntlGetText(\"reports.controlPanelGalafold\") }\r\n];\r\nconst ReportEnum = {\r\n controlPanelRemodulin:2,\r\n controlPanelIclusig:3,\r\n controlPanelGalafold:4\r\n};\r\n\r\nconst Reports = () => {\r\n const [openDlgDetail, setOpenDlgDetail] = useState(false);\r\n const [currentPatientId, setCurrentPatientId] = useState(null);\r\n\r\n const handleRequestClose = () => {\r\n setOpenDlgDetail(false);\r\n setCurrentPatientId(null);\r\n }\r\n\r\n useEffect(()=>{\r\n if(currentPatientId !== null)\r\n setOpenDlgDetail(true);\r\n },[currentPatientId]);\r\n\r\n const methods = useForm();\r\n const { errors, watch } = methods;\r\n\r\n const reportValue = watch(\"report\");\r\n\r\n const showReport = (reportId) =>\r\n reportValue && reportValue.value === reportId;\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n \r\n }\r\n options={ReportList()}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n {showReport(ReportEnum.controlPanelRemodulin) && (\r\n \r\n )}\r\n {showReport(ReportEnum.controlPanelIclusig) && (\r\n \r\n )}\r\n {showReport(ReportEnum.controlPanelGalafold) && (\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Reports;\r\n","const RegexConstants = {\r\n email: /^$|(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/,\r\n alphanumeric:/^[a-z0-9_-]+$/i,\r\n numeric:/^[0-9]+$/,\r\n};\r\n\r\nexport default RegexConstants;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid,\r\n} from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport RegexConstants from \"constants/regexConstants\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getPatientEdit,\r\n postAddPatientPA,\r\n patchUpdateExternalId,\r\n getDoctorPAList,\r\n getInsurancePAList,\r\n} from \"api/apiList\";\r\nimport { PatientOperationEnum } from \"constants/Enums\";\r\n\r\nconst GenreList = () => [\r\n { id: 1, name: IntlGetText(\"core.male\") },\r\n { id: 2, name: IntlGetText(\"core.feminine\") },\r\n];\r\n\r\nconst GetDocumentTypeList = () => [\r\n { id: 1, name: \"CC\" },\r\n { id: 2, name: \"CE\" },\r\n { id: 3, name: \"TI\" },\r\n { id: 4, name: \"OTRO\" },\r\n];\r\n\r\nconst GetTypeList = () => [\r\n { id: 1, name: IntlGetText(\"core.new\") },\r\n { id: 2, name: IntlGetText(\"core.mantenance\") },\r\n { id: 3, name: IntlGetText(\"core.started\") },\r\n];\r\n\r\nconst GetContextList = () => [\r\n { id: 1, name: IntlGetText(\"patient.contextNotInstitution\") },\r\n { id: 2, name: IntlGetText(\"patient.contextInstitution\") },\r\n];\r\nconst GetOperationList = () => [\r\n { id: 1, name: IntlGetText(\"patient.AddOperationAdd\") },\r\n { id: 2, name: IntlGetText(\"patient.AddOperationCreate\") },\r\n];\r\n\r\nconst AddPatient = (props) => {\r\n const GetPatientList = (patients, contextValue) => {\r\n if (patients.length == 0 || contextValue == undefined) {\r\n return [];\r\n }\r\n const result = patients.filter(\r\n (patient) => patient.institutionState == contextValue.value\r\n );\r\n return result;\r\n };\r\n\r\n const {\r\n open,\r\n handleRequestClose,\r\n patient,\r\n nurseList,\r\n repList,\r\n patients,\r\n callBack,\r\n } = props;\r\n\r\n const [isAddNewPatient, setIsAddNewPatient] = useState(false);\r\n const [doctorList, setDoctorList] = useState([]);\r\n const [insuranceList, setInsuranceList] = useState([]);\r\n\r\n const genderrList = GenreList();\r\n const documentTypeList = GetDocumentTypeList();\r\n const typeList = GetTypeList();\r\n const contextList = GetContextList();\r\n const operationList = GetOperationList();\r\n\r\n const contactableList = [\r\n { id: 1, name: IntlGetText(\"button.yes\") },\r\n { id: 2, name: IntlGetText(\"button.no\") },\r\n ];\r\n\r\n const defaultValues = {\r\n type: { label: typeList[0].name, value: typeList[0].id },\r\n managementDate: dayjs(),\r\n name: \"\",\r\n lastName: \"\",\r\n documentType: null,\r\n document: \"\",\r\n gender: null,\r\n patientBirthDate: null,\r\n phone: \"\",\r\n email: \"\",\r\n doctorId: null,\r\n insuranceId: null,\r\n contactable: null,\r\n operation: { label: operationList[0].name, value: operationList[0].id },\r\n };\r\n\r\n let validationSchema = {};\r\n if (isAddNewPatient || patient) {\r\n validationSchema = {\r\n name: yup.string().required(),\r\n lastName: yup.string().required(),\r\n documentType: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n document: yup\r\n .string()\r\n .matches(RegexConstants.numeric, IntlGetText(\"yup.numericValidation\"))\r\n .required(),\r\n gender: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n doctorId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n contactable: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n email: yup\r\n .string()\r\n .matches(RegexConstants.email, IntlGetText(\"yup.emailInvalid\"))\r\n .nullable(),\r\n patient: yup\r\n .object()\r\n .nullable()\r\n .notRequired(),\r\n };\r\n }\r\n if (!isAddNewPatient && !patient) {\r\n validationSchema.patient = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n }\r\n if (nurseList.length > 0) {\r\n validationSchema.nurseId = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n }\r\n validationSchema.type = yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n validationSchema.managementDate = yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required();\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue, watch } = methods;\r\n\r\n const repIdValue = watch(\"repId\");\r\n const operationValue =\r\n watch(\"operation\") != undefined ? watch(\"operation\").value : null;\r\n\r\n const contextValue = watch(\"context\");\r\n var patientList = GetPatientList(patients, contextValue);\r\n\r\n useEffect(() => {\r\n loadDoctorList(!repIdValue ? \"\" : repIdValue.value);\r\n }, [repIdValue]);\r\n\r\n const loadDoctorList = (repId) =>\r\n callApi(() => getDoctorPAList({ repId }), setDoctorList);\r\n\r\n useEffect(() => {\r\n if (open && patient) {\r\n callApi(\r\n () => getPatientEdit(patient.id),\r\n (info) => {\r\n setValue(\"name\", !info.name ? \"\" : info.name);\r\n setValue(\"lastName\", !info.lastName ? \"\" : info.lastName);\r\n setValue(\r\n \"documentType\",\r\n !info.documentType\r\n ? null\r\n : getCboValue(documentTypeList, info.documentType)\r\n );\r\n setValue(\"document\", !info.document ? \"\" : info.document);\r\n setValue(\r\n \"gender\",\r\n !info.gender ? null : getCboValue(genderrList, info.gender)\r\n );\r\n setValue(\r\n \"patientBirthDate\",\r\n !info.patientBirthDate ? null : dayjs(info.patientBirthDate)\r\n );\r\n setValue(\"email\", !info.email ? \"\" : info.email);\r\n setValue(\"phone\", !info.phone ? \"\" : info.phone);\r\n setValue(\r\n \"contactable\",\r\n !info.contactable\r\n ? getCboValue(contactableList, 2)\r\n : getCboValue(contactableList, 1)\r\n );\r\n if (repList.length > 0)\r\n setValue(\r\n \"repId\",\r\n !info.repId ? null : getCboValue(repList, info.repId)\r\n );\r\n setValue(\r\n \"doctorId\",\r\n !info.doctorId ? null : getCboValue(doctorList, info.doctorId)\r\n );\r\n\r\n setValue(\r\n \"type\",\r\n !info.type ? null : getCboValue(typeList, info.type)\r\n );\r\n setValue(\r\n \"managementDate\",\r\n !info.managementDate ? null : dayjs(info.managementDate)\r\n );\r\n\r\n callApi(getInsurancePAList, (d) => {\r\n setInsuranceList(d);\r\n setValue(\r\n \"insuranceId\",\r\n !info.insuranceId ? null : getCboValue(d, info.insuranceId)\r\n );\r\n });\r\n }\r\n );\r\n }\r\n\r\n if (open && !patient) {\r\n if (nurseList && nurseList.length === 1) {\r\n setTimeout(() => {\r\n setValue(\"nurseId\", getCboValue(nurseList, nurseList[0].id));\r\n }, 200);\r\n }\r\n }\r\n\r\n if (open) {\r\n loadDoctorList(\"\");\r\n if (!patient) callApi(getInsurancePAList, setInsuranceList);\r\n }\r\n }, [open, patient]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n if (!(isAddNewPatient || patient)) {\r\n await updateExternalIdHandle(d);\r\n return;\r\n }\r\n await addNewPatientHandle(d);\r\n });\r\n\r\n useEffect(() => {\r\n if (isAddNewPatient) {\r\n setTimeout(() => {\r\n setValue(\"contactable\", getCboValue(contactableList, 1));\r\n }, 200);\r\n }\r\n }, [isAddNewPatient]);\r\n\r\n useEffect(() => {\r\n if (operationValue == PatientOperationEnum.add) {\r\n setIsAddNewPatient(false);\r\n } else {\r\n setIsAddNewPatient(true);\r\n setValue(\"patient\", -1);\r\n }\r\n }, [operationValue]);\r\n\r\n const updateExternalIdHandle = async (d) => {\r\n const patient = {\r\n externalId: !d.patient ? null : Number(d.patient.value),\r\n nurseId: !d.nurseId ? null : d.nurseId.value,\r\n repId: !d.repId ? null : d.repId.value,\r\n type: Number(d.type.value),\r\n managementDate: dayjs(d.managementDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n\r\n await callApiAsync(\r\n () => patchUpdateExternalId(patient),\r\n () => {\r\n callBack();\r\n }\r\n );\r\n };\r\n\r\n const addNewPatientHandle = async (d) => {\r\n const obj = {\r\n id: !patient ? 0 : patient.id,\r\n type: Number(d.type.value),\r\n managementDate: dayjs(d.managementDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n name: d.name,\r\n lastName: d.lastName,\r\n documentTypeId: Number(d.documentType.value),\r\n document: d.document,\r\n gender: Number(d.gender.value),\r\n birthday: !d.patientBirthDate\r\n ? null\r\n : dayjs(d.patientBirthDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n email: d.email,\r\n phone: d.phone,\r\n nurseId: !d.nurseId ? null : d.nurseId.value,\r\n repId: !d.repId ? null : d.repId.value,\r\n doctorId: !d.doctorId ? null : Number(d.doctorId.value),\r\n insuranceId: !d.insuranceId ? null : Number(d.insuranceId.value),\r\n contactable: Number(d.contactable.value) === 1,\r\n };\r\n\r\n await callApiAsync(\r\n () => postAddPatientPA(obj),\r\n () => {\r\n callBack();\r\n }\r\n );\r\n };\r\n const disabled = patient && patient.email ? true : false;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n {nurseList.length > 0 && (\r\n \r\n }\r\n options={nurseList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n {repList.length > 0 && (\r\n \r\n }\r\n options={repList}\r\n margin=\"normal\"\r\n />\r\n \r\n )}\r\n {!patient && (\r\n <>\r\n \r\n }\r\n options={operationList}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n \r\n )}\r\n {operationValue == PatientOperationEnum.add && !patient && (\r\n <>\r\n \r\n }\r\n options={contextList}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n onChange={() => {\r\n setValue(\"patient\", null);\r\n }}\r\n />\r\n \r\n {patients.length > 0 && (\r\n \r\n }\r\n options={patientList}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n required={true}\r\n />\r\n \r\n )}\r\n \r\n )}\r\n \r\n }\r\n options={typeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {(isAddNewPatient ||\r\n patient ||\r\n operationValue == PatientOperationEnum.create) && (\r\n <>\r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n options={documentTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={genderrList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={doctorList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n \r\n }\r\n options={insuranceList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n />\r\n \r\n \r\n }\r\n options={contactableList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n )}\r\n \r\n

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default AddPatient;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport AddPatient from \"./addPatient\";\r\nimport AddIcon from '@material-ui/icons/Add';\r\nimport { \r\n callApi, \r\n getUserByRole, \r\n getRepList,\r\n getPatientPAListToSync\r\n} from \"api/apiList\";\r\nimport { RoleEnum } from 'constants/Enums';\r\n\r\n\r\nconst getUserList = (data) =>{\r\n return data.map(x => ({\r\n id: x.id,\r\n name: x.fullName\r\n }));\r\n}\r\n\r\nconst BtnAddPatient = ({loadData}) =>{ \r\n const [openDlg, setOpenDlg] = useState(false);\r\n const [nurseList, setNurseList] = useState([]);\r\n const [repList, setRepList] = useState([]);\r\n const [patients, setPatients] = useState([]);\r\n const handleRequestClose = () => setOpenDlg(false);\r\n\r\n const addTest = IntlGetText(\"core.add\");\r\n\r\n const loadPatients =()=>{\r\n callApi(getPatientPAListToSync, \r\n (data)=>{\r\n setPatients([...data,{id:-1,name:addTest}])\r\n });\r\n };\r\n\r\n useEffect(()=>{\r\n if(isRole(RoleEnum.rep)){\r\n callApi(\r\n () => getUserByRole(RoleEnum.nurse),\r\n (data) => setNurseList(getUserList(data))\r\n );\r\n }\r\n if(isRole(RoleEnum.nurse)){\r\n callApi(getRepList, setRepList);\r\n }\r\n loadPatients();\r\n },[]);\r\n\r\n return (\r\n <>\r\n
    \r\n setOpenDlg(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n \r\n \r\n
    \r\n {\r\n handleRequestClose();\r\n loadData();\r\n loadPatients();\r\n handleRequestClose();\r\n }}/>\r\n \r\n );\r\n};\r\n\r\nexport default BtnAddPatient;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid, IconButton } from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postAddPatientComment\r\n} from \"api/apiList\";\r\n\r\nconst AddComment = ({\r\n openDlg,\r\n requestCloseDlg,\r\n callBack,\r\n patientComment,\r\n patient\r\n}) => {\r\n const defaultValues = { comment: \"\" };\r\n const validationSchema = {\r\n comment: yup\r\n .string()\r\n .required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const setString = (obj, prop) =>\r\n setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n \r\n useEffect(() => {\r\n if(openDlg && patientComment){\r\n setTimeout(()=>{\r\n setString(patientComment, \"comment\");\r\n },130);\r\n }\r\n }, [openDlg,patientComment]);\r\n\r\n const onSubmitAsync = handleSubmit(async (d) => {\r\n const obj = {\r\n id: patientComment ? patientComment.id : 0,\r\n patientId: patient.id,\r\n comment: d.comment\r\n };\r\n\r\n await callApiAsync(\r\n () => postAddPatientComment(obj),\r\n () => {\r\n if (callBack) callBack();\r\n requestCloseDlg();\r\n }\r\n );\r\n });\r\n\r\n const disabled = false;\r\n\r\n return (\r\n
    \r\n\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AddComment;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport Table, {\r\n minimalOptions,\r\n defaultCol,\r\n dateColumn,\r\n} from \"components/Form/Table\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport AddComment from \"./addComment\";\r\nimport { callApi, getPatientCommentList } from \"api/apiList\";\r\n\r\nconst DlgComments = ({\r\n openDlg,\r\n requestCloseDlg,\r\n patient,\r\n isRep,\r\n isConsult,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [openDlgAddComment, setOpenDlgAddComment] = useState(false);\r\n const [commentList, setCommentList] = useState([]);\r\n\r\n const [currentComment, setCurrentComment] = useState(null);\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getPatientCommentList(patient.id),\r\n setCommentList,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if (openDlg && patient) {\r\n loadData(patient.id);\r\n return;\r\n }\r\n setCommentList([]);\r\n }, [openDlg, patient]);\r\n\r\n const getObj = (tableMeta) =>\r\n commentList.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n let columns = [\r\n {\r\n name: \"id\",\r\n label: \"id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n dateColumn(\"creationDate\", \"core.creationDate\", \"YYYY/MM/DD hh:mm a\"),\r\n defaultCol(\"user\", \"patientPA.commentBy\"),\r\n defaultCol(\"comment\", \"core.comment\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if (\r\n !rowObj.allowEdit ||\r\n dayjs(rowObj.creationDate).format(\"YYYY-MM-DD\") !==\r\n dayjs().format(\"YYYY-MM-DD\")\r\n )\r\n return \"\";\r\n return (\r\n
    \r\n }\r\n placement=\"bottom-end\"\r\n >\r\n {\r\n setCurrentComment(rowObj);\r\n setOpenDlgAddComment(true);\r\n loadData();\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n // if(isRep)\r\n // {\r\n // columns.push({\r\n // name: \"actions\",\r\n // label: IntlGetText(\"core.actions\"),\r\n // options: {\r\n // filter: false,\r\n // sort: false,\r\n // customBodyRender: (value, tableMeta, updateValue) => {\r\n // var rowObj = getObj(tableMeta);\r\n // if(dayjs(rowObj.creationDate).format(\"YYYY-MM-DD\") !== dayjs().format(\"YYYY-MM-DD\"))\r\n // return \"\";\r\n // return (\r\n //
    \r\n // } placement=\"bottom-end\">\r\n // {\r\n // setCurrentComment(rowObj);\r\n // setOpenDlgAddComment(true);\r\n // loadData();\r\n // }}\r\n // variant=\"contained\"\r\n // className=\"jr-btn jr-btn-xs\"\r\n // >\r\n // \r\n // \r\n // \r\n //
    \r\n // );\r\n // },\r\n // },\r\n // });\r\n //}\r\n const allowEdit = true;\r\n return (\r\n }\r\n maxWidth=\"md\"\r\n >\r\n {/* {isRep && */}\r\n {!isConsult && (\r\n
    \r\n setOpenDlgAddComment(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n )}\r\n\r\n {\r\n setOpenDlgAddComment(false);\r\n setCurrentComment(null);\r\n }}\r\n callBack={() => {\r\n setOpenDlgAddComment(false);\r\n setCurrentComment(null);\r\n loadData();\r\n }}\r\n patientComment={currentComment}\r\n patient={patient}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgComments;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link, useLocation, Redirect } from \"react-router-dom\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip, Grid } from \"@material-ui/core\";\r\nimport GetAppIcon from \"@material-ui/icons/GetApp\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport {\r\n callApi,\r\n getPatientPAList,\r\n patchActivatePatient,\r\n getRepList,\r\n getPatientPAReportList,\r\n} from \"api/apiList\";\r\nimport Table, {\r\n defaultOptions,\r\n defaultCol,\r\n dateColumn,\r\n} from \"components/Form/Table\";\r\nimport DialogConfirm from \"components/Form/Controls/DialogConfirm\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormCheckbox from \"components/Form/Controls/checkbox\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { UserStatePAEnum, ShardKeyEnum, RoleEnum } from \"constants/Enums\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport BtnAddPatient from \"./addPatient\";\r\nimport AddPatient from \"./addPatient/addPatient\";\r\nimport PatientComments from \"./patientComment\";\r\nimport { getUserInfo } from \"app/routes/psp/services/userService\";\r\nimport { downloadFile } from \"services/fileService\";\r\n\r\nconst getYears = () => {\r\n var max = dayjs().get(\"year\");\r\n var min = 2022;\r\n var years = [];\r\n\r\n for (var i = min; i <= max; i++) {\r\n years.push(i);\r\n }\r\n return years.map((x) => ({ id: x, name: x }));\r\n};\r\n\r\nconst getMonths = () => {\r\n return [\r\n { id: 1, name: \"Enero\" },\r\n { id: 2, name: \"Febrero\" },\r\n { id: 3, name: \"Marzo\" },\r\n { id: 4, name: \"Abril\" },\r\n { id: 5, name: \"Mayo\" },\r\n { id: 6, name: \"Junio\" },\r\n { id: 7, name: \"Julio\" },\r\n { id: 8, name: \"Agosto\" },\r\n { id: 9, name: \"Septiembre\" },\r\n { id: 10, name: \"Octubre\" },\r\n { id: 11, name: \"Noviembre\" },\r\n { id: 12, name: \"Diciembre\" },\r\n ];\r\n};\r\n\r\nconst PatientPAList = () => {\r\n const location = useLocation();\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]);\r\n const [repList, setRepList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openDlgActive, setOpenDlgActive] = useState(false);\r\n const [openDlgEdit, setOpenDlgEdit] = useState(false);\r\n const [openDlgComments, setOpenDlgComments] = useState(false);\r\n const [openDlgReport, setOpenDlgReport] = useState(false);\r\n\r\n const yearList = getYears();\r\n const monthList = getMonths();\r\n\r\n const isRep = isRole(RoleEnum.rep);\r\n const isNurse = isRole(RoleEnum.nurse);\r\n const isConsult = isRole(RoleEnum.consultation);\r\n\r\n let msgActivateText = IntlGetText(\"patientPA.activatePatientMsg\");\r\n const activatePatientText = IntlGetText(\"patient.activatePatient\");\r\n const editText = IntlGetText(\"core.edit\");\r\n const detailText = IntlGetText(\"core.detail\");\r\n const commentText = IntlGetText(\"core.comment\");\r\n const yearRequiredText = IntlGetText(\"core.yearRequired\");\r\n const montRequiredText = IntlGetText(\"core.montRequired\");\r\n\r\n const dateTypeList = [\r\n { id: 1, name: IntlGetText(\"core.creationDate\") },\r\n //{ id: 2, name: IntlGetText(\"additionalMedications.treatmentStartDate\") },\r\n //{ id: 3, name: IntlGetText(\"patientPA.nextInstillationDate\") },\r\n ];\r\n const contactableList = [\r\n { id: 1, name: IntlGetText(\"core.datatable.filter.all\") },\r\n { id: 2, name: IntlGetText(\"button.yes\") },\r\n { id: 3, name: IntlGetText(\"button.no\") },\r\n ];\r\n const institutionList = [\r\n { id: 1, name: IntlGetText(\"core.datatable.filter.all\") },\r\n { id: 2, name: IntlGetText(\"intitution.institutional\") },\r\n { id: 3, name: IntlGetText(\"intitution.noInstitutional\") },\r\n ];\r\n\r\n const defaultValues = {\r\n dateType: dateTypeList[0].id,\r\n startDate: dayjs().subtract(1, \"month\").startOf(\"month\").format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: null,\r\n contactable: null,\r\n institutional: null,\r\n unreadComments: false,\r\n };\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n endDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n };\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue, trigger, watch } = methods;\r\n\r\n const loadData = (obj = {}) =>\r\n callApi(() => getPatientPAList(obj), setData, fnSetLoader);\r\n\r\n useEffect(() => {\r\n loadData({\r\n dateType: dateTypeList[0].id,\r\n startDate: dayjs().subtract(1, \"month\").startOf(\"month\").format(\"YYYY-MM-DDT00:00:00\"), \r\n });\r\n if (isNurse) {\r\n callApi(getRepList, setRepList);\r\n }\r\n setValue(\"contactable\", getCboValue(contactableList, 1));\r\n setValue(\"institutional\", getCboValue(institutionList, 1));\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (location && location.state && location.state.reloadPage) loadData();\r\n }, [location]);\r\n\r\n const getObj = (tableMeta) =>\r\n data.find(\r\n (x) =>\r\n (x.id > 0 && x.id === tableMeta.rowData[0]) ||\r\n (x.externalId > 0 && x.externalId === tableMeta.rowData[1])\r\n );\r\n\r\n const handleClick = (rowObj) => {\r\n setOpenDlgActive(true);\r\n setCurrentRowObj(rowObj);\r\n };\r\n\r\n const handleClickActive = () => {\r\n callApi(\r\n () => patchActivatePatient(currentRowObj.id),\r\n () => {\r\n setCurrentRowObj(null);\r\n setOpenDlgActive(false);\r\n loadData();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n {\r\n name: \"externalId\",\r\n label: \"ExternalId\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"visitor\", \"role.visitor\"),\r\n dateColumn(\"creationDate\", \"core.creationDate\", \"YYYY/MM/DD hh:mm a\"),\r\n dateColumn(\"startTreament\", \"additionalMedications.treatmentStartDate\"),\r\n {\r\n name: \"code\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if (isRep) return value;\r\n return (\r\n \r\n {value}\r\n \r\n );\r\n },\r\n },\r\n },\r\n defaultCol(\"fullName\", \"core.name\"),\r\n defaultCol(\"city\", \"core.city\"),\r\n defaultCol(\"eps\", \"core.insurance\"),\r\n defaultCol(\"doctor\", \"core.doctor\"),\r\n defaultCol(\"patientState\", \"patientPA.patientState\"),\r\n defaultCol(\"currentCycle\", \"patientPA.cycle\"),\r\n defaultCol(\"currentInstillation\", \"patientPA.currentInstillation\"),\r\n dateColumn(\"nextInstillationDate\", \"patientPA.nextInstillationDate\"),\r\n defaultCol(\"cycleProccesState\", \"patientPA.cycleProccesState\"),\r\n defaultCol(\"instillationsNumber\", \"patientPA.instillationsNumber\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if (isRep) {\r\n return (\r\n \r\n {\r\n setOpenDlgComments(true);\r\n setCurrentRowObj(rowObj);\r\n }}\r\n variant=\"contained\"\r\n className={\r\n \"jr-btn jr-btn-xs\" +\r\n (rowObj.hasPendingComments ? \" bg-yellow\" : \"\")\r\n }\r\n >\r\n \r\n \r\n \r\n );\r\n }\r\n return (\r\n <>\r\n {rowObj.patientStateId ===\r\n UserStatePAEnum.pendingVerification && (\r\n \r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className={\"jr-btn jr-btn-xs bg-green text-white\"}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n {\r\n setOpenDlgEdit(true);\r\n setCurrentRowObj(rowObj);\r\n }}\r\n variant=\"contained\"\r\n className={\"jr-btn jr-btn-xs\"}\r\n >\r\n
    \r\n \r\n \r\n {rowObj.hasComments && (\r\n \r\n {\r\n setOpenDlgComments(true);\r\n setCurrentRowObj(rowObj);\r\n }}\r\n variant=\"contained\"\r\n className={\r\n \"jr-btn jr-btn-xs\" +\r\n (rowObj.hasPendingComments ? \" bg-yellow\" : \"\")\r\n }\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n const onDownload = handleSubmit(async (d) => {\r\n if (!d.year) {\r\n NotificationManager.warning(yearRequiredText);\r\n return;\r\n }\r\n if (!d.month) {\r\n NotificationManager.warning(montRequiredText);\r\n return;\r\n }\r\n\r\n var obj = {\r\n year: Number(d.year.value),\r\n month: Number(d.month.value),\r\n };\r\n\r\n callApi(\r\n () => getPatientPAReportList(obj),\r\n (data) => downloadFile(data),\r\n fnSetLoader\r\n );\r\n });\r\n\r\n const onFilter = handleSubmit(async (d) => {\r\n if (d.startDate || d.endDate) {\r\n if (!(await trigger())) return;\r\n }\r\n\r\n var obj = {\r\n dateType: !d.dateType ? null : Number(d.dateType.value),\r\n startDate: !d.startDate\r\n ? null\r\n : dayjs(d.startDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: !d.endDate\r\n ? null\r\n : dayjs(d.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n contactable: !d.contactable ? null : Number(d.contactable.value),\r\n institutional: !d.institutional ? null : Number(d.institutional.value),\r\n unreadComments: d.unreadComments === true ? true : false,\r\n };\r\n\r\n loadData(obj);\r\n });\r\n\r\n if (getUserInfo() && getUserInfo().shardKey !== ShardKeyEnum.ialuril && getUserInfo().shardKey !== ShardKeyEnum.seranestcr) {\r\n return ;\r\n }\r\n\r\n const chkHandleChange = (name) => (e) => setValue(name, e.target.checked);\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n \r\n \r\n {/* \r\n }\r\n options={dateTypeList}\r\n defaultValue={dateTypeList[0]}\r\n margin=\"normal\"\r\n />\r\n */}\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={contactableList}\r\n />\r\n \r\n {/* \r\n }\r\n options={institutionList}\r\n />\r\n */}\r\n \r\n
    \r\n }\r\n value={watch(\"unreadComments\")}\r\n onChange={chkHandleChange(\"unreadComments\")}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n setOpenDlgReport(true)}\r\n variant=\"contained\"\r\n color=\"secondary\"\r\n >\r\n \r\n \r\n
    \r\n
    \r\n\r\n {!isConsult && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n }\r\n text={msgActivateText.replace(\r\n \"[0]\",\r\n currentRowObj && currentRowObj.code\r\n )}\r\n handleRequestClose={() => setOpenDlgActive(false)}\r\n onAcceptClick={handleClickActive}\r\n />\r\n {\r\n if (currentRowObj && currentRowObj.hasPendingComments) loadData();\r\n setOpenDlgComments(false);\r\n setCurrentRowObj(null);\r\n }}\r\n patient={currentRowObj}\r\n isRep={isRep}\r\n isConsult={isConsult}\r\n />\r\n {\r\n setOpenDlgEdit(false);\r\n setCurrentRowObj(null);\r\n }}\r\n patient={currentRowObj}\r\n nurseList={[]}\r\n repList={repList}\r\n patients={[]}\r\n callBack={() => {\r\n setOpenDlgEdit(false);\r\n setCurrentRowObj(null);\r\n loadData();\r\n }}\r\n isConsult={isConsult ? true : false}\r\n />\r\n setOpenDlgReport(false)}\r\n titleTextId=\"reports.patients\"\r\n >\r\n
    \r\n \r\n \r\n \r\n }\r\n options={yearList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={monthList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PatientPAList;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Tabs, Tab, TextField, Grid } from \"@material-ui/core\";\r\n\r\nconst getProp = (patientData, prop) => {\r\n if(!patientData) return \"\";\r\n return patientData[prop] ?? \"\";\r\n}\r\nconst getPropDashboard = (patientData, prop) => {\r\n if(!patientData) return \"\";\r\n if(!patientData.dashBoard) return \"\";\r\n return patientData.dashBoard[prop] ?? \"\";\r\n}\r\n\r\nconst CustomInput = ({obj, name, labelId, isDashboard }) =>{\r\n return (\r\n \r\n }\r\n value={!isDashboard ? getProp(obj, name) : getPropDashboard(obj, name) }\r\n variant=\"outlined\"\r\n size=\"small\"\r\n fullWidth={true}\r\n />\r\n \r\n )\r\n}\r\n\r\n\r\nconst CustomTabs = ({patientData}) => {\r\n const [currentTab, setCurrentTab] = useState(0);\r\n\r\n const handleChange = (event, value) => setCurrentTab(value);\r\n\r\n return (\r\n <>\r\n \r\n } />\r\n } />\r\n } />\r\n } />\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n {currentTab === 0 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {currentTab === 1 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {currentTab === 2 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {currentTab === 3 && (\r\n \r\n \r\n \r\n \r\n {getProp(patientData, \"eps\") && }\r\n {getProp(patientData, \"supplementalPlan\") && }\r\n {getProp(patientData, \"prepaidMedicine\") && }\r\n {getProp(patientData, \"healthPolicy\") && }\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n}\r\n\r\nexport default CustomTabs;","import React, { useState } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport CustomTabs from \"./customTabs\";\r\n\r\nconst PatientInfo = (props) => {\r\n const [open, setOpen] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n\r\n return (\r\n <>\r\n setOpen(true)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default PatientInfo;\r\n","import React, { useEffect } from \"react\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\n\r\nconst isValidUrl = (url) => {\r\n try {\r\n new URL(url);\r\n } catch (e) {\r\n return false;\r\n }\r\n return true;\r\n};\r\n\r\nconst FormCreateUpdate = ({ openCRU, handleRequestClose, obj, prescriptionId, handleCreateUpdate, readOnly}) => {\r\n const urlValidationText = IntlGetText(\"patientPA.linkValidation\");\r\n const commentRequiredText = IntlGetText(\"core.commentRequired\"); \r\n \r\n const defaultValues = { \r\n planningDate: null,\r\n startDate: null,\r\n endDate: null,\r\n link: \"\",\r\n nursingNote: \"\"\r\n };\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const setString = (obj, prop) => setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) => setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n\r\n const loadData = () => {\r\n setDate(obj,\"planningDate\");\r\n setDate(obj,\"startDate\");\r\n setDate(obj,\"endDate\");\r\n setString(obj,\"link\");\r\n setString(obj,\"nursingNote\");\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n id: !obj ? 0 : obj.id,\r\n prescriptionId: prescriptionId,\r\n planningDate: !d.planningDate ? null : dayjs(d.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n startDate: !d.startDate ? null : dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n endDate: !d.endDate ? null : dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n link: d.link,\r\n nursingNote: d.nursingNote\r\n };\r\n\r\n if(item.link && !isValidUrl(item.link)){\r\n NotificationManager.warning(urlValidationText);\r\n return;\r\n }\r\n if(d.endDate && (!item.nursingNote || item.nursingNote.trim().length === 0)){\r\n NotificationManager.warning(commentRequiredText);\r\n return;\r\n }\r\n\r\n await handleCreateUpdate(item);\r\n };\r\n\r\n const isDisable = () =>{\r\n if(!obj) return false;\r\n return !(obj.endDate === undefined || obj.endDate === null);\r\n }\r\n const disabled = isDisable();\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n {obj && obj.planningDate &&\r\n \r\n }\r\n format=\"YYYY-MM-DD hh:mm A\"\r\n //disableFuture={true}\r\n disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n }\r\n format=\"YYYY-MM-DD hh:mm A\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD hh:mm A\"\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n multiline\r\n rows={4}\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n {}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default FormCreateUpdate;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport { callApi, callApiAsync, getImpactPAList, postAddUpdateImpactPA } from \"api/apiList\";\r\nimport Table, { getTextLabels } from \"components/Form/Table\";\r\nimport Form from \"./form\";\r\nimport { isRole } from \"../../../../../routes/psp/services/userService\";\r\nimport { RoleEnum } from \"../../../../../../constants/Enums\";\r\n\r\nconst onClickLink = (url) => () => {\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n };\r\n\r\nconst ImpactList = ({patientData}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [data, setData] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openCRU, setOpenCRU] = useState(false);\r\n\r\n const handleRequestCloseCRU = () => {\r\n setOpenCRU(false);\r\n setCurrentRowObj(null);\r\n }\r\n\r\n const loadData = () => callApi(()=>getImpactPAList(patientData.id), setData, fnSetLoader);\r\n\r\n useEffect(()=>{\r\n if(!patientData) return;\r\n loadData();\r\n }, [patientData]);\r\n\r\n const getObj = (tableMeta) =>\r\n data.find(x => x.id === tableMeta.rowData[0]);\r\n\r\n const handleClick = (rowObj) => {\r\n setOpenCRU(true);\r\n setCurrentRowObj(rowObj);\r\n };\r\n\r\n\r\n const isConsult = isRole(RoleEnum.consultation);\r\n\r\n const handleCreateUpdate = async (data) => {\r\n await callApiAsync(\r\n () => postAddUpdateImpactPA(data),\r\n ()=>{\r\n handleRequestCloseCRU();\r\n loadData();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n {\r\n name: \"planningDate\",\r\n label: IntlGetText(\"psp.menu.impactPlanning\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"startDate\",\r\n label: IntlGetText(\"core.startDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"endDate\",\r\n label: IntlGetText(\"core.endDate\"),\r\n options: {\r\n filter: false,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n return value ? dayjs(value).format(\"YYYY/MM/DD hh:mm a\") : \"\";\r\n },\r\n },\r\n },\r\n {\r\n name: \"nursingNote\",\r\n label: IntlGetText(\"core.comment\"),\r\n options: {\r\n filter: false,\r\n sort: false\r\n }\r\n },\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n <>\r\n { rowObj.link && \r\n } placement=\"bottom-end\">\r\n \r\n \r\n \r\n \r\n }\r\n \r\n } placement=\"bottom-end\">\r\n handleClick(rowObj)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\">\r\n \r\n \r\n \r\n \r\n );\r\n },\r\n }\r\n }\r\n ];\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n textLabels: getTextLabels(),\r\n };\r\n \r\n const readOnly = false;\r\n return (\r\n <>\r\n
    \r\n } placement=\"bottom-end\">\r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ImpactList;\r\n","import React, { useState } from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport ImpactList from \"./impactList\";\r\n\r\nconst PatientInfo = (props) => {\r\n const [open, setOpen] = useState(false);\r\n const handleRequestClose = () => setOpen(false);\r\n\r\n return (\r\n <>\r\n setOpen(true)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default PatientInfo;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { IconButton } from \"@material-ui/core\";\r\nimport { callApi, getPatientPAInfo } from \"api/apiList\";\r\nimport PatientInfo from \"./patientInfo\";\r\nimport Impacts from \"./impacts\";\r\nimport ScrollContent from \"../../management/scrollContent\";\r\n\r\nconst PatientPADetail = (props) => {\r\n const { id } = props.location;\r\n let history = useHistory();\r\n const [patientData, setPatientData] = useState(null);\r\n \r\n const loadData = () => {\r\n if(id == null || id == undefined){\r\n history.push(\"/app/patientPA\");\r\n return;\r\n }\r\n callApi(() => getPatientPAInfo(id), setPatientData);\r\n };\r\n \r\n useEffect(loadData,[]);\r\n\r\n const patientName = IntlGetText(\"core.newPatient\");\r\n const getPatientName = (patient) => {\r\n return !patient.name ? `${patient.code} - ${patientName}` : `${patient.code} - ${patient.name} ${patient.lastName}`; \r\n }\r\n\r\n const getProp = (patientData, prop) => {\r\n if(!patientData) return \"\";\r\n return patientData[prop];\r\n }\r\n\r\n return(\r\n
    \r\n
    \r\n history.push('/app/patientPA')}>\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n : {patientData && getPatientName(patientData)}\r\n | : {getProp(patientData,\"doctor\")}\r\n {/* | : {getProp(patientData,\"visitor\")} */}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n )\r\n};\r\n\r\nexport default PatientPADetail;","import React from \"react\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport Table, { getTextLabels, defaultCol } from \"components/Form/Table\";\r\n\r\nconst NurseTable = ({\r\n data,\r\n handleOpenDel,\r\n setCurrentRowObj}) =>{\r\n\r\n const getObj = (tableMeta) =>\r\n data.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const handleClickDelete = (tableMeta) => {\r\n handleOpenDel();\r\n setCurrentRowObj(getObj(tableMeta));\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"name\", \"core.name\"),\r\n defaultCol(\"lastName\", \"core.lastName\"),\r\n defaultCol(\"email\", \"core.email\"),\r\n //defaultCol(\"city\", \"core.city\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => { \r\n return (\r\n
    \r\n } placement=\"bottom-end\">\r\n handleClickDelete(tableMeta)}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n const options = {\r\n filter: false,\r\n filterType: \"dropdown\",\r\n download: false,\r\n print: false,\r\n viewColumns: false,\r\n selectableRows: \"none\",\r\n search: false,\r\n textLabels: getTextLabels(),\r\n pagination:false\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default NurseTable;\r\n\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport NurseTable from \"./nurseTable\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getNursesByPrescription,\r\n postAddNurseToPrescription,\r\n deleteNurseToPrescription,\r\n} from \"api/apiList\";\r\n\r\nconst DlgChangeNurse = ({ openCRU, handleRequestClose, nurseList, obj}) => { \r\n const dispatch = useDispatch(); \r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [currentNurses, setCurrentNurses] = useState([]);\r\n const [nurses,setNurses] = useState([]);\r\n const [openDeleteDlg, setOpenDeleteDlg] = useState(false);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n\r\n const defaultValues = {\r\n nurseId: null,\r\n };\r\n const validationSchema = { \r\n nurseId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n const loadData = () => {\r\n setValue(\"patient\", !obj || !obj.patient ? \"\" : obj.patientCode +\" - \"+ obj.patient);\r\n };\r\n\r\n useEffect(()=>{\r\n if(openCRU){\r\n setNurses(nurseList.filter(x=> currentNurses.find(y=>y.id === x.id) === undefined))\r\n setTimeout(loadData,150);\r\n }\r\n },[openCRU,currentNurses]);\r\n\r\n\r\n const onSubmit = async (d, e) => {\r\n var item = {\r\n prescriptionId: !obj ? 0 : obj.prescriptionId,\r\n nurseId: d.nurseId.value\r\n };\r\n\r\n await callApiAsync(\r\n () => postAddNurseToPrescription(item),\r\n (data)=>{\r\n setCurrentNurses(data);\r\n setValue(\"nurseId\", null);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(()=>{\r\n if(!openCRU) return;\r\n\r\n callApi(\r\n ()=>getNursesByPrescription(obj.prescriptionId),\r\n setCurrentNurses,\r\n fnSetLoader\r\n )\r\n },[openCRU]);\r\n\r\n const onDeleteAsync = async () => {\r\n await callApiAsync(\r\n () => deleteNurseToPrescription(currentRowObj.nursePrescriptionId),\r\n (data) => {\r\n setCurrentNurses(data);\r\n setOpenDeleteDlg(false);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled\r\n />\r\n \r\n \r\n }\r\n options={nurses}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n \r\n \r\n setOpenDeleteDlg(true)}\r\n setCurrentRowObj={setCurrentRowObj}/>\r\n }\r\n text={}\r\n handleRequestClose={() => setOpenDeleteDlg(false)}\r\n onAcceptClickAsync={onDeleteAsync}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default DlgChangeNurse;\r\n","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { \r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n Grid\r\n} from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\n\r\nconst BtnActivatePatient = ({openDlg, handleRequestClose, obj, onActivePatient}) => {\r\n const defaultValues = { \r\n dosageStartDate: null\r\n };\r\n const validationSchema = {\r\n dosageStartDate: yup.date()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmit = (d) => {\r\n const item = {\r\n prescriptionId: !obj ? 0 : obj.prescriptionId,\r\n dosageStartDate: dayjs(d.dosageStartDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n onActivePatient(item);\r\n };\r\n \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default BtnActivatePatient;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport { isRole, isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport DlgNurses from \"components/DlgNurses\";\r\nimport ChangeNurse from \"./ChangeNurse\";\r\nimport DlgActivatePatient from \"./btnActivatePatient\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport {\r\n callApi,\r\n getPatientListManagement,\r\n getUserByRoles,\r\n postActivatePatientByPrescriptionId\r\n} from \"api/apiList\";\r\nimport Table, { defaultOptions, defaultCol } from \"components/Form/Table\";\r\nimport { RoleEnum, PatientStateEnum } from \"constants/Enums\";\r\n\r\nconst getNurses = (nurses) => {\r\n return nurses.map(x=>x.name + \" \" + x.lastName).join(\", \");\r\n}\r\n\r\nconst PatientManagement = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const [patients, setPatients] = useState([]);\r\n const [nurseList, setNurseList] = useState([]);\r\n const [currentRowObj, setCurrentRowObj] = useState(null);\r\n const [openDlgNurse, setOpenDlgNurse] = useState(false);\r\n const [openDlgActivate, setOpenDlgActivate] = useState(false);\r\n \r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const isPSPCoordinator = isRole(RoleEnum.psp_coordinator);\r\n const isJaasModuleConfig = isJaasModule();\r\n\r\n const handleCloseDlgNurse = () => {\r\n setOpenDlgNurse(false);\r\n setCurrentRowObj(null); \r\n loadData();\r\n }\r\n const handleChangeNurseClick = (obj) => {\r\n setOpenDlgNurse(true);\r\n setCurrentRowObj(obj);\r\n };\r\n\r\n const handleCloseDlgActivate = () => {\r\n setOpenDlgActivate(false);\r\n setCurrentRowObj(null);\r\n }\r\n const handleActivateClick = (obj) => {\r\n setOpenDlgActivate(true);\r\n setCurrentRowObj(obj);\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n getPatientListManagement,\r\n (data)=> setPatients(data),\r\n fnSetLoader)\r\n }\r\n\r\n const loadNurse = () => {\r\n callApi(\r\n ()=>getUserByRoles({\r\n roles: [RoleEnum.nurse, RoleEnum.nurse_procedure]\r\n }\r\n ),\r\n (data) => {\r\n setNurseList(data.map(x => ({\r\n ...x,\r\n name: x.fullName\r\n })));\r\n }\r\n );\r\n }\r\n\r\n useEffect(()=>{\r\n loadData()\r\n loadNurse()\r\n },[])\r\n\r\n const getObj = (tableMeta) => patients.find(x=>x.patientCode === tableMeta.rowData[0]);\r\n\r\n const isSuspended = (item) => {\r\n return (item.patientStateId === PatientStateEnum.medicalSuspension\r\n || item.patientStateId === PatientStateEnum.suspension \r\n || item.patientStateId === PatientStateEnum.voluntarySuspension\r\n || item.patientStateId === PatientStateEnum.process);\r\n }\r\n\r\n const columns = [\r\n {\r\n name: \"patientCode\",\r\n label: IntlGetText(\"core.code\"),\r\n options: {\r\n filter: true,\r\n sort: true,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n \r\n {value}\r\n \r\n )\r\n }\r\n }\r\n },\r\n defaultCol('patientState','core.status'),\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: 'excluded',\r\n customSearch: (value, rowData) => {\r\n const documentValue = rowData[3];\r\n return documentValue.toLowerCase().indexOf(value.toLowerCase()) !== -1;\r\n },\r\n }\r\n },\r\n {\r\n name: \"document\",\r\n label: IntlGetText(\"core.documentOnly\"),\r\n options: {\r\n filter: true,\r\n searchable: true,\r\n sort: true,\r\n display: false,\r\n },\r\n },\r\n defaultCol('patient','core.patient'),\r\n defaultCol('formulationDate','core.formulationDate'),\r\n defaultCol('formulaDuration','core.formulaDuration'),\r\n defaultCol('prescriptionState','core.prescriptionState'),\r\n defaultCol('city','core.city'), \r\n {\r\n name: \"nurse\",\r\n label: IntlGetText(\"role.nurse\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return ;\r\n }\r\n },\r\n },\r\n defaultCol('doctor','core.attendingDoctor'),\r\n defaultCol('eps','core.insurance'),\r\n defaultCol('ips','core.institution'),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n if(isPSPCoordinator)\r\n return <>;\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n <>\r\n { !isJaasModuleConfig && isSuspended(rowObj) && \r\n } placement=\"bottom-end\">\r\n \r\n \r\n }\r\n } placement=\"bottom-end\">\r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n }\r\n ];\r\n \r\n const onActivePatient = (data) => {\r\n callApi(\r\n ()=>postActivatePatientByPrescriptionId(data),\r\n ()=>{\r\n NotificationManager.success(msgSuccess);\r\n handleCloseDlgActivate();\r\n loadData();\r\n }\r\n );\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default PatientManagement;","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport RegexConstants from \"constants/regexConstants\";\r\nimport { callApi, callApiAsync, getPatientInfoV2, postPatientAdd } from \"api/apiList\";\r\n\r\nconst AddPrescription = ({callBack, openDlg, closeDialog, patientId, allowEdit=true}) =>{ \r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n \r\n const defaultValues = {\r\n document:\"\",\r\n documentTypeId:null,\r\n name:\"\",\r\n lastName:\"\",\r\n email:\"\",\r\n cityId:null,\r\n phone:\"\",\r\n cellphone:\"\"\r\n };\r\n\r\n const [patientInfo, setPatientInfo] = useState({\r\n ...defaultValues,\r\n documentTypes: [],\r\n cities: [],\r\n });\r\n\r\n const validationSchema = {\r\n documentTypeId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n document: yup.string().required(),\r\n email: yup.string().matches(RegexConstants.email, {message:IntlGetText(\"yup.emailInvalid\"),excludeEmptyString:true})\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n\r\n const loadData=(data)=>{\r\n setValue(\"document\", !data || !data.document ? \"\" : data.document);\r\n setValue(\"name\", !data || !data.name ? \"\" : data.name);\r\n setValue(\"lastName\", !data || !data.lastName ? \"\" : data.lastName);\r\n setValue(\"email\", !data || !data.email ? \"\" : data.email);\r\n setValue(\"phone\", !data || !data.phone ? \"\" : data.phone);\r\n setValue(\"cellphone\", !data || !data.cellphone ? \"\" : data.cellphone);\r\n setValue(\"documentTypeId\", !data ? null : getCboValue(data.documentTypes, data.documentTypeId));\r\n setValue(\"cityId\", !data ? null : getCboValue(data.cities, data.cityId));\r\n };\r\n\r\n useEffect(() => {\r\n if(!openDlg) return;\r\n\r\n callApi(\r\n ()=>getPatientInfoV2(patientId),\r\n (data)=>{\r\n setPatientInfo(data);\r\n loadData(data);\r\n },\r\n fnSetLoader\r\n );\r\n }, [openDlg]);\r\n\r\n\r\n const onSubmitAsync = handleSubmit(async (d)=>{\r\n const patient = {\r\n id: patientInfo.id ? patientInfo.id : 0,\r\n name:d.name,\r\n lastName:d.lastName,\r\n documentTypeId:Number(d.documentTypeId.value),\r\n document:d.document,\r\n email:d.email,\r\n cityId: d.cityId && d.cityId.value ? Number(d.cityId.value) : null,\r\n phone:d.phone,\r\n cellphone:d.cellphone\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postPatientAdd(patient),\r\n ()=>{\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n const disabled = !allowEdit;\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={patientInfo.documentTypes}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={patientInfo.cities}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AddPrescription;","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Grid, IconButton, Tooltip } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport AddPatient from \"../addPatient\";\r\nimport { \r\n callApi, \r\n callApiAsync, \r\n getPrescriptionInfo, \r\n postPrescriptionAdd\r\n} from \"api/apiList\";\r\n\r\nconst AddPrescription = ({openDlg, closeDialog, callBack, prescriptionId, allowEdit=true}) =>{ \r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [dlgAddPatient, setDlgAddPatient] = useState(false);\r\n const [statusList, setStatusList] = useState([]);\r\n\r\n const defaultValues = {\r\n patientId:null,\r\n code:\"\",\r\n expeditionDate:null,\r\n expirationDate:null,\r\n insuranceId:null,\r\n productId:null,\r\n medicineAmount:\"\",\r\n unitValue:\"\",\r\n cityId:null,\r\n marketchainId:null,\r\n numberDeliveries:\"\",\r\n statusId: null\r\n };\r\n\r\n const [prescriptionInfo, setPrescriptionInfo] = useState({\r\n ...defaultValues,\r\n patients: [],\r\n products: [],\r\n cities: [],\r\n marketchains: [],\r\n insurances: [],\r\n prescriptionStatusList: []\r\n });\r\n\r\n function transformNumber(value, originalValue) {\r\n if(!originalValue || originalValue.trim() === '') return 0;\r\n \r\n const n = Number(originalValue);\r\n return (n !== 0 && !n) ? -1 : n;\r\n }\r\n const validationSchema = {\r\n patientId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n code: yup.string().required(),\r\n insuranceId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n productId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n cityId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n marketchainId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n medicineAmount: yup.number()\r\n .typeError(IntlGetText(\"yup.invalidInput\"))\r\n .required()\r\n .min(1, IntlGetText(\"yup.invalidInput\")).nullable(),\r\n numberDeliveries: yup.number()\r\n .typeError(IntlGetText(\"yup.invalidInput\"))\r\n .required()\r\n .min(1, IntlGetText(\"yup.invalidInput\")).nullable(),\r\n // unitValue: yup.number()\r\n // .transform(transformNumber)\r\n // .min(0, IntlGetText(\"yup.invalidInput\"))\r\n // .nullable()\r\n // unitValue: yup.number().when(\"code\", (code) => {\r\n // return yup.number()\r\n // .transform(transformNumber)\r\n // .min(0, IntlGetText(\"yup.invalidInput\"))\r\n // .nullable()\r\n // }),\r\n };\r\n if(!prescriptionId){\r\n validationSchema.statusId = yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable();\r\n }\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const setString = (obj, prop) =>\r\n setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) =>\r\n setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n const setCboValue = (obj, prop, list) => setValue(prop, !obj ? null : getCboValue(list, obj[prop]));\r\n \r\n const loadData=(obj)=>{\r\n setCboValue(obj, \"patientId\", obj.patients); \r\n setString(obj, \"code\");\r\n setDate(obj,\"expeditionDate\");\r\n setDate(obj,\"expirationDate\");\r\n setCboValue(obj, \"insuranceId\", obj.insurances);\r\n setCboValue(obj, \"productId\", obj.products);\r\n setString(obj, \"medicineAmount\");\r\n setString(obj, \"numberDeliveries\");\r\n //setString(obj, \"unitValue\");\r\n //setValue(\"unitValue\", !obj || !obj[\"unitValue\"] ? \"\" : Number(obj[\"unitValue\"]))\r\n \r\n setUnitValue(obj.productId, obj.products);\r\n setCboValue(obj, \"cityId\", obj.cities);\r\n setCboValue(obj, \"marketchainId\", obj.marketchains);\r\n\r\n if(!prescriptionId)\r\n setValue(\"statusId\",getCboValue(obj.prescriptionStatusList, 1));\r\n };\r\n\r\n const reloadPatients = () => {\r\n callApi(\r\n ()=>getPrescriptionInfo(prescriptionId),\r\n (data)=>{\r\n setPrescriptionInfo({...prescriptionInfo, patients: data.patients});\r\n var maxId = Math.max(...data.patients.map((x) => x.id));\r\n setValue(\"patientId\", getCboValue(data.patients, maxId));\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if(!openDlg)\r\n return;\r\n \r\n callApi(\r\n ()=>getPrescriptionInfo(prescriptionId),\r\n (data)=>{\r\n setPrescriptionInfo(data);\r\n setTimeout(() => loadData(data), 130);\r\n },\r\n fnSetLoader\r\n );\r\n }, [openDlg]);\r\n\r\n const setUnitValue =(productId, productList)=>{\r\n const product = productList.find(x=>x.id === productId);\r\n if(!product) return;\r\n\r\n setValue(\"unitValue\", product.unitValue ? product.unitValue : \"\");\r\n }\r\n\r\n const cboHandleChange = (name) => (d) => {\r\n setValue(name, d);\r\n if(!d)\r\n return;\r\n setUnitValue(d.value, prescriptionInfo.products);\r\n };\r\n\r\n const onSubmitAsync = handleSubmit(async (d)=>{\r\n const obj = {\r\n id:prescriptionId,\r\n patientId:Number(d.patientId.value),\r\n code:d.code,\r\n expeditionDate:!d.expeditionDate ? null : dayjs(d.expeditionDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n expirationDate:!d.expirationDate ? null : dayjs(d.expirationDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n insuranceId:Number(d.insuranceId.value),\r\n productId:Number(d.productId.value),\r\n medicineAmount:Number(d.medicineAmount),\r\n numberDeliveries:Number(d.numberDeliveries),\r\n cityId:Number(d.cityId.value),\r\n marketchainId:Number(d.marketchainId.value),\r\n statusId: !d.statusId ? 0 : Number(d.statusId.value)\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postPrescriptionAdd(obj),\r\n ()=>{\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n const disabled = !allowEdit;\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={prescriptionInfo.cities}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionInfo.patients}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {!disabled &&\r\n \r\n
    \r\n } placement=\"bottom-end\">\r\n setDlgAddPatient(true)}\r\n >\r\n \r\n \r\n \r\n setDlgAddPatient(false)}\r\n callBack={reloadPatients}\r\n patientId={0}/>\r\n
    \r\n
    \r\n }\r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disableFuture={true}\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n //disableFuture={true}\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionInfo.insurances}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionInfo.marketchains}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n //required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={prescriptionInfo.products} \r\n value={watch(\"productId\")}\r\n onChange={cboHandleChange(\"productId\")}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={true}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {!prescriptionId && \r\n \r\n }\r\n options={prescriptionInfo.prescriptionStatusList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AddPrescription;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport { \r\n callApi, \r\n callApiAsync,\r\n postScheduleImpact\r\n} from \"api/apiList\";\r\n\r\nconst ScheduleImpact = ({openDlg, closeDialog, callBack, prescriptionId, idPlannedImpact, datePlanningImpact}) =>{\r\n const defaultValues = {\r\n planningDate: datePlanningImpact\r\n };\r\n\r\n const validationSchema = {\r\n planningDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue } = methods;\r\n\r\n useEffect(() => {\r\n if(!openDlg)\r\n return;\r\n \r\n setTimeout(() => {\r\n setValue(\"planningDate\", !datePlanningImpact ? null : dayjs(datePlanningImpact))\r\n }, 200);\r\n }, [openDlg]);\r\n\r\n const onSubmitAsync = handleSubmit(async (d)=>{\r\n const obj = {\r\n prescriptionId: prescriptionId,\r\n impactId: idPlannedImpact,\r\n planningDate: !d.planningDate ? null : dayjs(d.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n \r\n await callApiAsync(\r\n ()=>postScheduleImpact(obj),\r\n ()=>{\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disablePast={true}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ScheduleImpact;","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n Grid,\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport ButtonAsync from \"components/Form/Controls/ButtonAsync\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postStartImpact,\r\n getImpactTypeList,\r\n postEndImpact\r\n} from \"api/apiList\";\r\n\r\nconst DialogEndImpact = ({\r\n open,\r\n handleRequestClose,\r\n callEndImpact,\r\n impactStartDate,\r\n}) => {\r\n const defaultValues = {\r\n endDate: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nursingNote: \"\",\r\n };\r\n const validationSchema = {\r\n nursingNote: yup\r\n .string()\r\n .required(),\r\n endDate: yup\r\n .date()\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .min(\r\n dayjs(impactStartDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n IntlGetText(\"impact.invalidEndDate\")\r\n )\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(() => {\r\n if (open) {\r\n setTimeout(\r\n () => setValue(\"endDate\", dayjs().format(\"YYYY-MM-DDTHH:mm:ss\")),\r\n 150\r\n );\r\n }\r\n }, [open]);\r\n\r\n const onSubmit = async (data, e) => {\r\n await callEndImpact(\r\n dayjs(data.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n data.nursingNote\r\n );\r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={5}\r\n variant=\"outlined\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst DialogStartImpact = ({ open, handleRequestClose, callStartImpact }) => {\r\n const [impactTypeList, setImpactTypeList] = useState([]);\r\n \r\n useEffect(()=> callApi(getImpactTypeList, setImpactTypeList), []);\r\n\r\n const defaultValues = { \r\n startDate: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n impactTypeId: null\r\n };\r\n const validationSchema = {\r\n impactTypeId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n const methods = useForm({ defaultValues, resolver: yupResolver(yup.object().shape(validationSchema)) });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(() => {\r\n if (open) {\r\n setTimeout(\r\n () => setValue(\"startDate\", dayjs().format(\"YYYY-MM-DDTHH:mm:ss\")),\r\n 150\r\n );\r\n }\r\n }, [open]);\r\n\r\n const onSubmit = async (data, e) => {\r\n await callStartImpact(\r\n dayjs(data.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n Number(data.impactTypeId.value));\r\n };\r\n\r\n return (\r\n \r\n {}\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={impactTypeList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst StartEndImpact = ({prescriptionId, currentImpact, setCurrentImpact, requestCloseDlg }) => {\r\n const [open, setOpen] = useState(false);\r\n const [impactStartDate, setImpactStartDate] = useState(null);\r\n const [impactEndDate, setImpactEndDate] = useState(null);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n useEffect(()=>{\r\n setImpactStartDate(currentImpact && currentImpact.startDate ? currentImpact.startDate : null);\r\n setImpactEndDate(currentImpact && currentImpact.endDate ? currentImpact.endDate : null);\r\n },[currentImpact]);\r\n \r\n const handleRequestClose = () => setOpen(false);\r\n \r\n const callStartImpact = async (startDate, impactTypeId) => {\r\n await callApiAsync(\r\n () =>\r\n postStartImpact({\r\n id: currentImpact && currentImpact.id ? currentImpact.id : 0,\r\n prescriptionId: prescriptionId,\r\n startDate,\r\n impactTypeId,\r\n }),\r\n (data) => {\r\n handleRequestClose();\r\n NotificationManager.success(msgSuccess);\r\n setCurrentImpact(data);\r\n }\r\n );\r\n };\r\n\r\n const callEndImpact = async (endDate, nursingNote) => {\r\n await callApiAsync(\r\n () =>\r\n postEndImpact({\r\n id: currentImpact.id,\r\n endDate,\r\n nursingNote\r\n }),\r\n (data) => {\r\n handleRequestClose();\r\n NotificationManager.success(msgSuccess);\r\n requestCloseDlg();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n {!impactStartDate && (\r\n
    \r\n \r\n setOpen(true)}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n
    \r\n )}\r\n\r\n {impactStartDate && !impactEndDate && (\r\n
    \r\n \r\n setOpen(true)}\r\n variant=\"contained\"\r\n className=\"ml-3 jr-btn bg-green text-white\"\r\n >\r\n \r\n \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\nexport default StartEndImpact;\r\n","import React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport AddPatient from \"../prescriptions/addPatient\";\r\n\r\nconst PatientBox = (props) => {\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n\r\n return (\r\n <>\r\n setOpenDlgPatient(true)}\r\n />\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n}\r\n\r\nexport default PatientBox;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid, IconButton } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n postAddPharmacy,\r\n getPharmacyByMarketChain,\r\n postDeliveryAdd\r\n} from \"api/apiList\";\r\nimport { DeliveryModeList } from \"constants/Enums\";\r\n\r\nconst AddDelivery = ({\r\n openDlg,\r\n requestCloseDlg,\r\n callBack,\r\n impact,\r\n marketchainId,\r\n delivery\r\n}) => {\r\n const [isAddPharmacy, setIsAddPharmacy] = useState(false);\r\n const [visitTargetList, setVisitTargetList] = useState([]);\r\n const [formLoaded, setFormLoaded] = useState(false);\r\n const deliveryModeList = DeliveryModeList();\r\n\r\n const defaultValues = {\r\n marketChainId: null,\r\n visitTargetId: null,\r\n medicineAmount: \"\",\r\n deliveryDate: null,\r\n planningDate: null,\r\n deliveryMode: null,\r\n comment: \"\",\r\n\r\n newPharmacyName: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n visitTargetId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n deliveryMode: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n medicineAmount: yup\r\n .string()\r\n .required()\r\n // deliveryDate: yup\r\n // .date()\r\n // .nullable(true)\r\n // .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n // .required(),\r\n // planningDate: yup\r\n // .date()\r\n // .nullable(true)\r\n // .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n // .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, watch, setValue, errors } = methods;\r\n \r\n const newPharmacyNameValue = watch(\"newPharmacyName\");\r\n\r\n const setString = (obj, prop) =>\r\n setValue(prop, !obj || !obj[prop] ? \"\" : obj[prop]);\r\n const setDate = (obj, prop) =>\r\n setValue(prop, !obj || !obj[prop] ? null : dayjs(obj[prop]));\r\n\r\n const loadData = (obj) => {\r\n setValue(\"visitTargetId\",\r\n !obj ? null : getCboValue(visitTargetList, obj.dispensingPointId)\r\n );\r\n setValue(\"deliveryMode\",\r\n !obj ? null : getCboValue(deliveryModeList, obj.deliveryMode)\r\n );\r\n setDate(obj, \"deliveryDate\");\r\n setDate(obj, \"planningDate\");\r\n setString(obj, \"comment\");\r\n setString(obj, \"medicineAmount\");\r\n };\r\n \r\n useEffect(() => {\r\n setFormLoaded(false);\r\n setTimeout(()=>loadData(delivery),130);\r\n }, [openDlg]);\r\n\r\n useEffect(() => {\r\n setValue(\"visitTargetId\", null);\r\n if (!marketchainId || !marketchainId) {\r\n setVisitTargetList([]);\r\n return;\r\n }\r\n callApi(\r\n () => getPharmacyByMarketChain(marketchainId),\r\n setVisitTargetList\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [marketchainId]);\r\n\r\n useEffect(() => {\r\n if (!formLoaded && visitTargetList.length > 0) {\r\n setValue(\r\n \"visitTargetId\",\r\n getCboValue(visitTargetList, !delivery ? \"\" : delivery.dispensingPointId)\r\n );\r\n setFormLoaded(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [visitTargetList]);\r\n \r\n const handleNewPharmacy = () => {\r\n if (!isAddPharmacy) {\r\n setIsAddPharmacy(true);\r\n return;\r\n }\r\n\r\n if (!newPharmacyNameValue) return;\r\n\r\n var obj = {\r\n marketChainId: marketchainId,\r\n name: newPharmacyNameValue,\r\n };\r\n\r\n callApi(\r\n () => postAddPharmacy(obj),\r\n (data) => {\r\n setIsAddPharmacy(false);\r\n setVisitTargetList([...visitTargetList, data]);\r\n setValue(\"visitTargetId\", { label: data.name, value: data.id });\r\n }\r\n );\r\n };\r\n\r\n const onSubmitAsync = handleSubmit(async (d) => {\r\n const obj = {\r\n id: delivery ? delivery.id : 0,\r\n impactId: impact.id,\r\n medicineAmount:Number(d.medicineAmount),\r\n planningDate: !d.planningDate\r\n ? null\r\n : dayjs(d.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n deliveryDate: !d.deliveryDate\r\n ? null\r\n : dayjs(d.deliveryDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n deliveryMode: Number(d.deliveryMode.value),\r\n comment: d.comment,\r\n dispensingPointId: Number(d.visitTargetId.value)\r\n };\r\n\r\n await callApiAsync(\r\n () => postDeliveryAdd(obj),\r\n () => {\r\n if (callBack) callBack();\r\n requestCloseDlg();\r\n }\r\n );\r\n });\r\n\r\n const disabled = false;\r\n\r\n return (\r\n
    \r\n\r\n \r\n \r\n
    \r\n \r\n \r\n {!isAddPharmacy && (\r\n \r\n }\r\n options={visitTargetList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n )}\r\n {isAddPharmacy && (\r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n )}\r\n \r\n {!disabled && (\r\n \r\n
    \r\n \r\n \r\n \r\n {isAddPharmacy && (\r\n setIsAddPharmacy(false)}\r\n >\r\n \r\n \r\n )}\r\n
    \r\n
    \r\n )}\r\n \r\n }\r\n options={deliveryModeList}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled={disabled}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disablePast={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n disableFuture={true}\r\n margin=\"normal\"\r\n disabled={disabled}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n multiline\r\n rows={4}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AddDelivery;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport Table, { minimalOptions, defaultCol, dateColumn } from \"components/Form/Table\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport AddDelivery from \"./AddDelivery\";\r\nimport { callApi, getMedicineDeliveryListV2 } from \"api/apiList\";\r\n\r\nconst getDeliveriesCount = (deliveryList) => {\r\n return deliveryList.filter(x=>x.deliveryDate)\r\n .map(x=>x.medicineAmount)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n};\r\n\r\nconst DlgDeliveries = ({openDlg, requestCloseDlg, prescriptionId, medicineAmount, impact, marketchainId, numberDeliveries, allowEdit}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [openDlgAddDelivery, setOpenDlgAddDelivery] = useState(false);\r\n const [deliveryList, setDeliveryList] = useState([]);\r\n const [currentDelivery, setCurrentDelivery] = useState(null);\r\n const dlgTitleText = IntlGetText(\"insuranceAuthorization.deliveries\");\r\n const medicineText = IntlGetText(\"medicineDelivery.cardSubTitle\");\r\n\r\n const loadData =()=>{\r\n if(!prescriptionId){\r\n setDeliveryList([]);\r\n return;\r\n }\r\n\r\n callApi(\r\n ()=>getMedicineDeliveryListV2(prescriptionId),\r\n setDeliveryList,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(loadData, [openDlg]);\r\n\r\n const getObj = (tableMeta) =>\r\n deliveryList.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"dispensingPoint\", \"core.dispensingPoint\"),\r\n defaultCol(\"deliveryModeText\", \"core.deliveryMode\"),\r\n defaultCol(\"medicineAmount\", \"medicineDelivery.medAmountDlvr\"),\r\n dateColumn(\"planningDate\", \"core.deliveryScheduledDate\"),\r\n dateColumn(\"deliveryDate\", \"radicadoOLF.dlvrDate\"),\r\n defaultCol(\"comment\", \"core.comment\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(!allowEdit)\r\n return \"\";\r\n return (\r\n
    \r\n } placement=\"bottom-end\">\r\n {\r\n setCurrentDelivery(rowObj);\r\n setOpenDlgAddDelivery(true);\r\n loadData();\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n },\r\n ];\r\n\r\n return(\r\n x.deliveryDate).length}/${numberDeliveries ?? 0}`}\r\n maxWidth=\"md\"\r\n >\r\n

    {medicineText + ` ${getDeliveriesCount(deliveryList)}/${medicineAmount}`}

    \r\n {allowEdit && \r\n
    \r\n setOpenDlgAddDelivery(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n }\r\n {\r\n setOpenDlgAddDelivery(false);\r\n setCurrentDelivery(null);\r\n }}\r\n callBack={loadData}\r\n impact={impact}\r\n marketchainId={marketchainId}\r\n delivery={currentDelivery}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgDeliveries;","import React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport Deliveries from \"../deliveries\";\r\n\r\nconst DeliveryBox = (props) => {\r\n const { closeDialog, ...remaining} = props;\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const requestCloseDlg = () => setOpenDlg(false);\r\n\r\n return (\r\n <>\r\n setOpenDlg(true)}\r\n />\r\n {\r\n if(closeDialog)\r\n closeDialog();\r\n requestCloseDlg();\r\n }} \r\n {...remaining}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default DeliveryBox;\r\n","import React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport AddPrescription from \"../prescriptions/addPrescription\";\r\n\r\nconst PrescriptionBox = (props) => {\r\n const [openDlgPrescription, setOpenDlgPrescription] = useState(false);\r\n\r\n return (\r\n <>\r\n setOpenDlgPrescription(true)}\r\n />\r\n setOpenDlgPrescription(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n}\r\n\r\nexport default PrescriptionBox;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Grid, IconButton, Tooltip } from \"@material-ui/core\";\r\nimport Table, {\r\n minimalOptions,\r\n defaultCol,\r\n dateColumn,\r\n} from \"components/Form/Table\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport { callApi,\r\n callApiAsync,\r\n getPrescriptionStateLog,\r\n getPrescriptionStatusList,\r\n postPrescriptionChangeState\r\n} from \"api/apiList\";\r\n\r\nconst DlgDeliveries = ({ openDlg, requestCloseDlg, prescriptionId, statusId, allowEdit, callBack }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [stateLogList, setStateLogList] = useState([]);\r\n const [statusList, setStatusList] = useState([]);\r\n\r\n const loadData = () => {\r\n if (!prescriptionId) {\r\n setStateLogList([]);\r\n return;\r\n }\r\n\r\n callApi(\r\n () => getPrescriptionStateLog(prescriptionId),\r\n setStateLogList,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const defaultValues = { statusId: null };\r\n const validationSchema = {\r\n statusId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n };\r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue } = methods;\r\n\r\n useEffect(loadData, [openDlg]);\r\n useEffect(()=>{\r\n callApi(getPrescriptionStatusList, setStatusList);\r\n }, []);\r\n\r\n useEffect(()=>{\r\n if(!openDlg)return;\r\n setTimeout(() => {\r\n setValue(\"statusId\", !statusId ? null : getCboValue(statusList, statusId));\r\n }, 130);\r\n }, [openDlg]);\r\n\r\n const onSubmit = handleSubmit(async (d)=>{\r\n const obj = {\r\n id: prescriptionId,\r\n statusId: !d.statusId ? null : Number(d.statusId.value)\r\n };\r\n\r\n if(obj.statusId === statusId)\r\n return;\r\n\r\n await callApiAsync(\r\n ()=> postPrescriptionChangeState(obj),\r\n ()=> {\r\n loadData();\r\n if(callBack)\r\n callBack();\r\n }\r\n );\r\n });\r\n\r\n const columns = [\r\n dateColumn(\"creationDate\", \"core.date\"),\r\n defaultCol(\"prescriptionStatus\", \"core.state\")\r\n ];\r\n\r\n return (\r\n \r\n { allowEdit &&\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n options={statusList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n
    \r\n } placement=\"bottom-end\">\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgDeliveries;\r\n","import React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DlgStates from \"../dlgStates\";\r\n\r\nconst PrescriptionStateBox = (props) => {\r\n const [openDlg, setOpenDlg] = useState(false);\r\n const requestCloseDlg = () => setOpenDlg(false);\r\n\r\n return (\r\n <>\r\n setOpenDlg(true)}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nexport default PrescriptionStateBox;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip } from \"@material-ui/core\";\r\nimport Table, { minimalOptions, defaultCol, dateColumn } from \"components/Form/Table\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport DlgCoachComment from \"../components/dlgCoachComment\";\r\nimport { callApi, getImpactsByPrescriptionV2 } from \"api/apiList\";\r\n\r\nconst DlgImpacts = ({openDlg, requestCloseDlg, prescriptionId}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [impactList, setImpactList] = useState([]);\r\n const [currentImpact, setCurrentImpact] = useState(null);\r\n const [openDlgComment, setOpenDlgComment] = useState(false);\r\n\r\n const loadData =()=>{\r\n if(!prescriptionId){\r\n setImpactList([]);\r\n return;\r\n }\r\n\r\n callApi(\r\n ()=>getImpactsByPrescriptionV2(prescriptionId),\r\n setImpactList,\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(loadData, [openDlg]);\r\n\r\n const getObj = (tableMeta) =>\r\n impactList.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n },\r\n defaultCol(\"impactType\", \"impact.ImpactType\"),\r\n dateColumn(\"startDate\", \"core.startDate\",\"YYYY/MM/DD hh:mm a\"),\r\n dateColumn(\"endDate\", \"core.endDate\",\"YYYY/MM/DD hh:mm a\"),\r\n defaultCol(\"nursingNote\", \"core.comment\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"table.coordinatorComment\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n if(!rowObj.coordComment)\r\n return \"\";\r\n\r\n var tooltipTitle = \"reports.coordinatorComment\";\r\n var bottonIcon = \"zmdi zmdi-eye\";\r\n \r\n return (\r\n
    \r\n } \r\n placement=\"bottom-end\">\r\n {\r\n setCurrentImpact(rowObj);\r\n setOpenDlgComment(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n }\r\n ];\r\n\r\n return(\r\n \r\n {\r\n setCurrentImpact(null);\r\n setOpenDlgComment(false);\r\n }}\r\n impact={currentImpact}\r\n isManager={false}/>\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgImpacts;","import React, { useState } from \"react\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport DlgImpacts from \"../impacts\";\r\n\r\nconst DeliveryBox = (props) => {\r\n const [openDlgImpacts, setOpenDlgImpacts] = useState(false);\r\n\r\n return (\r\n <>\r\n setOpenDlgImpacts(true)}\r\n />\r\n setOpenDlgImpacts(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default DeliveryBox;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport * as dayjs from \"dayjs\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport ScrollContent from \"../../psp/management/scrollContent\";\r\nimport StartEndImpact from \"./startEndImpact\";\r\nimport PatientBox from \"./patientBox\";\r\nimport DeliveryBox from \"./deliveryBox\";\r\nimport PrescriptionBox from \"./prescriptionBox\";\r\nimport PrescriptionStateBox from \"./prescriptionStateBox\";\r\nimport ImpactBox from \"./impactBox\";\r\nimport { callApi, getImpactInfo } from \"api/apiList\";\r\n\r\nconst ImpactDetail = ({\r\n openDlg,\r\n requestCloseDlg,\r\n impactId,\r\n prescription,\r\n isManager\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [currentImpact, setCurrentImpact] = useState(null);\r\n const patientName = IntlGetText(\"core.newPatient\");\r\n\r\n const loadImpactInfo = (impactId) => {\r\n callApi(()=>getImpactInfo(impactId), setCurrentImpact, fnSetLoader);\r\n };\r\n\r\n useEffect(()=>{\r\n if(!impactId){\r\n setCurrentImpact(null);\r\n return;\r\n }\r\n loadImpactInfo(impactId);\r\n },[impactId]);\r\n\r\n const getPatientName = (impact) => {\r\n if(!impact) return \"\";\r\n return !impact.patient\r\n ? patientName\r\n : impact.document + \" - \"+ impact.patient;\r\n };\r\n\r\n const getProp = (obj, prop) => {\r\n if (!obj) return \"\";\r\n return obj[prop];\r\n };\r\n const getDate = (obj, prop) => {\r\n if (!obj && !obj[prop]) return \"\";\r\n return dayjs(obj[prop]).format(\"YYYY/MM/DD hh:mm a\");\r\n };\r\n\r\n const closeDialog = () => {\r\n setCurrentImpact(null);\r\n requestCloseDlg();\r\n };\r\n\r\n const allowEdit = (impact) => !isManager && impact && impact.startDate ? true : false;\r\n\r\n return (\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n :{\" \"}\r\n {\" \"}\r\n {getProp(currentImpact, \"prescriptionCode\") || getProp(prescription, \"code\")}\r\n \r\n {\" \"}\r\n | :{\" \"}\r\n {\" \"}\r\n {getProp(currentImpact, \"status\") || getProp(prescription, \"status\")} \r\n
    \r\n
    \r\n :{\" \"}\r\n {\" \"}\r\n {getPatientName(currentImpact) || getPatientName(prescription)}\r\n \r\n {\" \"}\r\n | :{\" \"}\r\n {\" \"}\r\n {getProp(currentImpact, \"product\") || getProp(prescription, \"product\")}\r\n
    \r\n {currentImpact && \r\n
    \r\n :{\" \"}\r\n {\" \"}\r\n {getProp(currentImpact, \"impactType\")}\r\n \r\n {\" \"}\r\n | :{\" \"}\r\n {\" \"}\r\n {getDate(currentImpact, \"startDate\")}\r\n
    \r\n }\r\n
    \r\n {!isManager && \r\n \r\n }\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n loadImpactInfo(currentImpact && currentImpact.id)}\r\n numberDeliveries={getProp(prescription, \"numberDeliveries\")}\r\n allowEdit={allowEdit(currentImpact)}/>\r\n
    \r\n
    \r\n loadImpactInfo(currentImpact && currentImpact.id)}\r\n />\r\n
    \r\n
    \r\n loadImpactInfo(currentImpact && currentImpact.id)}\r\n />\r\n
    \r\n
    \r\n loadImpactInfo(currentImpact && currentImpact.id)}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ImpactDetail;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Button, Tooltip, Grid, IconButton } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport Table, { defaultCol, dateColumn, getTextLabels } from \"components/Form/Table\";\r\nimport AddPrescription from \"./addPrescription\";\r\nimport ScheduleImpact from './scheduleImpact';\r\nimport ImpactDetail from '../impactDetail';\r\nimport { RoleEnum } from 'constants/Enums';\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { \r\n callApi, \r\n postPrescriptionsList, \r\n getProductList,\r\n getPrescriptionStatusList,\r\n getUserByRole\r\n} from \"api/apiList\";\r\n\r\n\r\nconst getUserList = (data) =>{\r\n return data.map(x => ({\r\n id: x.id,\r\n name: x.fullName\r\n }));\r\n}\r\n\r\nconst Prescriptions = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [currentPrescription, setCurrentPrescription] = useState(null);\r\n const [openDlgPrescription, setOpenDlgPrescription] = useState(false);\r\n const [openDlgAddImpact, setOpenDlgAddImpact] = useState(false);\r\n const [openDlgScheduleImpact, setOpenDlgScheduleImpact] = useState(false);\r\n const [state, setState] = useState({\r\n page: 0,\r\n count: 0,\r\n data: [],\r\n rowsPerPage: 10\r\n });\r\n const [productList, setProductList] = useState([]);\r\n const [stateList, setStateList] = useState([]);\r\n const [userList, setUserList] = useState([]); \r\n const filterDateType = [\r\n {id:1,name:IntlGetText('core.expeditionDateShort')},\r\n {id:2,name:IntlGetText('core.expirationDate')},\r\n {id:3,name:IntlGetText('core.lastImpact')},\r\n {id:4,name:IntlGetText('core.nextFollowUp')},\r\n {id:5,name:IntlGetText('core.deliveryScheduledDate')}\r\n ];\r\n \r\n\r\n const defaultValues = {\r\n userId: null,\r\n stateId: null,\r\n productId: null,\r\n filterDateTypeId: null,\r\n startDate: null,\r\n endDate: null,\r\n search:\"\"\r\n };\r\n const [filterTable, setFilterTable] = useState(defaultValues);\r\n \r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n \r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, trigger, getValues, watch, setValue } = methods;\r\n\r\n const getObj = (tableMeta) =>\r\n state.data.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"id\",\r\n options: {\r\n filter: true,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\"\r\n },\r\n },\r\n defaultCol(\"document\", \"core.patient\"),\r\n defaultCol(\"code\", \"core.mipres\"),\r\n dateColumn(\"expeditionDate\", \"core.expeditionDateShort\"),\r\n dateColumn(\"expirationDate\", \"core.expirationDate\"),\r\n defaultCol(\"product\", \"core.product\"),\r\n defaultCol(\"status\", \"core.state\"),\r\n defaultCol(\"quantityText\", \"core.amount\"),\r\n dateColumn(\"lastImpactDate\", \"core.lastImpact\"),\r\n dateColumn(\"datePlanningImpact\", \"core.nextFollowUp\"),\r\n dateColumn(\"planningDate\", \"core.deliveryScheduledDate\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n
    \r\n } \r\n placement=\"bottom-end\">\r\n {\r\n setCurrentPrescription(rowObj);\r\n setOpenDlgAddImpact(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n } \r\n placement=\"bottom-end\">\r\n {\r\n setCurrentPrescription(rowObj);\r\n setOpenDlgScheduleImpact(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n \r\n
    \r\n );\r\n },\r\n },\r\n }\r\n ];\r\n\r\n const xhrRequest = (page, sortOrder, filterTable, rowsPerPage) => {\r\n callApi(\r\n ()=> postPrescriptionsList({page, sortOrder, filterTable, rowsPerPage}),\r\n (d)=>{\r\n setState({\r\n ...state,\r\n data: d.data,\r\n count: d.count,\r\n page: page,\r\n rowsPerPage: rowsPerPage\r\n });\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const loadData =()=>{\r\n xhrRequest(state.page, undefined, filterTable, state.rowsPerPage);\r\n };\r\n\r\n const changePage = (page, sortOrder, rowsPerPage) => {\r\n xhrRequest(page, sortOrder, filterTable, rowsPerPage);\r\n };\r\n\r\n useEffect(()=>{\r\n loadData();\r\n callApi(getProductList,setProductList);\r\n callApi(getPrescriptionStatusList,setStateList);\r\n callApi(\r\n ()=>getUserByRole(RoleEnum.callAgent),\r\n (data) => {\r\n setUserList(getUserList(data));\r\n }\r\n );\r\n }, []);\r\n\r\n const getOptions=({ data, page, count, rowsPerPage })=> {\r\n return {\r\n filter: false,\r\n viewColumns: false,\r\n rowsPerPage: rowsPerPage,\r\n rowsPerPageOptions: [10,50,100],\r\n download: false,\r\n print: false,\r\n search: false,\r\n selectableRows: \"none\",\r\n\r\n serverSide: true,\r\n count: count,\r\n page:page,\r\n onTableChange: (action, tableState) => {\r\n if (action === \"changePage\") {\r\n changePage(tableState.page, tableState.sortOrder, tableState.rowsPerPage);\r\n }\r\n },\r\n textLabels: getTextLabels()\r\n };\r\n };\r\n\r\n const filterSubmit = async () => {\r\n const d = getValues();\r\n const obj = {\r\n userId: !d.userId ? null : d.userId.value,\r\n stateId: !d.stateId ? [] : d.stateId.map(x=>Number(x.value)),\r\n productId: !d.productId ? [] : d.productId.map(x=>Number(x.value)),\r\n filterDateTypeId: !d.filterDateTypeId ? null : Number(d.filterDateTypeId.value),\r\n startDate: !d.startDate ? null : dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n endDate: !d.endDate ? null : dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n search: !d.search ? null : d.search\r\n }\r\n setFilterTable(obj);\r\n xhrRequest(state.page, undefined, obj, state.rowsPerPage);\r\n };\r\n\r\n const isManager = isRole(RoleEnum.callAgentManager);\r\n const getWith = (isManager) => isManager ? 4 : 6;\r\n\r\n return (\r\n
    \r\n {!isManager && \r\n
    \r\n setOpenDlgPrescription(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n \r\n \r\n { isManager && \r\n \r\n }\r\n options={userList}\r\n margin=\"normal\"\r\n />\r\n \r\n }\r\n \r\n }\r\n options={stateList}\r\n margin=\"normal\"\r\n isMulti\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={productList}\r\n margin=\"normal\"\r\n isMulti\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={filterDateType}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n setValue(\"search\",'');\r\n setValue(\"stateId\",null);\r\n setValue(\"productId\",null);\r\n setValue(\"filterDateTypeId\",null);\r\n setValue(\"startDate\",null);\r\n setValue(\"endDate\",null);\r\n setValue(\"userId\",null);\r\n filterSubmit();\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n setOpenDlgPrescription(false);\r\n setCurrentPrescription(null);\r\n }}\r\n callBack={filterSubmit}\r\n prescriptionId={currentPrescription ? currentPrescription.id : 0}\r\n />\r\n {\r\n setOpenDlgScheduleImpact(false);\r\n setCurrentPrescription(null);\r\n }}\r\n callBack={loadData}\r\n prescriptionId={currentPrescription ? currentPrescription.id : 0}\r\n idPlannedImpact={currentPrescription ? currentPrescription.idPlannedImpact : 0}\r\n datePlanningImpact={currentPrescription ? currentPrescription.datePlanningImpact : null}\r\n />\r\n {\r\n setOpenDlgAddImpact(false);\r\n setCurrentPrescription(null);\r\n filterSubmit();\r\n }}/>\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default Prescriptions;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { Button, Grid, Card, CardContent, Typography } from \"@material-ui/core\";\r\n\r\nconst CardTotal = ({title, subtitleId}) => {\r\n return (\r\n \r\n //
    \r\n //
    \r\n //
    \r\n //
    \r\n // \r\n // {\"price\"}\r\n // \r\n // {\"detail\"}\r\n //
    \r\n //
    \r\n //
    \r\n //
    \r\n
    \r\n \r\n {title}\r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default CardTotal;\r\n","import React from \"react\";\r\nimport Highcharts from \"highcharts\";\r\nimport Chart from \"highcharts-react-official\";\r\n\r\nconst ChartComponent = (props) => {\r\n return ;\r\n};\r\n\r\nexport default ChartComponent;\r\n","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\n\r\nconst formatCurrency = (total, decimals) => {\r\n let value = total;\r\n if (value == 0)\r\n return \"$ 0\";\r\n\r\n let unit = \"\";\r\n if (value < 1000000)\r\n {\r\n unit = \"K\";\r\n value = value / 1000;\r\n }\r\n else if (value < 1000000000000)\r\n {\r\n unit = \"M\";\r\n value = value / 1000000;\r\n }\r\n else\r\n {\r\n unit = \"bn\";\r\n value = value / 1000000000000;\r\n }\r\n\r\n value = Math.round(value, decimals);\r\n return `$ ${value}${unit}`;\r\n};\r\n\r\nexport const totalizationChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.accumulatedRecovery\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.name}: {point.percentage:.1f} %\",\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const totalizationByDateChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.recoveryByDate\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.name}: {point.percentage:.1f} %\",\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const detailEffectiveChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.effective\");\r\n const stateTypeText = IntlGetText(\"core.monitoringStatus\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.name}: {point.percentage:.1f} %\",\r\n },\r\n },\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const causalNotEffectiveChart = (locale, keyValuePairData, titleText) => {\r\n const monitoringStatusText = IntlGetText(\"core.monitoringStatus\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n \r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: {\r\n plotBackgroundColor: null,\r\n plotBorderWidth: null,\r\n plotShadow: false,\r\n type: \"pie\",\r\n },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n accessibility: {\r\n point: {\r\n valueSuffix: \"%\",\r\n },\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.percentage:.2f} %\",\r\n },\r\n },\r\n },\r\n legend: {\r\n align: \"right\",\r\n verticalAlign: \"top\",\r\n layout: \"vertical\",\r\n x: 0,\r\n y: 100,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n monitoringStatusText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"Brands\",\r\n colorByPoint: true,\r\n data: data\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const productLineChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.byProduct\");\r\n const familyText = IntlGetText(\"core.family\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'column' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{\r\n categories: categories\r\n }],\r\n yAxis:{ visible: false },\r\n legend: { enabled: false },\r\n // yAxis: [{ // Secondary yAxis\r\n // title: {\r\n // text: 'Rainfall',\r\n // // style: {\r\n // // color: Highcharts.getOptions().colors[0]\r\n // // }\r\n // },\r\n // labels: {\r\n // format: '{value} mm',\r\n // // style: {\r\n // // color: Highcharts.getOptions().colors[0]\r\n // // }\r\n // }\r\n // }],\r\n // tooltip: {\r\n // shared: true\r\n // },\r\n // legend: {\r\n // layout: 'vertical',\r\n // align: 'left',\r\n // x: 120,\r\n // verticalAlign: 'top',\r\n // y: 100,\r\n // floating: true,\r\n // backgroundColor:\r\n // Highcharts.defaultOptions.legend.backgroundColor || // theme\r\n // 'rgba(255,255,255,0.25)'\r\n // },\r\n // plotOptions: {\r\n // column: {\r\n // stacking: 'normal',\r\n // dataLabels: {\r\n // enabled: true\r\n // }\r\n // }\r\n // },\r\n // plotOptions: {\r\n // column: {\r\n // pointPadding: 0,\r\n // borderWidth: 0\r\n // }\r\n // },\r\n // plotOptions: {\r\n // series: {\r\n // pointWidth: 35\r\n // }\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n familyText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: 'Rainfall',\r\n type: 'column',\r\n data: data,\r\n // tooltip: {\r\n // valueSuffix: ' mm'\r\n // },\r\n dataLabels: {\r\n enabled: true,\r\n // rotation: -90,\r\n // color: '#FFFFFF',\r\n //align: 'right',\r\n //format: '{point.y:.1f}', // one decimal\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0, // 10 pixels down from the top\r\n // style: {\r\n // fontSize: '13px',\r\n // fontFamily: 'Verdana, sans-serif'\r\n // }\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const causalNotEffectiveMoneyChart = (locale, keyValuePairData, titleText) => {\r\n const monitoringStatusText = IntlGetText(\"core.monitoringStatus\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n // lang: {\r\n // thousandsSep: '.',\r\n // decimalPoint: ','\r\n // },\r\n credits: { enabled: false },\r\n chart: { type: 'bar' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ visible: false },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n monitoringStatusText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n // tooltip: {\r\n // valueSuffix: ' mm'\r\n // },\r\n dataLabels: {\r\n enabled: true,\r\n // rotation: -90,\r\n // color: '#FFFFFF',\r\n //align: 'right',\r\n //format: '{point.y:.1f}', // one decimal\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0, // 10 pixels down from the top\r\n // style: {\r\n // fontSize: '13px',\r\n // fontFamily: 'Verdana, sans-serif'\r\n // }\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const deliveryModeChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.deliveryMode\");\r\n const amountText = IntlGetText(\"core.amount\");\r\n \r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: {\r\n plotBackgroundColor: null,\r\n plotBorderWidth: null,\r\n plotShadow: false,\r\n type: \"pie\",\r\n },\r\n title: { text: titleText },\r\n accessibility: {\r\n point: {\r\n valueSuffix: \"%\",\r\n },\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.percentage:.2f} %\",\r\n },\r\n },\r\n },\r\n legend: {\r\n align: \"right\",\r\n verticalAlign: \"top\",\r\n layout: \"vertical\",\r\n x: 0,\r\n y: 100,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n titleText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n amountText +\r\n \": \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"Brands\",\r\n colorByPoint: true,\r\n data: data,\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const marketchainChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.byMarketchain\");\r\n const clientText = IntlGetText(\"core.client\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'column' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{\r\n categories: categories\r\n }],\r\n yAxis:{ visible: false },\r\n legend: { enabled: false },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n clientText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: 'Rainfall',\r\n type: 'column',\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n //format: '{point.y:.1f}', // one decimal\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const stateTrendChart = () => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.stateTrend\");\r\n const xAxisTitle = IntlGetText(\"dashboard.stateTrend.xTile\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n\r\n var categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec','Jan 1', 'Feb 1', 'Mar 1', 'Apr 1', 'May 1', 'Jun 1', 'Jul 1', 'Aug 1', 'Sep 1', 'Oct 1', 'Nov 1', 'Dec 1','Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\r\n var series = [{\r\n name: 'Tokyo',\r\n data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]\r\n }, {\r\n name: 'London',\r\n data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8,3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8,3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]\r\n }];\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { \r\n type: 'line', \r\n scrollablePlotArea: {\r\n minWidth: 2000\r\n } \r\n },\r\n title: { text: titleText },\r\n xAxis: {\r\n categories: categories,\r\n title: { text: xAxisTitle }\r\n },\r\n yAxis:{ visible: false },\r\n plotOptions: {\r\n line: {\r\n dataLabels: {\r\n enabled: true\r\n }\r\n }\r\n },\r\n tooltip: {\r\n headerFormat: ''+xAxisTitle+' {point.key}
    ',\r\n pointFormat: '' +\r\n '',\r\n footerFormat: '
    {series.name}: {point.y}
    ',\r\n shared: true,\r\n useHTML: true\r\n },\r\n series: series\r\n };\r\n};\r\n\r\nexport const stateTrendBarChart = () => {\r\n const titleText = IntlGetText(\"dashboard.charTitle.stateTrend\");\r\n const xAxisTitle = IntlGetText(\"dashboard.stateTrend.xTile\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n\r\n var categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec','Jan 1', 'Feb 1', 'Mar 1', 'Apr 1', 'May 1', 'Jun 1', 'Jul 1', 'Aug 1', 'Sep 1', 'Oct 1', 'Nov 1', 'Dec 1','Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\r\n var series = [{\r\n name: 'Tokyo',\r\n data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]\r\n }, {\r\n name: 'London',\r\n data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8,3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8,3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]\r\n }];\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: {\r\n type: 'column',\r\n scrollablePlotArea: {\r\n minWidth: 2000\r\n } \r\n },\r\n title: { text: titleText },\r\n yAxis:{ visible: false },\r\n xAxis: {\r\n categories: categories\r\n },\r\n // yAxis: {\r\n // min: 0,\r\n // title: {\r\n // text: 'Total fruit consumption'\r\n // },\r\n // stackLabels: {\r\n // enabled: true,\r\n // style: {\r\n // fontWeight: 'bold',\r\n // color: ( // theme\r\n // Highcharts.defaultOptions.title.style &&\r\n // Highcharts.defaultOptions.title.style.color\r\n // ) || 'gray'\r\n // }\r\n // }\r\n // },\r\n // legend: {\r\n // align: 'right',\r\n // x: -30,\r\n // verticalAlign: 'top',\r\n // y: 25,\r\n // floating: true,\r\n // backgroundColor:\r\n // Highcharts.defaultOptions.legend.backgroundColor || 'white',\r\n // borderColor: '#CCC',\r\n // borderWidth: 1,\r\n // shadow: false\r\n // },\r\n // tooltip: {\r\n // headerFormat: '{point.x}
    ',\r\n // pointFormat: '{series.name}: {point.y}
    Total: {point.stackTotal}'\r\n // },\r\n // tooltip: {\r\n // headerFormat: ''+xAxisTitle+' {point.key}',\r\n // pointFormat: '' +\r\n // '',\r\n // footerFormat: '
    {series.name}: {point.y}
    ',\r\n // shared: true,\r\n // useHTML: true\r\n // },\r\n tooltip: {\r\n formatter: function() { \r\n return (\r\n xAxisTitle +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n stateTypeText +\r\n \": \" +\r\n this.series.name +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n this.y +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2,',','.') +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n plotOptions: {\r\n column: {\r\n stacking: 'normal',\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.percentage:.2f} %\",\r\n }\r\n }\r\n },\r\n series: series\r\n };\r\n};","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport AppLocale from \"lngProvider\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport CardTotal from \"components/CardTotal\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport {\r\n totalizationChart,\r\n totalizationByDateChart,\r\n causalNotEffectiveChart,\r\n productLineChart,\r\n causalNotEffectiveMoneyChart,\r\n deliveryModeChart,\r\n marketchainChart,\r\n detailEffectiveChart,\r\n stateTrendChart,\r\n stateTrendBarChart\r\n} from \"./optionsCharts\";\r\nimport { callApi, getDashboardFilters, postDashboard } from \"api/apiList\";\r\n\r\n\r\nconst getProp = (obj, prop) => {\r\n if (!obj) return \"\";\r\n return obj[prop];\r\n};\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\n\r\nconst Dashboard = () => {\r\n const dispatch = useDispatch();\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n const [olfList, setOlfList] = useState([]);\r\n const [insuranceList, setInsuranceList] = useState([]);\r\n const [stateList, setStateList] = useState([]);\r\n const [userList, setUserList] = useState([]);\r\n const [executiveActionList, setExecutiveActionList] = useState([]);\r\n const [productList, setProductList] = useState([]);\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n\r\n const filterDateType = [\r\n {id:1,name:IntlGetText('core.impact')},\r\n {id:2,name:IntlGetText('medicineDelivery.cardTitle')}\r\n ];\r\n\r\n const chartCausalNotEffectiveTitle = IntlGetText(\"dashboard.charTitle.causalNotEffective\");\r\n const chartCausalNotEffectiveMoneyTitle = IntlGetText(\"dashboard.charTitle.causalNotEffectiveMoney\");\r\n const chartRecoverableTitle = IntlGetText(\"dashboard.charTitle.recoverable\");\r\n const chartRecoverableMoneyTitle = IntlGetText(\"dashboard.charTitle.recoverableMoney\");\r\n \r\n const defaultValues = {\r\n startDate: null,\r\n endDate: null,\r\n olfId: null,\r\n insuranceId: null,\r\n stateId: null,\r\n userId: null,\r\n executiveActionId: null,\r\n productId: null,\r\n };\r\n const [filterTable, setFilterTable] = useState(defaultValues);\r\n\r\n const validationSchema = {};\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, trigger, getValues, watch } = methods;\r\n\r\n useEffect(() => {\r\n callApi(getDashboardFilters, (filters) => {\r\n setOlfList(filters.marketchains);\r\n setInsuranceList(filters.insurances);\r\n setStateList(filters.states);\r\n setUserList(filters.users);\r\n setExecutiveActionList(filters.executiveActions);\r\n setProductList(filters.products);\r\n onFilter();\r\n });\r\n }, []);\r\n\r\n const onFilter = handleSubmit((d) => {\r\n var obj = {\r\n filterDateTypeIds: !d.filterDateTypeId ? [] : d.filterDateTypeId.map((x) => Number(x.value)),\r\n startDate: !d.startDate\r\n ? null\r\n : dayjs(d.startDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: !d.endDate\r\n ? null\r\n : dayjs(d.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n marketchainIds: !d.olfId ? [] : d.olfId.map((x) => Number(x.value)),\r\n insuranceIds: !d.insuranceId\r\n ? []\r\n : d.insuranceId.map((x) => Number(x.value)),\r\n stateIds: !d.stateId ? [] : d.stateId.map((x) => Number(x.value)),\r\n userIds: !d.userId ? [] : d.userId.map((x) => x.value),\r\n executiveActionIds: !d.executiveActionId\r\n ? []\r\n : d.executiveActionId.map((x) => Number(x.value)),\r\n productIds: !d.productId ? [] : d.productId.map((x) => Number(x.value)),\r\n };\r\n\r\n callApi(() => postDashboard(obj), setTotalInfo, fnSetLoader);\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n }\r\n options={filterDateType}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={olfList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={insuranceList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={stateList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={userList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={executiveActionList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={productList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n {/* \r\n \r\n \r\n \r\n \r\n */}\r\n
    \r\n );\r\n};\r\n\r\nexport default Dashboard;\r\n","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\n\r\nconst formatCurrency = (total, decimals) => {\r\n let value = total;\r\n if (value == 0)\r\n return \"$ 0\";\r\n\r\n let unit = \"\";\r\n if (value < 1000000)\r\n {\r\n unit = \"K\";\r\n value = value / 1000;\r\n }\r\n else if (value < 1000000000000)\r\n {\r\n unit = \"M\";\r\n value = value / 1000000;\r\n }\r\n else\r\n {\r\n unit = \"bn\";\r\n value = value / 1000000000000;\r\n }\r\n\r\n value = Math.round(value, decimals);\r\n return `$ ${value}${unit}`;\r\n};\r\n\r\nexport const eficaciaDetailChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.eficaciaRecoveries\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.y} ({point.percentage:.1f} %)\",\r\n formatter: function() {\r\n return \"$ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\";\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const totalChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"core.total\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.percentage:.1f} %\",\r\n formatter: function() {\r\n return \"$ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\";\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const causalChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.valueByCausal\");\r\n const causalText = IntlGetText(\"core.causal\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n // const categories = keyValuePairData.map((x) => x.Key);\r\n // const data = keyValuePairData.map((x) => x.Value);\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: {\r\n plotBackgroundColor: null,\r\n plotBorderWidth: null,\r\n plotShadow: false,\r\n type: \"pie\",\r\n },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n accessibility: {\r\n point: {\r\n valueSuffix: \"%\",\r\n },\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format: \"{point.percentage:.2f} %\",\r\n },\r\n },\r\n },\r\n legend: {\r\n align: \"right\",\r\n verticalAlign: \"top\",\r\n layout: \"vertical\",\r\n x: 0,\r\n y: 100,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"Brands\",\r\n colorByPoint: true,\r\n data: data\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const operatorChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.valueByOperator\");\r\n const causalText = IntlGetText(\"radicadoOLF.cardSubTitle\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'bar' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ visible: false },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n color: '#90ED7D',\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const productLineChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.valueByProductLine\");\r\n const causalText = IntlGetText(\"kpi.productLine\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'bar' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ visible: false },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const recoveriesChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.recoveries\");\r\n const causalText = IntlGetText(\"core.causal\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'bar' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ visible: false },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n color: '#434348',\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};","import React from \"react\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\nimport Table, {\r\n minimalOptions,\r\n defaultCol\r\n} from \"components/Form/Table\";\r\n\r\nconst CausalTable = ({data, currentLocale}) => {\r\n const dataFormated = data.map((x) => ({\r\n Key: x.Key, \r\n Value: ' $' + currencyFormat(currentLocale,x.Value)\r\n })); \r\n const columns = [\r\n defaultCol(\"Key\", \"core.causal\"),\r\n defaultCol(\"Value\", \"patientDetail.value\"),\r\n ];\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default CausalTable;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport AppLocale from \"lngProvider\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport CustomScrollbars from 'util/CustomScrollbars';\r\nimport FormSelectAutoComplete, {getCboValue} from \"components/Form/Controls/select-autocomplete\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport CardTotal from \"components/CardTotal\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\nimport {\r\n eficaciaDetailChart,\r\n totalChart,\r\n causalChart,\r\n operatorChart,\r\n productLineChart,\r\n recoveriesChart\r\n} from \"./optionsCharts\";\r\nimport CausalTable from \"./causalTable\";\r\nimport { \r\n callApi, \r\n postDashboardMigration, \r\n getDashboardMigrationFilters,\r\n dashboardGetEficaciaRecoveries,\r\n dashboardGetTotal,\r\n dashboardGetByCausal,\r\n dashboardGetByProductLine,\r\n dashboardGetTotalMIPRES,\r\n dashboardGetByOperator,\r\n dashboardGetImpactsInfo\r\n} from \"api/apiList\";\r\n\r\nconst getYears =()=>{\r\n var max = dayjs().get('year');\r\n var min = 2020;\r\n var years = [];\r\n\r\n for (var i = min; i <= max; i++) {\r\n years.push(i);\r\n }\r\n return years.map(x=>({id:x, name:x}));\r\n};\r\n\r\nconst getMonths =()=>{\r\n return [\r\n {id:1, name:'Enero'},\r\n {id:2, name:'Febrero'},\r\n {id:3, name:'Marzo'},\r\n {id:4, name:'Abril'},\r\n {id:5, name:'Mayo'},\r\n {id:6, name:'Junio'},\r\n {id:7, name:'Julio'},\r\n {id:8, name:'Agosto'},\r\n {id:9, name:'Septiembre'},\r\n {id:10, name:'Octubre'},\r\n {id:11, name:'Noviembre'},\r\n {id:12, name:'Diciembre'}\r\n ]\r\n};\r\n\r\nconst getProp = (obj, prop) => {\r\n if (!obj) return \"\";\r\n return obj[prop];\r\n};\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\n\r\nconst Dashboard = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n let totalFiniched = 0;\r\n const fnSetLoader2 = (data) => {\r\n if(data === true){\r\n dispatch(setLoader(data));\r\n return;\r\n }\r\n totalFiniched += 1;\r\n if(totalFiniched === 7)\r\n dispatch(setLoader(data));\r\n }\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n const yearList = getYears();\r\n const monthList = getMonths();\r\n\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n const [totalMIPRES, setTotalMIPRES] = useState(\"\");\r\n const [eficaciaRecovery, setEficaciaRecovery] = useState([]);\r\n const [byCausal, setByCausal] = useState([]);\r\n const [byOperator, setByOperator] = useState([]);\r\n const [byProductLine, setByProductLine] = useState([]);\r\n const [chartTotalData, setChartTotalData] = useState([]);\r\n const [impactsInfo, setImpactsInfo] = useState(null);\r\n \r\n const [olfList, setOlfList] = useState([]);\r\n const [insuranceList, setInsuranceList] = useState([]);\r\n const [stateList, setStateList] = useState([]); \r\n const [executiveActionList, setExecutiveActionList] = useState([]);\r\n const [agentList, setAgentList] = useState([]);\r\n\r\n const recoveriesDefaultText = IntlGetText('dashboardMigration.recoveries.default');\r\n const recoveriesEficaciaText = IntlGetText('dashboardMigration.recoveries.eficacia');\r\n const recoveriesUnrecoverableText = IntlGetText('dashboardMigration.recoveries.unrecoverable');\r\n\r\n const recoveryFilterList = [\r\n {id:0,name:recoveriesDefaultText},\r\n {id:1,name:recoveriesEficaciaText},\r\n {id:2,name:recoveriesUnrecoverableText},\r\n ];\r\n \r\n const defaultValues = {\r\n year: null,\r\n month: null,\r\n };\r\n const validationSchema = {\r\n year: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n\r\n const { handleSubmit, errors, setValue } = methods;\r\n\r\n useEffect(() => {\r\n setValue(\"year\", getCboValue(yearList, dayjs().get('year')));\r\n //onFilter();\r\n callApi(getDashboardMigrationFilters, (filters) => {\r\n setOlfList(filters.marketchains);\r\n setInsuranceList(filters.insurances);\r\n setStateList(filters.states);\r\n setExecutiveActionList(filters.executiveActions);\r\n setAgentList(filters.agentList);\r\n onFilter();\r\n });\r\n }, []);\r\n\r\n const onFilter = handleSubmit((d) => {\r\n var obj = {\r\n year: Number(d.year.value),\r\n month: !d.month ? null : Number(d.month.value),\r\n marketchainIds: !d.olfId ? [] : d.olfId.map((x) => Number(x.value)),\r\n insuranceIds: !d.insuranceId\r\n ? [] : d.insuranceId.map((x) => Number(x.value)),\r\n stateIds: !d.stateId ? [] : d.stateId.map((x) => x.value),\r\n causalIds: !d.executiveActionId\r\n ? [] : d.executiveActionId.map((x) => x.value),\r\n agentId: !d.agentId ? null : d.agentId.value,\r\n recoveryFilterIds: !d.recoveryFilterId ? [] : d.recoveryFilterId.map((x) => x.value)\r\n };\r\n\r\n //callApi(() => postDashboardMigration(obj), setTotalInfo, fnSetLoader);\r\n callApi(() => dashboardGetTotalMIPRES(obj), setTotalMIPRES, fnSetLoader2);\r\n callApi(() => dashboardGetEficaciaRecoveries(obj), setEficaciaRecovery, fnSetLoader2);\r\n callApi(() => dashboardGetByCausal(obj), setByCausal, fnSetLoader2);\r\n callApi(() => dashboardGetByOperator(obj), setByOperator, fnSetLoader2);\r\n callApi(() => dashboardGetByProductLine(obj), setByProductLine, fnSetLoader2);\r\n callApi(() => dashboardGetTotal(obj), setChartTotalData, fnSetLoader2);\r\n callApi(() => dashboardGetImpactsInfo(obj), setImpactsInfo, fnSetLoader2);\r\n });\r\n\r\n //const chartTotalData = getPropArray(totalInfo, \"chartTotal\");\r\n const getTotalDataItem = (item)=>{\r\n if(item === \"TOTAL\"){\r\n const total = chartTotalData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n return \"$ \" + currencyFormat(currentLocale, total);\r\n }\r\n\r\n var a = chartTotalData.find(x=>x.Key === item);\r\n if(!a) return 0;\r\n return \"$ \" + currencyFormat(currentLocale,a.Value);\r\n };\r\n \r\n const chartRecoverableData = () => {\r\n return chartTotalData.filter(x=>x.Key !== recoveriesEficaciaText);\r\n };\r\n \r\n return (\r\n
    \r\n \r\n \r\n \r\n }\r\n options={yearList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={monthList}\r\n margin=\"normal\"\r\n /> \r\n \r\n \r\n }\r\n options={agentList}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={olfList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={insuranceList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={stateList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={recoveryFilterList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n }\r\n options={executiveActionList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Dashboard;","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport Table, { minimalOptions, defaultCol } from \"components/Form/Table\";\r\n\r\nconst DlgDetail = ({openDlg, closeDialog, data}) => {\r\n const columns = [\r\n defaultCol(\"line\", \"core.line\"),\r\n defaultCol(\"amount\", \"insuranceAuthorization.medicineAmountDelivery\")\r\n ];\r\n \r\n const total = data.length === 0 ? 0 : data.map(x=>x.amount).reduce((prev, curr) => prev + curr, 0);\r\n\r\n return(\r\n \r\n \r\n
    \r\n

    : {total}

    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default DlgDetail;","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport CustomScrollbars from 'util/CustomScrollbars';\r\nimport Table, { minimalOptions, defaultCol } from \"components/Form/Table\";\r\nimport DlgDetail from './dlgDoctorDetail';\r\nimport { callApi, getDoctorDetail } from \"api/apiList\";\r\n\r\nconst TopDoctorTable = ({ data, minDate, maxDate }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [openDlg, setOpenDlg] = useState(null);\r\n const [detailData, setDetailData] = useState([]);\r\n\r\n const closeDialog = ()=>{\r\n setOpenDlg(false);\r\n setDetailData([]);\r\n };\r\n\r\n const columns = [\r\n {\r\n name: \"id\",\r\n label: \"id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display:\"excluded\"\r\n },\r\n },\r\n {\r\n name: '#',\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n customBodyRender: (value, meta) => {\r\n return (\r\n meta.rowIndex + 1\r\n );\r\n }\r\n }\r\n },\r\n defaultCol(\"doctor\", \"core.doctor\"),\r\n defaultCol(\"prescriptions\", \"core.prescriptions\"),\r\n defaultCol(\"patients\", \"psp.menu.patients\")\r\n ];\r\n\r\n const onRowClick = (rowData,rowMeta) => { \r\n var obj= {\r\n doctorId: rowData[0],\r\n minDate: dayjs(minDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n maxDate: dayjs(maxDate).format(\"YYYY-MM-DDTHH:mm:ss\")\r\n };\r\n callApi(() => \r\n getDoctorDetail(obj),\r\n (data)=>{\r\n setDetailData(data);\r\n setOpenDlg(true);\r\n }, \r\n fnSetLoader);\r\n\r\n };\r\n\r\n const options = {\r\n ...minimalOptions(),\r\n onRowClick: onRowClick\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default TopDoctorTable;","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\n\r\nrequire(\"highcharts/modules/exporting\")(Highcharts);\r\n\r\nexport const pieChart = (\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText\r\n) => {\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + total,\r\n align: \"right\",\r\n x: -10,\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n format:\r\n \"{point.name}: {point.percentage:.1f} % ({point.y})\",\r\n },\r\n },\r\n },\r\n legend: {\r\n align: \"right\",\r\n verticalAlign: \"top\",\r\n layout: \"vertical\",\r\n labelFormatter: function() {\r\n return this.name + \" ( \" + this.percentage.toFixed(1) + \"% )\";\r\n },\r\n x: 0,\r\n y: 100,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n this.y +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const columnChart = (\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText,\r\n showLegend\r\n) => {\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n let xInfo = [];\r\n data.forEach((x) => xInfo.push(x[0]));\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"column\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + total,\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: [{ categories: xInfo }],\r\n yAxis: {\r\n min: 0,\r\n title: { text: \"\" },\r\n },\r\n legend: {\r\n enabled: showLegend ? true : false,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n this.y +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"\",\r\n type: \"column\",\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return this.y;\r\n },\r\n y: 0,\r\n },\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const multiColumnChart = (\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText,\r\n showLegend\r\n) => {\r\n const data = keyValuePairData;\r\n const total = data.total ? data.total : 0;\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"column\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + total,\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: [{ categories: data.categories }],\r\n yAxis: {\r\n min: 0,\r\n title: { text: \"\" },\r\n },\r\n legend: {\r\n enabled: showLegend ? true : false,\r\n verticalAlign: \"top\",\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n this.y +\r\n \"\"\r\n );\r\n },\r\n },\r\n plotOptions: {\r\n column: {\r\n stacking: \"normal\",\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return this.y !== 0 ? this.y : null;\r\n },\r\n },\r\n },\r\n },\r\n series: data.multiColumnList,\r\n };\r\n};\r\n\r\nexport const patientByNurseChart = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.nurse.charPatientByNurse.title\");\r\n const stateTypeText = IntlGetText(\"role.nurse\");\r\n const totalizationText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const multiColumnVerticalChart = (\r\n keyValuePairData,\r\n titleText,\r\n stateTypeText,\r\n totalizationText,\r\n totalText,\r\n showLegend\r\n) => {\r\n const data = keyValuePairData;\r\n const total = data.total ? data.total : 0;\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"bar\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + total,\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: [{ categories: data.categories }],\r\n yAxis: {\r\n min: 0,\r\n title: { text: \"\" },\r\n },\r\n legend: {\r\n enabled: showLegend ? true : false,\r\n verticalAlign: \"top\",\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n this.y +\r\n \"\"\r\n );\r\n },\r\n },\r\n plotOptions: {\r\n column: {\r\n stacking: \"normal\",\r\n dataLabels: {\r\n enabled: true,\r\n \r\n },\r\n },\r\n series: {\r\n stacking: \"normal\",\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return this.y !== 0 ? this.y : null;\r\n }\r\n },\r\n },\r\n },\r\n series: data.multiColumnList,\r\n };\r\n};\r\n\r\n\r\nexport const productLineChart = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.nurse.charProductLine.title\");\r\n const pointNameText = IntlGetText(\"core.productLine\");\r\n const pointValueText = IntlGetText(\"core.prescriptions\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const prescriptionsByStateChart = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.nurse.charPrescriptionState.title\");\r\n const pointNameText = IntlGetText(\"core.state\");\r\n const pointValueText = IntlGetText(\"core.prescriptions\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const patientsByStateChart = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.nurse.charPatientState.title\");\r\n const pointNameText = IntlGetText(\"core.state\");\r\n const pointValueText = IntlGetText(\"psp.menu.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const distributionPatientsByRegion = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.distributionPatientsByRegion\");\r\n const pointNameText = IntlGetText(\"core.Region\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const treatmentDeviceChart = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.treatmentDevice\");\r\n const pointNameText = IntlGetText(\"dashboard.treatmentDevice\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const distributionPatientStatesandRegionChart = (keyValuePairData) => {\r\n const titleText = IntlGetText(\r\n \"dashboard.distributionPatientStatesandRegionChart\"\r\n );\r\n const pointNameText = IntlGetText(\"core.Region\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n return multiColumnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText,\r\n true\r\n );\r\n};\r\n\r\nexport const patientDistributionByEpsAndStateChart = (keyValuePairData) => {\r\n const titleText = IntlGetText(\r\n \"dashboard.patientDistributionByEpsAndState\"\r\n );\r\n const pointNameText = IntlGetText(\"radicacionInsurance.Insurance\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n return multiColumnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText,\r\n true\r\n );\r\n};\r\n\r\nexport const logisticChartbyRegional = (keyValuePairData) => {\r\n const titleText = IntlGetText(\r\n \"dashboard.logisticChartTitle\"\r\n );\r\n const pointNameText = IntlGetText(\"dashboard.logisticOperator\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n return multiColumnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText,\r\n true\r\n );\r\n};\r\n\r\nexport const getTypeTreatmentDoctor = (keyValuePairData, typeChart) => {\r\n const titleText = IntlGetText(\"dashboard.typeTreatmentDoctor\");\r\n const pointNameText = IntlGetText(\"core.doctor\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n if (typeChart) {\r\n return pieChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n } else {\r\n return columnChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText\r\n );\r\n }\r\n};\r\n\r\nexport const graphicTreatmentDeviceByDoctor = (keyValuePairData) => {\r\n const titleText = IntlGetText(\r\n \"dashboard.graphicTreatmentDeviceByDoctorTitle\"\r\n );\r\n const pointNameText = IntlGetText(\"core.doctor\");\r\n const pointValueText = IntlGetText(\"core.patients\");\r\n const totalText = IntlGetText(\"core.total\");\r\n return multiColumnVerticalChart(\r\n keyValuePairData,\r\n titleText,\r\n pointNameText,\r\n pointValueText,\r\n totalText,\r\n true\r\n );\r\n};\r\n","import React, { useEffect } from \"react\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { patientDistributionByEpsAndStateChart } from \"./optionsCharts\";\r\nimport { callApi, getPatientDistributionByEpsAndState } from \"api/apiList\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\n\r\nconst PatientByEpsAndStateGraph = ({\r\n epsOptions,\r\n minDate,\r\n maxDate,\r\n data,\r\n setData,\r\n resetSelectEps,\r\n top,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n var startOf = dayjs().startOf(\"month\");\r\n var endOf = dayjs().endOf(\"month\");\r\n\r\n const msgWarning = IntlGetText(\"warning.maxEpsList\");\r\n\r\n const defaultValues = {\r\n startDate: startOf,\r\n endDate: endOf,\r\n };\r\n\r\n const validationSchema = {\r\n epsList: yup.array().max(10, \"No puedes seleccionar más de 10 elementos\"),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, watch, setValue } = methods;\r\n\r\n const onChangeEpsFilter = () => {\r\n if (!epsFilter || epsFilter.length === 0) {\r\n return;\r\n }\r\n if (epsFilter.length > 10) {\r\n NotificationManager.warning(msgWarning);\r\n return;\r\n }\r\n const valuesIdList = epsFilter.map((item) => item.value);\r\n\r\n var objFilter = {\r\n epsIds: valuesIdList,\r\n minDate: minDate,\r\n maxDate: maxDate,\r\n };\r\n\r\n callApi(\r\n () => getPatientDistributionByEpsAndState(objFilter),\r\n (x) => {\r\n setData(x);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const epsFilter = watch(\"epsList\");\r\n\r\n const resetSelect = () => {\r\n setValue(\"epsList\", top);\r\n };\r\n useEffect(() => {\r\n onChangeEpsFilter();\r\n }, [epsFilter]);\r\n\r\n useEffect(() => {\r\n resetSelect();\r\n }, [resetSelectEps]);\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n <>\r\n \r\n \r\n }\r\n options={epsOptions}\r\n isMulti\r\n closeMenuOnSelect={false}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default PatientByEpsAndStateGraph;\r\n","import React, { useEffect } from \"react\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { logisticChartbyRegional } from \"./optionsCharts\";\r\nimport { callApi, getPatientByIpsAndRegion } from \"api/apiList\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\n\r\nconst ChartLogisticOperator = ({\r\n ipsOptions,\r\n minDate,\r\n maxDate,\r\n data,\r\n setData,\r\n resetSelectEps,\r\n top,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n var startOf = dayjs().startOf(\"month\");\r\n var endOf = dayjs().endOf(\"month\");\r\n\r\n const msgWarning = IntlGetText(\"warning.maxipsList\");\r\n\r\n const defaultValues = {\r\n startDate: startOf,\r\n endDate: endOf,\r\n };\r\n\r\n const validationSchema = {\r\n epsList: yup.array().max(10, \"No puedes seleccionar más de 10 elementos\"),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, watch, setValue } = methods;\r\n\r\n const onChangeIpsFilter = () => {\r\n if (!ipsFilter || ipsFilter.length === 0) {\r\n return;\r\n }\r\n if (ipsFilter.length > 10) {\r\n NotificationManager.warning(msgWarning);\r\n return;\r\n }\r\n \r\n const valuesIdList = ipsFilter.map((item) => item.value);\r\n\r\n var objFilter = {\r\n ipsIds: valuesIdList,\r\n minDate: minDate,\r\n maxDate: maxDate,\r\n };\r\n\r\n callApi(\r\n () => getPatientByIpsAndRegion(objFilter),\r\n (x) => {\r\n setData(x);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const ipsFilter = watch(\"ipsList\");\r\n\r\n const resetSelect = () => {\r\n setValue(\"ipsList\", top);\r\n };\r\n useEffect(() => {\r\n onChangeIpsFilter();\r\n }, [ipsFilter]);\r\n\r\n useEffect(() => {\r\n resetSelect();\r\n }, [resetSelectEps]);\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n <>\r\n \r\n \r\n }\r\n options={ipsOptions}\r\n isMulti\r\n closeMenuOnSelect={false}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default ChartLogisticOperator;\r\n\r\n\r\n","import React, { useState, useEffect } from \"react\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport TopDoctorTable from \"./topDoctorTable\";\r\nimport { getUserInfo, isRole } from \"app/routes/psp/services/userService\";\r\nimport { RoleEnum, ShardKeyEnum } from \"constants/Enums\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport {\r\n patientByNurseChart,\r\n productLineChart,\r\n patientsByStateChart,\r\n distributionPatientsByRegion,\r\n treatmentDeviceChart,\r\n distributionPatientStatesandRegionChart,\r\n getTypeTreatmentDoctor,\r\n graphicTreatmentDeviceByDoctor,\r\n} from \"./optionsCharts\";\r\nimport { callApi, postDashboardNurse } from \"api/apiList\";\r\nimport PatientByEpsAndStateGraph from \"./patientByEpsAndStateGraph\";\r\nimport ChartLogisticOperator from \"./chartLogisticOperator\";\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\n\r\nconst Dashboard = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n const [dateRange, setDateRange] = useState(null);\r\n const [typeChart, setTypeChart] = useState(true);\r\n const [selectEps, setSelectEps] = useState([]);\r\n const [selectEpsTop, setSelectEpsTop] = useState([]);\r\n const [selectOpl, setSelectOpl] = useState([]);\r\n const [selectOplTop, setSelectOplTop] = useState([]);\r\n const [patientByEpsAndStateData, setPatientByEpsAndStateData] = useState([]);\r\n const [patientByOplAndRegionData, setPatientByOplAndRegionData] = useState(\r\n []\r\n );\r\n const isNurse = isRole(RoleEnum.nurse);\r\n const isPhg = getUserInfo().shardKey === ShardKeyEnum.phg;\r\n\r\n const [resetSelectEps, setResetSelectEps] = useState(false);\r\n\r\n var startOf = dayjs().startOf(\"month\");\r\n var endOf = dayjs().endOf(\"month\");\r\n\r\n const defaultValues = {\r\n startDate: startOf,\r\n endDate: endOf,\r\n };\r\n\r\n const validationSchema = {\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n endDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { errors, trigger, getValues, watch, handleSubmit } = methods;\r\n\r\n const onFilter = (obj) => {\r\n callApi(\r\n () => postDashboardNurse(obj),\r\n (data) => {\r\n setTotalInfo(data);\r\n setSelectEps(data.selectEps);\r\n setPatientByEpsAndStateData(\r\n data.patientDistributionByEpsAndState?.multiColumnDataCategories || []\r\n );\r\n setSelectEpsTop(data.patientDistributionByEpsAndState?.topData || []);\r\n setSelectOpl(data.selectOpl);\r\n setPatientByOplAndRegionData(\r\n data.chartOplByRegional?.multiColumnDataCategories || []\r\n );\r\n setSelectOplTop(data.chartOplByRegional?.topData || []);\r\n setResetSelectEps(!resetSelectEps);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n const objDate = {\r\n minDate: dayjs(defaultValues.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n maxDate: dayjs(defaultValues.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n onFilter(objDate);\r\n }, []);\r\n\r\n const filterSubmit = (d) => {\r\n const objDate = {\r\n minDate: dayjs(d.startDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n maxDate: dayjs(d.endDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n };\r\n onFilter(objDate);\r\n };\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n <>\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n setTypeChart(!typeChart);\r\n }}\r\n className=\"mt-3\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n {isPhg && (\r\n
    \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n )}\r\n {isPhg && (\r\n <>\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n {typeChart && (\r\n \r\n )}\r\n {!typeChart && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n )}\r\n\r\n
    \r\n
    \r\n {!isNurse && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default Dashboard;\r\n","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\n\r\nconst formatCurrency = (total, decimals) => {\r\n let value = total;\r\n if (value == 0)\r\n return \"$ 0\";\r\n\r\n let unit = \"\";\r\n if (value < 1000000)\r\n {\r\n unit = \"K\";\r\n value = value / 1000;\r\n }\r\n else if (value < 1000000000000)\r\n {\r\n unit = \"M\";\r\n value = value / 1000000;\r\n }\r\n else\r\n {\r\n unit = \"bn\";\r\n value = value / 1000000000000;\r\n }\r\n\r\n value = Math.round(value, decimals);\r\n return `$ ${value}${unit}`;\r\n};\r\n\r\nexport const enrollChart = (locale, enrollData) => {\r\n const titleText = IntlGetText(\"dashboarPA.chartEnrollTitle\");\r\n const yAxisTitle = IntlGetText(\"core.patients\");\r\n const serie1Title = IntlGetText(\"chartEnroll.created\");\r\n const serie2Title = IntlGetText(\"chartEnroll.registered\");\r\n \r\n return {\r\n credits: { enabled: false },\r\n title: { text: titleText },\r\n // subtitle: {\r\n // text: totalText + ': '+ currencyFormat(locale,total),\r\n // align: 'right',\r\n // x: -10\r\n // },\r\n yAxis: { title: { text: yAxisTitle } },\r\n xAxis: { categories: enrollData.categories },\r\n\r\n legend: {\r\n layout: \"vertical\",\r\n align: \"right\",\r\n verticalAlign: \"middle\",\r\n },\r\n tooltip: {\r\n headerFormat: 'Mes {point.key}',\r\n pointFormat: '' +\r\n '',\r\n footerFormat: '
    {series.name}: {point.y}
    ',\r\n shared: true,\r\n useHTML: true\r\n },\r\n series: [\r\n {\r\n name: serie1Title,\r\n data: enrollData.created,\r\n },\r\n {\r\n name: serie2Title,\r\n data: enrollData.registered,\r\n },\r\n ],\r\n responsive: {\r\n rules: [\r\n {\r\n condition: {\r\n maxWidth: 500,\r\n },\r\n chartOptions: {\r\n legend: {\r\n layout: \"horizontal\",\r\n align: \"center\",\r\n verticalAlign: \"bottom\",\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n};\r\n\r\nexport const pieChart = (titleTextKey, tooltipKey, locale, keyValuePairData) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const stateTypeText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ': '+ currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.percentage:.1f} %\",\r\n formatter: function() {\r\n return \"\" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\";\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const totalChart = (titleTextKey, tooltipKey, locale, keyValuePairData) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const stateTypeText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ': '+ currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.percentage:.1f} %\",\r\n formatter: function() {\r\n return \"\" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\";\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const eficaciaDetailChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.eficaciaRecoveries\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.y} ({point.percentage:.1f} %)\",\r\n formatter: function() {\r\n return \"$ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\";\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const columnChart = (titleTextKey, tooltipKey, locale, keyValuePairData, yAxisTitleKey = 'core.patients') => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const causalText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n const yAxisTitle = IntlGetText(yAxisTitleKey);\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'column' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ': ' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ \r\n min: 0,\r\n title: { text: yAxisTitle } \r\n },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return this.y;\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};\r\n\r\nexport const recoveriesChart = (titleTextKey, tooltipKey, locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.recoveries\");\r\n const causalText = IntlGetText(\"core.causal\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData.map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: 'bar' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ' $' + currencyFormat(locale,total),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis:{ visible: false },\r\n legend: {\r\n enabled: false\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale,this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{\r\n name: '',\r\n type: 'column',\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return formatCurrency(this.y,0);\r\n },\r\n y: 0,\r\n },\r\n }],\r\n };\r\n};","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport AppLocale from \"lngProvider\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport {\r\n totalChart,\r\n pieChart,\r\n columnChart,\r\n enrollChart,\r\n} from \"./optionsCharts\";\r\nimport { callApi, getDashboardPA, getRepList } from \"api/apiList\";\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\n\r\nconst DashboardPA = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n const [repList, setRepList] = useState([]);\r\n\r\n const defaultValues = {\r\n startDate: null,\r\n endDate: null,\r\n repId: null\r\n };\r\n\r\n const methods = useForm({ defaultValues });\r\n const { handleSubmit, errors, setValue, trigger } = methods;\r\n\r\n const onFilter = handleSubmit(async (d) => {\r\n if (d.startDate || d.endDate) {\r\n if (!(await trigger())) return;\r\n }\r\n\r\n var obj = {\r\n repId: !d.repId ? null : d.repId.value, \r\n startDate: !d.startDate\r\n ? null\r\n : dayjs(d.startDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: !d.endDate\r\n ? null\r\n : dayjs(d.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n };\r\n\r\n callApi(() => getDashboardPA(obj), setTotalInfo, fnSetLoader);\r\n });\r\n\r\n useEffect(() => {\r\n if (!isRole(RoleEnum.rep)) callApi(getRepList, setRepList);\r\n onFilter();\r\n }, []);\r\n\r\n return (\r\n
    \r\n \r\n \r\n {!isRole(RoleEnum.rep) && (\r\n \r\n }\r\n options={repList}\r\n margin=\"normal\"\r\n />\r\n \r\n )}\r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default DashboardPA;\r\n","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\n\r\nconst formatCurrency = (total, decimals) => {\r\n let value = total;\r\n if (value == 0) return \"$ 0\";\r\n\r\n let unit = \"\";\r\n if (value < 1000000) {\r\n unit = \"K\";\r\n value = value / 1000;\r\n } else if (value < 1000000000000) {\r\n unit = \"M\";\r\n value = value / 1000000;\r\n } else {\r\n unit = \"bn\";\r\n value = value / 1000000000000;\r\n }\r\n\r\n value = Math.round(value, decimals);\r\n return `$ ${value}${unit}`;\r\n};\r\n\r\nexport const enrollChart = (locale, enrollData) => {\r\n const titleText = IntlGetText(\"dashboarPA.chartEnrollTitle\");\r\n const yAxisTitle = IntlGetText(\"core.patients\");\r\n const serie1Title = IntlGetText(\"chartEnroll.created\");\r\n const serie2Title = IntlGetText(\"chartEnroll.registered\");\r\n\r\n return {\r\n credits: { enabled: false },\r\n title: { text: titleText },\r\n // subtitle: {\r\n // text: totalText + ': '+ currencyFormat(locale,total),\r\n // align: 'right',\r\n // x: -10\r\n // },\r\n yAxis: { title: { text: yAxisTitle } },\r\n xAxis: { categories: enrollData.categories },\r\n\r\n legend: {\r\n layout: \"vertical\",\r\n align: \"right\",\r\n verticalAlign: \"middle\",\r\n },\r\n tooltip: {\r\n headerFormat:\r\n 'Mes {point.key}',\r\n pointFormat:\r\n '' +\r\n '',\r\n footerFormat: \"
    {series.name}: {point.y}
    \",\r\n shared: true,\r\n useHTML: true,\r\n },\r\n series: [\r\n {\r\n name: serie1Title,\r\n data: enrollData.created,\r\n },\r\n {\r\n name: serie2Title,\r\n data: enrollData.registered,\r\n },\r\n ],\r\n responsive: {\r\n rules: [\r\n {\r\n condition: {\r\n maxWidth: 500,\r\n },\r\n chartOptions: {\r\n legend: {\r\n layout: \"horizontal\",\r\n align: \"center\",\r\n verticalAlign: \"bottom\",\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n };\r\n};\r\n\r\nexport const pieChart = (\r\n titleTextKey,\r\n tooltipKey,\r\n locale,\r\n keyValuePairData\r\n) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const stateTypeText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = !keyValuePairData\r\n ? []\r\n : keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = !keyValuePairData\r\n ? 0\r\n : keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + currencyFormat(locale, total),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n plotOptions: {\r\n pie: {\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.percentage:.1f} %\",\r\n formatter: function() {\r\n return (\r\n \"\" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const totalChart = (titleTextKey, tooltipKey, locale, info) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const stateTypeText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const keyValuePairData = info.data;\r\n const data = !keyValuePairData\r\n ? []\r\n : keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = info.patientCount;\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + currencyFormat(locale, total),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.percentage:.1f} %\",\r\n formatter: function() {\r\n return (\r\n \"\" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const eficaciaDetailChart = (locale, keyValuePairData) => {\r\n const titleText = IntlGetText(\"dashboardMigration.eficaciaRecoveries\");\r\n const stateTypeText = IntlGetText(\"core.stateType\");\r\n const totalizationText = IntlGetText(\"dashboard.totalization\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const data = keyValuePairData.map((x) => [x.Key, x.Value]);\r\n const total = keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"pie\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \" $\" + currencyFormat(locale, total),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n plotOptions: {\r\n pie: {\r\n innerSize: 150,\r\n depth: 45,\r\n showInLegend: true,\r\n allowPointSelect: true,\r\n cursor: \"pointer\",\r\n dataLabels: {\r\n enabled: true,\r\n //format: \"{point.name}: {point.y} ({point.percentage:.1f} %)\",\r\n formatter: function() {\r\n return (\r\n \"$ \" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 1) +\r\n \"%)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n },\r\n },\r\n // tooltip: {\r\n // pointFormat:\r\n // \"Instilación: {point.y}
    EVA: {point.x}\",\r\n // },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n stateTypeText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale, this.y) +\r\n \" (\" +\r\n Highcharts.numberFormat(this.percentage, 2) +\r\n \" %)\" +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [{ name: stateTypeText, data: data }],\r\n };\r\n};\r\n\r\nexport const columnChart = (\r\n titleTextKey,\r\n tooltipKey,\r\n locale,\r\n keyValuePairData,\r\n yAxisTitleKey = \"core.patients\"\r\n) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const causalText = IntlGetText(tooltipKey);\r\n const totalizationText = IntlGetText(\"core.amount\");\r\n const totalText = IntlGetText(\"core.total\");\r\n const yAxisTitle = IntlGetText(yAxisTitleKey);\r\n\r\n const categories = !keyValuePairData\r\n ? []\r\n : keyValuePairData.map((x) => x.Key);\r\n const data = !keyValuePairData ? [] : keyValuePairData.map((x) => x.Value);\r\n const total = !keyValuePairData\r\n ? 0\r\n : keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"column\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + currencyFormat(locale, total),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis: {\r\n min: 0,\r\n title: { text: yAxisTitle },\r\n },\r\n legend: {\r\n enabled: false,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": \" +\r\n currencyFormat(locale, this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"\",\r\n type: \"column\",\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return this.y;\r\n },\r\n y: 0,\r\n },\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const recoveriesChart = (\r\n titleTextKey,\r\n tooltipKey,\r\n locale,\r\n keyValuePairData\r\n) => {\r\n const titleText = IntlGetText(\"dashboardMigration.recoveries\");\r\n const causalText = IntlGetText(\"core.causal\");\r\n const totalizationText = IntlGetText(\"patientDetail.value\");\r\n const totalText = IntlGetText(\"core.total\");\r\n\r\n const categories = keyValuePairData.map((x) => x.Key);\r\n const data = keyValuePairData.map((x) => x.Value);\r\n const total = keyValuePairData\r\n .map((item) => item.Value)\r\n .reduce((prev, curr) => prev + curr, 0);\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"bar\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \" $\" + currencyFormat(locale, total),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: [{ categories: categories }],\r\n yAxis: { visible: false },\r\n legend: {\r\n enabled: false,\r\n },\r\n tooltip: {\r\n formatter: function() {\r\n return (\r\n causalText +\r\n \": \" +\r\n this.key +\r\n \"

    \" +\r\n totalizationText +\r\n \": $ \" +\r\n currencyFormat(locale, this.y) +\r\n \"\"\r\n );\r\n },\r\n },\r\n series: [\r\n {\r\n name: \"\",\r\n type: \"column\",\r\n data: data,\r\n dataLabels: {\r\n enabled: true,\r\n formatter: function() {\r\n return formatCurrency(this.y, 0);\r\n },\r\n y: 0,\r\n },\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const QuestionChart = (titleTextKey, locale, data) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const totalText = IntlGetText(\"core.total\");\r\n const instillationText = IntlGetText(\"role.visitor\");\r\n\r\n const categories = !data ? [] : data.categories;\r\n const series = !data ? [] : data.series;\r\n const patientCount = !data ? [] : data.count;\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"column\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + \": \" + currencyFormat(locale, patientCount),\r\n align: \"right\",\r\n x: -10,\r\n },\r\n xAxis: {\r\n categories: categories,\r\n crosshair: true,\r\n title: { text: instillationText },\r\n },\r\n yAxis: {\r\n min: 0,\r\n title: {\r\n text: \"Cantidad\",\r\n },\r\n },\r\n tooltip: {\r\n headerFormat:\r\n '' +\r\n instillationText +\r\n \": {point.key}\",\r\n pointFormat:\r\n '' +\r\n '',\r\n footerFormat: \"
    {series.name}: {point.y}
    \",\r\n shared: true,\r\n useHTML: true,\r\n },\r\n plotOptions: {\r\n column: {\r\n pointPadding: 0.2,\r\n borderWidth: 0,\r\n },\r\n series: {\r\n dataLabels: {\r\n enabled: true,\r\n inside: false\r\n }\r\n }\r\n },\r\n series: series,\r\n };\r\n};\r\n\r\nexport const MultiLineChart = (titleTextKey, data, locale) => {\r\n const titleText = IntlGetText(titleTextKey);\r\n const categories = !data || data.length === 0 ? undefined : data.categories;\r\n\r\n var dataChart = !data || data.length === 0 ? undefined : data.series;\r\n var serie1 = [];\r\n var name1 = \" \";\r\n var serie2 = [];\r\n var name2 = \" \";\r\n var serie3 = [];\r\n var name3 = \" \";\r\n\r\n if (dataChart) {\r\n serie1 = dataChart[0].data;\r\n name1 = dataChart[0].name;\r\n serie2 = dataChart[1].data;\r\n name2 = dataChart[1].name;\r\n serie3 = dataChart[2].data;\r\n name3 = dataChart[2].name;\r\n }\r\n\r\n return {\r\n chart: { type: \"line\" },\r\n title: { text: titleText },\r\n xAxis: {\r\n categories: categories,\r\n accessibility: {\r\n description: \"Meses\",\r\n },\r\n },\r\n legend: {\r\n enabled: false,\r\n reversed: false,\r\n },\r\n yAxis: {\r\n title: {\r\n text: \"Número de pacientes\",\r\n },\r\n },\r\n plotOptions: {\r\n line: {\r\n marker: {\r\n radius: 4,\r\n lineColor: \"#666666\",\r\n lineWidth: 1,\r\n },\r\n showInLegend: true,\r\n },\r\n series: {\r\n dataLabels: {\r\n enabled: true,\r\n inside: false\r\n }\r\n },\r\n showInLegend: true,\r\n },\r\n legend: {\r\n layout: \"vertical\",\r\n align: \"right\",\r\n verticalAlign: \"middle\",\r\n },\r\n series: [\r\n {\r\n name: name1,\r\n marker: {\r\n fillColor: '#FFFFFF',\r\n symbol: \"circle\",\r\n lineColor: '#ffff01'\r\n },\r\n data: serie1,\r\n lineColor: '#ffff01'\r\n },\r\n {\r\n name: name2,\r\n marker: {\r\n fillColor: '#FFFFFF',\r\n symbol: \"diamond\",\r\n lineColor: '#7ec134'\r\n },\r\n data: serie2,\r\n lineColor: '#7ec134'\r\n },\r\n {\r\n name: name3,\r\n marker: {\r\n fillColor: '#FFFFFF',\r\n symbol: \"square\",\r\n lineColor: '#006fc0'\r\n },\r\n data: serie3,\r\n lineColor: '#006fc0'\r\n },\r\n ],\r\n\r\n credits: {\r\n enabled: false,\r\n },\r\n };\r\n};\r\n\r\nexport const MultiColumnChart = (titleTextKey, data) => {\r\n const dataChart = !data || data.length === 0 ? [] : data.series;\r\n const monthChart = !data || data.length === 0 ? [] : data.categories;\r\n return {\r\n chart: {\r\n type: \"column\",\r\n },\r\n title: {\r\n text: IntlGetText(titleTextKey),\r\n },\r\n subtitle: {\r\n text: \"\",\r\n },\r\n xAxis: {\r\n categories: monthChart,\r\n crosshair: true,\r\n },\r\n yAxis: {\r\n min: 0,\r\n title: {\r\n text: \"\",\r\n },\r\n },\r\n tooltip: {\r\n headerFormat: '{point.key}',\r\n pointFormat:\r\n '' +\r\n '',\r\n footerFormat: \"
    {series.name}: {point.y}
    \",\r\n shared: true,\r\n useHTML: true,\r\n },\r\n plotOptions: {\r\n column: {\r\n pointPadding: 0.2,\r\n borderWidth: 0,\r\n },\r\n },\r\n credits: {\r\n enabled: false,\r\n },\r\n series: dataChart,\r\n };\r\n};\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport AppLocale from \"lngProvider\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\nimport {\r\n totalChart,\r\n pieChart,\r\n columnChart,\r\n QuestionChart,\r\n MultiLineChart,\r\n MultiMonthKPI,\r\n MultiColumnChart,\r\n} from \"./optionsCharts\";\r\n\r\nimport {\r\n callApi,\r\n callApiAsync,\r\n getRepList,\r\n getDashboardOperative,\r\n} from \"api/apiList\";\r\n\r\nconst getYears = () => {\r\n var max = dayjs().get(\"year\");\r\n var min = 2022;\r\n var years = [];\r\n\r\n for (var i = min; i <= max; i++) {\r\n years.push(i);\r\n }\r\n return years.map((x) => ({ id: x, name: x }));\r\n};\r\n\r\nconst getMonths = () => {\r\n return [\r\n { id: 1, name: \"Enero\" },\r\n { id: 2, name: \"Febrero\" },\r\n { id: 3, name: \"Marzo\" },\r\n { id: 4, name: \"Abril\" },\r\n { id: 5, name: \"Mayo\" },\r\n { id: 6, name: \"Junio\" },\r\n { id: 7, name: \"Julio\" },\r\n { id: 8, name: \"Agosto\" },\r\n { id: 9, name: \"Septiembre\" },\r\n { id: 10, name: \"Octubre\" },\r\n { id: 11, name: \"Noviembre\" },\r\n { id: 12, name: \"Diciembre\" },\r\n ];\r\n};\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\n\r\nconst DashboardOperative = () => {\r\n const msgDoctorRequired = IntlGetText(\"dashboarPA.doctorRequired\");\r\n\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n const [repList, setRepList] = useState([]);\r\n const [prescriptionList, setPrescriptionList] = useState([]);\r\n\r\n const yearList = getYears();\r\n const monthList = getMonths();\r\n\r\n const defaultValues = {\r\n year: null,\r\n month: null,\r\n };\r\n const validationSchema = {\r\n year: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n month: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n };\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue } = methods;\r\n\r\n useEffect(() => {\r\n if (!isRole(RoleEnum.rep)) callApi(getRepList, setRepList);\r\n //onFilter();\r\n }, []);\r\n\r\n const onFilter = handleSubmit(async (d) => {\r\n setValue(\"doctors\", \"\");\r\n var obj = {\r\n repId: !d.repId ? null : d.repId.value,\r\n year: !d.year ? null : Number(d.year.value),\r\n month: !d.month ? null : Number(d.month.value),\r\n doctorId: null\r\n };\r\n\r\n await callApiAsync(\r\n () => getDashboardOperative(obj),\r\n (data) => {\r\n setPrescriptionList(data.chartPrescriptionByYear);\r\n setTotalInfo(data);\r\n },\r\n fnSetLoader\r\n );\r\n });\r\n\r\n const onFilterDoctor = handleSubmit(async (d) => {\r\n var obj = {\r\n doctorId: d.doctors ? d.doctors.value : null,\r\n year: !d.year ? null : Number(d.year.value),\r\n month: !d.month ? null : Number(d.month.value),\r\n repId: !d.repId ? null : d.repId.value,\r\n };\r\n \r\n await callApiAsync(\r\n () => getDashboardOperative(obj),\r\n (data) => {\r\n setPrescriptionList(data.chartPrescriptionByYear);\r\n setTotalInfo(data);\r\n },\r\n fnSetLoader\r\n );\r\n });\r\n return (\r\n
    \r\n \r\n \r\n {!isRole(RoleEnum.rep) && (\r\n \r\n }\r\n options={repList}\r\n margin=\"normal\"\r\n />\r\n \r\n )}\r\n \r\n }\r\n options={yearList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={monthList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n {/*
    \r\n
    \r\n \r\n
    \r\n
    */}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n }\r\n options={getPropArray(totalInfo, \"doctorList\")}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default DashboardOperative;\r\n//\r\n","import { IntlGetText } from \"util/IntlMessages\";\r\nimport Highcharts from \"highcharts\";\r\nimport { currencyFormat } from \"services/formatNumber\";\r\n\r\nexport const YesNoChart = (\r\n titleText,\r\n tooltipKey,\r\n locale,\r\n yesNoQuestionData,\r\n cycleIdValue,\r\n questionIdValue,\r\n patientCount\r\n) => {\r\n const totalText = IntlGetText(\"core.total\");\r\n const instillationText = IntlGetText(\"patientPA.instillation\");\r\n const data = yesNoQuestionData.filter(\r\n (x) => x.cycleName === cycleIdValue && x.questionNumber === questionIdValue\r\n );\r\n const categories = data.map((x) => x.instillationName);\r\n const serie1 = data.map((x) => {\r\n const yes = x.chartData.find((y) => y.Key === \"Sí\");\r\n if (yes) return yes.Value;\r\n return 0;\r\n });\r\n const serie2 = data.map((x) => {\r\n const no = x.chartData.find((y) => y.Key === \"No\");\r\n if (no) return no.Value;\r\n return 0;\r\n });\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: {\r\n type: \"column\",\r\n },\r\n title: {\r\n text: titleText,\r\n },\r\n subtitle: {\r\n text: totalText + ': '+ currencyFormat(locale,patientCount),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: {\r\n categories: categories,\r\n crosshair: true,\r\n title: { text: instillationText },\r\n },\r\n yAxis: {\r\n min: 0,\r\n title: {\r\n text: \"Cantidad\",\r\n },\r\n },\r\n tooltip: {\r\n headerFormat:\r\n 'Instilación: {point.key}',\r\n pointFormat:\r\n '' +\r\n '',\r\n footerFormat: \"
    {series.name}: {point.y}
    \",\r\n shared: true,\r\n useHTML: true,\r\n },\r\n plotOptions: {\r\n column: {\r\n pointPadding: 0.2,\r\n borderWidth: 0,\r\n },\r\n series: {\r\n dataLabels: {\r\n enabled: true,\r\n inside: false\r\n }\r\n }\r\n },\r\n series: [\r\n {\r\n name: \"Sí\",\r\n data: serie1,\r\n },\r\n {\r\n name: \"No\",\r\n data: serie2,\r\n },\r\n ],\r\n };\r\n};\r\n\r\nexport const QuestionChart = (\r\n titleText,\r\n tooltipKey,\r\n locale,\r\n questionData,\r\n cycleIdValue,\r\n questionIdValue,\r\n patientCount\r\n) => {\r\n const totalText = IntlGetText(\"core.total\");\r\n const instillationText = IntlGetText(\"patientPA.instillation\");\r\n const data = questionData.filter(\r\n (x) => x.cycleName === cycleIdValue && x.questionNumber === questionIdValue\r\n );\r\n const categories = !data || data.length === 0 ? [] : data[0].categories;\r\n const series = !data || data.length === 0 ? [] : data[0].series;\r\n\r\n return {\r\n credits: { enabled: false },\r\n chart: { type: \"column\" },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ': '+ currencyFormat(locale,patientCount),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: {\r\n categories: categories,\r\n crosshair: true,\r\n title: { text: instillationText },\r\n },\r\n yAxis: {\r\n min: 0,\r\n title: {\r\n text: \"Cantidad\",\r\n },\r\n },\r\n tooltip: {\r\n headerFormat:\r\n 'Instilación: {point.key}',\r\n pointFormat:\r\n '' +\r\n '',\r\n footerFormat: \"
    {series.name}: {point.y}
    \",\r\n shared: true,\r\n useHTML: true,\r\n },\r\n plotOptions: {\r\n column: {\r\n pointPadding: 0.2,\r\n borderWidth: 0,\r\n },\r\n series: {\r\n dataLabels: {\r\n enabled: true,\r\n inside: false\r\n }\r\n }\r\n },\r\n series: series,\r\n };\r\n};\r\n\r\nexport const LineChart = (\r\n titleText,\r\n tooltipKey,\r\n locale,\r\n questionData,\r\n cycleIdValue,\r\n questionIdValue,\r\n patientCount\r\n ) => {\r\n\r\n const instillationText = IntlGetText(\"patientPA.instillation\");\r\n const totalText = IntlGetText(\"core.total\");\r\n const data = questionData.filter((x) => x.cycleName === cycleIdValue && x.questionNumber === 11);\r\n const categories = !data || data.length === 0 ? undefined : data[0].categories;\r\n const dataChart = !data || data.length === 0 ? [] : data[0].series[0].data;\r\n\r\n return {\r\n chart: { type: 'line' },\r\n title: { text: titleText },\r\n subtitle: {\r\n text: totalText + ': '+ currencyFormat(locale,patientCount),\r\n align: 'right',\r\n x: -10\r\n },\r\n xAxis: { categories: categories,\r\n title: { text: instillationText } },\r\n legend: {\r\n enabled: false,\r\n reversed: false,\r\n },\r\n yAxis: {\r\n labels: {\r\n formatter: function () {\r\n return this.value;\r\n },\r\n },\r\n title: {\r\n text: ''\r\n }, \r\n },\r\n plotOptions: {\r\n marker: {\r\n enabled: false,\r\n symbol: \"circle\",\r\n radius: 2,\r\n states: {\r\n hover: {\r\n enabled: true,\r\n },\r\n },\r\n },\r\n series: {\r\n dataLabels: {\r\n enabled: true,\r\n inside: false\r\n }\r\n }\r\n },\r\n series: [{\r\n name: '',\r\n data: dataChart\r\n }],\r\n credits: {\r\n enabled: false\r\n }\r\n };\r\n};\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport AppLocale from \"lngProvider\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport FormSelectAutoComplete, {\r\n getCboValue,\r\n getCboValues,\r\n} from \"components/Form/Controls/select-autocomplete\";\r\nimport CustomChart from \"components/CustomChart\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport { YesNoChart, QuestionChart, LineChart } from \"./optionsCharts\";\r\nimport {\r\n callApi,\r\n getDashboardClinical,\r\n getCyclesQuery,\r\n getInstitutionsList,\r\n} from \"api/apiList\";\r\n\r\nconst getPropArray = (obj, prop) => {\r\n if (!obj) return [];\r\n return obj[prop];\r\n};\r\nconst getProp = (obj, prop) => {\r\n if (!obj) return 0;\r\n return obj[prop];\r\n};\r\n\r\nconst getQuestionTitle = (questionNumber) => {\r\n switch (questionNumber) {\r\n case 1:\r\n return \"1. ¿Presenta dolor pélvico y/o ardor al orinar?\";\r\n case 11:\r\n return \"1.1 Califique de 0 a 10 su nivel de dolor según la Escala Visual Análoga\";\r\n case 2:\r\n return \"2. ¿Cuántas veces va a orinar durante el día?\";\r\n case 3:\r\n return \"3. ¿Cuántas veces va a orinar en la noche luego de haber conciliado el sueño?\";\r\n case 4:\r\n return \"4. ¿Cuándo siente el deseo de orinar debe ir rápidamente o puede aguantar?\";\r\n case 5:\r\n return \"5. ¿Ha presentado usted fiebre superior a 38 °C, asociado con alguno de los síntomas anteriores?\";\r\n case 6:\r\n return \"6. ¿Ha presentado usted sangrado en la orina asociado con alguno de los síntomas anteriores?\";\r\n case 7:\r\n return \"7. ¿Ha presentado usted algún otro síntoma relacionado con los descritos anteriormente?\";\r\n case 71:\r\n return \"7.1. Por favor señale cuál de los siguientes síntomas ha presentado\";\r\n case 8:\r\n return \"8. ¿Ha presentado alguna manifestación o molestia asociado con la instilación de ialuril® Prefill?\";\r\n case 81:\r\n return \"8.1. Por favor señale cuál de los siguientes síntomas ha presentado\";\r\n default:\r\n return \"\";\r\n }\r\n};\r\n\r\nconst isConsecutive = (numberArray) => {\r\n var min = Math.min.apply(Math, numberArray);\r\n numberArray.sort((a, b) => a - b);\r\n var anyFalse = numberArray\r\n .map((x, index) => x - min == index)\r\n .find((x) => x === false);\r\n\r\n return anyFalse === undefined;\r\n};\r\n\r\nconst validateFilter = (instillations) => {\r\n if (instillations && instillations.length > 0) {\r\n const list = instillations.map((x) => x.value);\r\n\r\n var inst = list.filter((x) => !x.includes(\"T.M.\")).map((x) => Number(x));\r\n if (inst.length > 0 && !isConsecutive(inst)) return false;\r\n\r\n var instM = list\r\n .filter((x) => x.includes(\"T.M.\"))\r\n .map((x) => Number(x.replace(\"T.M.\", \"\")));\r\n if (instM.length > 0 && !isConsecutive(instM)) return false;\r\n\r\n return true;\r\n }\r\n\r\n return true;\r\n};\r\n\r\nconst DashboardClinical = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { locale } = useSelector(({ settings }) => settings);\r\n const currentAppLocale = AppLocale[locale.locale];\r\n const currentLocale = currentAppLocale.locale;\r\n\r\n const [totalInfo, setTotalInfo] = useState(null);\r\n const [cycleList, setCycleList] = useState([]);\r\n const [institutionList, setInstitutionList] = useState([]);\r\n const [instillationList, setInstillationList] = useState([]);\r\n const [currentCycle, setCurrentCycle] = useState(\"Ciclo 1\");\r\n const [currentQuestion, setCurrentQuestion] = useState(1);\r\n const [dateFilter, setDateFilter] = useState({\r\n startDate: null,\r\n endDate: null,\r\n });\r\n\r\n const msgFilterNoValid = IntlGetText(\"patientPA.instillationFilterNoValid\");\r\n\r\n const questionList = [\r\n { id: 1, name: getQuestionTitle(1) },\r\n { id: 2, name: getQuestionTitle(2) },\r\n { id: 3, name: getQuestionTitle(3) },\r\n { id: 4, name: getQuestionTitle(4) },\r\n { id: 5, name: getQuestionTitle(5) },\r\n { id: 6, name: getQuestionTitle(6) },\r\n { id: 7, name: getQuestionTitle(7) },\r\n { id: 8, name: getQuestionTitle(8) },\r\n ];\r\n\r\n const contextList = [\r\n { id: 0, name: IntlGetText(\"KPIFilters.Institution\") },\r\n { id: 1, name: IntlGetText(\"KPIFilters.Patient\") },\r\n ];\r\n\r\n const defaultValues = {\r\n startDate: null,\r\n endDate: null,\r\n cycleId: null,\r\n questionId: null,\r\n context: null,\r\n };\r\n\r\n const validationSchema = yup.object().shape({\r\n startDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n endDate: yup\r\n .date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\")),\r\n cycleId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n questionId: yup\r\n .object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n });\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(validationSchema),\r\n });\r\n const { handleSubmit, errors, setValue, trigger, watch } = methods;\r\n\r\n const cycleIdValue = watch(\"cycleId\");\r\n const questionIdValue = watch(\"questionId\");\r\n const contextValue = watch(\"context\") ? watch(\"context\") : { id: 1, name: IntlGetText(\"KPIFilters.Patient\") };\r\n\r\n const loadCycleList = (obj, isFirstRender) => {\r\n callApi(\r\n () => getCyclesQuery(obj),\r\n (response) => {\r\n const cycles = response.cycles.map((x) => ({ id: x, name: x }));\r\n const instillations = response.instillations.map((x) => ({\r\n id: x,\r\n name: x,\r\n }));\r\n\r\n setCycleList(cycles);\r\n setInstillationList(instillations);\r\n setDateFilter(obj);\r\n\r\n if (isFirstRender) {\r\n setValue(\"cycleId\", getCboValue(cycles, \"Ciclo 1\"));\r\n setValue(\"context\", getCboValue(contextList, 1));\r\n var s = instillations.filter((a, idx) => idx < 3).map((x) => x.id);\r\n setValue(\"instillation\", getCboValues(instillations, s));\r\n }\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const loadInstitutionList = () => {\r\n callApi(\r\n () => getInstitutionsList(),\r\n (response) => {\r\n setInstitutionList(response);\r\n }\r\n );\r\n };\r\n\r\n\r\n useEffect(() => {\r\n callApi(\r\n () =>\r\n getDashboardClinical({\r\n questionNumber: 1,\r\n instillations: [\"1\", \"2\", \"3\"],\r\n cycle: 'Ciclo 1',\r\n contextId: 1,\r\n institutionId: null,\r\n }),\r\n (data) => {\r\n setValue(\"questionId\", getCboValue(questionList, 1));\r\n setTotalInfo(data);\r\n loadCycleList({ startDate: null, endDate: null }, true);\r\n },\r\n fnSetLoader\r\n );\r\n loadInstitutionList();\r\n }, []);\r\n\r\n const onFilter = handleSubmit(async (d) => {\r\n if (d.startDate || d.endDate) {\r\n if (!(await trigger())) return;\r\n }\r\n if (!validateFilter(d.instillation)) {\r\n NotificationManager.warning(msgFilterNoValid);\r\n return;\r\n }\r\n\r\n var obj = {\r\n questionNumber: !d.questionId ? 1 : Number(d.questionId.value),\r\n startDate: !d.startDate\r\n ? null\r\n : dayjs(d.startDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: !d.endDate\r\n ? null\r\n : dayjs(d.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n instillations: !d.instillation\r\n ? null\r\n : d.instillation.map((x) => x.value),\r\n cycle: !d.cycleId ? null : d.cycleId.value,\r\n contextId: d.context.value,\r\n institutionId: d.institutionId == null ? null : d.institutionId.value,\r\n };\r\n callApi(\r\n () => getDashboardClinical(obj),\r\n (data) => {\r\n setTotalInfo(data);\r\n setCurrentQuestion(questionIdValue.value);\r\n setCurrentCycle(cycleIdValue.value);\r\n\r\n if (\r\n obj.startDate !== dateFilter.startDate ||\r\n obj.endDate !== dateFilter.endDate\r\n )\r\n loadCycleList({ startDate: obj.startDate, endDate: obj.endDate });\r\n },\r\n fnSetLoader\r\n );\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n options={contextList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {contextValue.value !== 0 ? (\r\n <>\r\n ) : (\r\n \r\n }\r\n options={institutionList}\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n }\r\n options={questionList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={instillationList}\r\n margin=\"normal\"\r\n isMulti\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={cycleList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(currentQuestion === 1 ||\r\n currentQuestion === 5 ||\r\n currentQuestion === 6 ||\r\n currentQuestion === 7 ||\r\n currentQuestion === 8) && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentQuestion === 1 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {(currentQuestion === 2 ||\r\n currentQuestion === 3 ||\r\n currentQuestion === 4) && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentQuestion === 7 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {currentQuestion === 8 && (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default DashboardClinical;\r\n","import React from 'react';\r\nimport { Redirect, Route } from 'react-router-dom';\r\nimport { getRoleUser, getUserInfo } from \"app/routes/psp/services/userService\";\r\n\r\nconst isRoleUser = (role, userInfo) => {\r\n if(!userInfo) return false;\r\n\r\n return role.find(x=>userInfo.roles.find(y=>y===x));\r\n}\r\n\r\nconst ProtectedRoute = ({ component: Component, role, ...rest }) => {\r\n const r = getRoleUser().role.toUpperCase();\r\n return (\r\n <>\r\n {/* {(!role || role.includes(r))\r\n ? } />\r\n : \r\n } */}\r\n {(!role || isRoleUser(role, getUserInfo()))\r\n ? } />\r\n : \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default ProtectedRoute;","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { setInstitutionInfo } from \"actions/Institution\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Button } from \"@material-ui/core\";\r\nimport { SketchField, Tools } from \"react-sketch\";\r\nimport PdfViewer from \"components/PdfViewer\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport { callApi, callApiAsync, getInstitutionInfo, postSignByCompany } from \"api/apiList\";\r\n\r\nconst modalState = {\r\n none: 1,\r\n sign: 2\r\n};\r\n\r\nconst ModalConcent = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { ciInstitution, ciSignedDocument } = useSelector(({ institution }) => institution);\r\n\r\n const [openDlgSignCompany, setOpenDlgSignCompany] = useState(false);\r\n const [sketch, setSketch] = useState(false);\r\n const [file, setFile] = useState(null);\r\n const [modalStatus, setModalStatus] = useState(modalState.none);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgSignRequired = IntlGetText(\"consent.validation\");\r\n\r\n const closeDialog = () => setOpenDlgSignCompany(false);\r\n\r\n useEffect(() => {\r\n callApi(getInstitutionInfo,\r\n (data)=>{\r\n dispatch(setInstitutionInfo(data));\r\n if(!data.ciSignedDocument)\r\n setOpenDlgSignCompany(true);\r\n });\r\n }, []);\r\n\r\n const onSubmitAsync = async () => {\r\n if (!sketch.canUndo()) {\r\n NotificationManager.warning(msgSignRequired);\r\n return;\r\n }\r\n\r\n var obj = { signature: sketch.toDataURL() };\r\n await callApiAsync(\r\n () => postSignByCompany(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n dispatch(setInstitutionInfo(data));\r\n closeDialog();\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n return (\r\n \r\n {modalStatus === modalState.none &&\r\n <>\r\n \r\n }\r\n onClick={() => setModalStatus(modalState.sign)}\r\n >\r\n \r\n \r\n \r\n \r\n {\r\n setFile(file);\r\n dispatch(setInstitutionInfo(file));\r\n closeDialog();\r\n }}\r\n actionApi={postSignByCompany}\r\n actionApiInfo={{ }}\r\n showDownload = {false}\r\n />\r\n \r\n \r\n }\r\n {modalStatus === modalState.sign &&\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n setSketch(c)}\r\n width=\"100%\"\r\n height=\"180px\"\r\n tool={Tools.Pencil}\r\n lineColor=\"black\"\r\n lineWidth={2}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default ModalConcent;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport { callApi, callApiAsync, getNewPatientList, postAddIntitutionImpact } from \"api/apiList\";\r\n\r\nconst DlgAddNewPatient = ({openDlg, closeDialog, callBack}) =>{\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [newPatientList, setNewPatientList] = useState([]);\r\n \r\n const defaultValues = {\r\n patientId: null,\r\n planningDate: null,\r\n nurse: \"\",\r\n process: \"\"\r\n };\r\n\r\n const validationSchema = {\r\n patientId: yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable(),\r\n planningDate: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required()\r\n };\r\n \r\n const methods = useForm({ \r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const onSubmitAsync = handleSubmit(async (d)=>{\r\n const impact = {\r\n patientId: Number(d.patientId.value),\r\n planningDate: dayjs(d.planningDate).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nurse: d.nurse,\r\n process: d.process,\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postAddIntitutionImpact(impact),\r\n ()=>{\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n useEffect(() => {\r\n if(!openDlg) return;\r\n\r\n callApi( getNewPatientList,\r\n setNewPatientList,\r\n fnSetLoader\r\n );\r\n }, [openDlg]);\r\n\r\n return(\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n options={newPatientList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD hh:mm A\"\r\n disablePast={true}\r\n leftArrowIcon={}\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n name=\"process\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default DlgAddNewPatient;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport { callApiAsync, postAddIntitutionImpact } from \"api/apiList\";\r\n\r\nconst NextFollowUpForm = ({ openDlg, closeDialog, impactInfo, setImpactInfo, followInfo }) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n startDateAndTime: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n attendingNurseNew: \"\",\r\n procedureToMake: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n startDateAndTime: yup.date()\r\n .nullable(true)\r\n .typeError(IntlGetText(\"yup.InvalidDate\"))\r\n .required(),\r\n attendingNurseNew: yup\r\n .string()\r\n .required(),\r\n procedureToMake: yup\r\n .string()\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors, setValue } = methods;\r\n\r\n useEffect(()=>{\r\n if(!openDlg || !followInfo)\r\n return;\r\n setTimeout(() => {\r\n setValue(\"startDateAndTime\", !followInfo || !followInfo.planingDate ? null : dayjs(followInfo.planingDate));\r\n setValue(\"attendingNurseNew\", !followInfo || !followInfo.nurse ? \"\" : followInfo.nurse);\r\n setValue(\"procedureToMake\", !followInfo || !followInfo.process ? \"\" : followInfo.process);\r\n }, 200);\r\n\r\n },[openDlg]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n var obj = {\r\n id: !followInfo ? 0 : followInfo.id,\r\n patientId: !followInfo ? impactInfo.patientId : followInfo.patientId,\r\n planningDate: dayjs(d.startDateAndTime).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nurse: d.attendingNurseNew,\r\n process: d.procedureToMake,\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postAddIntitutionImpact(obj),\r\n ()=>{\r\n NotificationManager.success(msgSuccess);\r\n if(setImpactInfo)\r\n setImpactInfo({...impactInfo, anyPlanned: true});\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n name=\"procedureToMake\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default NextFollowUpForm;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { Button, Grid } from \"@material-ui/core\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport CardBox from \"components/CardBox/index\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport FormSelectAutoComplete from \"components/Form/Controls/select-autocomplete\";\r\nimport Table, { defaultCol, dateColumn, getTextLabels } from \"components/Form/Table\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { RoleEnum, PatientInstitutionStateList, PatientInstitutionStateEnum } from \"constants/Enums\";\r\nimport ModalConcent from \"./modalConcent\";\r\nimport DlgAddNewPatient from \"./dlgAddNewPatient\";\r\nimport NextFollowUpForm from \"../details/modalForm/nextFollowUp\";\r\nimport { callApiAsync, postIntitutionEndImpact } from \"api/apiList\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { DialogConfirmAsync } from \"components/Form/Controls/DialogConfirm\";\r\nimport {\r\n callApi,\r\n getIntitutionImpacts,\r\n postIntitutionActivatePatient,\r\n getInstitutions\r\n} from \"api/apiList\";\r\n\r\n\r\nconst InstitutionHome = () => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const { ciSignedDocument } = useSelector(({ institution }) => institution);\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const [state, setState] = useState({\r\n page: 0,\r\n count: 0,\r\n data: [],\r\n rowsPerPage: 10\r\n });\r\n const [openDlgAddPatient, setOpenDlgAddPatient] = useState(false);\r\n const [openDlgConfirmationModal, setOpenDlgConfirmationModal] = useState(false);\r\n const [institutionList, setInstitutionList] = useState([]);\r\n const [openDlgNextFollowUp, setOpenDlgNextFollowUp] = useState(false);\r\n const [currentRow, setCurrentRow] = useState(null);\r\n\r\n const isInstitutionManager = isRole(RoleEnum.institutionManager);\r\n\r\n const patientInstitutionStateList = PatientInstitutionStateList().filter(x => x.id > 1);\r\n\r\n const dlgNextFollowUpClose = () => {\r\n setCurrentRow(null);\r\n setOpenDlgNextFollowUp(false);\r\n };\r\n\r\n const dlgConfirmationCloseModal = () => {\r\n setOpenDlgConfirmationModal(false);\r\n };\r\n\r\n const defaultValues = {\r\n filterDateTypeIds: [],\r\n startDate: null,\r\n endDate: null,\r\n states: [],\r\n companyIds: [],\r\n search: \"\"\r\n };\r\n\r\n const validationSchema = {};\r\n\r\n const methods = useForm({\r\n defaultValues: defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, errors } = methods;\r\n\r\n const [filterTable, setFilterTable] = useState(defaultValues);\r\n\r\n const reloadTable = (page, sortOrder, filterTable, rowsPerPage) => {\r\n if (!isInstitutionManager && !ciSignedDocument)\r\n return;\r\n\r\n callApi(\r\n () => getIntitutionImpacts({ page, sortOrder, filterTable, rowsPerPage }),\r\n (d) => {\r\n setState({\r\n ...state,\r\n data: d.data,\r\n count: d.count,\r\n page: page,\r\n rowsPerPage: rowsPerPage\r\n });\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n const loadTable = () => {\r\n reloadTable(state.page, undefined, filterTable, state.rowsPerPage);\r\n };\r\n\r\n useEffect(() => {\r\n if (!isInstitutionManager && !ciSignedDocument)\r\n return;\r\n loadTable();\r\n if (isInstitutionManager)\r\n callApi(getInstitutions, setInstitutionList);\r\n }, [ciSignedDocument]);\r\n\r\n const getOptions = ({ data, page, count, rowsPerPage }) => {\r\n return {\r\n filter: false,\r\n viewColumns: false,\r\n rowsPerPage: rowsPerPage,\r\n rowsPerPageOptions: [10, 50, 100],\r\n download: false,\r\n print: false,\r\n search: false,\r\n selectableRows: \"none\",\r\n\r\n serverSide: true,\r\n count: count,\r\n page: page,\r\n onTableChange: (action, tableState) => {\r\n if (action === \"changePage\" || action === \"sort\" || action === \"changeRowsPerPage\") {\r\n reloadTable(tableState.page, tableState.sortOrder, filterTable, tableState.rowsPerPage);\r\n }\r\n },\r\n textLabels: getTextLabels()\r\n };\r\n };\r\n\r\n const getObj = (tableMeta) =>\r\n state.data.find((x) => x.id === tableMeta.rowData[0]);\r\n\r\n let columns = [\r\n {\r\n name: \"id\",\r\n label: \"Id\",\r\n options: {\r\n filter: false,\r\n sort: false,\r\n searchable: false,\r\n display: \"excluded\",\r\n },\r\n }\r\n ];\r\n if (isInstitutionManager)\r\n columns.push(defaultCol(\"companyName\", \"institution.institution\"));\r\n\r\n columns = columns.concat(\r\n [\r\n defaultCol(\"patient\", \"core.patientName\"),\r\n dateColumn(\"impactDate\", \"core.patientDate\"),\r\n dateColumn(\"planingDate\", \"core.scheduledAppointment\"),\r\n defaultCol(\"state\", \"core.state\"),\r\n {\r\n name: \"actions\",\r\n label: IntlGetText(\"core.actions\"),\r\n options: {\r\n filter: false,\r\n sort: false,\r\n customBodyRender: (value, tableMeta, updateValue) => {\r\n var rowObj = getObj(tableMeta);\r\n return (\r\n <>\r\n \r\n \r\n \r\n {!isInstitutionManager && rowObj && !rowObj.impactDate && rowObj.planingDate && !(rowObj && rowObj.stateId === PatientInstitutionStateEnum.finished) &&\r\n {\r\n setCurrentRow(rowObj);\r\n setOpenDlgNextFollowUp(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n }\r\n {(rowObj && rowObj.stateId === PatientInstitutionStateEnum.finished) &&\r\n {\r\n setOpenDlgConfirmationModal(true);\r\n setCurrentRow(rowObj);\r\n }}\r\n variant=\"contained\"\r\n className=\"jr-btn jr-btn-xs\"\r\n >\r\n \r\n \r\n }\r\n
    \r\n
    \r\n \r\n );\r\n },\r\n },\r\n },\r\n ]);\r\n\r\n const activatePatient = async (row) => {\r\n var obj = {\r\n patientId: row.patientId\r\n };\r\n await callApiAsync(\r\n () => postIntitutionActivatePatient(obj),\r\n (data) => {\r\n dlgConfirmationCloseModal();\r\n loadTable();\r\n NotificationManager.success(msgSuccess);\r\n },\r\n fnSetLoader\r\n );\r\n setCurrentRow(null);\r\n }\r\n\r\n const onFilter = handleSubmit((d) => {\r\n var obj = {\r\n filterDateTypeId: !d.filterDateTypeId ? null : Number(d.filterDateTypeId.value),\r\n startDate: !d.startDate\r\n ? null\r\n : dayjs(d.startDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n endDate: !d.endDate\r\n ? null\r\n : dayjs(d.endDate).format(\"YYYY-MM-DDT00:00:00\"),\r\n states: !d.state ? [] : d.state.map((x) => Number(x.value)),\r\n companyIds: !d.institutionId ? [] : d.institutionId.map((x) => x.value),\r\n search: !d.search ? null : d.search\r\n };\r\n setFilterTable(obj);\r\n reloadTable(state.page, undefined, obj, state.rowsPerPage);\r\n });\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n }\r\n options={[\r\n { id: 1, name: IntlGetText('core.patientDate') },\r\n { id: 2, name: IntlGetText('core.deliveryScheduledDate') }\r\n ]}\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={patientInstitutionStateList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n {isInstitutionManager &&\r\n \r\n }\r\n options={institutionList}\r\n margin=\"normal\"\r\n isMulti\r\n />\r\n \r\n }\r\n \r\n }\r\n margin=\"normal\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {!isInstitutionManager && ciSignedDocument &&\r\n
    \r\n setOpenDlgAddPatient(true)}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n }\r\n \r\n \r\n \r\n setOpenDlgAddPatient(false)}\r\n callBack={() => {\r\n setOpenDlgAddPatient(false);\r\n loadTable();\r\n }}\r\n />\r\n {!isInstitutionManager && }\r\n\r\n {\r\n loadTable();\r\n }\r\n }\r\n followInfo={currentRow}\r\n />\r\n \r\n }\r\n text={}\r\n handleRequestClose={dlgConfirmationCloseModal}\r\n onAcceptClickAsync={async ()=>{\r\n await activatePatient(currentRow);\r\n }}\r\n />\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default InstitutionHome;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport * as dayjs from \"dayjs\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport {\r\n Button,\r\n Grid,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n} from \"@material-ui/core\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport FormDatePicker from \"components/Form/Controls/datepicker\";\r\nimport {\r\n callApi,\r\n getInstitutionPatientInfo\r\n} from \"api/apiList\";\r\n\r\nconst PatientDataForm = ({ openDlg, closeDialog, impactInfo, allowEdit = true }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n\r\n const defaultValues = {\r\n name: \"\",\r\n lastName: \"\",\r\n birthdayDate: null,\r\n age: \"\",\r\n phone: \"\",\r\n regime: \"\",\r\n eps: \"\",\r\n treatment: \"\",\r\n };\r\n\r\n const loadData = () => {\r\n callApi(\r\n () => getInstitutionPatientInfo(impactInfo.patientId),\r\n (obj) => {\r\n setValue(\"name\", !obj || !obj.name ? \"\" : obj.name);\r\n setValue(\"lastName\", !obj || !obj.lastName ? \"\" : obj.lastName);\r\n setValue(\"birthdayDate\", !obj || !obj.birthday ? null : dayjs(obj.birthday));\r\n setValue(\"age\", !obj || !obj.age ? \"\" : obj.age);\r\n setValue(\"phone\", !obj || !obj.phone ? \"\" : obj.phone);\r\n setValue(\"regime\", !obj || !obj.regime ? \"\" : obj.regime);\r\n setValue(\"eps\", !obj || !obj.insurance ? \"\" : obj.insurance);\r\n setValue(\"treatment\", !obj || !obj.treatment ? \"\" : obj.treatment);\r\n },\r\n fnSetLoader\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n if(!openDlg)\r\n return;\r\n\r\n loadData();\r\n }, [openDlg]);\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n });\r\n const {setValue, errors } = methods;\r\n\r\n const disabled = !allowEdit;\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n format=\"YYYY-MM-DD\"\r\n margin=\"normal\"\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default PatientDataForm;\r\n","import React, { useState } from \"react\";\r\nimport PatientDataForm from \"../modalForm/patientDataForm\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\n\r\nconst PatientData = (props) => {\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n return (\r\n <>\r\n {/* comment-alert \r\n assignment-check\r\n assignment\r\n */}\r\n setOpenDlgPatient(true)}\r\n />\r\n\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default PatientData;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport {\r\n callApiAsync,\r\n postIntitutionStartImpact\r\n} from \"api/apiList\";\r\n\r\nconst AssistanceForm = ({ openDlg, closeDialog, callBack, impactInfo, setImpactInfo, allowEdit = true }) => {\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n startDateAndTime: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n attendingNurse: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n startDateAndTime: yup\r\n .string()\r\n .required(),\r\n attendingNurse: yup\r\n .string()\r\n .required(),\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n\r\n useEffect(()=>{\r\n if(!openDlg)\r\n return;\r\n \r\n setTimeout(() => {\r\n setValue(\"startDateAndTime\", !impactInfo || !impactInfo.startDate ? dayjs().format(\"YYYY-MM-DDTHH:mm:ss\") : dayjs(impactInfo.startDate));\r\n setValue(\"attendingNurse\", !impactInfo || !impactInfo.nurse ? \"\" : impactInfo.nurse);\r\n }, 200);\r\n },[openDlg, impactInfo]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n var obj = {\r\n impactId: impactInfo.id,\r\n startDate: dayjs(d.startDateAndTime).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nurse: d.attendingNurse,\r\n };\r\n\r\n await callApiAsync(\r\n ()=>postIntitutionStartImpact(obj),\r\n ()=>{\r\n NotificationManager.success(msgSuccess);\r\n setImpactInfo({...impactInfo, ...obj})\r\n if(callBack)\r\n callBack();\r\n closeDialog();\r\n }\r\n );\r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n disabled={ !allowEdit ? true : false}\r\n />\r\n \r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={ !allowEdit ? true : false}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default AssistanceForm;\r\n","import React, { useState } from \"react\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport AssistanceForm from \"../modalForm/assistanceForm\";\r\n\r\nconst Assistance = (props) => {\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n const { impactInfo } = props;\r\n return (\r\n <>\r\n setOpenDlgPatient(true)}\r\n />\r\n\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default Assistance;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { Grid, Button, Tooltip } from \"@material-ui/core\";\r\nimport { ResponsiveContainer } from \"recharts\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport CardFileUpload from \"components/Form/CardFileUpload\";\r\nimport {DlgConfirmCustomAsync} from \"components/Form/Controls/DialogConfirm\";\r\nimport { \r\n callApi, \r\n callApiAsync, \r\n postIntitutionSaveProcess, \r\n getInstitutionImpactFiles,\r\n postAddInstitutionImpactFile,\r\n deleteInstitutionImpactFile\r\n} from \"api/apiList\";\r\nimport ImageGallery from \"react-image-gallery\";\r\n\r\nconst ProcedureForm = ({ openDlg, closeDialog, impactInfo, setImpactInfo, allowEdit = true }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [file, setFile] = useState(null);\r\n const [galleryObj, setGalleryObj] = useState(null);\r\n\r\n const [imageList, setImageList] = useState([]);\r\n const [currentImg, setCurrentImg] = useState(null);\r\n const [openDlgDelete, setOpenDlgDelete] = useState(false);\r\n\r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n\r\n const defaultValues = {\r\n caseDescription: \"\",\r\n evidencePhoto: \"\",\r\n };\r\n\r\n const validationSchema = {\r\n caseDescription: yup\r\n .string()\r\n .required()\r\n };\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors } = methods;\r\n \r\n useEffect(()=>{\r\n if(!openDlg)\r\n return;\r\n \r\n callApi(()=>getInstitutionImpactFiles(impactInfo.id), setImageList);\r\n setTimeout(() => {\r\n setValue(\"caseDescription\", !impactInfo || !impactInfo.process ? \"\" : impactInfo.process);\r\n }, 200);\r\n },[openDlg, impactInfo]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n var obj = {\r\n impactId: impactInfo.id,\r\n process: d.caseDescription\r\n };\r\n\r\n await callApiAsync(\r\n () => postIntitutionSaveProcess(obj),\r\n () => {\r\n NotificationManager.success(msgSuccess);\r\n setImpactInfo({...impactInfo, process: obj.process});\r\n closeDialog();\r\n },\r\n fnSetLoader\r\n );\r\n });\r\n\r\n\r\n const renderCustomControls = () => {\r\n return (\r\n } placement=\"right-end\">\r\n {\r\n setCurrentImg(imageList[galleryObj.getCurrentIndex()]);\r\n setOpenDlgDelete(true);\r\n }}\r\n variant=\"contained\"\r\n className=\"mb-2 bg-red text-white\"\r\n >\r\n \r\n \r\n \r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n name=\"caseDescription\"\r\n required={true}\r\n multiline\r\n rows={7}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n errorobj={errors}\r\n disabled={ !allowEdit}\r\n />\r\n \r\n {allowEdit && \r\n \r\n {\r\n setFile(response);\r\n setImageList(response);\r\n }}\r\n actionApi={postAddInstitutionImpactFile}\r\n actionApiInfo={{ institutionImpactId: impactInfo && impactInfo.id }}\r\n showDownload = {false}\r\n />\r\n \r\n }\r\n {imageList.length > 0 && \r\n <>\r\n \r\n setGalleryObj(c)}\r\n items={imageList}\r\n renderCustomControls={allowEdit ? renderCustomControls : undefined}\r\n />\r\n \r\n setOpenDlgDelete(false)}\r\n onAcceptClickAsync={async () => {\r\n await callApiAsync(\r\n () => deleteInstitutionImpactFile(currentImg.id),\r\n () => {\r\n NotificationManager.success(msgSuccess);\r\n\r\n let index = imageList.findIndex((x)=> x.id === currentImg.id);\r\n let data = [...imageList];\r\n data.splice(index,1);\r\n setImageList(data);\r\n\r\n setCurrentImg(null);\r\n setOpenDlgDelete(false);\r\n },\r\n fnSetLoader\r\n );\r\n }}\r\n >\r\n
    \r\n \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ProcedureForm;\r\n","import React, { useState } from \"react\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport ProcedureForm from \"../modalForm/procedureForm\";\r\n\r\nconst Procedure = (props) => {\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n const { impactInfo } = props;\r\n return (\r\n <>\r\n setOpenDlgPatient(true)}\r\n />\r\n\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default Procedure;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { NotificationManager } from \"react-notifications\";\r\nimport { SketchField, Tools } from \"react-sketch\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport * as dayjs from \"dayjs\";\r\nimport * as yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers\";\r\nimport { Grid, DialogContentText } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport FormInput from \"components/Form/Controls/input\";\r\nimport DialogAsync from \"components/Form/DialogAsync\";\r\nimport FormDateTimePicker from \"components/Form/Controls/dateTimePicker\";\r\nimport InputFile from \"components/Form/inputFile\";\r\nimport FormSelectAutoComplete, { getCboValue } from \"components/Form/Controls/select-autocomplete\";\r\nimport { callApiAsync, postIntitutionEndImpact } from \"api/apiList\";\r\nimport { PatientInstitutionStateList, PatientInstitutionStateEnum , PatientFinishedStateList} from \"constants/Enums\";\r\n\r\nconst EndingForm = ({ openDlg, closeDialog, impactInfo, setImpactInfo, impactRow, setStateFinished }) => {\r\n const dispatch = useDispatch();\r\n const fnSetLoader = (data) => dispatch(setLoader(data));\r\n const [patientSign, setPatientSign] = useState(null);\r\n const [nurseSign, setNurseSign] = useState(null);\r\n const [fileResult, setFileResult] = useState({fileName:\"\", originalName:\"\"});\r\n const [signOpt, setSignOpt] = useState(1);\r\n const [exitState, setExitState] = useState(2);\r\n \r\n const msgSuccess = IntlGetText(\"core.SuccessSave\");\r\n const msgPatientSignRequired = IntlGetText(\"institution.patientSignRequired\");\r\n const msgNurseSignRequired = IntlGetText(\"institution.nurseSignRequired\");\r\n const msgPendingSignatureFile = IntlGetText(\"core.pendingSignatureFile\");\r\n\r\n const patientSignatureOptions = [\r\n {id:1, name: IntlGetText(\"institution.patientSignature.sign\")},\r\n {id:2, name: IntlGetText(\"institution.patientSignature.uploadFile\")}\r\n ];\r\n const patientStateList = PatientInstitutionStateList().filter(x=>x.id == PatientInstitutionStateEnum.stated || x.id == PatientInstitutionStateEnum.finished);\r\n const patientFinishedStateList = PatientFinishedStateList();\r\n\r\n const defaultValues = {\r\n endingDateAndTime: dayjs().format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n state: !impactRow ? null : getCboValue(patientStateList, impactRow.stateId),\r\n patientCC: \"\",\r\n nurseCC: \"\",\r\n nurseNotes: \"\",\r\n exitReason:\"\",\r\n patientSignatureOption: getCboValue(patientSignatureOptions, 1),\r\n signedDocument: null\r\n };\r\n\r\n let validationSchema = {\r\n endingDateAndTime: yup\r\n .string()\r\n .required(),\r\n nurseNotes: yup.string().required(),\r\n };\r\n \r\n if(signOpt === 1){\r\n validationSchema.patientCC= yup.string().required();\r\n validationSchema.nurseCC= yup.string().required();\r\n }\r\n if(exitState === 3){\r\n validationSchema.exitReason= yup.object()\r\n .shape({ value: yup.string().required() })\r\n .required()\r\n .nullable()\r\n }\r\n\r\n const methods = useForm({\r\n defaultValues,\r\n resolver: yupResolver(yup.object().shape(validationSchema)),\r\n });\r\n const { handleSubmit, setValue, errors, watch } = methods;\r\n\r\n const patientSignatureOptValue = watch(\"patientSignatureOption\");\r\n useEffect(()=>{\r\n if(!patientSignatureOptValue){\r\n setSignOpt(1);\r\n return;\r\n }\r\n var value = patientSignatureOptValue.value;\r\n if(value !== signOpt)\r\n setSignOpt(value);\r\n },[patientSignatureOptValue]);\r\n\r\n const exitOptValue = watch(\"state\");\r\n useEffect(()=>{\r\n if(!exitOptValue){\r\n setExitState(2);\r\n return;\r\n }\r\n var value = exitOptValue.value;\r\n if(value !== signOpt)\r\n setExitState(value);\r\n },[exitOptValue]);\r\n\r\n useEffect(()=>{\r\n if(!openDlg)\r\n return;\r\n \r\n setTimeout(() => {\r\n setValue(\"patientCC\", !impactInfo || !impactInfo.patientDocument ? \"\" : impactInfo.patientDocument);\r\n //setValue(\"patientSignatureOption\", getCboValue(patientSignatureOptions, 1));\r\n }, 200);\r\n },[openDlg, impactInfo]);\r\n\r\n const onSubmit = handleSubmit(async (d) => {\r\n let obj = {\r\n id: impactInfo.id,\r\n endDate: dayjs(d.endingDateAndTime).format(\"YYYY-MM-DDTHH:mm:ss\"),\r\n nursingNote: d.nurseNotes,\r\n state: Number(d.state.value),\r\n exitReason: d.exitReason?Number(d.exitReason.value):null,\r\n };\r\n\r\n if(patientSignatureOptValue && patientSignatureOptValue.value === 1){\r\n if (!patientSign || !patientSign.canUndo()) {\r\n NotificationManager.warning(msgPatientSignRequired);\r\n return;\r\n }\r\n if (!nurseSign || !nurseSign.canUndo()) {\r\n NotificationManager.warning(msgNurseSignRequired);\r\n return;\r\n }\r\n\r\n obj = {\r\n ...obj,\r\n patientDocument: d.patientCC,\r\n nurseDocument: d.nurseCC,\r\n patientSignature: patientSign.toDataURL(),\r\n nurseSignature: nurseSign.toDataURL()\r\n };\r\n }\r\n else{\r\n if (!fileResult || !fileResult.fileName) {\r\n NotificationManager.warning(msgPendingSignatureFile);\r\n return;\r\n }\r\n\r\n obj = {\r\n ...obj,\r\n signedDocument: fileResult.fileName\r\n };\r\n }\r\n\r\n const isFinished = obj.state === PatientInstitutionStateEnum.finished;\r\n await callApiAsync(\r\n () => postIntitutionEndImpact(obj),\r\n (data) => {\r\n NotificationManager.success(msgSuccess);\r\n setImpactInfo(data);\r\n closeDialog();\r\n if(isFinished)\r\n setStateFinished(true);\r\n },\r\n fnSetLoader\r\n );\r\n \r\n });\r\n\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n }\r\n rightArrowIcon={}\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n options={patientStateList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {watch(\"state\").value == PatientInstitutionStateEnum.finished &&\r\n \r\n }\r\n options={patientFinishedStateList}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n }\r\n \r\n }\r\n options={patientSignatureOptions}\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n {patientSignatureOptValue && patientSignatureOptValue.value === 1 && \r\n <>\r\n \r\n \r\n \r\n \r\n \r\n setPatientSign(c)}\r\n width=\"100%\"\r\n height=\"100px\"\r\n tool={Tools.Pencil}\r\n lineColor=\"black\"\r\n lineWidth={2}\r\n />\r\n
    \r\n \r\n \r\n }\r\n margin=\"normal\"\r\n disabled\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n setNurseSign(c)}\r\n width=\"100%\"\r\n height=\"100px\"\r\n tool={Tools.Pencil}\r\n lineColor=\"black\"\r\n lineWidth={2}\r\n />\r\n \r\n \r\n\r\n \r\n }\r\n margin=\"normal\"\r\n errorobj={errors}\r\n />\r\n \r\n \r\n }\r\n {patientSignatureOptValue && patientSignatureOptValue.value === 2 && \r\n \r\n {\r\n setFileResult(f);\r\n setValue(\"signedDocument\",f.fileName);\r\n }}\r\n errors={errors}/>\r\n \r\n }\r\n \r\n }\r\n name=\"nurseNotes\"\r\n multiline\r\n rows={3}\r\n variant=\"outlined\"\r\n margin=\"normal\"\r\n required={true}\r\n errorobj={errors}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default EndingForm;\r\n","import React from \"react\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport DialogGeneric from \"components/Form/DialogGeneric\";\r\nimport DownloadButton from \"components/DownloadButton/index\";\r\n\r\nconst DlgDownloadImpactFile = ({\r\n openDlg,\r\n closeDialog,\r\n impactInfo\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default DlgDownloadImpactFile;\r\n","import React, { useState } from \"react\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport EndingForm from \"../modalForm/endingForm\";\r\nimport DlgDownloadImpactFile from \"../modalForm/dlgDownloadImpactFile\";\r\n\r\nconst Ending = (props) => {\r\n const { impactInfo, isInstitutionManager } = props;\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n const [openDlgDownload, setOpenDlgDownload] = useState(false);\r\n return (\r\n <>\r\n {\r\n if(impactInfo && impactInfo.impactFile)\r\n setOpenDlgDownload(true);\r\n else{\r\n if(isInstitutionManager)\r\n return;\r\n setOpenDlgPatient(true);\r\n }\r\n }}\r\n />\r\n\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n setOpenDlgDownload(false)}\r\n {...props}/>\r\n \r\n );\r\n};\r\n\r\nexport default Ending;\r\n","import React, { useState } from \"react\";\r\nimport InfoCard from \"components/InfoCard/index\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\nimport NextFollowUpForm from \"../modalForm/nextFollowUp\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst NextFollowUp = (props) => {\r\n const [openDlgPatient, setOpenDlgPatient] = useState(false);\r\n const { allowPlanning, isInstitutionManager } = props;\r\n\r\n if(!allowPlanning)\r\n return <>;\r\n\r\n return (\r\n <>\r\n {\r\n if(isInstitutionManager) \r\n return;\r\n setOpenDlgPatient(true);\r\n }}\r\n />\r\n\r\n setOpenDlgPatient(false)}\r\n {...props}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default NextFollowUp;\r\n","import React, {useEffect, useState} from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport IntlMessages, { IntlGetText } from \"util/IntlMessages\";\r\nimport { isRole } from \"app/routes/psp/services/userService\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\nimport PatientData from \"./cards/patientData\";\r\nimport Assistance from \"./cards/assistance\";\r\nimport Procedure from \"./cards/procedure\";\r\nimport Ending from \"./cards/ending\";\r\nimport NextFollowUp from \"./cards/nextFollowUp\";\r\nimport {\r\n callApi,\r\n getInstitutionImpactInfo\r\n} from \"api/apiList\";\r\nimport { PatientInstitutionStateEnum } from \"constants/Enums\";\r\n\r\nconst InstitutionDetails = (props) => {\r\n const { impactRow } = props.location;\r\n\r\n let history = useHistory();\r\n const [impactCompleted, setimpactCompleted] = useState(false);\r\n const [impactInfo, setImpactInfo] = useState(null);\r\n const [stateFinished, setStateFinished] = useState(false);\r\n \r\n const isInstitutionManager = isRole(RoleEnum.institutionManager);\r\n\r\n useEffect(()=>{\r\n if(!impactRow){\r\n setImpactInfo(null);\r\n setStateFinished(false);\r\n return;\r\n }\r\n\r\n setStateFinished(impactRow.stateId === PatientInstitutionStateEnum.finished);\r\n callApi(\r\n () => getInstitutionImpactInfo(impactRow.id),\r\n setImpactInfo\r\n );\r\n },[impactRow]);\r\n\r\n if(!impactRow){\r\n history.push(\"/app/institutionHome\");\r\n return <>;\r\n }\r\n\r\n const impactCompletedFunct = () => {\r\n setimpactCompleted(true)\r\n }\r\n\r\n const getDate = (impactInfo) => {\r\n if(!impactInfo)\r\n return \"\";\r\n if(impactInfo.planningDate && !impactInfo.startDate)\r\n return dayjs(impactInfo.planningDate).format(\"YYYY/MM/DD\");\r\n if(impactInfo.startDate)\r\n return dayjs(impactInfo.startDate).format(\"YYYY/MM/DD\");\r\n return \"\";\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n
    \r\n

    {impactInfo && impactInfo.patient} - {getDate(impactInfo)}

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n { !stateFinished &&\r\n
    \r\n \r\n
    \r\n }\r\n
    \r\n {impactInfo && impactInfo.impactFile && \r\n
    \r\n {history.push(\"/app/institutionHome\");}}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n className=\"ml-2\"\r\n >\r\n {}\r\n \r\n
    \r\n }\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default InstitutionDetails;\r\n","import React from \"react\";\r\nimport { Route, Switch } from \"react-router-dom\";\r\nimport Home from \"./psp/home\";\r\nimport Relogin from \"containers/Relogin\";\r\nimport DoctorProfile from \"./psp/doctor/Components/DoctorProfile\";\r\nimport DoctorList from \"./psp/doctor/\";\r\nimport PatientProfile from \"./psp/patient/Components/PatientProfile\";\r\nimport PatientList from \"./psp/patient\";\r\nimport PatientList3 from \"./psp/patient3\";\r\nimport PatientDetail from \"./psp/patient3/detail\";\r\nimport PatientList2 from \"./psp/patient2\";\r\nimport PatientAdd from \"./psp/patient2/create\";\r\nimport PatientAdd2 from \"./psp/patient2/create2\";\r\nimport PatientTest from \"./psp/patient2/test\";\r\nimport Manage from \"./psp/manage\";\r\nimport Management from \"./psp/management\";\r\nimport ManagePharma from \"./psp/managepharma\";\r\nimport ProductLine from \"./psp/kpi/productLine\";\r\nimport Remodulin from \"./psp/kpi/productLine/remodulin\";\r\nimport Iclusig from \"./psp/kpi/productLine/iclusig\";\r\nimport KpiImpacts from \"./psp/kpi/impacts\";\r\nimport KpiPharmacoVigilance from \"./psp/kpi/pharmacoVigilance\";\r\nimport Pharmacovigilant from \"./psp/pharmacovigilant\";\r\nimport ManagerCalendar from \"./psp/managerCalendar\";\r\nimport ImpactPlanning from \"./psp/impactPlanning\";\r\nimport AdverseEvent from \"./psp/adverseEvent\";\r\nimport AdverseEventDetail from \"./psp/adverseEvent/detail\";\r\nimport asyncComponent from \"util/asyncComponent\";\r\nimport Reports from \"./psp/reports\";\r\nimport ReportList from \"./pspGeneric/reports\";\r\nimport ReportsRepKam from \"./psp/reports/indexRepKam\";\r\nimport PatientPA from \"./psp/patientPA\";\r\nimport PatientPADetail from \"./psp/patientPA/detail\";\r\nimport PatientManagement from \"./psp/patient-management\";\r\nimport Prescriptions from \"./pspGeneric/prescriptions\";\r\nimport Dashboard from \"./pspGeneric/dashboard\";\r\nimport DashboardMigration from \"./pspGeneric/dashboard-migration\";\r\nimport DashboardNurse from \"./psp/dashboard\";\r\nimport DashboardPA from \"./psp/patientPA/DashboardPA\";\r\nimport DashboardOperative from \"./psp/patientPA/dashboardOperative\";\r\nimport DashboardClinical from \"./psp/patientPA/dashboardClinical\";\r\n\r\n// import Kpi from \"./psp/kpi\";\r\nimport { withRouter } from \"react-router\";\r\nimport ProtectedRoute from \"components/ProtectedRoute\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\nimport InstitutionHome from \"./Institution/home\";\r\nimport InstitutionDetails from \"./Institution/details\";\r\n\r\nconst Routes = ({ match }) => (\r\n \r\n \r\n import(\"./psp/home\"))} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* */}\r\n \r\n {/* import(\"./todo/basic\"))}\r\n /> */} \r\n \r\n);\r\n\r\nexport default withRouter(Routes);\r\n","import React from \"react\";\r\nimport AppLayouts from \"./AppLayouts\";\r\nimport Routes from \"../../app/routes\";\r\n\r\nconst AppLayout = () => {\r\n\r\n const Layout = AppLayouts[\"InsideHeaderNav\"];\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default AppLayout;\r\n","import React, { useEffect } from \"react\";\r\nimport { createMuiTheme } from \"@material-ui/core/styles\";\r\nimport { ThemeProvider } from \"@material-ui/styles\";\r\nimport MomentUtils from \"@date-io/moment\";\r\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport { Redirect, Route, Switch } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { IntlProvider } from \"react-intl\";\r\nimport \"assets/vendors/style\";\r\nimport {genericTheme,spintPlusTheme} from \"./themes/cyanTheme\";\r\nimport AppLocale from \"../lngProvider\";\r\nimport { NotificationContainer } from \"react-notifications\";\r\nimport Progress from \"../components/Progress\";\r\nimport SignIn from \"./SignIn\";\r\nimport PatientsTimeline from \"../app/routes/psp/timeline\";\r\nimport { setInitUrl } from \"../actions/Auth\";\r\nimport asyncComponent from \"util/asyncComponent\";\r\nimport AppLayout from \"./AppLayout\";\r\nimport { getUserInfo, isRole } from \"app/routes/psp/services/userService\";\r\nimport { getInitURL } from \"constants/setupMenu\";\r\nimport { RoleEnum } from \"constants/Enums\";\r\n\r\nconst RestrictedRoute = ({ component: Component, authUser, ...rest }) => (\r\n \r\n authUser ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n />\r\n);\r\n\r\nconst App = (props) => {\r\n const dispatch = useDispatch();\r\n const { locale } = useSelector(\r\n ({ settings }) => settings\r\n );\r\n const { authUser, initURL } = useSelector(({ auth }) => auth);\r\n const { match, location } = props;\r\n\r\n useEffect(() => {\r\n window.__MUI_USE_NEXT_TYPOGRAPHY_VARIANTS__ = true;\r\n if (initURL === \"\") {\r\n dispatch(setInitUrl(props.history.location.pathname));\r\n }\r\n }, [\r\n dispatch,\r\n initURL,\r\n props.history.location.pathname,\r\n props.location.search,\r\n ]);\r\n\r\n const isSpintPlus = () => window.location.href.includes('spintplus');\r\n let theme = isSpintPlus() ? spintPlusTheme : genericTheme;\r\n let applyTheme = createMuiTheme(theme);\r\n document.title = theme.pageTitle;\r\n const favicon = document.getElementById(\"favicon\");\r\n favicon.href = theme.favicon;\r\n\r\n if(location.pathname === \"/app/relogin\" && getUserInfo() && !isRole(RoleEnum.superAdmin)){\r\n return ;\r\n }\r\n \r\n if (location.pathname === \"/\") {\r\n if (authUser === null) {\r\n return ;\r\n } else if (initURL === \"\" || initURL === \"/\" || initURL === \"/signin\" || initURL === \"/unauthorized\") {\r\n return ;\r\n } else {\r\n return ;\r\n }\r\n }\r\n\r\n const currentAppLocale = AppLocale[locale.locale];\r\n return (\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n import(\"app/routes/extraPages/routes/404\")\r\n )}\r\n />\r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default App;\r\n","function init() {\r\n // Init Raven or Library used\r\n}\r\n\r\nfunction log(error) {\r\n console.log(error);\r\n}\r\n\r\nexport default {\r\n init,\r\n log,\r\n};\r\n","import React from 'react';\r\nimport {ConnectedRouter} from 'connected-react-router'\r\nimport {Provider} from 'react-redux';\r\nimport {Route, Switch} from 'react-router-dom';\r\n\r\nimport configureStore, {history} from './store';\r\nimport App from './containers/App';\r\n\r\nimport axios from \"axios\";\r\nimport { userSignOut } from \"actions/Auth\";\r\nimport logger from \"services/logService\";\r\nimport { getUserInfo, setUserInfo } from './app/routes/psp/services/userService';\r\n\r\nexport const store = configureStore();\r\n\r\nconst MainApp = () =>\r\n \r\n \r\n \r\n \r\n \r\n \r\n ;\r\n\r\n\r\nconst API_URL = process.env.REACT_APP_API_URL;\r\nconst {dispatch} = store;\r\n\r\n// function getTokenInfo(){\r\n// var userInfo = localStorage.getItem(\"userInfo\");\r\n// if(userInfo){\r\n// userInfo = JSON.parse(userInfo);\r\n// return { token : userInfo.token, refreshToken : userInfo.refreshToken};\r\n// }\r\n// return { token : \"\", refreshToken : \"\"};\r\n// }\r\n\r\nlet requestsToRefresh = [];\r\nlet isRefreshRequesting = false;\r\n\r\n// Handling unexpected errors globally\r\naxios.interceptors.response.use(undefined, (error) => {\r\n const originalRequest = error.config;\r\n \r\n if (originalRequest.url.includes(process.env.REACT_APP_SAS_GENERATOR))\r\n return;\r\n\r\n if (error.response && (error.response.status === 403 || error.response.status === 401) && !originalRequest._retry) {\r\n \r\n if(!isRefreshRequesting){\r\n isRefreshRequesting = true;\r\n\r\n originalRequest._retry = true;\r\n const tokenInfo = getUserInfo();\r\n return axios.post(API_URL+'/token/refresh',\r\n tokenInfo\r\n ).then(res => {\r\n if (res.status === 200) {\r\n setUserInfo({...tokenInfo, ...res.data});\r\n //localStorage.setItem(\"userInfo\", JSON.stringify(res.data));\r\n axios.defaults.headers.common['Authorization'] = 'Bearer ' + getUserInfo().token;\r\n \r\n requestsToRefresh.forEach((cb) => cb(true));\r\n return axios(originalRequest);\r\n }\r\n }).catch((error23) => {\r\n requestsToRefresh.forEach((cb) => cb(false));\r\n dispatch(userSignOut());\r\n })\r\n .finally(() => {\r\n requestsToRefresh = [];\r\n isRefreshRequesting = false;\r\n })\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n requestsToRefresh.push((token) => {\r\n if (token) {\r\n resolve(axios(originalRequest));\r\n }\r\n reject(error);\r\n });\r\n });\r\n }\r\n\r\n const expectedError =\r\n error.response &&\r\n error.response.status >= 400 &&\r\n error.response.status < 500;\r\n if (!expectedError) logger.log(error);\r\n\r\n return Promise.reject(error);\r\n});\r\n\r\naxios.interceptors.request.use(function(config) {\r\n \r\n if (config.url.includes(process.env.REACT_APP_SAS_GENERATOR))\r\n return config;\r\n\r\n const userInfo = getUserInfo();\r\n if (userInfo && userInfo.token) {\r\n config.headers.Authorization = `bearer ${userInfo.token}`;\r\n }\r\n return config;\r\n},\r\nerror => {\r\n Promise.reject(error)\r\n});\r\n\r\nexport default MainApp;","import { combineReducers } from \"redux\";\r\nimport { connectRouter } from \"connected-react-router\";\r\nimport Base from \"./Base\";\r\nimport Settings from \"./Settings\";\r\nimport Mail from \"./Mail\";\r\nimport Auth from \"./Auth\";\r\nimport PharmaMail from \"./PharmaMail\";\r\nimport Prescription from \"./Prescription\";\r\nimport Management from \"./Management\";\r\nimport Home from \"./Home\";\r\nimport Impact from \"./Impact\";\r\nimport Institution from \"./Institution\";\r\n\r\nexport default (history) =>\r\n combineReducers({\r\n router: connectRouter(history),\r\n base: Base,\r\n settings: Settings,\r\n mail: Mail,\r\n auth: Auth,\r\n pharma: PharmaMail,\r\n prescription: Prescription,\r\n management: Management,\r\n home:Home,\r\n impact:Impact,\r\n institution: Institution\r\n });\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport ScrollContent from \"../../../management/scrollContent\";\r\n\r\nconst TableBox = ({children, tableStyle}) => { //({children, ...props})\r\n const { width } = useSelector(({ settings }) => settings);\r\n return (\r\n
    \r\n \r\n \r\n \r\n {children}\r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default TableBox;","import React from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport * as dayjs from \"dayjs\";\r\nimport {\r\n setSelectedPrescription,\r\n setSelectedMenuItem,\r\n} from \"actions/Management\";\r\nimport { FolderType, AdverseEventStateList } from \"constants/Enums\";\r\n\r\nconst TableBoxRow = ({data, folderType }) => {\r\n let history = useHistory();\r\n const dispatch = useDispatch();\r\n const { productLines, prescriptionStates } = useSelector(({ home }) => home);\r\n \r\n const adverseEventStateList = AdverseEventStateList();\r\n\r\n const {\r\n id,\r\n doctor,\r\n patient,\r\n creationDate,\r\n firstImpactDate,\r\n productLineId,\r\n stateId,\r\n } = data;\r\n\r\n const date = firstImpactDate ? firstImpactDate : creationDate;\r\n const productLine = productLines.find((x) => x.id === productLineId);\r\n const prescriptionState = folderType === FolderType.tracing\r\n ? prescriptionStates.find((x) => x.type === folderType && x.id === data.impactTypeId)\r\n : prescriptionStates.find((x) => x.type === folderType && x.id === stateId);\r\n let adverseEventState;\r\n if(folderType === FolderType.adverseEvents && data.adverseEvent){\r\n adverseEventState = adverseEventStateList.find(x=>x.id === data.adverseEvent.state);\r\n }\r\n\r\n const handleClick = (prescription) => {\r\n if ((folderType === FolderType.inProcess || folderType === FolderType.tracing) && !prescription.impactId) {\r\n return;\r\n }\r\n\r\n dispatch(setSelectedMenuItem(folderType));\r\n dispatch(setSelectedPrescription(prescription));\r\n history.push(\"/app/management\");\r\n };\r\n\r\n return (\r\n {\r\n handleClick(data);\r\n }}\r\n >\r\n \r\n
    \r\n
    \r\n {folderType !== FolderType.trainingsAndEvents &&\r\n <>\r\n
    {doctor.name}
    \r\n {patient && (\r\n

    \r\n {!patient.code ? \"\" : patient.code + \" - \"}\r\n {patient.name} {patient.lastName}\r\n

    \r\n )}\r\n

    \r\n {dayjs(date).format(\"YYYY/MM/DD\")}\r\n

    \r\n \r\n }\r\n {folderType === FolderType.trainingsAndEvents &&\r\n <>\r\n
    {data.eventTraining.name}
    \r\n

    \r\n {dayjs(data.eventTraining.trainingDate).format(\"YYYY/MM/DD\")}\r\n

    \r\n \r\n }\r\n
    \r\n
    \r\n \r\n \r\n {productLine && (\r\n \r\n {productLine.title}\r\n \r\n )}\r\n \r\n \r\n {prescriptionState && (\r\n \r\n {prescriptionState.title}\r\n \r\n )}\r\n {adverseEventState && (\r\n \r\n {adverseEventState.name}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default TableBoxRow;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport ReportBox from \"components/ReportBox/index\";\r\nimport YearlyProfitChart from \"components/dashboard/eCommerce/YearlyProfitChart\";\r\nimport { callActionApi, getActivePatientsIndicator } from \"api/apiList\";\r\nimport { showErrorMessage } from \"actions/Management\";\r\nimport { setLoader } from \"actions/Base\";\r\n\r\nconst NewPatientIndicator = () => {\r\n const dispatch = useDispatch();\r\n const { newPatients } = useSelector(({ home }) => home);\r\n const [patientIndicator, setPatientIndicator] = useState(0);\r\n const [isLoaded, setIsLoaded] = useState(false);\r\n\r\n useEffect(() => {\r\n callActionApi(\r\n getActivePatientsIndicator,\r\n (data)=>{\r\n setPatientIndicator(data);\r\n setIsLoaded(true);\r\n },\r\n (error) => {\r\n if(typeof(error) === \"string\") \r\n dispatch(showErrorMessage(error));\r\n },\r\n setLoader\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n \r\n return (\r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n {isLoaded && patientIndicator > 0 && \r\n }\r\n \r\n );\r\n};\r\n\r\nexport default NewPatientIndicator;","import React from \"react\";\r\n\r\nexport const data = [\r\n { name: \"Let A\", uv: 0, pv: 0, amt: 20 },\r\n { name: \"Let B\", uv: 30, pv: 13, amt: 21 },\r\n { name: \"Let C\", uv: 20, pv: 98, amt: 29 },\r\n { name: \"Let D\", uv: 27, pv: 39, amt: 20 },\r\n { name: \"Let E\", uv: 18, pv: 48, amt: 28 },\r\n { name: \"Let F\", uv: 23, pv: 38, amt: 20 },\r\n { name: \"Let G\", uv: 0, pv: 0, amt: 20 },\r\n];\r\nexport const chartData = [\r\n { name: \"J\", amt: 600 },\r\n { name: \"F\", amt: 900 },\r\n { name: \"M\", amt: 1200 },\r\n { name: \"A\", amt: 800 },\r\n { name: \"M\", amt: 1100 },\r\n { name: \"J\", amt: 800 },\r\n { name: \"J\", amt: 1000 },\r\n { name: \"A\", amt: 1400 },\r\n];\r\nexport const lineChartData = [\r\n { name: \"J\", amt: 1400 },\r\n { name: \"F\", amt: 210 },\r\n { name: \"M\", amt: 1200 },\r\n { name: \"A\", amt: 590 },\r\n { name: \"M\", amt: 1500 },\r\n];\r\nexport const pieChartData = [\r\n { name: \"J\", amt: 24 },\r\n { name: \"F\", amt: 18 },\r\n { name: \"M\", amt: 22 },\r\n { name: \"A\", amt: 17 },\r\n { name: \"M\", amt: 25 },\r\n { name: \"J\", amt: 12 },\r\n { name: \"J\", amt: 21 },\r\n];\r\n\r\nexport const doctors = [\r\n {\r\n id: 1,\r\n name: \"Dra. Victoria Lopez\",\r\n about: \"2020/07/06\",\r\n detail: \"Alta\",\r\n color: \"red\",\r\n product: \"Remodulin\",\r\n color2: \"pink\",\r\n },\r\n {\r\n id: 2,\r\n name: \"Dr. Alex Rodriguez\",\r\n about: \"2020/07/14\",\r\n product: \"Remodulin\",\r\n color2: \"pink\",\r\n },\r\n {\r\n id: 3,\r\n name: \"Dra. Julia Ramirez\",\r\n about: \"2020/07/17\",\r\n product: \"Iclusig\",\r\n color2: \"blue\",\r\n },\r\n {\r\n id: 4,\r\n name: \"Dra. Victoria Lopez\",\r\n about: \"2020/07/06\",\r\n detail: \"Alta\",\r\n color: \"red\",\r\n product: \"Remodulin\",\r\n color2: \"pink\",\r\n },\r\n {\r\n id: 5,\r\n name: \"Dr. Alex Rodriguez\",\r\n about: \"2020/07/14\",\r\n product: \"Remodulin\",\r\n color2: \"pink\",\r\n },\r\n {\r\n id: 6,\r\n name: \"Dra. Julia Ramirez\",\r\n about: \"2020/07/17\",\r\n product: \"Iclusig\",\r\n color2: \"blue\",\r\n },\r\n];\r\n\r\nexport const patientsInProgress = [\r\n {\r\n id: 1,\r\n name: \"Helena Ruiz\",\r\n about: \"2020/07/13\",\r\n detail: \"RAD. NO EFECTIVA\",\r\n color: \"red\",\r\n },\r\n {\r\n id: 2,\r\n name: \"Juan Diaz\",\r\n about: \"2020/07/16\",\r\n detail: \"NO AUTORIZADO\",\r\n color: \"red\",\r\n },\r\n {\r\n id: 3,\r\n name: \"Jose Caicedo\",\r\n about: \"2020/07/21\",\r\n detail: \"RAD. EN OLF\",\r\n color: \"green\",\r\n },\r\n];\r\n\r\nexport const patientsInTreatment = [\r\n {\r\n id: 1,\r\n name: \"Martha Perez\",\r\n about: \"2020/07/22\",\r\n detail: \"ACOMP. CITA\",\r\n color: \"green lighten-2\",\r\n },\r\n {\r\n id: 2,\r\n name: \"Andres Garcia\",\r\n about: \"2020/07/22\",\r\n detail: \"VISITA DOMICILARIA\",\r\n color: \"green lighten-2\",\r\n },\r\n {\r\n id: 3,\r\n name: \"Raul Hernandez\",\r\n about: \"2020/07/23\",\r\n detail: \"Llamada seguimiento\",\r\n color: \"green lighten-2\",\r\n },\r\n];\r\n\r\nexport const adverseReports = [\r\n {\r\n id: 1,\r\n name: \"Luis Domínguez\",\r\n about: \"2020/07/10\",\r\n detail: \"QUERY\",\r\n color: \"amber\",\r\n },\r\n {\r\n id: 2,\r\n name: \"Ignacio Andrade\",\r\n about: \"2020/07/15\",\r\n detail: \"QUERY\",\r\n color: \"amber\",\r\n },\r\n {\r\n id: 3,\r\n name: \"Sergio Pérez\",\r\n about: \"2020/07/21\",\r\n detail: \"QUERY\",\r\n color: \"amber\",\r\n },\r\n];\r\n\r\nexport const trainingsEvents = [\r\n {\r\n id: 1,\r\n name: \"Actualizaciones del medicamento\",\r\n about: \"2020/07/24\",\r\n detail: \"CAPACITACIÓN\",\r\n color: \"purple\",\r\n product: \"Iclusig\",\r\n color2: \"blue\",\r\n },\r\n {\r\n id: 2,\r\n name: \"Actualizaciones del medicamento\",\r\n about: \"2020/07/29\",\r\n detail: \"CAPACITACIÓN\",\r\n color: \"purple\",\r\n product: \"Remodulin\",\r\n color2: \"pink\",\r\n },\r\n {\r\n id: 3,\r\n name: \"Encuentro de Salud\",\r\n about: \"2020/07/31\",\r\n detail: \"EVENTO\",\r\n color: \"deep-purple\",\r\n },\r\n];\r\n\r\nexport const article = [\r\n {\r\n image: \"https://via.placeholder.com/500x334\",\r\n title: \"There are many variations of passages of\",\r\n description: \"25th Aug 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x330\",\r\n title: \"Contrary to popular belief, Lorem Ipsum\",\r\n description: \"29th Aug 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x350\",\r\n title: \"Various versions have evolved over the years\",\r\n description: \"5th Sept 2017\",\r\n },\r\n {\r\n image: \"https://via.placeholder.com/500x336\",\r\n title: \"All the Lorem Ipsum generators on the \",\r\n description: \"25th sept 2017\",\r\n },\r\n];\r\n\r\nexport const appNotification = [\r\n {\r\n id: 1,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n Stella,\r\n \" has placed an order for 3 items of $234.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 2,\r\n title: \"Support ticket\",\r\n desc: [\r\n \r\n Jeson Born\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 3,\r\n title: \"new enquiry\",\r\n desc: [\r\n \r\n Guptil\r\n ,\r\n \" has placed an order for 5 items of $425.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n];\r\n\r\nexport const announcementsNotification = [\r\n {\r\n id: 4,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n \r\n Alex Dolgove\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/128x128\",\r\n },\r\n {\r\n id: 5,\r\n title: \"Support ticket\",\r\n desc: [\r\n \r\n Jeson Born\r\n ,\r\n \" raised a support ticket\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n {\r\n id: 6,\r\n title: \"NEW ORDER\",\r\n desc: [\r\n \r\n Stella\r\n ,\r\n \" has placed an order for 3 items of $234.0\",\r\n ],\r\n image: \"https://via.placeholder.com/150x150\",\r\n },\r\n];\r\n\r\nexport const marketingData = [\r\n {\r\n id: 1,\r\n name: \"Facebook Ads\",\r\n desc: \"63 Likes, 387 Shares\",\r\n icon: \"facebook\",\r\n color: \"bg-indigo lighten-1\",\r\n budget: 570,\r\n growth: 20,\r\n },\r\n {\r\n id: 2,\r\n name: \"Twitter Ads\",\r\n desc: \"43 Likes, 545 Shares\",\r\n icon: \"twitter\",\r\n color: \"bg-light-blue accent-2\",\r\n budget: 811,\r\n growth: -5,\r\n },\r\n {\r\n id: 3,\r\n name: \"Instagram\",\r\n desc: \"83 Follows, 210 Likes\",\r\n icon: \"instagram\",\r\n color: \"bg-brown lighten-1\",\r\n budget: 685,\r\n growth: 20,\r\n },\r\n {\r\n id: 4,\r\n name: \"LinkedIn\",\r\n desc: \"23 Shares, 764 Likes\",\r\n icon: \"linkedin\",\r\n color: \"bg-light-blue darken-3\",\r\n budget: 868,\r\n growth: 25,\r\n },\r\n {\r\n id: 5,\r\n name: \"Youtube\",\r\n desc: \"2k subscribe, 1M Likes\",\r\n icon: \"youtube\",\r\n color: \"bg-red accent-4\",\r\n budget: 780,\r\n growth: 45,\r\n },\r\n];\r\n\r\nexport const newArticlesData = {\r\n chartData: [25, 35, 34, 40, 20, 35, 25, 30, 50],\r\n labels: [\"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\"],\r\n};\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as dayjs from \"dayjs\";\r\nimport { Bar, BarChart, ResponsiveContainer } from \"recharts\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport ReportBox from \"components/ReportBox/index\";\r\nimport CardHeader from \"components/dashboard/Common/CardHeader/index\";\r\nimport CustomLineChart from \"components/CustomLineChart/index\";\r\nimport { showErrorMessage } from \"actions/Management\";\r\nimport { isOnlyTracing, isJaasModule } from \"app/routes/psp/services/userService\";\r\nimport {\r\n callActionApi,\r\n getProductsAndStates,\r\n getPrescriptions,\r\n} from \"api/apiList\";\r\nimport { loadHome, loadNewPatients } from \"actions/Home\";\r\nimport { setLoader } from \"actions/Base\";\r\nimport TableBox from \"./components/TableBox\";\r\nimport TableBoxRow from \"./components/TableBoxRow\";\r\nimport NewPatientIndicator from \"./components/NewPatientIndicator\";\r\nimport {\r\n chartData,\r\n newArticlesData,\r\n} from \"./data\"; \r\nimport { FolderType, AdverseEventStateEnum } from \"constants/Enums\";\r\n\r\n\r\nconst TableHome = ({dataList, folderType}) => {\r\n return (\r\n \r\n {dataList.map((data, index) => {\r\n return ;\r\n })}\r\n \r\n );\r\n};\r\n\r\nconst NewPatientsBox = () => {\r\n const { newPatients } = useSelector(({ home }) => home);\r\n return (\r\n \r\n );\r\n};\r\n\r\nconst Home = () => {\r\n const dispatch = useDispatch();\r\n\r\n const [inProcessDataList, setInProcessDataList] = useState([]);\r\n const [tracingDataList, setTracingDataList] = useState([]);\r\n const [adverseEventList, setAdverseEventList] = useState([]);\r\n const [eventTrainingList, setEventTrainingList] = useState([]);\r\n \r\n const isOnlyTrace = isOnlyTracing();\r\n const isJaasModuleConfig = isJaasModule();\r\n\r\n //const { loader, drawerState } = useSelector(({ home }) => home);\r\n\r\n const callApi = (apiFunc, setData) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") dispatch(showErrorMessage(error));\r\n },\r\n setLoader\r\n );\r\n };\r\n\r\n const getNewPatients = () => {\r\n callApi(\r\n () => getPrescriptions(FolderType.newPatients),\r\n (data) => dispatch(loadNewPatients(data))\r\n );\r\n };\r\n const loadInfoInProcess = () => {\r\n if(!isOnlyTrace) \r\n return;\r\n callApi(\r\n () => getPrescriptions(FolderType.inProcess),\r\n setInProcessDataList\r\n );\r\n };\r\n const loadInfoTracing = () => {\r\n callApi(\r\n () => getPrescriptions(FolderType.tracing),\r\n setTracingDataList\r\n );\r\n };\r\n const loadAverseEvent = () => {\r\n if(!isOnlyTrace) \r\n return;\r\n callApi(\r\n () => getPrescriptions(FolderType.adverseEvents),\r\n (data)=>setAdverseEventList(\r\n data.filter(x=>x.adverseEvent.state === AdverseEventStateEnum.pending\r\n || x.adverseEvent.state === AdverseEventStateEnum.inconsistentReport\r\n || x.adverseEvent.state === AdverseEventStateEnum.pendingQuery)\r\n )\r\n );\r\n };\r\n const loadEventTraining = () => {\r\n callApi(\r\n () => getPrescriptions(FolderType.trainingsAndEvents),\r\n (data)=>setEventTrainingList(\r\n data.filter(x=>dayjs(x.eventTraining.trainingDate) > dayjs())\r\n )\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n callApi(\r\n getProductsAndStates,\r\n ({ productLines, prescriptionStates }) => {\r\n dispatch(loadHome(productLines, prescriptionStates));\r\n getNewPatients();\r\n loadInfoInProcess();\r\n loadAverseEvent();\r\n loadInfoTracing();\r\n loadEventTraining();\r\n }\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n {!isOnlyTrace && \r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n }\r\n\r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n
    \r\n {!isOnlyTrace && !isJaasModuleConfig && \r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n }\r\n
    \r\n }\r\n subHeadingColor=\"text-white\"\r\n >\r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n {!isOnlyTrace &&\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n }\r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n {!isOnlyTrace && !isJaasModuleConfig &&\r\n
    \r\n
    \r\n }\r\n />\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n }\r\n
    \r\n
    \r\n }\r\n />\r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Home;\r\n","import React from 'react';\r\n\r\nconst ReportBox = ({styleName, icon, price, detail, children}) => {\r\n if (!styleName)\r\n styleName = \"\";\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n {price}\r\n {detail}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {children}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default ReportBox;","import React from \"react\";\r\nimport { Chart, Doughnut } from \"react-chartjs-2\";\r\n\r\nconst YearlyProfitChart = (props) => {\r\n const {\r\n shadowColor,\r\n centerText,\r\n textColor,\r\n height,\r\n backgroundColor,\r\n borderColor,\r\n hoverBorderColor,\r\n hoverBorderWidth,\r\n dataControl,\r\n labels,\r\n chartType,\r\n chartId,\r\n fontSize,\r\n } = props;\r\n\r\n const data = (canvas) => {\r\n const ctx = canvas.getContext(\"2d\");\r\n const _stroke = ctx.stroke;\r\n ctx.stroke = function() {\r\n ctx.save();\r\n ctx.shadowColor = shadowColor;\r\n ctx.shadowBlur = 20;\r\n ctx.shadowOffsetX = 0;\r\n ctx.shadowOffsetY = 10;\r\n _stroke.apply(this, arguments);\r\n ctx.restore();\r\n };\r\n\r\n Chart.pluginService.register({\r\n beforeDraw: function(chart) {\r\n if (chart.canvas.id === chartId) {\r\n if (chart.options.chartType === chartType) {\r\n let width = chart.chart.width,\r\n height = chart.chart.height,\r\n ctx = chart.chart.ctx;\r\n\r\n ctx.restore();\r\n //let fontSize = \"1.4\";\r\n ctx.font = fontSize + \"em sans-serif\";\r\n ctx.fillStyle = textColor;\r\n ctx.textBaseline = \"middle\";\r\n\r\n let text = centerText,\r\n textX = Math.round((width - ctx.measureText(text).width) / 2),\r\n textY = height / 2;\r\n ctx.fillText(text, textX, textY);\r\n ctx.save();\r\n }\r\n }\r\n },\r\n });\r\n\r\n return {\r\n labels: labels,\r\n datasets: [\r\n {\r\n data: dataControl,\r\n backgroundColor: backgroundColor,\r\n borderColor: borderColor,\r\n hoverBorderColor: hoverBorderColor,\r\n hoverBorderWidth: hoverBorderWidth,\r\n },\r\n ],\r\n };\r\n };\r\n\r\n const options = {\r\n maintainAspectRatio: false,\r\n chartType: chartType,\r\n legend: {\r\n display: false,\r\n labels: {\r\n fontColor: \"#AAAEB3\",\r\n },\r\n },\r\n layout: {\r\n padding: {\r\n top: 5,\r\n bottom: 5,\r\n right: 0,\r\n left: 0,\r\n },\r\n },\r\n cutoutPercentage: 75,\r\n borderWidth: 0,\r\n //rotation: -0.5 * Math.PI - (25 / rotation) * Math.PI,\r\n };\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default YearlyProfitChart;\r\n","export const getUserInfo = () => {\r\n const userInfo = localStorage.getItem(\"userInfo\");\r\n if(!userInfo) return null;\r\n return JSON.parse(userInfo);\r\n};\r\n\r\nexport const setUserInfo = (userInfo) => {\r\n localStorage.setItem(\"userInfo\", JSON.stringify(userInfo));\r\n};\r\n\r\nexport const removeUserInfo = () => {\r\n localStorage.removeItem(\"userInfo\");\r\n}\r\n\r\nexport const isRole = (role) => {\r\n const userInfo = localStorage.getItem(\"userInfo\");\r\n if(!userInfo) return false;\r\n return JSON.parse(userInfo).roles.indexOf(role) !== -1;\r\n};\r\n\r\nexport const getUserRole = async () => {\r\n var userInfo = getUserInfo();\r\n if(!userInfo)\r\n return { role: \"\", rolename: \"\", name: \"\" };\r\n \r\n var role = getRole(userInfo.roles);\r\n\r\n role = role ? role.toLowerCase() : \"\";\r\n var rolename = role;\r\n var name = userInfo.userName;\r\n\r\n return { role, rolename, name };\r\n}\r\n\r\nexport const getRoleUser = () => {\r\n var userInfo = getUserInfo();\r\n if(!userInfo)\r\n return { role: \"\", rolename: \"\", name: \"\" };\r\n \r\n var role = getRole(userInfo.roles);\r\n role = role ? role.toLowerCase() : \"\";\r\n\r\n return { \r\n role: role, \r\n rolename: role, \r\n name: userInfo.userName };\r\n};\r\n\r\nconst getRole=(roles)=>{\r\n const role = roles.find((x) => {\r\n x = x.toLowerCase();\r\n if( x === 'psp_manager' || x === 'manager' || x === 'pharmacovigilance' || x === 'pharma' || x === 'nurse'\r\n || x === 'nurse_procedure')\r\n return x;\r\n return '';\r\n });\r\n return role;\r\n};\r\n\r\nexport const getSettingValue = (settingKey) => {\r\n var userInfo = getUserInfo();\r\n if(!userInfo) \r\n return null;\r\n\r\n if(!userInfo.settings)\r\n return null;\r\n\r\n var setting = userInfo.settings.find(x=>x.key == settingKey);\r\n if(!setting)\r\n return null;\r\n\r\n return setting.value;\r\n}\r\n\r\nexport const getBoolSetting = (settingKey) => {\r\n var settingValue = getSettingValue(settingKey);\r\n return settingValue === \"1\";\r\n}\r\n\r\nexport const isOnlyTracing = () => getBoolSetting(\"PSP_ONLY_TRACING\");\r\n\r\nexport const isDirectTracing = () => getBoolSetting(\"PSP_DIRECT_TRACING\");\r\n\r\nexport const isJaasModule = () => getBoolSetting(\"PSP_JAAS_MODULE\");\r\n\r\nexport const isTracingDeliveryBox = () => getBoolSetting(\"PSP_TRACING_DELIVERY\");\r\n\r\nexport const isPharmacotherapeuticRisk = () => getBoolSetting(\"PSP_PHARMACOTHERAPEUTIC_RISK\");","import { isDirectTracing } from \"app/routes/psp/services/userService\";\r\nimport { IntlGetText } from \"util/IntlMessages\";\r\n\r\nexport const genderList = () => [\r\n { id: 0, name: IntlGetText(\"gender.man\") },\r\n { id: 1, name: IntlGetText(\"gender.woman\") }\r\n];\r\nexport const educationalLevelList = () => [\r\n { id: 0, name: \"SIN ESCOLARIDAD\" },\r\n { id: 5, name: \"PRESCOLAR\" },\r\n { id: 1, name: \"PRIMARIA\" },\r\n { id: 2, name: \"SECUNDARIA\" },\r\n { id: 3, name: \"TÉCNICO\" },\r\n { id: 6, name: \"TECNÓLOGO\" },\r\n { id: 4, name: \"UNIVERSITARIO\" }\r\n];\r\nexport const CivilStatusList = () => [\r\n { id: 2, name: IntlGetText(\"civilStatus.notMarriedGreaterTwoYears\") },\r\n { id: 3, name: IntlGetText(\"civilStatus.notMarriedLessTwoYears\") },\r\n { id: 4, name: IntlGetText(\"civilStatus.separatedDivorced\") },\r\n { id: 5, name: IntlGetText(\"civilStatus.widower\") },\r\n { id: 0, name: IntlGetText(\"civilStatus.single\") },\r\n { id: 1, name: IntlGetText(\"civilStatus.married\") }\r\n];\r\nexport const OccupationList = () => [\r\n { id: 0, name: IntlGetText(\"occupation.housewife\") },\r\n { id: 1, name: IntlGetText(\"occupation.economicDependent\") },\r\n { id: 2, name: IntlGetText(\"occupation.unemployed\") },\r\n { id: 3, name: IntlGetText(\"occupation.student\") },\r\n { id: 4, name: IntlGetText(\"occupation.pensioner\") },\r\n { id: 5, name: IntlGetText(\"occupation.dependentEmployed\") },\r\n { id: 6, name: IntlGetText(\"occupation.selfEmployed\") },\r\n { id: 7, name: IntlGetText(\"occupation.other\") }\r\n];\r\nexport const FrequentMeansContactList = () => [\r\n { id: 0, name: IntlGetText(\"frequentMeansContact.email\") },\r\n { id: 1, name: IntlGetText(\"frequentMeansContact.call\") },\r\n { id: 2, name: IntlGetText(\"frequentMeansContact.sms\") },\r\n { id: 3, name: IntlGetText(\"frequentMeansContact.whatsapp\") },\r\n { id: 4, name: IntlGetText(\"frequentMeansContact.presencial\") }\r\n];\r\nexport const DisposeRemnantsList = () => [\r\n { id: 0, name: IntlGetText(\"disposeRemnants.BluePointOL\") },\r\n { id: 1, name: IntlGetText(\"disposeRemnants.BluePointIPS\") },\r\n { id: 2, name: IntlGetText(\"disposeRemnants.OtherBluePoint\") },\r\n { id: 3, name: IntlGetText(\"disposeRemnants.other\") }\r\n];\r\nexport const RelationshipList = () => [\r\n { id: 0, name: \"PAREJA\" },\r\n { id: 1, name: \"PAPÁ\" },\r\n { id: 2, name: \"HIJO\" },\r\n { id: 3, name: \"HERMANO/A\" },\r\n { id: 4, name: \"MAMÁ\" },\r\n { id: 5, name: \"ABUELO/A\" },\r\n { id: 6, name: \"AMIGO/A\" },\r\n { id: 7, name: \"CUÑADO/A\" },\r\n { id: 8, name: \"PRIMO/A\" },\r\n { id: 9, name: \"SOBRINO/A\" },\r\n { id: 10, name: \"SUEGRO/A\" },\r\n { id: 11, name: \"TÍO/A\" },\r\n { id: 12, name: \"OTRO\" }\r\n];\r\nexport const HousingTypeList = () => [\r\n { id: 0, name: IntlGetText(\"housingType.urban\") },\r\n { id: 1, name: IntlGetText(\"housingType.rural\") },\r\n { id: 2, name: IntlGetText(\"housingType.toleranceZone\") },\r\n { id: 3, name: IntlGetText(\"housingType.scatteredZone\") }\r\n];\r\nexport const SupportNetList = () => [\r\n { id: 0, name: IntlGetText(\"supportNet.goob\") },\r\n { id: 1, name: IntlGetText(\"supportNet.regular\") },\r\n { id: 2, name: IntlGetText(\"supportNet.bad\") }\r\n];\r\nexport const RegimeList = () => [\r\n { id: 0, name: IntlGetText(\"regime.notApply\") },\r\n { id: 1, name: IntlGetText(\"regime.undefined\") },\r\n { id: 2, name: IntlGetText(\"regime.contributive\") },\r\n { id: 3, name: IntlGetText(\"regime.EASSpecial\") },\r\n { id: 4, name: IntlGetText(\"regime.exception\") },\r\n { id: 5, name: IntlGetText(\"regime.prepaid\") },\r\n { id: 6, name: IntlGetText(\"regime.subsidized\") },\r\n { id: 7, name: IntlGetText(\"regime.notAffiliate\") },\r\n { id: 8, name: IntlGetText(\"regime.link\") }\r\n];\r\nexport const AffiliationTypeList = () => [\r\n { id: 0, name: \"BENEFICIARIO\" },\r\n { id: 1, name: \"COTIZANTE\" }\r\n];\r\nexport const PrescriptionTypeList = () => [\r\n { id: 0, name: IntlGetText(\"core.successive\") },\r\n { id: 1, name: IntlGetText(\"core.unique\") }\r\n];\r\nexport const DurationTreatmentList = () => [\r\n { id: 1, name: \"1\" },\r\n { id: 2, name: \"2\" },\r\n { id: 3, name: \"3\" },\r\n { id: 4, name: \"4\" },\r\n { id: 5, name: \"5\" },\r\n { id: 6, name: \"6\" },\r\n { id: 7, name: \"7\" },\r\n { id: 8, name: \"8\" },\r\n { id: 9, name: \"9\" },\r\n { id: 10, name: \"10\" },\r\n { id: 11, name: \"11\" },\r\n { id: 12, name: \"12\" }\r\n];\r\nexport const MedicineTypeList = () => [\r\n { id: 1, name: IntlGetText(\"core.own\") },\r\n { id: 2, name: IntlGetText(\"core.notOwn\") }\r\n];\r\nexport const PharmaceuticalUnitList = () => [\r\n { id: 0, name: \"TABLETAS\" },\r\n { id: 1, name: \"VIALES\" },\r\n { id: 2, name: \"CÁPSULAS\" },\r\n { id: 3, name: \"KIT\" },\r\n { id: 4, name: \"MEMBRANA\" },\r\n { id: 5, name: \"CARPULAS\" },\r\n { id: 6, name: \"AMPOLLA\" },\r\n { id: 7, name: \"TUBO\" }\r\n];\r\nexport const FormulaTypeList = () => [\r\n { id: 0, name: \"MIPRES\" },\r\n { id: 1, name: \"NO MIPRES\" }\r\n];\r\nexport const AlertStateList = () => [\r\n { id: 0, name: IntlGetText(\"alertState.pending\") },\r\n { id: 1, name: IntlGetText(\"alertState.done\") },\r\n { id: 2, name: IntlGetText(\"alertState.inProgress\") },\r\n { id: 3, name: IntlGetText(\"alertState.notResolved\") }\r\n];\r\nexport const AlertTypeList = () => [\r\n { id: 0, name: IntlGetText(\"alertType.newPatient\") },\r\n { id: 1, name: IntlGetText(\"alertType.doctorDidNotAccept\") },\r\n { id: 2, name: IntlGetText(\"alertType.patientDidNotAccept\") },\r\n { id: 3, name: IntlGetText(\"alertType.formulatedWithErrors\") },\r\n { id: 4, name: IntlGetText(\"alertType.radicacionEPSNonEffective\") },\r\n { id: 5, name: IntlGetText(\"alertType.authorizationDelays\") },\r\n { id: 6, name: IntlGetText(\"alertType.noAuthorized\") },\r\n { id: 7, name: IntlGetText(\"alertType.authorizationWithInconsistencies\") },\r\n { id: 8, name: IntlGetText(\"alertType.radicacionOLFNonEffective\") },\r\n { id: 9, name: IntlGetText(\"alertType.incompleteDelivery\") },\r\n { id: 10, name: IntlGetText(\"alertType.deliveryNotMade\") },\r\n { id: 11, name: IntlGetText(\"alertType.cancelled\") },\r\n { id: 12, name: IntlGetText(\"alertType.newFomurlationCycle\") }\r\n];\r\nexport const ImpactStateList = () => [\r\n { id: 0, name: IntlGetText(\"impactState.planning\") },\r\n { id: 1, name: IntlGetText(\"impactState.registered\") },\r\n { id: 2, name: IntlGetText(\"impactState.cancelled\") }\r\n];\r\nexport const SupplyFrequencyList = () => [\r\n { id: 8, name: \"8\" },\r\n { id: 12, name: \"12\" },\r\n { id: 24, name: \"24\" },\r\n { id: 48, name: \"48\" },\r\n { id: 72, name: \"72\" }\r\n];\r\nexport const StratumList = () => [\r\n { id: 0, name: \"0\" },\r\n { id: 1, name: \"1\" },\r\n { id: 2, name: \"2\" },\r\n { id: 3, name: \"3\" },\r\n { id: 4, name: \"4\" },\r\n { id: 5, name: \"5\" },\r\n { id: 6, name: \"6\" }\r\n];\r\nexport const PatientStateList = (isJaasModule, isFullList = false) => {\r\n if (isJaasModule) {\r\n var stateList = !isFullList\r\n ? []\r\n : [\r\n {\r\n id: 0,\r\n parentId: 1,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientState.pending\")\r\n }\r\n ];\r\n return [\r\n ...stateList,\r\n {\r\n id: 1,\r\n parentId: 1,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.deliveryByEps\")\r\n },\r\n {\r\n id: 2,\r\n parentId: 1,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.particularPurchase\")\r\n },\r\n {\r\n id: 3,\r\n parentId: 2,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.pendingAuthorization\")\r\n },\r\n {\r\n id: 4,\r\n parentId: 2,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.pendingAppointment\")\r\n },\r\n {\r\n id: 5,\r\n parentId: 2,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.pendingDelivery\")\r\n },\r\n {\r\n id: 6,\r\n parentId: 2,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.notAnswer\")\r\n },\r\n {\r\n id: 7,\r\n parentId: 3,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.transactInEps\")\r\n },\r\n {\r\n id: 8,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.lockAuthorization\")\r\n },\r\n {\r\n id: 9,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.lockOlf\")\r\n },\r\n {\r\n id: 10,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.lackMedicalAppointment\")\r\n },\r\n {\r\n id: 11,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.wrongFormula\")\r\n },\r\n {\r\n id: 12,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.wronguthorization\")\r\n },\r\n {\r\n id: 13,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.differentDeliveryPharmacy\")\r\n },\r\n {\r\n id: 14,\r\n parentId: 4,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientStateJaasModule.lockNotAnswer\")\r\n },\r\n {\r\n id: 15,\r\n parentId: 5,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.medicalSuspension\")\r\n },\r\n {\r\n id: 16,\r\n parentId: 5,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.voluntarySuspension\")\r\n },\r\n {\r\n id: 17,\r\n parentId: 6,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.finishedByDoctor\")\r\n },\r\n {\r\n id: 18,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.outsideNotAnswer\")\r\n },\r\n {\r\n id: 19,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.wrongPhone\")\r\n },\r\n {\r\n id: 20,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.phoneOutService\")\r\n },\r\n {\r\n id: 21,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.notAcceptPsp\")\r\n },\r\n {\r\n id: 22,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.notAcceptTreatment\")\r\n },\r\n {\r\n id: 23,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.death\")\r\n },\r\n {\r\n id: 24,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.finishedTreatment\")\r\n },\r\n {\r\n id: 25,\r\n parentId: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.changeOfTreatment\")\r\n },\r\n {\r\n id: 26,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.unformulated\")\r\n },\r\n {\r\n id: 27,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.noEnrolledNotAnswer\")\r\n },\r\n {\r\n id: 28,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.noEnrolledNotAcceptPsp\")\r\n },\r\n {\r\n id: 29,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.noEnrolledWrongPhone\")\r\n },\r\n {\r\n id: 30,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.noEnrolledPhoneOutService\")\r\n },\r\n {\r\n id: 31,\r\n parentId: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientStateJaasModule.other\")\r\n }\r\n ];\r\n }\r\n\r\n return [\r\n { id: 0, color: \"first-impact\", name: IntlGetText(\"patientState.pending\") },\r\n { id: 1, color: \"first-impact\", name: IntlGetText(\"patientState.active\") },\r\n {\r\n id: 2,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientState.suspension\")\r\n },\r\n {\r\n id: 3,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientState.medicalSuspension\")\r\n },\r\n { id: 4, color: \"pat-state-1\", name: IntlGetText(\"patientState.death\") },\r\n {\r\n id: 5,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientState.nonContactablePatient\")\r\n },\r\n {\r\n id: 6,\r\n color: \"first-impact\",\r\n name: IntlGetText(\"patientState.formulated\")\r\n },\r\n {\r\n id: 7,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientState.voluntarySuspension\")\r\n },\r\n {\r\n id: 8,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientState.dropout\")\r\n },\r\n {\r\n id: 9,\r\n color: \"pat-state-1\",\r\n name: IntlGetText(\"patientState.process\")\r\n }\r\n ];\r\n};\r\n\r\nexport const PatientStateParentList = () => [\r\n { id: 1, name: IntlGetText(\"patientStateParent.activeTreatment\") },\r\n { id: 2, name: IntlGetText(\"patientStateParent.activeDifficulty\") },\r\n { id: 3, name: IntlGetText(\"patientStateParent.activeNoBarrier\") },\r\n { id: 4, name: IntlGetText(\"patientStateParent.activeDisrupted\") },\r\n { id: 5, name: IntlGetText(\"patientStateParent.inactiveDiscontinued\") },\r\n { id: 6, name: IntlGetText(\"patientStateParent.inactiveFinishedCycle\") },\r\n { id: 7, name: IntlGetText(\"patientStateParent.inactiveOutsideProgram\") },\r\n { id: 8, name: IntlGetText(\"patientStateParent.inactiveNotJoined\") }\r\n];\r\n\r\nexport const InstitutionStateList = () => [\r\n { id: 0, color: \"#7affaf\", name: \"Estado del caso\" },\r\n { id: 1, color: \"#ac78ff\", name: \"Estado del caso\" },\r\n { id: 2, color: \"#ff3e3e\", name: \"Estado del caso\" },\r\n { id: 3, color: \"#ffc949\", name: \"Estado del caso\" }\r\n];\r\nexport const MedicalSuspensionReasonList = () => [\r\n { id: 0, name: IntlGetText(\"medicalSuspensionReason.ram\") },\r\n { id: 1, name: IntlGetText(\"medicalSuspensionReason.transplant\") },\r\n { id: 2, name: IntlGetText(\"medicalSuspensionReason.terapeuticFailure\") },\r\n { id: 3, name: IntlGetText(\"medicalSuspensionReason.medicalDecision\") }\r\n];\r\nexport const VariableGroupTypeList = () => [\r\n { id: 0, name: IntlGetText(\"variableGroupType.clinicalHistory\") },\r\n { id: 1, name: IntlGetText(\"variableGroupType.tracing\") }\r\n];\r\nexport const ClinicalFindingTypeList = () => [\r\n { id: 0, name: IntlGetText(\"clinicalFindingType.conservation\") },\r\n { id: 1, name: IntlGetText(\"clinicalFindingType.medicine\") },\r\n { id: 2, name: IntlGetText(\"clinicalFindingType.clinical\") }\r\n];\r\nexport const ClinicalFindingStateList = () => [\r\n { id: 0, name: IntlGetText(\"clinicalFindingState.Active\") },\r\n { id: 1, name: IntlGetText(\"clinicalFindingState.closed\") }\r\n];\r\nexport const GeneralStatusList = () => [\r\n { id: 0, name: IntlGetText(\"generalStatus.ok\") },\r\n { id: 1, name: IntlGetText(\"generalStatus.regular\") },\r\n { id: 2, name: IntlGetText(\"generalStatus.bad\") }\r\n];\r\nexport const ImpactFileTypeList = () => [\r\n { id: 0, name: IntlGetText(\"impactFileType.remodulinCatheter\") },\r\n { id: 1, name: IntlGetText(\"impactFileType.remodulinPump\") },\r\n { id: 2, name: IntlGetText(\"impactFileType.visit\") }\r\n];\r\nexport const MoriskyOptionsQuestion8List = () => [\r\n { id: 0, name: IntlGetText(\"morisky.optionsQuestion8.almostNever\") },\r\n { id: 1, name: IntlGetText(\"morisky.optionsQuestion8.rarely\") },\r\n { id: 2, name: IntlGetText(\"morisky.optionsQuestion8.occasionally\") },\r\n { id: 3, name: IntlGetText(\"morisky.optionsQuestion8.habitually\") },\r\n { id: 4, name: IntlGetText(\"morisky.optionsQuestion8.forever\") }\r\n];\r\nexport const SupplyActionTypeList = (isPhg) => {\r\n if (isPhg) {\r\n return [\r\n { id: 0, name: IntlGetText(\"supplyActionType.phgSupply\") },\r\n { id: 1, name: IntlGetText(\"supplyActionType.phgConsumption\") }\r\n ];\r\n }\r\n return [\r\n { id: 0, name: IntlGetText(\"supplyActionType.supply\") },\r\n { id: 1, name: IntlGetText(\"supplyActionType.consumption\") }\r\n ];\r\n};\r\nexport const ForeamSeriousnessList = () => [\r\n { id: 0, name: IntlGetText(\"foreamSeriousness.hospitalization\") },\r\n { id: 1, name: IntlGetText(\"foreamSeriousness.anomaly\") },\r\n { id: 2, name: IntlGetText(\"foreamSeriousness.lifeThreat\") },\r\n { id: 3, name: IntlGetText(\"foreamSeriousness.death\") },\r\n { id: 4, name: IntlGetText(\"foreamSeriousness.disability\") },\r\n { id: 5, name: IntlGetText(\"foreamSeriousness.medicalCondition\") },\r\n { id: 6, name: IntlGetText(\"foreamSeriousness.notSerious\") }\r\n];\r\nexport const ForeamDenouementList = () => [\r\n { id: 0, name: IntlGetText(\"foreamDenouement.withoutSequelae\") },\r\n { id: 1, name: IntlGetText(\"foreamDenouement.withSequelae\") },\r\n { id: 2, name: IntlGetText(\"foreamDenouement.solving\") },\r\n { id: 3, name: IntlGetText(\"foreamDenouement.notResolved\") },\r\n { id: 4, name: IntlGetText(\"foreamDenouement.fatal\") },\r\n { id: 5, name: IntlGetText(\"foreamDenouement.unknown\") }\r\n];\r\nexport const YesNoNotKnowList = () => [\r\n { id: 0, name: IntlGetText(\"core.yes\") },\r\n { id: 1, name: IntlGetText(\"button.no\") },\r\n { id: 2, name: IntlGetText(\"core.notKnow\") }\r\n];\r\nexport const YesNoNAList = () => [\r\n { id: 0, name: IntlGetText(\"core.yes\") },\r\n { id: 1, name: IntlGetText(\"button.no\") },\r\n { id: 2, name: IntlGetText(\"core.na\") }\r\n];\r\nexport const ForeiaDetectionList = () => [\r\n { id: 0, name: IntlGetText(\"foreia.detection.before\") },\r\n { id: 1, name: IntlGetText(\"foreia.detection.during\") },\r\n { id: 2, name: IntlGetText(\"foreia.detection.later\") }\r\n];\r\nexport const ForeiaClassificationList = () => [\r\n { id: 0, name: IntlGetText(\"foreia.classification.seriousEvent\") },\r\n { id: 1, name: IntlGetText(\"foreia.classification.nonSeriousEvent\") },\r\n { id: 2, name: IntlGetText(\"foreia.classification.seriousIncident\") },\r\n { id: 3, name: IntlGetText(\"foreia.classification.nonSeriousIncident\") }\r\n];\r\nexport const ForeiaDenouementList = () => [\r\n { id: 0, name: IntlGetText(\"foreia.denouement.death\") },\r\n { id: 1, name: IntlGetText(\"foreia.denouement.damage\") },\r\n { id: 2, name: IntlGetText(\"foreia.denouement.lifeThreatening\") },\r\n { id: 3, name: IntlGetText(\"foreia.denouement.requireIntervention\") },\r\n { id: 4, name: IntlGetText(\"foreia.denouement.disability\") },\r\n { id: 5, name: IntlGetText(\"foreia.denouement.hospitalization\") },\r\n { id: 6, name: IntlGetText(\"foreia.denouement.malformation\") },\r\n { id: 7, name: IntlGetText(\"foreia.denouement.noDamage\") },\r\n { id: 8, name: IntlGetText(\"foreia.denouement.other\") }\r\n];\r\nexport const CiomsTypeList = () => [\r\n { id: 0, name: IntlGetText(\"ciomsType.initial\") },\r\n { id: 1, name: IntlGetText(\"ciomsType.tracing\") }\r\n];\r\nexport const SciList = () => [\r\n { id: 0, name: \"S\" },\r\n { id: 1, name: \"C\" },\r\n { id: 2, name: \"I\" }\r\n];\r\nexport const AdverseEventStateList = () => [\r\n {\r\n id: 0,\r\n name: IntlGetText(\"adverseEventState.pending\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 1,\r\n name: IntlGetText(\"adverseEventState.pendingToVerify\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 2,\r\n name: IntlGetText(\"adverseEventState.inconsistentReport\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 3,\r\n name: IntlGetText(\"adverseEventState.verified\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 4,\r\n name: IntlGetText(\"adverseEventState.generatedFoream\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 5,\r\n name: IntlGetText(\"adverseEventState.generatedForeia\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 6,\r\n name: IntlGetText(\"adverseEventState.sentToRegulator\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 7,\r\n name: IntlGetText(\"adverseEventState.registeredCausality\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 8,\r\n name: IntlGetText(\"adverseEventState.generatedCioms\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 9,\r\n name: IntlGetText(\"adverseEventState.sentToPartner\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 10,\r\n name: IntlGetText(\"adverseEventState.pendingQuery\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 11,\r\n name: IntlGetText(\"adverseEventState.queryVerified\"),\r\n color: \"first-impact\"\r\n },\r\n {\r\n id: 12,\r\n name: IntlGetText(\"adverseEventState.annulled\"),\r\n color: \"first-impact\"\r\n }\r\n];\r\nexport const QueryAdverseEventStateList = () => [\r\n { id: 0, name: IntlGetText(\"queryAdverseEventState.new\") },\r\n { id: 1, name: IntlGetText(\"queryAdverseEventState.inProgress\") },\r\n { id: 2, name: IntlGetText(\"queryAdverseEventState.resolved\") },\r\n { id: 3, name: IntlGetText(\"queryAdverseEventState.approved\") },\r\n { id: 4, name: IntlGetText(\"queryAdverseEventState.rejected\") }\r\n];\r\nexport const QueryAdverseEventTypeList = () => [\r\n { id: 0, name: IntlGetText(\"queryAdverseEventType.pharmacovigilance\") },\r\n { id: 1, name: IntlGetText(\"queryAdverseEventType.regulator\") },\r\n { id: 2, name: IntlGetText(\"queryAdverseEventType.partner\") }\r\n];\r\nexport const RemodulinPumpStateList = () => [\r\n { id: 0, name: IntlGetText(\"RemodulinPumpState.New\") },\r\n { id: 1, name: IntlGetText(\"RemodulinPumpState.Open\") },\r\n { id: 2, name: IntlGetText(\"RemodulinPumpState.Closed\") },\r\n { id: 3, name: IntlGetText(\"RemodulinPumpState.Finished\") }\r\n];\r\n\r\nexport const ReportListPint = () => [\r\n { id: 1, name: IntlGetText(\"kpi.impacts\") },\r\n { id: 2, name: IntlGetText(\"reports.controlPanelRemodulin\") },\r\n { id: 3, name: IntlGetText(\"reports.controlPanelIclusig\") },\r\n { id: 4, name: IntlGetText(\"reports.controlPanelGalafold\") },\r\n { id: 5, name: IntlGetText(\"core.clinicHistory\") },\r\n { id: 6, name: IntlGetText(\"report.medicineConsumption\") },\r\n { id: 7, name: IntlGetText(\"infusionPumps.dlgTitle\") },\r\n { id: 8, name: IntlGetText(\"reports.catherChange\") },\r\n { id: 9, name: IntlGetText(\"reports.bcrHemograma\") },\r\n { id: 10, name: IntlGetText(\"reports.pspCube\") },\r\n { id: 11, name: IntlGetText(\"reports.formulaExpiration\") },\r\n { id: 12, name: IntlGetText(\"reports.authorizationExpiration\") },\r\n { id: 13, name: IntlGetText(\"reports.deliveryExpiration\") },\r\n { id: 14, name: IntlGetText(\"reports.supplyReport\") },\r\n { id: 15, name: IntlGetText(\"reports.morisky\") },\r\n { id: 16, name: IntlGetText(\"reports.pendingRSVariables\") },\r\n { id: 17, name: IntlGetText(\"reports.doseChange\") },\r\n { id: 18, name: IntlGetText(\"reports.suspendedPatients\") },\r\n { id: 19, name: IntlGetText(\"reports.externalReports\") },\r\n { id: 20, name: IntlGetText(\"reports.feedbackEventTraining\") },\r\n { id: 22, name: IntlGetText(\"reports.deliveries\") },\r\n { id: 23, name: IntlGetText(\"reports.remodulinVials\") },\r\n { id: 26, name: IntlGetText(\"reports.surveyMorisky\") }\r\n];\r\n\r\nexport const ReportListGeneric = () => {\r\n const isDirectTracingConfig = isDirectTracing();\r\n return [\r\n { id: 1, name: IntlGetText(\"kpi.impacts\") },\r\n {\r\n id: 5,\r\n name: isDirectTracingConfig\r\n ? IntlGetText(\"core.CustomFields\")\r\n : IntlGetText(\"core.clinicHistory\")\r\n },\r\n { id: 6, name: IntlGetText(\"report.medicineConsumption\") },\r\n { id: 11, name: IntlGetText(\"reports.formulaExpiration\") },\r\n { id: 12, name: IntlGetText(\"reports.authorizationExpiration\") },\r\n { id: 13, name: IntlGetText(\"reports.deliveryExpiration\") },\r\n { id: 17, name: IntlGetText(\"reports.doseChange\") },\r\n { id: 18, name: IntlGetText(\"reports.suspendedPatients\") },\r\n { id: 19, name: IntlGetText(\"reports.externalReports\") },\r\n { id: 20, name: IntlGetText(\"reports.feedbackEventTraining\") },\r\n { id: 21, name: IntlGetText(\"reports.patients\") },\r\n { id: 24, name: IntlGetText(\"reports.woundClinic\") },\r\n { id: 25, name: IntlGetText(\"reports.generalJaasiel\") }\r\n ];\r\n};\r\n\r\nexport const ReportEnum = {\r\n impacts: 1,\r\n controlPanelRemodulin: 2,\r\n controlPanelIclusig: 3,\r\n controlPanelGalafold: 4,\r\n clinicHistory: 5,\r\n medicineConsumption: 6,\r\n remodulinPumps: 7,\r\n catherChange: 8,\r\n bcrHemograma: 9,\r\n pspCube: 10,\r\n formulaExpiration: 11,\r\n authorizationExpiration: 12,\r\n deliveryExpiration: 13,\r\n supplyReport: 14,\r\n morisky: 15,\r\n pendingRSVariables: 16,\r\n doseChange: 17,\r\n suspendedPatients: 18,\r\n externalReports: 19,\r\n feedbackEventTraining: 20,\r\n patientsReport: 21,\r\n deliveries: 22,\r\n remodulinVials: 23,\r\n woundClinic: 24,\r\n generalJaasiel: 25,\r\n surveyMorisky: 26,\r\n behringerReport: 32,\r\n celltrionReport: 33\r\n};\r\n\r\nexport const DeliveryModeList = () => [\r\n { id: 1, name: IntlGetText(\"deliveryMode.personal\") },\r\n { id: 2, name: IntlGetText(\"deliveryMode.domicilio\") }\r\n];\r\n\r\nexport const ReportList = () => [\r\n { id: 1, name: IntlGetText(\"core.prescriptions\") },\r\n { id: 2, name: IntlGetText(\"insuranceAuthorization.deliveries\") },\r\n { id: 3, name: IntlGetText(\"kpi.impacts\") },\r\n { id: 4, name: IntlGetText(\"core.callAgent\") }\r\n];\r\n\r\nexport const ReportListEnum = {\r\n prescriptions: 1,\r\n deliveries: 2,\r\n impacts: 3,\r\n callAgent: 4\r\n};\r\n\r\nexport const TrainingResourceTypeList = () => [\r\n { id: 0, name: IntlGetText(\"trainingResourceType.video\") },\r\n { id: 1, name: IntlGetText(\"core.file\") }\r\n];\r\nexport const TrainingResourceTypeEnum = {\r\n video: 0,\r\n file: 1\r\n};\r\nexport const TrainingStateList = () => [\r\n { id: 0, name: IntlGetText(\"impactState.planning\"), color: \"first-impact\" },\r\n { id: 1, name: IntlGetText(\"trainingState.done\"), color: \"presc\" }\r\n];\r\nexport const TrainingStateEnum = {\r\n planned: 0,\r\n done: 1\r\n};\r\n\r\nexport const RoleList = () => [\r\n { id: \"NURSE\", name: IntlGetText(\"role.nurse\") },\r\n { id: \"PHARMACOVIGILANCE\", name: IntlGetText(\"role.pharmacovigilance\") },\r\n { id: \"PSP_MANAGER\", name: IntlGetText(\"role.psp_manager\") },\r\n { id: \"VISITOR\", name: IntlGetText(\"role.visitor\") },\r\n { id: \"KAM\", name: IntlGetText(\"role.kam\") },\r\n { id: \"CALL_AGENT\", name: IntlGetText(\"role.callAgent\") },\r\n { id: \"CALL_AGENT_MANAGER\", name: IntlGetText(\"role.callAgentManager\") },\r\n { id: \"REP\", name: IntlGetText(\"role.representative\") },\r\n { id: \"SUPERADMIN\", name: \"SUPERADMIN\" },\r\n { id: \"INSTITUTION\", name: IntlGetText(\"role.institution\") },\r\n { id: \"INSTITUTION_MANAGER\", name: IntlGetText(\"role.institutionManager\") },\r\n { id: \"PSP_COORDINATOR\", name: IntlGetText(\"role.pspCoordinator\") },\r\n { id: \"MSL\", name: IntlGetText(\"role.msl\") },\r\n { id: \"CONSULTATION\", name: IntlGetText(\"role.consultation\") },\r\n {\r\n id: \"NURSE_MANAGER_CONSULTANT\",\r\n name: IntlGetText(\"role.nursemanagerconsultant\")\r\n },\r\n { id: \"NURSE_PROCEDURE\", name: IntlGetText(\"role.nurseProcedure\") }\r\n];\r\nexport const RoleEnum = {\r\n nurse: \"NURSE\",\r\n pharmacovigilance: \"PHARMACOVIGILANCE\",\r\n psp_manager: \"PSP_MANAGER\",\r\n manager: \"MANAGER\",\r\n pharma: \"PHARMA\",\r\n visitor: \"VISITOR\",\r\n kam: \"KAM\",\r\n callAgent: \"CALL_AGENT\",\r\n callAgentManager: \"CALL_AGENT_MANAGER\",\r\n rep: \"REP\",\r\n institution: \"INSTITUTION\",\r\n superAdmin: \"SUPERADMIN\",\r\n institutionManager: \"INSTITUTION_MANAGER\",\r\n psp_coordinator: \"PSP_COORDINATOR\",\r\n msl: \"MSL\",\r\n consultation: \"CONSULTATION\",\r\n nursemanagerconsultant: \"NURSE_MANAGER_CONSULTANT\",\r\n kpi_survey: \"KPI_SURVEY\",\r\n patient_assignment: \"PATIENT_ASSIGNMENT\",\r\n nurse_procedure: \"NURSE_PROCEDURE\"\r\n};\r\n\r\nexport const SettingsEnum = {\r\n onlyTracing: \"PSP_ONLY_TRACING\",\r\n jaasielModule: \"PSP_JAAS_MODULE\",\r\n reportMorisky: \"PSP_REPORT_MORISKY\",\r\n hideBoxes: \"PSP_HIDE_BOXES\",\r\n pharmacotherapeuticRis: \"PSP_PHARMACOTHERAPEUTIC RISK\"\r\n};\r\n\r\n//Insitution context. Patient Institutionstate\r\nexport const PatientInstitutionStateEnum = {\r\n none: 1,\r\n stated: 2,\r\n finished: 3\r\n};\r\nexport const PatientInstitutionStateList = () => [\r\n { id: 1, name: \"\" },\r\n { id: 2, name: IntlGetText(\"institutionState.stated\") },\r\n { id: 3, name: IntlGetText(\"institutionState.finished\") }\r\n];\r\n\r\n///** */\r\nexport const PrescripStateEnum = {\r\n pending: 0,\r\n doctorAccepted: 1,\r\n patientAccepted: 2,\r\n fristImpact: 3,\r\n formulated: 4,\r\n formulatedWithErrors: 5,\r\n radicacionEPS: 6,\r\n radicacionEPSNonEffective: 7,\r\n authorized: 8,\r\n noAuthorized: 9,\r\n authorizationWithInconsistencies: 10,\r\n radicacionOLF: 11,\r\n radicacionOLFNonEffective: 12,\r\n delivered: 13,\r\n incompleteDelivery: 14,\r\n deliveryNotMade: 15,\r\n cancelled: 16,\r\n patientOutOfProgram: 17,\r\n completedSuccessfully: 18,\r\n Invalidated: 19,\r\n NewFormulation: 20,\r\n forcedTermination: 21\r\n};\r\nexport const ImpactStateEnum = {\r\n planning: 0,\r\n registered: 1,\r\n cancelled: 2,\r\n inProgress: 3\r\n};\r\nexport const ImpactFileType = {\r\n formula: 0,\r\n authorization: 1\r\n};\r\nexport const FolderType = {\r\n newPatients: 0,\r\n inProcess: 1,\r\n tracing: 2,\r\n adverseEvents: 3,\r\n trainingsAndEvents: 4\r\n};\r\nexport const FormulaType = {\r\n MIPRES: 0,\r\n NoMIPRES: 1\r\n};\r\nexport const PrescriptionType = {\r\n Continuous: 0,\r\n Unique: 1\r\n};\r\nexport const RadicadoInsuranceState = {\r\n pending: 0,\r\n authorized: 1,\r\n noAuthorized: 2,\r\n authorizationWithInconsistencies: 3\r\n};\r\nexport const ProductBehavior = {\r\n remodulin: 0,\r\n iclusig: 1,\r\n galafold: 2,\r\n dacepton: 3\r\n};\r\nexport const RadicadoLogisticOperatorState = {\r\n done: 0,\r\n deliveryNotMade: 1\r\n};\r\nexport const AlertStateEnum = {\r\n pending: 0,\r\n done: 1,\r\n inProgress: 2,\r\n notResolved: 3\r\n};\r\nexport const AlertTypeEnum = {\r\n newPatient: 0,\r\n doctorDidNotAccept: 1,\r\n patientDidNotAccept: 2,\r\n formulatedWithErrors: 3,\r\n radicacionEPSNonEffective: 4,\r\n authorizationDelays: 5,\r\n noAuthorized: 6,\r\n authorizationWithInconsistencies: 7,\r\n radicacionOLFNonEffective: 8,\r\n incompleteDelivery: 9,\r\n deliveryNotMade: 10,\r\n cancelled: 11,\r\n newFomurlationCycle: 12\r\n};\r\nexport const ControlTypeEnum = {\r\n text: 1,\r\n dateTime: 2,\r\n checkbox: 3,\r\n select: 4,\r\n number: 5\r\n};\r\nexport const PatientStateEnum = {\r\n pending: 0,\r\n active: 1,\r\n suspension: 2,\r\n medicalSuspension: 3,\r\n death: 4,\r\n nonContactablePatient: 5,\r\n formulated: 6,\r\n voluntarySuspension: 7,\r\n dropout: 8,\r\n process: 9\r\n};\r\nexport const ClinicalFindingStateEnum = {\r\n active: 0,\r\n closed: 1\r\n};\r\nexport const ImpactFileTypeEnum = {\r\n remodulinCatheter: 0,\r\n remodulinPump: 1,\r\n visit: 2\r\n};\r\nexport const MoriskyOptionsQuestion8Enum = {\r\n almostNever: 0,\r\n rarely: 1,\r\n occasionally: 2,\r\n habitually: 3,\r\n forever: 4\r\n};\r\nexport const AdverseEventTypeEnum = {\r\n pharmacovigilance: 1,\r\n technovigilance: 2\r\n};\r\nexport const AdverseEventStateEnum = {\r\n pending: 0,\r\n pendingToVerify: 1,\r\n inconsistentReport: 2,\r\n verified: 3,\r\n generatedFoream: 4,\r\n generatedForeia: 5,\r\n sentToRegulator: 6,\r\n registeredCausality: 7,\r\n generatedCioms: 8,\r\n sentToPartner: 9,\r\n pendingQuery: 10,\r\n queryVerified: 11,\r\n annulled: 12\r\n};\r\nexport const QueryAdverseEventStateEnum = {\r\n neww: 0,\r\n inProgress: 1,\r\n resolved: 2,\r\n approved: 3,\r\n rejected: 4\r\n};\r\nexport const QueryAdverseEventTypeEnum = {\r\n pharmacovigilance: 0,\r\n regulator: 1,\r\n partner: 2\r\n};\r\nexport const FormatTypeEnum = {\r\n foream: 0,\r\n cioms: 1,\r\n foreia: 2\r\n};\r\nexport const CiomsTypeEnum = {\r\n initial: 0,\r\n tracing: 1\r\n};\r\n\r\nexport const ForeiaDenouementEnum = {\r\n death: 0,\r\n damage: 1,\r\n lifeThreatening: 2,\r\n requireIntervention: 3,\r\n disability: 4,\r\n hospitalization: 5,\r\n malformation: 6,\r\n noDamage: 7,\r\n other: 8\r\n};\r\n\r\nexport const ExpirationReportTypeEnum = {\r\n formula: 0,\r\n authorization: 1,\r\n delivery: 2\r\n};\r\n\r\nexport const PlanningTypeEnum = {\r\n impact: 0,\r\n eventTraining: 1\r\n};\r\nexport const UserStatePAEnum = {\r\n active: 1,\r\n inactive: 2,\r\n pendingVerification: 3,\r\n preRegister: 4\r\n};\r\n\r\nexport const ShardKeyEnum = {\r\n ialuril: \"66\",\r\n seranestcr: \"181\",\r\n pintPharma: \"63\",\r\n ullkupuy: \"130\",\r\n boidor: \"62\",\r\n cmedi: \"110\",\r\n phg: \"116\",\r\n jaasielvalentech: \"121\",\r\n sanando: \"130\",\r\n jaasielmegalabs: \"131\",\r\n jaasielcipla: \"132\",\r\n jaasielsophia: \"134\",\r\n jaasielprocaps: \"135\",\r\n jaasielgt: \"136\",\r\n jaasielhb: \"137\",\r\n jaasielaltadis: \"140\",\r\n akompaname: \"149\",\r\n jaasielServier: \"151\",\r\n atulado: \"156\",\r\n recordati: \"163\",\r\n operando: \"166\",\r\n behringer: \"156\",\r\n celltrion: \"177\",\r\n uronorte: \"185\",\r\n farmaDeColombia: \"193\",\r\n};\r\n\r\nexport const PatientOperationEnum = {\r\n add: 1,\r\n create: 2\r\n};\r\n\r\nexport const PatientFinishedStateList = () => [\r\n { id: 1, name: IntlGetText(\"institutionStateFinished.woundClosure\") },\r\n { id: 2, name: IntlGetText(\"institutionStateFinished.withDrawal\") },\r\n { id: 3, name: IntlGetText(\"institutionStateFinished.death\") },\r\n { id: 4, name: IntlGetText(\"institutionStateFinished.treatmentChange\") }\r\n];\r\n\r\nexport const PatientDistributionByEpsAndStateEnum = {\r\n add: 1,\r\n create: 2,\r\n create: 3,\r\n create: 4,\r\n create: 5\r\n};\r\n\r\nexport const PatientDistributionByEpsAndStateList = () => [\r\n { id: 1, name: IntlGetText(\"core.active\") },\r\n { id: 2, name: IntlGetText(\"institutionState.stated\") },\r\n { id: 3, name: IntlGetText(\"core.suspended\") },\r\n { id: 4, name: IntlGetText(\"core.retired\") },\r\n { id: 5, name: IntlGetText(\"queryAdverseEventState.new\") }\r\n];\r\n\r\nexport const BoolList = () => [\r\n { id: 0, name: IntlGetText(\"button.no\") },\r\n { id: 1, name: IntlGetText(\"button.yes\") }\r\n];\r\nexport const DiagnosticTypeList = () => [\r\n { id: 1, name: IntlGetText(\"formula.diagnostic\") },\r\n { id: 2, name: IntlGetText(\"formula.diagnosticSecondary\") }\r\n];\r\nexport const BarrierList = () => [\r\n { id: 1, name: IntlGetText(\"barrier.eps\") },\r\n { id: 2, name: IntlGetText(\"barrier.doctor\") },\r\n { id: 3, name: IntlGetText(\"barrier.ol\") },\r\n { id: 4, name: IntlGetText(\"barrier.patient\") },\r\n { id: 5, name: IntlGetText(\"barrier.stock\") }\r\n];\r\nexport const PatientJaasModuleEnum = {\r\n SUSPENDED: 1,\r\n RETIRED: 2,\r\n ACTIVE: 3,\r\n IMPOSSIBLE_CONTACT: 4\r\n};\r\n\r\nexport const BarrierFlagEnum = {\r\n ACTIVE_INACTIVE: 1,\r\n INACTIVE_ACTIVE: 2,\r\n INACTIVE_INACTIVE: 3\r\n};\r\n\r\nexport const TreatmentTypeList = () => [\r\n { id: 1, name: IntlGetText(\"treatmentType.sharp\") },\r\n { id: 2, name: IntlGetText(\"treatmentType.chronic\") },\r\n { id: 3, name: IntlGetText(\"treatmentType.byCycles\") },\r\n { id: 4, name: IntlGetText(\"treatmentType.prophylaxis\") },\r\n { id: 5, name: IntlGetText(\"treatmentType.transient\") }\r\n];\r\n\r\nexport const diagnosisFamilyHistoryList = () => [\r\n { id: 1, name: IntlGetText(\"Diagnosis.motherHistory\") },\r\n { id: 2, name: IntlGetText(\"Diagnosis.fatherHistory\") },\r\n { id: 3, name: IntlGetText(\"Diagnosis.siblingsHistory\") },\r\n { id: 4, name: IntlGetText(\"Diagnosis.grandparentsHistory\") },\r\n { id: 5, name: IntlGetText(\"Diagnosis.auntsUnclesHistory\") },\r\n { id: 6, name: IntlGetText(\"Diagnosis.cousinsHistory\") },\r\n { id: 7, name: IntlGetText(\"Diagnosis.otherRelativeHistory\") },\r\n { id: 8, name: IntlGetText(\"Diagnosis.unidentifiedFamilyHistory\") }\r\n];\r\n\r\nexport const companyTestConfirmationEnum = () => [\r\n { id: 1, name: IntlGetText(\"companyTestConfirmation.pad\") },\r\n { id: 2, name: IntlGetText(\"companyTestConfirmation.inpatient\") },\r\n { id: 3, name: IntlGetText(\"companyTestConfirmation.ambulatory\") }\r\n];\r\n\r\nexport const diagnosisConfirmation = () => [\r\n { id: 1, name: IntlGetText(\"Diagnosis.clinic\") },\r\n { id: 2, name: IntlGetText(\"Diagnosis.laboratory\") }\r\n];\r\n\r\nexport const diseaseConfirmationTestEnum = () => [\r\n { id: 1, name: \"prueba confirmatoria de la enfermedad\" },\r\n { id: 2, name: \"ácido delta aminolevulínico en orina de 24 horas\" },\r\n { id: 3, name: \"ácidos orgánicos cualitativos en orina\" },\r\n { id: 4, name: \"ácidos orgánicos cuantitativos en orina\" },\r\n { id: 5, name: \"acth en plasma\" },\r\n { id: 6, name: \"aminoácidos cuantitativos en plasma\" },\r\n { id: 7, name: \"amonio en sangre\" },\r\n { id: 8, name: \"test nags\" },\r\n { id: 9, name: \"biopsia\" },\r\n { id: 10, name: \"cistina en leucocitos\" },\r\n { id: 11, name: \"cortisol en saliva nocturno\" },\r\n { id: 12, name: \"cortisol libre en orina\" },\r\n { id: 13, name: \"gamagrafía con mibg\" },\r\n { id: 14, name: \"genético\" },\r\n { id: 15, name: \"homocisteína en orina\" },\r\n { id: 16, name: \"homocisteína en sangre\" },\r\n { id: 17, name: \"hormona de crecimiento (hgh) en plasma\" },\r\n {\r\n id: 18,\r\n name:\r\n \"hormona de crecimiento (hgh) en prueba de tolerancia oral a la glucosa 3 muestras\"\r\n },\r\n {\r\n id: 19,\r\n name:\r\n \"hormona de crecimiento (hgh) en prueba de tolerancia oral a la glucosa 5 muestras\"\r\n },\r\n { id: 20, name: \"lámpara de hendidura\" },\r\n { id: 21, name: \"n-myc amplificado\" },\r\n { id: 22, name: \"perfil de acilcarnitinas\" },\r\n { id: 23, name: \"porfirinas en sangre - orina - heces\" },\r\n { id: 24, name: \"porfobilinógeno en orina de 24 horas\" },\r\n { id: 25, name: \"porfobilinógeno en orina parcial o de 2 horas\" },\r\n { id: 26, name: \"prueba de tolerancia a la dexametasona (1mg nocturno)\" },\r\n { id: 27, name: \"resonancia magnética de pituitaria\" },\r\n { id: 28, name: \"resonancia magnética nuclear\" },\r\n { id: 29, name: \"síntomas\" },\r\n { id: 30, name: \"somatomedina c / igf-1\" },\r\n { id: 31, name: \"tomografía por emisión de positrones (pet)\" },\r\n { id: 32, name: \"agudeza visual\" }\r\n];\r\n\r\nexport const adverseReactionTypeEnum = () => [\r\n { id: 1, name: IntlGetText(\"AdverseReaction.spontaneous\") },\r\n { id: 2, name: IntlGetText(\"AdverseReaction.requestedSpontaneous\") },\r\n { id: 3, name: IntlGetText(\"AdverseReaction.requested\") }\r\n];\r\n\r\nexport const adverseReactionOutcomeEnum = () => [\r\n { id: 1, name: IntlGetText(\"AdverseReaction.recovered\") },\r\n { id: 2, name: IntlGetText(\"AdverseReaction.patientDead\") },\r\n { id: 3, name: IntlGetText(\"AdverseReaction.notRecovered\") },\r\n { id: 4, name: IntlGetText(\"AdverseReaction.recoveredSequels\") },\r\n { id: 5, name: IntlGetText(\"AdverseReaction.recovering\") }\r\n];\r\n\r\nexport const adverseReactionOutcomesEnum = {\r\n RECOVERED: 1,\r\n PATIENTDEAD: 2,\r\n NOTRECOVERED: 3,\r\n RECOVEREDSEQUELS: 4,\r\n RECOVERING: 5\r\n};\r\n\r\nexport const entityProviderTypeEnum = () => [\r\n { id: 1, name: IntlGetText(\"ControlExam.pad\") },\r\n { id: 2, name: IntlGetText(\"ControlExam.eps\") },\r\n { id: 3, name: IntlGetText(\"ControlExam.particular\") },\r\n { id: 4, name: IntlGetText(\"ControlExam.pre\") }\r\n];\r\n\r\nexport const medicineTypeEnum = {\r\n OWN: 1,\r\n NOT_ONW: 2\r\n};\r\n\r\nexport const concomitantTreatmentTypeList = () => [\r\n { id: 0, name: IntlGetText(\"treatmentType.antecedent\") },\r\n { id: 1, name: IntlGetText(\"treatmentType.concomitant\") }\r\n];\r\n","import {\r\n SET_LOADER,\r\n } from 'constants/ActionTypes';\r\n \r\n export const setLoader = (loader) => {\r\n return {\r\n type: SET_LOADER,\r\n payload: loader\r\n };\r\n };\r\n ","import {\r\n CURRENT_MENU_ITEM_ID, \r\n ON_HIDE_LOADER,\r\n ON_TOGGLE_DRAWER,\r\n MANAGE_SEARCH_PRESCRIPTIONS,\r\n LOAD_MANAGE_MODULE,\r\n SELECT_PRODUCT_LINE,\r\n SELECT_PRESCRIPTION_STATE,\r\n SET_PRESCRIPTION_STATE,\r\n LOAD_PRESCRIPTIONS,\r\n SELECT_PRESCRIPTION,\r\n SET_LOADER_MANAGE_MODULE,\r\n SHOW_ALERT_MESSAGE,\r\n LOAD_PATIENT_INFO,\r\n UPDATE_SELECTED_PRESCRIPTION,\r\n REMOVE_SELECTED_PRESCRIPTION,\r\n ADD_PRESCRIPTION_GO_TRACING\r\n } from \"../constants/ActionTypes\";\r\n\r\n export const setSelectedMenuItem = (menuItemId) => {\r\n return {\r\n type: CURRENT_MENU_ITEM_ID,\r\n payload: { menuItemId },\r\n };\r\n };\r\n export const hideManageLoader = () => {\r\n return {\r\n type: ON_HIDE_LOADER,\r\n };\r\n };\r\n export const onToggleDrawer = () => {\r\n return {\r\n type: ON_TOGGLE_DRAWER,\r\n };\r\n };\r\n export const updateManageSearch = (searchText) => {\r\n return {\r\n type: MANAGE_SEARCH_PRESCRIPTIONS,\r\n payload: searchText,\r\n };\r\n };\r\n export const loadManageModule = (productLines, prescriptionStates) => {\r\n return {\r\n type: LOAD_MANAGE_MODULE,\r\n payload: {\r\n productLines,\r\n prescriptionStates\r\n }\r\n };\r\n };\r\n export const setSelectedProductLine = (productLineId) => {\r\n return {\r\n type: SELECT_PRODUCT_LINE,\r\n payload: productLineId,\r\n };\r\n };\r\n export const setSelectedPrescriptionState = (prescriptionStateId) => {\r\n return {\r\n type: SELECT_PRESCRIPTION_STATE,\r\n payload: prescriptionStateId,\r\n };\r\n };\r\n export const setPrescriptionState = (state) => {\r\n return {\r\n type: SET_PRESCRIPTION_STATE,\r\n payload: state,\r\n };\r\n };\r\n// export const loadPrescriptions = (prescriptions) => {\r\n// return {\r\n// type: LOAD_PRESCRIPTIONS,\r\n// payload: prescriptions,\r\n// };\r\n// };\r\n \r\n export const loadPrescriptions = (prescriptions, menuItemId) => {\r\n return {\r\n type: LOAD_PRESCRIPTIONS,\r\n payload: { prescriptions, menuItemId}\r\n };\r\n };\r\n\r\n export const setSelectedPrescription = (prescription) => {\r\n return {\r\n type: SELECT_PRESCRIPTION,\r\n payload: prescription,\r\n };\r\n };\r\n export const setLoader = (loader) => {\r\n return {\r\n type: SET_LOADER_MANAGE_MODULE,\r\n payload: loader,\r\n };\r\n };\r\n export const showInfoMessage = (message) => {\r\n return {\r\n type: SHOW_ALERT_MESSAGE,\r\n payload: {message, alertType: \"info\"},\r\n };\r\n };\r\n export const showSuccessMessage = (message) => {\r\n return {\r\n type: SHOW_ALERT_MESSAGE,\r\n payload: {message, alertType: \"success\"},\r\n };\r\n };\r\n export const showWarningMessage = (message) => {\r\n return {\r\n type: SHOW_ALERT_MESSAGE,\r\n payload: {message, alertType: \"warning\"},\r\n };\r\n };\r\n export const showErrorMessage = (message) => {\r\n return {\r\n type: SHOW_ALERT_MESSAGE,\r\n payload: { message, alertType: \"error\"},\r\n };\r\n };\r\n export const setPatient = (patient) => {\r\n return {\r\n type: LOAD_PATIENT_INFO,\r\n payload: patient,\r\n };\r\n };\r\n export const updateSelectedPrescription = (prescription) => {\r\n return {\r\n type: UPDATE_SELECTED_PRESCRIPTION,\r\n payload: prescription,\r\n };\r\n };\r\n export const removeSelectedPrescription = () => {\r\n return { type: REMOVE_SELECTED_PRESCRIPTION };\r\n };\r\n export const addPrescriptionAndGoToTracing = (prescription, menuItemId) => {\r\n return {\r\n type: ADD_PRESCRIPTION_GO_TRACING,\r\n payload: { prescription, menuItemId }\r\n };\r\n };\r\n \r\n \r\n \r\n ","import http from \"../services/httpService\";\r\nimport { NotificationManager } from \"react-notifications\";\r\n\r\nconst urlApi = `${process.env.REACT_APP_API_URL}`;\r\nconst urlApiV2 = `${process.env.REACT_APP_API_URL}/v2`;\r\nconst urlApiJM = `${process.env.REACT_APP_API_URL}/jm`; //JaasModule\r\n\r\nexport const callActionApi = (apiFunc, setData, handleError, setLoader) => {\r\n const fetchData = async () => {\r\n try {\r\n await apiFunc()\r\n .then((response) => {\r\n if (response) {\r\n setData(response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n var error = \"\";\r\n if (err.response) {\r\n if (err.response.data) {\r\n error = err.response.data.error;\r\n console.log(\"error-response: \", err.response.data.error);\r\n } else {\r\n error = err.response;\r\n console.log(\"error-response: \", err.response);\r\n }\r\n } else if (err.request) {\r\n error = err.request;\r\n console.log(\"error-request: \", err.request);\r\n } else {\r\n error = err;\r\n console.log(\"error-error: \", err);\r\n }\r\n\r\n if (handleError) {\r\n console.log(\"handleError: -> \", error);\r\n handleError(error);\r\n }\r\n })\r\n .then(() => {\r\n if (setLoader) setLoader(false);\r\n });\r\n } catch (e) {\r\n console.log(\"error: \", e.message);\r\n }\r\n };\r\n if (setLoader) setLoader(true);\r\n fetchData();\r\n};\r\n\r\nexport const callActionApiAsync = async (\r\n apiFunc,\r\n setData,\r\n handleError,\r\n setLoader\r\n) => {\r\n if (setLoader) setLoader(true);\r\n try {\r\n await apiFunc()\r\n .then(async (response) => {\r\n if (response) {\r\n if (setData.constructor.name === \"AsyncFunction\")\r\n await setData(response.data);\r\n else setData(response.data);\r\n }\r\n })\r\n .catch((err) => {\r\n var error = \"\";\r\n if (err.response) {\r\n if (err.response.data) {\r\n error = err.response.data.error;\r\n console.log(\"error-response: \", err.response.data.error);\r\n } else {\r\n error = err.response;\r\n console.log(\"error-response: \", err.response);\r\n }\r\n } else if (err.request) {\r\n error = err.request;\r\n console.log(\"error-request: \", err.request);\r\n } else {\r\n error = err;\r\n console.log(\"error-error: \", err);\r\n }\r\n\r\n if (handleError) {\r\n console.log(\"handleError: -> \", error);\r\n handleError(error);\r\n }\r\n })\r\n .then(() => {\r\n if (setLoader) setLoader(false);\r\n });\r\n } catch (e) {\r\n console.log(\"error: \", e.message);\r\n }\r\n};\r\n\r\nexport const callApi = (apiFunc, setData, setLoader) => {\r\n callActionApi(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n }, //, (data) => dispatch(setLoader(data))\r\n (data) => {\r\n if (setLoader) setLoader(data);\r\n }\r\n );\r\n};\r\n\r\nexport const callApiAsync = async (apiFunc, setData, setLoader) => {\r\n await callActionApiAsync(\r\n apiFunc,\r\n setData,\r\n (error) => {\r\n if (typeof error === \"string\") NotificationManager.error(error);\r\n }, //, (data) => dispatch(setLoader(data))\r\n (data) => {\r\n if (setLoader) setLoader(data);\r\n }\r\n );\r\n};\r\n\r\nexport const getAllCity = () => http.get(`${urlApi}/City`);\r\nexport const getCitiesByStateProvinceId = (stateProvinceId) =>\r\n http.get(`${urlApi}/City/${stateProvinceId}`);\r\nexport const getAllStateProvince = () => http.get(`${urlApi}/StateProvince`);\r\nexport const getAllDocumentType = () => http.get(`${urlApi}/DocumentType`);\r\nexport const getInsuranceList = () => http.get(`${urlApi}/Insurance`);\r\nexport const getInstitutionList = () => http.get(`${urlApi}/Institution`);\r\nexport const getDoctorList = () => http.get(`${urlApi}/Doctor`);\r\nexport const getProductList = () => http.get(`${urlApi}/Product`);\r\nexport const getDiseasesByProductId = (productId) =>\r\n http.get(`${urlApi}/Disease/${productId}`);\r\nexport const GetCommentsByType = (type) =>\r\n http.get(`${urlApi}/Comment/${type}`);\r\nexport const getEducationalMaterial = (prescripctionId) =>\r\n http.get(`${urlApi}/EducationalMaterial/${prescripctionId}`);\r\nexport const getMarketChainList = () => http.get(`${urlApi}/MarketChain`);\r\nexport const getImpactTypeList = () => http.get(`${urlApi}/ImpactType`);\r\nexport const getDosageUnitList = () => http.get(`${urlApi}/DosageUnit`);\r\nexport const getAdverseEventTypeList = () =>\r\n http.get(`${urlApi}/AdverseEventType`);\r\nexport const getAllCountry = () => http.get(`${urlApi}/Country`);\r\nexport const getAllCausality = () => http.get(`${urlApi}/Causality`);\r\n\r\nexport const postChangePassword = (data) =>\r\n http.post(`${urlApi}/UserManagement/changepassword`, data);\r\n\r\nexport const getInfoConsent = (prescriptionId) =>\r\n http.get(`${urlApi}/Consent/${prescriptionId}`);\r\nexport const postConsentSaveSign = (data) =>\r\n http.post(`${urlApi}/Consent`, data);\r\nexport const postConsentAddExisting = (data) =>\r\n http.post(`${urlApi}/Consent/AddExisting`, data);\r\nexport const postConsentAddAudio = (data) =>\r\n http.post(`${urlApi}/Consent/AddAudio`, data);\r\n\r\nexport const getPharmacyByMarketChain = (marketchainId) =>\r\n http.get(\r\n `${urlApi}/Pharmacy/GetByMarketchain?marketchainId=${marketchainId}`\r\n );\r\nexport const postAddPharmacy = (data) => http.post(`${urlApi}/Pharmacy/`, data);\r\n\r\nexport const postNewPatientAlert = (data) =>\r\n http.post(`${urlApi}/Alert/newPatient`, data);\r\nexport const postGenerateAlert = (data) =>\r\n http.post(`${urlApi}/Alert/GenerateAlert`, data);\r\nexport const getAlertList = (prescriptionId) =>\r\n http.get(`${urlApi}/Alert/${prescriptionId}`);\r\nexport const getCommentsByAlert = (alertId) =>\r\n http.get(`${urlApi}/Alert/GetCommentsByAlert?alertId=${alertId}`);\r\nexport const postAddCommentToAlert = (data) =>\r\n http.post(`${urlApi}/Alert/AddCommentToAlert`, data);\r\n\r\n//export const getAdministrationRouteList = () => http.get(`${urlApi}/AdministrationRoute`);\r\n//export const getAttentionScopeList = () => http.get(`${urlApi}/AttentionScope`);\r\n\r\nexport const getPatientList = () => http.get(`${urlApi}/Patient`);\r\n//export const getPatientListByNurseId = (nurseId) => http.get(`${urlApi}/Patient/GetByNurseId/?nurseId=${nurseId}`);\r\nexport const getActivePatientsIndicator = () =>\r\n http.get(`${urlApi}/Patient/ActivePatientsIndicator`);\r\nexport const getPatientInfo = (prescriptionId) =>\r\n http.get(`${urlApi}/Patient/${prescriptionId}`);\r\nexport const getGetProcessDetailPatient = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/Patient/GetProcessDetail?prescriptionId=${prescriptionId}`\r\n );\r\nexport const postPatientSave = (data) => http.post(`${urlApi}/Patient`, data);\r\nexport const postPatientSaveHousing = (data) =>\r\n http.post(`${urlApi}/Patient/SaveHousing`, data);\r\nexport const postPatientSaveTutor = (data) =>\r\n http.post(`${urlApi}/Patient/SaveTutor`, data);\r\nexport const postActivatePatient = (data) =>\r\n http.post(`${urlApi}/Patient/ActivatePatient`, data);\r\nexport const postActivatePatientByPrescriptionId = (data) =>\r\n http.post(`${urlApi}/Patient/ActiveByPrescriptionId`, data);\r\nexport const postActivatePatientFromDropOut = (data) =>\r\n http.post(`${urlApi}/Patient/ActiveFromDropOut`, data);\r\nexport const postSuspendedOrDeceased = () =>\r\n http.get(`${urlApi}/Patient/GetSuspendedOrDeceasedState`);\r\nexport const postSuspendedOrDeceasedFile = () =>\r\n http.get(`${urlApi}/Patient/GetSuspendedOrDeceasedStateFile`);\r\nexport const getPatientListManagement = () =>\r\n http.get(`${urlApi}/Patient/GetPatientListManagement`);\r\n\r\nexport const getAllExternalReports = () => http.get(`${urlApi}/ExternalReport`);\r\nexport const getExternalReportById = (id) =>\r\n http.get(`${urlApi}/ExternalReport/GetOne?id=${id}`);\r\nexport const getExternalReportsByDate = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/ExternalReport/GetByDate?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\nexport const putExternalReport = (data) =>\r\n http.post(`${urlApi}/ExternalReport`, data);\r\nexport const patchExternalReport = (data) =>\r\n http.patch(`${urlApi}/ExternalReport`, data);\r\nexport const deleteExternalReport = (id) =>\r\n http.delete(`${urlApi}/ExternalReport/${id}`);\r\n\r\nexport const getProductsAndStates = () =>\r\n http.get(`${urlApi}/Prescription/GetProductsAndStates`);\r\nexport const getPrescriptions = (type) =>\r\n http.get(`${urlApi}/Prescription/${type}`);\r\nexport const getGetFormula = (impactId) =>\r\n http.get(`${urlApi}/Prescription/GetFormula?impactId=${impactId}`);\r\nexport const getFormulaReadOnly = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/Prescription/GetFormulaReadOnly?prescriptionId=${prescriptionId}`\r\n );\r\n\r\nexport const getGetHealthData = (impactId) =>\r\n http.get(`${urlApi}/Prescription/GetHealthData?impactId=${impactId}`);\r\nexport const getGetHealthDataByPrescriptionId = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/Prescription/GetHealthDataByPrescriptionId?prescriptionId=${prescriptionId}`\r\n );\r\n\r\nexport const getPrescriptionsForPlanning = () =>\r\n http.get(`${urlApi}/Prescription/GetPrescriptionsForPlanning`);\r\nexport const getPrescriptionByPatient = (patientId) =>\r\n http.get(`${urlApi}/Prescription/GetByPatient?patientId=${patientId}`);\r\nexport const postDoctorAuthorization = (data) =>\r\n http.post(`${urlApi}/Prescription/DoctorAuthorization`, data);\r\nexport const postAddContactDetails = (data) =>\r\n http.post(`${urlApi}/Prescription/AddContactDetails`, data);\r\nexport const postPatientAuthorization = (data) =>\r\n http.post(`${urlApi}/Prescription/PatientAuthorization`, data);\r\nexport const postSaveFormula = (data) =>\r\n http.post(`${urlApi}/Prescription/SaveFormula`, data);\r\nexport const postSaveHealthData = (data) =>\r\n http.post(`${urlApi}/Prescription/SaveHealthData`, data);\r\nexport const postFormulaFile = (data) =>\r\n http.post(`${urlApi}/Prescription/SaveFormulaFile`, data);\r\nexport const postApproveFormula = (data) =>\r\n http.post(`${urlApi}/Prescription/ApproveFormula`, data);\r\nexport const postCancelFormula = (data) =>\r\n http.post(`${urlApi}/Prescription/CancelFormula`, data);\r\nexport const postPrescriptionSetState = (data) =>\r\n http.post(`${urlApi}/Prescription/SetState`, data);\r\nexport const postPrescriptionNewFormulation = (data) =>\r\n http.post(`${urlApi}/Prescription/NewFormulation`, data);\r\nexport const postAddNewPrescription = (data) =>\r\n http.post(`${urlApi}/Prescription/AddNewPrescription`, data);\r\nexport const postSetDropoutState = (data) =>\r\n http.post(`${urlApi}/Prescription/SetDropoutState`, data);\r\nexport const getExpirationReport = (type, startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/Prescription/GetExpirationReport?type=${type}&&startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n\r\nexport const getInfoImpact = (id) => http.get(`${urlApi}/Impact?Id=${id}`);\r\nexport const getPlannedImpactsByNurseId = (nurseId) =>\r\n http.get(`${urlApi}/Impact/GetPlannedImpacts?nurseId=${nurseId}`);\r\nexport const getPlannedImpacts = () =>\r\n http.get(`${urlApi}/Impact/GetPlannedImpacts`);\r\nexport const getImpactsByPrescription = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/Impact/GetByPrescription?prescriptionId=${prescriptionId}`\r\n );\r\nexport const postPlanningFirstImpact = (data) =>\r\n http.post(`${urlApi}/Impact/PlanningFirstImpact`, data);\r\nexport const postImpactStartImpact = (data) =>\r\n http.post(`${urlApi}/Impact/StartImpact`, data);\r\nexport const postImpactEndImpact = (data) =>\r\n http.post(`${urlApi}/Impact/EndImpact`, data);\r\nexport const postRescheduleImpact = (data) =>\r\n http.post(`${urlApi}/Impact/RescheduleImpact`, data);\r\n//export const postImpactAddFile = (data) => http.post(`${urlApi}/Impact/AddFile`, data);\r\nexport const postPlanImpact = (data) =>\r\n http.post(`${urlApi}/Impact/PlanImpact`, data);\r\nexport const getImpactReport = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/Impact/GetReport?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\nexport const getImpactReportFile = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/Impact/GetReportFile?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n\r\nexport const getNursingPlans = (prescriptionId) =>\r\n http.get(`${urlApi}/NursingPlan?prescriptionId=${prescriptionId}`);\r\nexport const postCreateUpdateNursingPlan = (data) =>\r\n http.post(`${urlApi}/NursingPlan`, data);\r\n\r\nexport const getAdditionalMedications = (prescriptionId) =>\r\n http.get(`${urlApi}/AdditionalMedication/${prescriptionId}`);\r\nexport const postCreateUpdateAdditionalMedication = (data) =>\r\n http.post(`${urlApi}/AdditionalMedication`, data);\r\nexport const deleteAdditionalMedication = (additionalMedicationId) =>\r\n http.delete(`${urlApi}/AdditionalMedication/${additionalMedicationId}`);\r\nexport const getMedication = () =>\r\n http.get(`${urlApi}/AdditionalMedication/GetMedicaments`);\r\nexport const getDiagnosticByProduct = (productId) =>\r\n http.get(\r\n `${urlApi}/AdditionalMedication/GetDiagnosticByproduct/${productId}`\r\n );\r\n\r\nexport const getDosageV2 = (prescriptionId) =>\r\n http.get(`${urlApi}/DosageV2/${prescriptionId}`);\r\nexport const postCreateUpdateDosageV2 = (data) =>\r\n http.post(`${urlApi}/DosageV2`, data);\r\nexport const getUnitListTime = () => http.get(`${urlApi}/DosageV2/GetUnitList`);\r\nexport const getUnitDurationListTime = () =>\r\n http.get(`${urlApi}/DosageV2/GetUnitDurationList`);\r\nexport const deleteDosage = (data) => http.delete(`${urlApi}/DosageV2/${data}`);\r\n\r\nexport const getClinicHistoryList = (impactId) =>\r\n http.get(`${urlApi}/ClinicHistory/${impactId}`);\r\nexport const getClinicHistoryDetail = (impactId, variableGroupId, folderType) =>\r\n http.get(\r\n `${urlApi}/ClinicHistory?impactId=${impactId}&variableGroupId=${variableGroupId}&folderType=${folderType}`\r\n );\r\nexport const getCHPatientDetail = (patientId) =>\r\n http.get(`${urlApi}/ClinicHistory/CHPatientDetail?patientId=${patientId}`);\r\nexport const postClinicHistory = (data) =>\r\n http.post(`${urlApi}/ClinicHistory`, data);\r\nexport const postClinicHistoryFile = (data) =>\r\n http.post(`${urlApi}/ClinicHistory/file`, data);\r\nexport const getReportBCRHema = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/ClinicHistory/GetReportBCRHema?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\nexport const getReportPendingRSVariables = () =>\r\n http.get(\r\n `${urlApi}/ClinicHistory/GetReportPendingRiskStratificationVariables`\r\n );\r\n\r\nexport const getRadicadoInsuranceList = (prescriptionId) =>\r\n http.get(`${urlApi}/RadicadoInsurance/${prescriptionId}`);\r\nexport const postCreateUpdateRadicadoInsurance = (data) =>\r\n http.post(`${urlApi}/RadicadoInsurance`, data);\r\nexport const deleteRadicadoInsurance = (id) =>\r\n http.delete(`${urlApi}/RadicadoInsurance/${id}`);\r\n\r\nexport const getInsuranceAuthorization = (prescriptionId) =>\r\n http.get(`${urlApi}/InsuranceAuthorization/${prescriptionId}`);\r\nexport const postCreateUpdateInsuranceAuthorization = (data) =>\r\n http.post(`${urlApi}/InsuranceAuthorization`, data);\r\nexport const deleteInsuranceAuthorization = (id) =>\r\n http.delete(`${urlApi}/InsuranceAuthorization/${id}`);\r\nexport const postAddFileInsuranceAuthorization = (data) =>\r\n http.post(`${urlApi}/InsuranceAuthorization/AddFile`, data);\r\n\r\nexport const getRadicadoOLFList = (prescriptionId) =>\r\n http.get(`${urlApi}/RadicadoOLF/${prescriptionId}`);\r\nexport const postCreateUpdateRadicadoOLF = (data) =>\r\n http.post(`${urlApi}/RadicadoOLF`, data);\r\nexport const deleteRadicadoOLF = (id) =>\r\n http.delete(`${urlApi}/RadicadoOLF/${id}`);\r\nexport const postAddFileRadicadoOLF = (data) =>\r\n http.post(`${urlApi}/RadicadoOLF/AddFile`, data);\r\n\r\nexport const getMedicineDeliveryList = (prescriptionId) =>\r\n http.get(`${urlApi}/MedicineDelivery/${prescriptionId}`);\r\nexport const postCreateUpdateMedicineDelivery = (data) =>\r\n http.post(`${urlApi}/MedicineDelivery`, data);\r\nexport const deleteMedicineDelivery = (id) =>\r\n http.delete(`${urlApi}/MedicineDelivery/${id}`);\r\nexport const postAddFileMedicineDelivery = (data) =>\r\n http.post(`${urlApi}/MedicineDelivery/AddFile`, data);\r\n\r\nexport const getDosageInfo = (prescriptionId) =>\r\n http.get(`${urlApi}/Dosage/${prescriptionId}`);\r\nexport const postCreateUpdateDosage = (data) =>\r\n http.post(`${urlApi}/Dosage`, data);\r\n\r\nexport const getClinicalFinding = (prescriptionId) =>\r\n http.get(`${urlApi}/ClinicalFinding/${prescriptionId}`);\r\nexport const getCommentsByClinicalFinding = (clinicalFindingId) =>\r\n http.get(\r\n `${urlApi}/ClinicalFinding/GetCommentsByClinicalFinding?clinicalFindingId=${clinicalFindingId}`\r\n );\r\nexport const postAddClinicalFinding = (data) =>\r\n http.post(`${urlApi}/ClinicalFinding`, data);\r\nexport const postAddCommentToClinicalFinding = (data) =>\r\n http.post(`${urlApi}/ClinicalFinding/AddComment`, data);\r\nexport const postGenerateAdverseEvent = (data) =>\r\n http.post(`${urlApi}/ClinicalFinding/GenerateAdverseEvent`, data);\r\n\r\nexport const getRemodulinPumpList = (prescriptionId) =>\r\n http.get(`${urlApi}/RemodulinPump/${prescriptionId}`);\r\nexport const postCreateUpdateRemodulinPump = (data) =>\r\n http.post(`${urlApi}/RemodulinPump`, data);\r\nexport const deleteRemodulinPump = (id) =>\r\n http.delete(`${urlApi}/RemodulinPump/${id}`);\r\nexport const getRemodulinPumpReport = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/RemodulinPump/GetReport?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\nexport const getRemodulinPumpReportFile = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/RemodulinPump/GetReportFile?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n\r\nexport const getRemodulinTrackingList = (prescriptionId) =>\r\n http.get(`${urlApi}/RemodulinTracking/${prescriptionId}`);\r\nexport const postCreateUpdateRemodulinTracking = (data) =>\r\n http.post(`${urlApi}/RemodulinTracking`, data);\r\nexport const deleteRemodulinTracking = (id) =>\r\n http.delete(`${urlApi}/RemodulinTracking/${id}`);\r\n\r\nexport const getMoriskySurveyList = (prescriptionId) =>\r\n http.get(`${urlApi}/MoriskySurvey/${prescriptionId}`);\r\nexport const postCreateUpdateMoriskySurvey = (data) =>\r\n http.post(`${urlApi}/MoriskySurvey`, data);\r\nexport const deleteMoriskySurvey = (id) =>\r\n http.delete(`${urlApi}/MoriskySurvey/${id}`);\r\nexport const getMoriskyExtended = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/MoriskySurvey/GetExtended?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\nexport const getMoriskyExtendedReport = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/MoriskySurvey/GetReportFile?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n\r\nexport const getEducationLevelSurveyList = (prescriptionId) =>\r\n http.get(`${urlApi}/EducationLevelSurvey/${prescriptionId}`);\r\nexport const postCreateUpdateEducationLevelSurvey = (data) =>\r\n http.post(`${urlApi}/EducationLevelSurvey`, data);\r\nexport const deleteEducationLevelSurvey = (id) =>\r\n http.delete(`${urlApi}/EducationLevelSurvey/${id}`);\r\n\r\nexport const getImpactFileList = (data) =>\r\n http.post(`${urlApi}/ImpactFile/ImpactFileList`, data);\r\nexport const postAddImpactFile = (data) =>\r\n http.post(`${urlApi}/ImpactFile`, data);\r\nexport const deleteImpactFile = (id) =>\r\n http.delete(`${urlApi}/ImpactFile/${id}`);\r\n\r\nexport const getMedicineConsumptionList = (prescriptionId) =>\r\n http.get(`${urlApi}/MedicineConsumption/${prescriptionId}`);\r\nexport const getMedicineList = (impactId) =>\r\n http.get(\r\n `${urlApi}/MedicineConsumption/GetMedicineList?impactId=${impactId}`\r\n );\r\nexport const getGetIndicators = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/MedicineConsumption/GetIndicators?prescriptionId=${prescriptionId}`\r\n );\r\nexport const postCreateUpdateMedicineConsumption = (data) =>\r\n http.post(`${urlApi}/MedicineConsumption`, data);\r\nexport const deleteMedicineConsumption = (id) =>\r\n http.delete(`${urlApi}/MedicineConsumption/${id}`);\r\n\r\nexport const getSupplyAditionalMedicationsList = (prescriptionId) =>\r\n http.get(`${urlApi}/SupplyAditionalMedications/${prescriptionId}`);\r\nexport const getSupplyTypeList = () =>\r\n http.get(`${urlApi}/SupplyAditionalMedications/GetSupplyTypeList`);\r\nexport const postCreateUpdateSupplyAditionalMedications = (data) =>\r\n http.post(`${urlApi}/SupplyAditionalMedications`, data);\r\nexport const deleteSupplyAditionalMedications = (id) =>\r\n http.delete(`${urlApi}/SupplyAditionalMedications/${id}`);\r\nexport const getConsolidatedSupply = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/SupplyAditionalMedications/GetConsolidatedSupplyReport?startDate=${startDate}&endDate=${endDate}`\r\n );\r\n\r\nexport const getProductStatusList = (prescriptionId) =>\r\n http.get(`${urlApi}/ProductStatus/${prescriptionId}`);\r\nexport const postCreateUpdateProductStatus = (data) =>\r\n http.post(`${urlApi}/ProductStatus`, data);\r\nexport const deleteProductStatus = (id) =>\r\n http.delete(`${urlApi}/ProductStatus/${id}`);\r\n\r\nexport const getAdverseEventList = () => http.get(`${urlApi}/AdverseEvent`);\r\nexport const getAdverseEventByClinicalFinding = (clinicalFindingId) =>\r\n http.get(\r\n `${urlApi}/AdverseEvent/GetAdverseEvent?clinicalFindingId=${clinicalFindingId}`\r\n );\r\nexport const getAdverseEventGetDetail = (adverseEventId) =>\r\n http.get(`${urlApi}/AdverseEvent/GetDetail?adverseEventId=${adverseEventId}`);\r\nexport const getEventsFollowUp = (adverseEventId) =>\r\n http.get(\r\n `${urlApi}/AdverseEvent/GetEventsFollowUp?adverseEventId=${adverseEventId}`\r\n );\r\nexport const getProcessDataByAdverseEvent = (adverseEventId) =>\r\n http.get(\r\n `${urlApi}/AdverseEvent/GetProcessData?adverseEventId=${adverseEventId}`\r\n );\r\nexport const getKnownAdverseEvent = (adverseEventId) =>\r\n http.get(\r\n `${urlApi}/AdverseEvent/GetKnownAdverseEvent?adverseEventId=${adverseEventId}`\r\n );\r\nexport const postAdverseEventPartialSave = (data) =>\r\n http.post(`${urlApi}/AdverseEvent`, data);\r\nexport const postAdverseEventSave = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/Save`, data);\r\nexport const postAdverseEventUpdateState = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/UpdateState`, data);\r\nexport const postAdverseEventReject = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/Reject`, data);\r\nexport const postAdverseEventGenerateFormat = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/GenerateFormat`, data);\r\nexport const postAdverseEventRegisterCausality = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/RegisterCausality`, data);\r\nexport const postAdverseEventCreateFollowUp = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/CreateFollowUp`, data);\r\nexport const postAdverseEventCreateFollowUpQuery = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/CreateFollowUpQuery`, data);\r\nexport const postAddKnownAdverseEvent = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/AddKnownAdverseEvent`, data);\r\nexport const postAdverseEventNullify = (data) =>\r\n http.post(`${urlApi}/AdverseEvent/Nullify`, data);\r\n\r\nexport const getConcomitantMedicationList = (adverseEventId) =>\r\n http.get(\r\n `${urlApi}/ConcomitantMedication/GetAll?adverseEventId=${adverseEventId}`\r\n );\r\nexport const postConcomitantMedicationSave = (data) =>\r\n http.post(`${urlApi}/ConcomitantMedication`, data);\r\n\r\nexport const getQueryAdverseEventList = (adverseEventId) =>\r\n http.get(`${urlApi}/QueryAdverseEvent/${adverseEventId}`);\r\nexport const postCreateUpdateQueryAdverseEvent = (data) =>\r\n http.post(`${urlApi}/QueryAdverseEvent`, data);\r\nexport const getCommentsByQuery = (queryId) =>\r\n http.get(`${urlApi}/QueryAdverseEvent/GetCommentsByQuery?queryId=${queryId}`);\r\nexport const postCreateUpdateCommentToQuery = (data) =>\r\n http.post(`${urlApi}/QueryAdverseEvent/CreateUpdateCommentToQuery`, data);\r\n\r\nexport const getUserByRole = (role) =>\r\n http.get(`${urlApi}/User/GetUserByRole?role=${role}`);\r\nexport const getUserByRoles = (data) =>\r\n http.post(`${urlApi}/User/GetUserListByRoles`, data);\r\n\r\nexport const getEventTrainingDetail = (id) =>\r\n http.get(`${urlApi}/EventTraining/${id}`);\r\nexport const postAddUpdateEventTraining = (data) =>\r\n http.post(`${urlApi}/EventTraining`, data);\r\nexport const postAddUpdateFeedback = (data) =>\r\n http.post(`${urlApi}/EventTraining/AddUpdateFeedback`, data);\r\nexport const postAddUpdateResource = (data) =>\r\n http.post(`${urlApi}/EventTraining/AddUpdateResource`, data);\r\nexport const deleteEventTrainingResource = (id) =>\r\n http.delete(`${urlApi}/EventTraining/DeleteResource?id=${id}`);\r\nexport const getEventTrainingReport = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/EventTraining/GetReport?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n\r\nexport const getNursesByPrescription = (prescriptionId) =>\r\n http.get(\r\n `${urlApi}/Nurse/GetByPrescription?prescriptionId=${prescriptionId}`\r\n );\r\nexport const postAddNurseToPrescription = (data) =>\r\n http.post(`${urlApi}/Nurse`, data);\r\nexport const deleteNurseToPrescription = (id) =>\r\n http.delete(`${urlApi}/Nurse/${id}`);\r\n\r\nexport const getControlPanelReportRepKam = (productBehavior) =>\r\n http.get(`${urlApi}/ControlPanelRepKam/GetReport?product=${productBehavior}`);\r\nexport const getControlPanelReportFileRepKam = (productBehavior) =>\r\n http.get(\r\n `${urlApi}/ControlPanelRepKam/GetReportFile?product=${productBehavior}`\r\n );\r\nexport const postDashboardNurse = (data) =>\r\n http.post(`${urlApi}/Dashboard`, data);\r\nexport const getPatientDistributionByEpsAndState = (data) =>\r\n http.post(`${urlApi}/Dashboard/GetPatientDistributionByEpsAndState`, data);\r\nexport const getPatientByIpsAndRegion = (data) =>\r\n http.post(`${urlApi}/Dashboard/GetPatientByIpsAndRegion`, data);\r\n\r\n//export const getDoctorDetail = (doctorId,minDate,maxDate) => http.get(`${urlApi}/Dashboard/GetDoctorDetail?doctorId=${doctorId}&&minDate=${minDate}&&maxDate=${maxDate}`);\r\nexport const getDoctorDetail = (data) =>\r\n http.post(`${urlApi}/Dashboard/GetDoctorDetail`, data);\r\n\r\nexport const getReloginInfo = () => http.get(`${urlApi}/Relogin`);\r\n\r\n//Reports\r\nexport const getControlPanelReport = (productBehavior) => http.get(`${urlApi}/ControlPanel/GetReport?product=${productBehavior}`);\r\nexport const getControlPanelReportFile = (productBehavior) => http.get(`${urlApi}/ControlPanel/GetReportFile?product=${productBehavior}`);\r\nexport const getClinicHistoryReportFile = (startDate, endDate) => http.get(`${urlApi}/ClinicHistory/GetReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getSuveyMoriskyReportFile = (startDate, endDate) => http.get(`${urlApi}/MoriskySurvey/GetSurveyMoriskyReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getConsumptionReportFile = (startDate, endDate) => http.get(`${urlApi}/MedicineConsumption/GetReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getCatheterChangeReportFile = (startDate, endDate) => http.get(`${urlApi}/RemodulinTracking/GetReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getCubeReportFile = (startDate, endDate) => http.get(`${urlApi}/ControlPanel/GetCubeReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getConsolidatedSupplyReport = (startDate, endDate) => http.get(`${urlApi}/SupplyAditionalMedications/GetReportFile?startDate=${startDate}&endDate=${endDate}`);\r\nexport const getDoseChangeReportFile = (startDate, endDate) => http.get(`${urlApi}/Dosage/GetDoseChangeReportFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const GetPatientsTotalFile = (startDate, endDate) => http.get(`${urlApi}/Prescription/GetPatientsTotalFile?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const postControlPanelDeliveries = (data) => http.post(`${urlApi}/Report/GetDeliveries`, data);\r\nexport const postRemodulinVialsReport = (data) => http.post(`${urlApi}/Report/GetRemodulinVials`, data);\r\nexport const getGeneralJaasielReportFile = (startDate, endDate) => http.get(`${urlApi}/Report/GetGeneralJaasiel?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getBehringerReportFile = (startDate, endDate) => http.get(`${urlApi}/Report/GetBehringer?startDate=${startDate}&&endDate=${endDate}`);\r\nexport const getCelltrionReportFile = (startDate, endDate) => http.get(`${urlApi}/Report/GetCelltrion?startDate=${startDate}&endDate=${endDate}`);\r\n\r\n//PatientContext\r\nexport const getPatientPAList = (data) =>\r\n http.post(`${urlApi}/PatientPA/GetAll`, data);\r\nexport const getPatientPAReportList = (data) =>\r\n http.post(`${urlApi}/PatientPA/GetPatientReport`, data);\r\nexport const getPatientPAInfo = (patientId) =>\r\n http.get(`${urlApi}/PatientPA/GetPatientInfo?id=${patientId}`);\r\nexport const getPatientEdit = (id) =>\r\n http.get(`${urlApi}/PatientPA/GetPatientEdit?id=${id}`);\r\nexport const postAddPatientPA = (data) =>\r\n http.post(`${urlApi}/PatientPA`, data);\r\nexport const patchActivatePatient = (id) =>\r\n http.patch(`${urlApi}/PatientPA`, { id });\r\nexport const patchUpdateExternalId = (data) =>\r\n http.patch(`${urlApi}/PatientPA/UpdateExternalId`, data);\r\nexport const getImpactPAList = (id) => http.get(`${urlApi}/ImpactPA/${id}`);\r\nexport const postAddUpdateImpactPA = (data) =>\r\n http.post(`${urlApi}/ImpactPA`, data);\r\nexport const getPatientPAListToSync = () =>\r\n http.get(`${urlApi}/PatientPA/GetListToSync`);\r\nexport const getPatientCommentList = (patientId) =>\r\n http.get(`${urlApi}/PatientCommentPA/${patientId}`);\r\nexport const postAddPatientComment = (data) =>\r\n http.post(`${urlApi}/PatientCommentPA`, data);\r\nexport const getRepList = () => http.get(`${urlApi}/RepPA`);\r\nexport const patchUpdateRep = (data) => http.patch(`${urlApi}/RepPA`, data);\r\nexport const getDashboardPA = (data) =>\r\n http.post(`${urlApi}/DashboardPA`, data);\r\nexport const getDashboardOperative = (data) =>\r\n http.post(`${urlApi}/DashboardOperativePA`, data);\r\n\r\nexport const getDashboardClinical = (data) =>\r\n http.post(`${urlApi}/DashboardClinical`, data);\r\nexport const getCyclesQuery = (data) =>\r\n http.post(`${urlApi}/DashboardClinical/GetCyclesQuery`, data);\r\nexport const getInstitutionsList = () =>\r\n http.get(`${urlApi}/DashboardClinical/GetInstitutionsList`);\r\nexport const getDoctorPAList = (data) =>\r\n http.post(`${urlApi}/DoctorPA/GetAll`, data);\r\nexport const getInsurancePAList = () => http.get(`${urlApi}/InsurancePA`);\r\n\r\n//End patientContext\r\n\r\n//V2\r\nexport const getPrescriptionsV2 = () => http.get(`${urlApiV2}/Prescription`);\r\nexport const postPrescriptionsList = (data) =>\r\n http.post(`${urlApiV2}/Prescription/GetAll`, data);\r\nexport const getPrescriptionInfo = (id) =>\r\n http.get(`${urlApiV2}/Prescription/${id}`);\r\nexport const postPrescriptionAdd = (data) =>\r\n http.post(`${urlApiV2}/Prescription`, data);\r\nexport const postPrescriptionChangeState = (data) =>\r\n http.post(`${urlApiV2}/Prescription/ChangeState`, data);\r\nexport const getPrescriptionStatusList = (id) =>\r\n http.get(`${urlApiV2}/Prescription/GetPrescriptionStatus`);\r\nexport const postPatientAdd = (data) => http.post(`${urlApiV2}/Patient`, data);\r\nexport const getPatientInfoV2 = (id) => http.get(`${urlApiV2}/Patient/${id}`);\r\nexport const getImpactsByPrescriptionV2 = (prescriptionId) =>\r\n http.get(`${urlApiV2}/Impact/${prescriptionId}`);\r\nexport const getImpactInfo = (id) =>\r\n http.get(`${urlApiV2}/Impact/GetDetail?id=${id}`); //Este es, si es mas de un atributo se usa POST mejor\r\nexport const postImpactAdd = (data) => http.post(`${urlApiV2}/Impact`, data);\r\nexport const postStartImpact = (data) =>\r\n http.post(`${urlApiV2}/Impact/StartImpact`, data);\r\nexport const postScheduleImpact = (data) =>\r\n http.post(`${urlApiV2}/Impact/Schedule`, data);\r\nexport const postEndImpact = (data) =>\r\n http.post(`${urlApiV2}/Impact/EndImpact`, data);\r\nexport const postCoordinatorComment = (data) =>\r\n http.post(`${urlApiV2}/Impact/CoordinatorComment`, data);\r\nexport const getMedicineDeliveryListV2 = (prescriptionId) =>\r\n http.get(`${urlApiV2}/Delivery/${prescriptionId}`);\r\nexport const postDeliveryAdd = (data) =>\r\n http.post(`${urlApiV2}/Delivery`, data);\r\nexport const getPrescriptionStateLog = (id) =>\r\n http.get(`${urlApiV2}/Prescription/GetStateLog?id=${id}`);\r\nexport const getDashboardFilters = () => http.get(`${urlApiV2}/Dashboard`);\r\nexport const postDashboard = (data) => http.post(`${urlApiV2}/Dashboard`, data);\r\nexport const postDashboardMigration = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration`, data);\r\nexport const dashboardGetEficaciaRecoveries = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetEficaciaRecoveries`, data);\r\nexport const dashboardGetTotal = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetTotal`, data);\r\nexport const dashboardGetByCausal = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetByCausal`, data);\r\nexport const dashboardGetByOperator = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetByOperator`, data);\r\nexport const dashboardGetByProductLine = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetByProductLine`, data);\r\nexport const dashboardGetTotalMIPRES = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetTotalMIPRES`, data);\r\nexport const dashboardGetImpactsInfo = (data) =>\r\n http.post(`${urlApiV2}/DashboardMigration/GetImpactsInfo`, data);\r\nexport const getMedicineConsumptionTracingList = (prescriptionId) =>\r\n http.get(`${urlApiV2}/MedicineConsumptionTracing/${prescriptionId}`);\r\nexport const postCreateUpdateConsumptionTracing = (data) =>\r\n http.post(`${urlApiV2}/MedicineConsumptionTracing`, data);\r\nexport const deleteConsumptionTracing = (id) =>\r\n http.delete(`${urlApiV2}/MedicineConsumptionTracing/${id}`);\r\nexport const getGetIndicatorsTracing = (prescriptionId) =>\r\n http.get(\r\n `${urlApiV2}/MedicineConsumptionTracing/GetIndicators?prescriptionId=${prescriptionId}`\r\n );\r\n\r\nexport const getDashboardMigrationFilters = () =>\r\n http.get(`${urlApiV2}/DashboardMigration`);\r\nexport const getPrescriptionReportFile = (startDate, endDate, isFile) =>\r\n http.get(\r\n `${urlApiV2}/Report/GetPrescriptionsFile?startDate=${startDate}&&endDate=${endDate}&&isFile=${isFile}`\r\n );\r\nexport const getDeliveriesReportFile = (startDate, endDate, isFile) =>\r\n http.get(\r\n `${urlApiV2}/Report/GetDeliveriesFile?startDate=${startDate}&&endDate=${endDate}&&isFile=${isFile}`\r\n );\r\nexport const getImpactsReportFile = (startDate, endDate, isFile) =>\r\n http.get(\r\n `${urlApiV2}/Report/GetImpactsFile?startDate=${startDate}&&endDate=${endDate}&&isFile=${isFile}`\r\n );\r\nexport const GetPrescriptionsTotalReportFile = (startDate, endDate, isFile) =>\r\n http.get(\r\n `${urlApiV2}/Report/GetPrescriptionsTotalFile?startDate=${startDate}&&endDate=${endDate}&&isFile=${isFile}`\r\n );\r\n\r\n//End V2\r\n\r\n//Institution Context\r\nexport const getInstitutionImpactInfo = (id) =>\r\n http.get(`${urlApi}/InstitutionImpact/${id}`);\r\nexport const getInstitutions = () =>\r\n http.get(`${urlApi}/InstitutionImpact/GetInstitutions`);\r\nexport const getInstitutionInfo = () =>\r\n http.get(`${urlApi}/InstitutionImpact/GetInstitutionInfo`);\r\nexport const postAddIntitutionImpact = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact`, data);\r\nexport const getIntitutionImpacts = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact/GetAll`, data);\r\nexport const postIntitutionStartImpact = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact/StartImpact`, data);\r\nexport const postIntitutionEndImpact = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact/EndImpact`, data);\r\nexport const postIntitutionSaveProcess = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact/SaveProcess`, data);\r\nexport const postIntitutionActivatePatient = (data) =>\r\n http.post(`${urlApi}/PatientI/ActivatePatient`, data);\r\nexport const postSignByCompany = (data) =>\r\n http.post(`${urlApi}/InstitutionImpact/SignByCompany`, data);\r\nexport const getNewPatientList = () => http.get(`${urlApi}/PatientI`);\r\nexport const getInstitutionPatientInfo = (id) =>\r\n http.get(`${urlApi}/PatientI/GetPatientInfo?id=${id}`);\r\nexport const getInstitutionImpactFiles = (id) =>\r\n http.get(`${urlApi}/InstitutionImpactFile/${id}`);\r\nexport const postAddInstitutionImpactFile = (data) =>\r\n http.post(`${urlApi}/InstitutionImpactFile`, data);\r\nexport const deleteInstitutionImpactFile = (fileId) =>\r\n http.delete(`${urlApi}/InstitutionImpactFile/${fileId}`);\r\nexport const getWoundClinicReportFile = (startDate, endDate) =>\r\n http.get(\r\n `${urlApi}/InstitutionReport/GetWoundClinicReport?startDate=${startDate}&&endDate=${endDate}`\r\n );\r\n//End Institution Context\r\n\r\n//JaasModule\r\nexport const getPatientStateLog = (personId) =>\r\n http.get(`${urlApiJM}/Patient/GetPatientStateList?personId=${personId}`);\r\nexport const getPatientStateList = () =>\r\n http.get(`${urlApiJM}/Patient/GetPatientStates`);\r\nexport const postPatientAssignState = (data) =>\r\n http.post(`${urlApiJM}/Patient/AssignState`, data);\r\nexport const postUpdateConfig = (data) =>\r\n http.post(`${urlApiJM}/Patient/UpdateConfig`, data);\r\nexport const getGetCities = () =>\r\n http.get(`${urlApiJM}/TracingDelivery/GetCities`);\r\nexport const getGetCompanies = () =>\r\n http.get(`${urlApiJM}/TracingDelivery/GetCompanies`);\r\nexport const getMarketChainListTD = () =>\r\n http.get(`${urlApiJM}/TracingDelivery/GetMarketChainList`);\r\nexport const getPharmaAmount = (prescriptionId) =>\r\n http.get(\r\n `${urlApiJM}/TracingDelivery/GetPharmaceuticalAmount?prescriptionId=${prescriptionId}`\r\n );\r\nexport const getTracingDeliverList = (prescriptionId) =>\r\n http.get(\r\n `${urlApiJM}/TracingDelivery/GetTracingDeliveryList?prescriptionId=${prescriptionId}`\r\n );\r\nexport const postCreateUpdateTracingDelivery = (data) =>\r\n http.post(`${urlApiJM}/TracingDelivery/CreateUpdate`, data);\r\n\r\nexport const getBarrierList = (impactId) =>\r\n http.get(`${urlApiJM}/Patient/GetBarriers?impactId=${impactId}`);\r\nexport const postUpdateBarrier = (data) =>\r\n http.post(`${urlApiJM}/Patient/UpdateBarrier`, data);\r\n\r\n//End JaasModule\r\n\r\n//DiagnosisModule\r\nexport const getDiagnosisSelects = () =>\r\n http.get(`${urlApi}/Disease/GetDiagnosisSelects`);\r\nexport const getDiagnosisRecordByPersonId = (personId) =>\r\n http.get(\r\n `${urlApi}/Disease/GetDiagnosisRecordByPersonId?PersonId=${personId}`\r\n );\r\nexport const SaveDiagnosisRecord = (data) =>\r\n http.post(`${urlApi}/Disease/SaveDiagnosisRecord`, data);\r\nexport const saveFamilyHistoryIds = (data) =>\r\n http.post(`${urlApi}/Disease/SaveFamilyHistoryIds`, data);\r\nexport const saveDiagnosisRecordConfirmationTests = (data) =>\r\n http.post(`${urlApi}/Disease/SaveDiagnosisRecordConfirmationTests`, data);\r\nexport const DeleteDiagnosticRecordConfirmationTestCommand = (id) =>\r\n http.delete(`${urlApi}/Disease/DeleteDiagnosticRecordConfirmationTest/${id}`);\r\nexport const DeleteFamilyHistoryCommand = (id) =>\r\n http.delete(`${urlApi}/Disease/DeleteFamilyHistory/${id}`);\r\nexport const postDiagnosisFile = (data) =>\r\n http.post(`${urlApi}/Disease/file`, data);\r\nexport const GetDiagnosisRecordConfirmationTestByDiagnosisRecordId = (\r\n diagnosisRecordId\r\n) =>\r\n http.get(\r\n `${urlApi}/Disease/GetDiagnosisRecordConfirmationTestByDiagnosisRecordId?diagnosisRecordId=${diagnosisRecordId}`\r\n );\r\n\r\n//End DiagnosisModule\r\n\r\nexport const getAdverseReactionByPersonId = (personId) => http.get(`${urlApi}/AdverseReaction/GetAdverseReactionByPersonId?PersonId=${personId}`);\r\nexport const saveAdverseReaction = (data) => http.post(`${urlApi}/AdverseReaction/SaveAdverseReaction`, data);\r\nexport const postAdverseReactionFile = (data) => http.post(`${urlApi}/AdverseReaction/file`, data);\r\nexport const getAdverseReactionTypes = () => http.get(`${urlApi}/AdverseReaction/GetAdverseReactionTypes`);\r\n\r\n//ControlExamModule\r\nexport const getControlExamSelects = () =>\r\n http.get(`${urlApi}/ControlExam/GetControlExamSelects`);\r\nexport const getControlExamTable = (personId) =>\r\n http.get(\r\n `${urlApi}/ControlExam/GetControlExamByPersonId?personId=${personId}`\r\n );\r\nexport const saveControlExamRecord = (data) =>\r\n http.post(`${urlApi}/ControlExam/SaveControlExamRecord`, data);\r\nexport const postControlExamFile = (data) =>\r\n http.post(`${urlApi}/ControlExam/file`, data);\r\n\r\n//End ControlExamModule\r\n\r\nexport const getTimeUnitSelect = () =>\r\n http.get(`${urlApi}/AdditionalMedication/GetTimeUnitSelect`);\r\nexport const postTracingDeliveryFile = (data) =>\r\n http.post(`${urlApiJM}/TracingDelivery/file`, data);\r\n\r\nexport const getProductlineByProductId = (productId) =>\r\n http.get(\r\n `${urlApi}/AdditionalMedication/GetProductlineByProductId/${productId}`\r\n );\r\n\r\n//PharmacotherapeuticRisk\r\nexport const getPharmacotherapeuticRisk = (personId) =>\r\n http.get(`${urlApi}/pharmacotherapeuticRiskLevel/${personId}`);\r\nexport const postPharmacotherapeuticRisk = (data) =>\r\n http.post(\r\n `${urlApi}/pharmacotherapeuticRiskLevel/createUpdatePharmacotherapeuticRiskLevel`,\r\n data\r\n );\r\nexport const getLastPharmacotherapeuticRiskLevel = (personId) =>\r\n http.get(\r\n `${urlApi}/pharmacotherapeuticRiskLevel/getLastPharmacotherapeuticRiskLevel?personId=${personId}`\r\n );\r\n","import {\r\n LOAD_NEW_PATIENTS,\r\n LOAD_HOME,\r\n } from \"../constants/ActionTypes\";\r\n\r\n export const loadNewPatients = (newPatients) => {\r\n return {\r\n type: LOAD_NEW_PATIENTS,\r\n payload: newPatients,\r\n };\r\n };\r\n export const loadHome = (productLines, prescriptionStates) => {\r\n return {\r\n type: LOAD_HOME,\r\n payload: {\r\n productLines,\r\n prescriptionStates\r\n }\r\n };\r\n };","import React from 'react';\r\nimport {Line} from 'react-chartjs-2';\r\n\r\n\r\nconst CustomLineChart = (props) => {\r\n const {\r\n labels,\r\n label,\r\n borderColor,\r\n chartData,\r\n pointBackgroundColor,\r\n height,\r\n pointBorderColor,\r\n borderWidth,\r\n shadowColor,\r\n pointBorderWidth,\r\n lineTension,\r\n pointRadius,\r\n pointHoverBorderColor,\r\n gridLinesDisplay,\r\n gridLineWidth\r\n } = props;\r\n\r\n const data = (canvas) => {\r\n const ctx = canvas.getContext(\"2d\");\r\n const _stroke = ctx.stroke;\r\n ctx.stroke = function () {\r\n ctx.save();\r\n ctx.shadowColor = shadowColor;\r\n ctx.shadowBlur = 13;\r\n ctx.shadowOffsetX = 0;\r\n ctx.shadowOffsetY = 12;\r\n _stroke.apply(this, arguments);\r\n ctx.restore();\r\n };\r\n return {\r\n labels: labels,\r\n datasets: [\r\n {\r\n label: label,\r\n fill: false,\r\n lineTension: lineTension,\r\n fillOpacity: 0.3,\r\n borderColor: borderColor,\r\n borderWidth: borderWidth,\r\n pointBorderColor: pointBorderColor,\r\n pointBackgroundColor: pointBackgroundColor,\r\n pointBorderWidth: pointBorderWidth,\r\n pointRadius: pointRadius,\r\n pointHoverBackgroundColor: pointBackgroundColor,\r\n pointHoverBorderColor: pointHoverBorderColor,\r\n pointHoverBorderWidth: 4,\r\n pointHoverRadius: 6,\r\n data: chartData,\r\n }\r\n ]\r\n }\r\n };\r\n // chart options\r\n const options = {\r\n maintainAspectRatio: false,\r\n legend: {\r\n display: false\r\n },\r\n scales: {\r\n xAxes: [{\r\n display: true,\r\n ticks: {\r\n display: false,\r\n min: 0\r\n },\r\n gridLines: {\r\n display: gridLinesDisplay,\r\n drawBorder: false,\r\n lineWidth: gridLineWidth\r\n }\r\n }],\r\n yAxes: [{\r\n display: false,\r\n ticks: {\r\n suggestedMin: 0,\r\n beginAtZero: true\r\n }\r\n }],\r\n\r\n },\r\n layout: {\r\n padding: {\r\n left: -30,\r\n right: 0,\r\n top: 10,\r\n bottom: -10,\r\n },\r\n }\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default CustomLineChart;\r\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWBAMAAADOL2zRAAAAG1BMVEXMzMyWlpaqqqq3t7fFxcW+vr6xsbGjo6OcnJyLKnDGAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABAElEQVRoge3SMW+DMBiE4YsxJqMJtHOTITPeOsLQnaodGImEUMZEkZhRUqn92f0MaTubtfeMh/QGHANEREREREREREREtIJJ0xbH299kp8l8FaGtLdTQ19HjofxZlJ0m1+eBKZcikd9PWtXC5DoDotRO04B9YOvFIXmXLy2jEbiqE6Df7DTleA5socLqvEFVxtJyrpZFWz/pHM2CVte0lS8g2eDe6prOyqPglhzROL+Xye4tmT4WvRcQ2/m81p+/rdguOi8Hc5L/8Qk4vhZzy08DduGt9eVQyP2qoTM1zi0/uf4hvBWf5c77e69Gf798y08L7j0RERERERERERH9P99ZpSVRivB/rgAAAABJRU5ErkJggg==\"","import React from 'react'\r\nimport {Scrollbars} from 'react-custom-scrollbars';\r\n\r\nconst CustomScrollbars = (props) => \r\n \r\n
    \r\n }/>;\r\n\r\nexport default CustomScrollbars;\r\n"],"sourceRoot":""}