protected void onCmbPatientCategoryValueChanged() throws PresentationLogicException { //WDEV-17268 bindcmbPresComplaintLookup(); if (PatientCategory.RTA.equals(form.cmbPatientCategory().getValue())) { form.cmbPresComplaint().removeRow(PresentingComplaint.ASSAULT); } updateControlState(); }
private void displayRecord(ims.vo.ValueObject selectedRow) { if (selectedRow != null) { clearEpisodeControls(); clearEmergencyAttendanceDischargeDetails(); if (selectedRow instanceof EpisodeDetailsVo) { EpisodeDetailsVo episode = (EpisodeDetailsVo) selectedRow; // Populate EpisodeDetails form.cmbPatientCategory().setValue(episode.getCategory()); form.cmbPresComplaint().setValue(episode.getPresentingComplaint()); form.imbLocDetails().setTooltip("Location details: " + episode.getLocationDetails()); form.cmbSourceOfReferral().setValue(episode.getSourceOfReferral()); form.cmbIncidentLocation().setValue(episode.getIncidentLocation()); form.dtimInjury().setValue(episode.getInjuryDateTime()); form.cmbOccupationStatus().setValue(episode.getOccupationStatus()); form.cmbOcupation().setValue(episode.getOccupation()); form.cmbSchool().setValue(episode.getSchool()); form.cmbTriageCategory().setValue(episode.getTriageCategoryType()); form.txtPlaceOfEmployment().setValue(episode.getPlaceofEmployment()); form.chkGPMedicationDetailsPatientConsents().setValue(episode.getMedPatientConsent()); //wdev-17819 // wdev-14582 if (PatientCategory.ASSAULT.equals(episode.getCategory()) || PresentingComplaint.ASSAULT.equals(episode.getPresentingComplaint())) form.btnTIIG().setVisible(true); else form.btnTIIG().setVisible(false); // ----------------------------------- // wdev-14615 if (PatientCategory.RTA.equals(episode.getCategory())) { if (form.btnTIIG().isVisible()) { form.btnRTA1().setVisible(true); form.btnRTA().setVisible(false); } else { form.btnRTA().setVisible(true); form.btnRTA1().setVisible(false); } } else { form.btnRTA1().setVisible(false); form.btnRTA().setVisible(false); } // ------------ if (episode.getReferringGPIsNotNull()) { form.txtReferralGP().setValue(domain.getGP(episode.getReferringGP().getID_Gp()).getName().toString()); } // wdev-14420 if (episode != null) { if (episode.getSpecialInterestDetails() != null && episode.getSpecialInterestDetails().size() > 0) { // populate SpecialInterest Button Tooltip } else { form.btnSpecialInterest().setTooltip(null); } } hideOrDisableDischargeDetails(false); } updateControlState(); } else { clearAttendanceDetails(); } }