private AnaestheticType getAnaesTypeVoLookup(LookupInstance anaesType) { if ( anaesType != null ) { ims.clinical.vo.lookups.AnaestheticType voLookup = new ims.clinical.vo.lookups.AnaestheticType(anaesType.getId(),anaesType.getText(), anaesType.isActive(), null, null, Color.Default); ims.clinical.vo.lookups.AnaestheticType parentVoLookup = voLookup; ims.domain.lookups.LookupInstance parent = anaesType.getParent(); while (parent != null) { parentVoLookup.setParent(new ims.clinical.vo.lookups.AnaestheticType(parent.getId(),parent.getText(), parent.isActive(), null, null, Color.Default)); parentVoLookup = parentVoLookup.getParent(); parent = parent.getParent(); } return voLookup; } return null; }
protected void onRadioButtonGroupQuestion1ValueChanged() throws PresentationLogicException { if( GroupQuestion1Enumeration.rdoYesQuestion1.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupQuestion1().getValue()) || GroupQuestion1Enumeration.rdoUnknownQuestion1.equals(form.lyrWaitingListDetails().tabPageSurgical().GroupQuestion1().getValue())) //wdev-21151 { Integer age = form.getLocalContext().getPatientSHortIsNotNull() ? form.getLocalContext().getPatientSHort().calculateAge():null; boolean showMessage = form.getLocalContext().getPatientSHortIsNotNull() && age != null && age.intValue() < PATIENTAGEFORPREASSESSMENTREQUIRED && (AnaestheticType.GA.equals(form.lyrWaitingListDetails().tabPageSurgical().cmbAnaestheticType().getValue()) || AnaestheticType.SEDATION.equals(form.lyrWaitingListDetails().tabPageSurgical().cmbAnaestheticType().getValue())); if( AnaestheticType.LA.equals(form.lyrWaitingListDetails().tabPageSurgical().cmbAnaestheticType().getValue()) ||( showMessage && form.lyrWaitingListDetails().tabPageSurgical().chkPreassessmentRequired().getValue() == false) ) { engine.showMessage("It is the clinician's responsibility to inform the patient of medication changes. ", "Information", MessageButtons.OK, MessageIcon.INFORMATION); //WDEV-22905 } } updateControlsState();//question1ValueChanged(true); }
/** * Initialize the form */ private void initialize() { // Clear global contexts (except persistent search criteria) & local contexts clearGlobalContexts(); clearLocalContexts(); PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); form.lyrMain().tabPageSearchResults().grdElectiveList().setColumnIdentifierCaption(dispIdType.getIItemText()); populateHospitals(domain.listHospitals()); // Exclude the 'Seconds', 'Minutes', 'Hours' form.lyrMain().tabPageSearchCriteria().cmbRTTBreachPeriod().removeRow(TimeUnitsSecondsToMonths.SECONDS); form.lyrMain().tabPageSearchCriteria().cmbRTTBreachPeriod().removeRow(TimeUnitsSecondsToMonths.MINUTES); form.lyrMain().tabPageSearchCriteria().cmbRTTBreachPeriod().removeRow(TimeUnitsSecondsToMonths.HOURS); form.lyrMain().tabPageSearchCriteria().cmbPlannedDatePeriod().removeRow(TimeUnitsSecondsToMonths.SECONDS); form.lyrMain().tabPageSearchCriteria().cmbPlannedDatePeriod().removeRow(TimeUnitsSecondsToMonths.MINUTES); form.lyrMain().tabPageSearchCriteria().cmbPlannedDatePeriod().removeRow(TimeUnitsSecondsToMonths.HOURS); // Exclude 'LA - PreAssessment' anaesthetic type form.lyrMain().tabPageSearchCriteria().cmbAnaestheticType().removeRow(AnaestheticType.LA_PRE_ASSESSMENT); }
protected void onCmbAnaestheticValueChanged() throws PresentationLogicException { if(form.cmbAnaesthetic().getValue() != null && form.cmbAnaesthetic().getValue().equals(AnaestheticType.LA)) { form.cmbTheatreType().newRow(TheatreType.OP_CASE, TheatreType.OP_CASE.getText()); } else { form.cmbTheatreType().removeRow(TheatreType.OP_CASE); } }
private void initialize() { //WDEV-22781 PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); form.lblPatIdentifier().setValue(dispIdType.getText().length() > 13 ? dispIdType.getText().substring(0, 13) + "...:" : dispIdType.getText() + ":"); form.lblPatIdentifier().setTooltip(dispIdType.getText().length() > 13 ? dispIdType.getText() : ""); //WDEV-22781 ends here form.cmbAnaestheticType().removeRow(AnaestheticType.LA_PRE_ASSESSMENT); initializePreAssessmentDynGrid(); form.chkWaitingList().setValue(true); //WDEV-21037 }
private GroupGeneralAnaestheticEnumeration getGeneralAnaestheticValueFromPreassessment(AnaestheticType anaestheticType) { if(AnaestheticType.GA.equals(anaestheticType)) return GroupGeneralAnaestheticEnumeration.rdoYesGeneralAnaesthetic; if(anaestheticType != null) return GroupGeneralAnaestheticEnumeration.rdoNoGeneralAnaesthetic; return null; }
private void defaultAnaestheticTypeCombo() { PatientElectiveListBookTheatreVo patElectiveList = domain.getElectiveListByTheatreAppt(form.getGlobalContext().Clinical.getTheatreAppointmentRef()); if (patElectiveList!=null && patElectiveList.getPreAssessmentOutcomeIsNotNull() && patElectiveList.getPreAssessmentOutcome().getAnaestheticTypeIsNotNull()) { form.ctn1().cmbAnaestheticType().setValue(AnaestheticType.LA_PRE_ASSESSMENT.equals(patElectiveList.getPreAssessmentOutcome().getAnaestheticType()) ? AnaestheticType.LA : patElectiveList.getPreAssessmentOutcome().getAnaestheticType()); } else if (patElectiveList!=null && patElectiveList.getAnaestheticTypeIsNotNull()) { form.ctn1().cmbAnaestheticType().setValue(AnaestheticType.LA_PRE_ASSESSMENT.equals(patElectiveList.getAnaestheticType()) ? AnaestheticType.LA : patElectiveList.getAnaestheticType()); } }
private boolean checkOptionalFiledsState() { boolean unavailable = form.getLocalContext().getNoAnaesthetistPresent() && (form.ctn1().cmbAnaestheticType().getValue() != null && form.ctn1().cmbAnaestheticType().getValue().equals(AnaestheticType.LA)); if(unavailable) { if((form.getLocalContext().getIsAnaesthetistAddedToCaseIsNotNull() && form.getLocalContext().getIsAnaesthetistAddedToCase())) { unavailable = false; } } return unavailable; }
private void initialize() //WDEV-22459 { form.ctn1().lblRequired1().setTextColor(Color.Red); form.ctn1().lblRequired4().setTextColor(Color.Red); form.ctn1().lblRequired5().setTextColor(Color.Red); form.ctn1().lblRequired6().setTextColor(Color.Red); form.ctn1().lblRequired7().setTextColor(Color.Red); form.ctn1().lblRequired8().setTextColor(Color.Red); form.ctn1().lblPStarvedRequired().setTextColor(Color.Red); form.ctn1().lblRequired11().setTextColor(Color.Red); form.ctn1().lblRequired12().setTextColor(Color.Red); form.ctn1().lblRequired13().setTextColor(Color.Red); form.ctn1().lblRequired14().setTextColor(Color.Red); form.ctn1().lblSeeBannerBar().setTextColor(Color.Red); form.ctn1().lblLABlockTypeRequired().setTextColor(Color.Red); form.ctn1().lblAnaesSignRequired().setTextColor(Color.Red); form.ctn1().lblLeftAndRightRequired().setTextColor(Color.Red); form.ctn1().lblIdentityConsent().setTextColor(Color.Red);//WDEV-22241 initialiseLookupGrid(); form.ctn1().ccAnaesthetistSign().initialize(MosType.MEDIC); form.ctn1().ccRegsteredPractitioner().initialize(MosType.MEDIC); form.ctn1().cmbAnaestheticType().removeRow(AnaestheticType.LA_PRE_ASSESSMENT); //WDEV-22446 form.getGlobalContext().Clinical.AcuteTheatreCaseTimes.setPersistAnaestheticTime(false); form.lblSignInTimeRequired().setTextColor(Color.Red); }
private void updateOptionalFieldsState() { boolean unavailable = checkOptionalFiledsState(); form.ctn1().PatientStarved().setVisible(!unavailable); form.ctn1().ASAClass().setVisible(!unavailable); form.ctn1().chkAnaestheticMachines().setVisible(!unavailable); form.ctn1().chkAnyDentures().setVisible(!unavailable); form.ctn1().KnownDifficultAirway().setVisible(!unavailable); form.ctn1().RiskOrGeaterThan500mlBloodLoss().setVisible(!unavailable); form.ctn1().chkGandSElectronic().setVisible(!unavailable); form.ctn1().IntraOperativeFluidsRequired().setVisible(!unavailable); form.ctn1().chkAntibiotics().setVisible(!unavailable); form.ctn1().timAntibioticsGiven().setVisible(!unavailable); form.ctn1().btnAntiobioticsGiven().setVisible(!unavailable); form.ctn1().decPreInductionTemperature().setVisible(!unavailable); form.ctn1().decPreOPBloodGlucose().setVisible(!unavailable && form.ctn1().IsPatientDiabetic().getValue().equals(IsPatientDiabeticEnumeration.rdoDiabeticYes)); form.ctn1().lblRequired8().setVisible(!unavailable); form.ctn1().lblRequired11().setVisible(!unavailable); form.ctn1().lblRequired12().setVisible(!unavailable); form.ctn1().lblRequired13().setVisible(!unavailable); form.ctn1().lblPStarvedRequired().setVisible(!unavailable); form.ctn1().lblPStarved().setVisible(!unavailable); form.ctn1().lbl1ASAClass().setVisible(!unavailable); form.ctn1().lblKnownDiff().setVisible(!unavailable); form.ctn1().lblBloodLoss().setVisible(!unavailable); form.ctn1().lblIntraOpFluids().setVisible(!unavailable); form.ctn1().lblPatientTemp().setVisible(!unavailable); form.ctn1().lblBloodGlucose().setVisible(!unavailable && form.ctn1().IsPatientDiabetic().getValue().equals(IsPatientDiabeticEnumeration.rdoDiabeticYes)); if (unavailable) { form.ctn1().PatientStarved().setValue(null); form.ctn1().ASAClass().setValue(null); form.ctn1().chkAnaestheticMachines().setValue(null); form.ctn1().chkAnyDentures().setValue(null); form.ctn1().KnownDifficultAirway().setValue(null); form.ctn1().RiskOrGeaterThan500mlBloodLoss().setValue(null); form.ctn1().chkGandSElectronic().setValue(null); form.ctn1().IntraOperativeFluidsRequired().setValue(null); form.ctn1().chkAntibiotics().setValue(null); form.ctn1().timAntibioticsGiven().setValue(null); form.ctn1().decPreInductionTemperature().setValue(null); form.ctn1().decPreOPBloodGlucose().setValue(null); } else { AnaestheticType anaesType = form.ctn1().cmbAnaestheticType().getValue(); form.ctn1().decPreInductionTemperature().setRequired( anaesType != null && (anaesType.equals(AnaestheticType.GA) || anaesType.equals(AnaestheticType.SEDATION) || (anaesType.equals(AnaestheticType.LA) && form.ctn1().chkRegionalBlock().getValue()))); //WDEV-22637 form.ctn1().timAntibioticsGiven().setVisible(form.ctn1().chkAntibiotics().getValue()); form.ctn1().btnAntiobioticsGiven().setVisible(form.ctn1().chkAntibiotics().getValue()); } //WDEV-22241 form.ctn1().txtAllergiesBraceletMandatory().setVisible(FormMode.EDIT.equals(form.getMode())); form.ctn1().txtAllergiesCheckedMandatory().setVisible(FormMode.EDIT.equals(form.getMode())); form.ctn1().txtAnticoagulantStausConfirmedMandatory().setVisible(FormMode.EDIT.equals(form.getMode())); form.ctn1().txtRelevantChartsMandatory().setVisible(FormMode.EDIT.equals(form.getMode())); }