/** * loads the grid with ims.clinical.vo.lookups.ChecklistItem values * <p> * @return void */ protected boolean loadgrid() { ChecklistItemCollection collkup = LookupHelper.getChecklistItem(domain.getLookupService()); if (collkup != null) { if (collkup.size() == 0) return false; form.grdItem().getRows().clear(); for(int i=0; i < collkup.size();i++) { GenForm.grdItemRow row = form.grdItem().getRows().newRow(); row.setValue(collkup.get(i)); row.setcolItem(collkup.get(i)); } } else return false; return true; }
private boolean populateGrid() { boolean bFound = false; form.grdSymptoms().getRows().clear(); SymptomsCollection lkpCollSymptoms = LookupHelper.getSymptoms(domain.getLookupService()); if(lkpCollSymptoms == null) return bFound; TreeNode[] nodes = lkpCollSymptoms.getRootNodes(); if(nodes.length < lkpCollSymptoms.size()) bFound = true; for(int x = 0; x < nodes.length; x++) { if(nodes[x] instanceof Symptoms) { addRow(null, (Symptoms) nodes[x]); } } form.grdSymptoms().expandAll(); return bFound; }
private void clearCataractIntraOperativeDetails() { form.lyrMain().tabDetails().grdDressings().getRows().clear(); form.lyrMain().tabDetails().dyngrdMedication().getRows().clear(); form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().clear(); form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().clear(); form.lyrMain().tabDetails().grpYesNo().setValue(null); form.lyrMain().tabDetails().intSwapCount().setValue(null); CataractDressingsCollection dressings = LookupHelper.getCataractDressings(domain.getLookupService()); if (dressings == null) { return; } for (int i = 0; i < dressings.size(); i++) { if (dressings.get(i).isActive()) { grdDressingsRow nRow = form.lyrMain().tabDetails().grdDressings().getRows().newRow(); nRow.setValue(dressings.get(i)); nRow.setColDressings(dressings.get(i).getText()); nRow.setColSelect(false); } } }
private void populateSymptomGrid(SystemReviewForPresentingProblemConfigVo tempVo) { form.grdSymptoms().getRows().clear(); BodySystemCollection symptomsCollection = LookupHelper.getBodySystem(domain.getLookupService()); if(symptomsCollection != null) { for(int i = 0;i < symptomsCollection.size();i++) { ims.emergency.forms.systemreviewconfiguration.GenForm.grdSymptomsRow row = form.grdSymptoms().getRows().newRow(); row.setColumnSymptom(symptomsCollection.get(i).getText()); row.setColumnSelect(false); row.setValue(symptomsCollection.get(i)); } } if(tempVo != null && tempVo.getSystemIsNotNull()) { for(int j = 0; j < tempVo.getSystem().size();j++) { for(int k = 0; k < form.grdSymptoms().getRows().size();k++) { if(form.grdSymptoms().getRows().get(k).getValue().equals(tempVo.getSystem().get(j))) { form.grdSymptoms().getRows().get(k).setColumnSelect(true); } } } } }
/** * Form used to populate the grid with lookup values */ private void populateGridWithLookups() { // Clear grid rows form.grdOutcomeCategories().getRows().clear(); // Get the lookup collection ClinicalOutcomeCategoryCollection lookupCollection = LookupHelper.getClinicalOutcomeCategory(domain.getLookupService()); // Populate grid with lookup collection for (int i = 0; i < lookupCollection.size(); i++) { ClinicalOutcomeCategory clinicalOutcomeCategory = lookupCollection.get(i); if (clinicalOutcomeCategory.isActive()) { // Create new grid row grdOutcomeCategoriesRow row = form.grdOutcomeCategories().getRows().newRow(); // Create row value VO ClinicalOutcomeCategoryProcedureRequiredConfigVo rowValue = new ClinicalOutcomeCategoryProcedureRequiredConfigVo(); rowValue.setCategory(clinicalOutcomeCategory); rowValue.setRequiresProcedureLink(false); // Set row cells value row.setColOutcomeCategory(clinicalOutcomeCategory.getText()); row.setColProcedureRequired(false); // Set row value row.setValue(rowValue); } } }
/** * Function used to data-bind 'MDT Area' & 'MDT List A or B' lookups to combo-boxes * Since these two lookups are non-system and non-system entries are relevant * we need to manually data-bind them */ private void initializeComboBoxDataBinding() { // Get 'MDT Area' lookup values (non-system) and bid them to the 'Area' combobox LookupInstVo[] roots = LookupHelper.getMDTArea(domain.getLookupService()).getRoots(); // Add each root entry from lookup to combo-box for (int i = 0; i < roots.length; i++) { MDTArea area = (MDTArea) roots[i]; form.ctnDetails().cmbArea().newRow(area, area.getText()); } // Get 'MDTListAorB' lookup values (non-system) and bind them to the 'MDT List' combobox MDTListAorBCollection values_MDT_AorB = LookupHelper.getMDTListAorB(domain.getLookupService()); // Add each entry from lookup to combo-box for (int i = 0; i < values_MDT_AorB.size(); i++) { MDTListAorB instance = values_MDT_AorB.get(i); if (!MDTListAorB.NOTONANYLISTYET.equals(instance) && Boolean.TRUE.equals(instance.isActive())) { form.cmbListMDT().newRow(instance, instance.getText()); } } }
public void initialize() throws ims.framework.exceptions.FormOpenException { form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE); form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false)); form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true); form.lyrMain().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE); form.lyrMain().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false)); form.lyrMain().tabCareRecord().ccPlannedProcedure().setIsRequired(true); form.lyrMain().tabCareRecord().ccSurgeon().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccODAODP().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING); form.lyrMain().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING); form.getLocalContext().setAllMedications(domain.listMedicationsForSpeciality(Specialty.CATARACT)); form.getLocalContext().setAllAnaesthetics(LookupHelper.getLocalAnaesthetic(domain.getLookupService())); form.getLocalContext().setAllSkinPreparations(LookupHelper.getSkinPreparationused(domain.getLookupService())); initDynGridMedication(); initDynGridAnaesthetic(); initDynGridSkinPreparation(); loadTheatreCombo(); populateCataractIntraOperativeDetails(null); // rebindColMedication(); }
private void initialiseLookupGrid() { form.ctn1().grdLAAnaesBlockType().getRows().clear(); LAAnaestheticBlockTypeCollection coll = LookupHelper.getLAAnaestheticBlockType(domain.getLookupService()); for (int i = 0; i < coll.size(); i++) { LAAnaestheticBlockType item = coll.get(i); grdLAAnaesBlockTypeRow row = form.ctn1().grdLAAnaesBlockType().getRows().newRow(); row.setcolLAAnaesBlockType(item.getIItemText()); row.setValue(item); } form.ctn1().grdLAAnaesBlockType().setReadOnly(false); }
private void initialiseScreenAndLists() { //WDEV-16799 - show DoS controls depending on Config Flag value form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); // workaround to show location is required form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red); form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required"); form.lyrDetails().tabTheatre().setVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()); form.lyrDetails().tabTheatre().setHeaderVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()); //WDEV-12918 if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI")) { form.lyrDetails().tabTheatre().lyrSlots().showtabTCI(); form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS); } else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed")) { form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots(); form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME); } //WDEV-12918 AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService()); for(int i=0;i<collAnaesTypes.size();i++) form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText()); // prepopulating reference data form.getLocalContext().setRoleList(domain.listRoles()); // initialising search form.chkActiveOnly().setValue(true); //WDEV-12039 form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true); loadServices(); loadHospitals(); loadActivities(); //WDEV-13362 form.ccListOwner().initialize(MosType.HCP); updateControlState(); }
private void initialiseScreenAndLists() { //WDEV-16799 - show DoS controls depending on Config Flag value form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only")); // workaround to show location is required //form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red); //wdev-20233 //form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required"); wdev-20233 //form.lyrDetails().tabGeneralDetails().lblCNLocStar().setTextColor(Color.Red); //wdev-20233 //form.lyrDetails().tabGeneralDetails().lblCNLocStar().setTooltip("Required"); //wdev-20233 //wdev-20074 form.lyrDetails().tabGeneralDetails().lblFlexibleProfileStar().setTextColor(Color.Red); form.lyrDetails().tabGeneralDetails().lblFlexibleProfileStar().setTooltip("Required"); form.lyrDetails().tabGeneralDetails().lblProfileTypeStar().setTextColor(Color.Red); form.lyrDetails().tabGeneralDetails().lblProfileTypeStar().setTooltip("Required"); form.lyrDetails().tabTheatre().setVisible( GroupProfileTypeEnumeration.rdoTheatre.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) /*form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()*/); //wdev-20074 form.lyrDetails().tabTheatre().setHeaderVisible(GroupProfileTypeEnumeration.rdoTheatre.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) /*form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()*/); //wdev-20074 //wdev-20074 form.lyrDetails().tabGeneralDetails().GroupProfileType().setValue(GroupProfileTypeEnumeration.rdoOutpatient); form.lyrDetails().tabGeneralDetails().GroupFlexibleProfile().setValue(GroupFlexibleProfileEnumeration.rdoNo); //WDEV-12918 if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI")) { form.lyrDetails().tabTheatre().lyrSlots().showtabTCI(); form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS); } else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed")) { form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots(); form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME); } //WDEV-12918 AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService()); for(int i=0;i<collAnaesTypes.size();i++) form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText()); // prepopulating reference data form.getLocalContext().setRoleList(domain.listRoles()); // initialising search form.chkActiveOnly().setValue(true); //WDEV-12039 form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true); loadServices(); loadHospitals(); loadActivities(); //WDEV-13362 form.ccListOwner().initialize(MosType.HCP); //wdev-19419 //form.lyrDetails().tabListOwners().ccConsultant().initialize(MosType.HCP); //wdev-20074 //wdev-19921 form.btnAdd().setImage(form.getImages().Core.Add); form.btnEdit().setImage(form.getImages().Core.Edit); form.btnCloneThisProfile().setImage(form.getImages().Core.Copy); //--------- radioButtonGroupProfileTypeValueChanged(); //---------- updateControlState(); }