private void populateDocCatGrid(DocumentCategoryCollection docCats) { form.lyrMain().tabByCategory().grdDocCat().getRows().clear(); if (docCats == null) return; for (int i = 0; i < docCats.size(); i++) { DocumentCategory docCat = docCats.get(i); if (docCat == null) continue; if(DocumentCategory.HISTORICAL.equals(docCat) || DocumentCategory.ASSESSMENT.equals(docCat) || DocumentCategory.RACPCSUMMARY.equals(docCat))//WDEV-13606, WDEV-13634 continue; grdDocCatRow nRow = form.lyrMain().tabByCategory().grdDocCat().getRows().newRow(); nRow.setColDocCat(docCat.getText()); nRow.setValue(docCat); } }
private void populateDocumentCategoryGrid(DocumentCategoryCollection documentCategoryColl) { if(documentCategoryColl == null) return; for(int i=0; i<documentCategoryColl.size(); i++) { for(int j=0; j<form.grdDocumentCategory().getRows().size(); j++) { if(form.grdDocumentCategory().getRows().get(j).getValue().equals(documentCategoryColl.get(i))) { form.grdDocumentCategory().getRows().get(j).setColSelect(true); break; } } } }
public void initialize() { removeFromCategoryLookup();//WDEV-13606, WDEV-13634 form.lyrMain().tabByTemplate().ccSpecialty().initialize(Specialty.TYPE_ID);// ActivityType.TYPE_ID); initDynamicGrids(); populateDocCatGrid((DocumentCategoryCollection) domain.getLookupService().getLookupCollection(DocumentCategory.TYPE_ID, DocumentCategoryCollection.class, DocumentCategory.class, true, true)); }
private void bindDocumentCategory(DocumentCategoryCollection lookupCollection) { form.cmbDocumentType().clear(); for(int x = 0; x < lookupCollection.size(); x++) { form.cmbDocumentType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void bindDocumentCategory(DocumentCategoryCollection lookupCollection) { form.lyrLetterCreate().tabTemplate().cmbDocType().clear(); for(int x = 0; x < lookupCollection.size(); x++) { form.lyrLetterCreate().tabTemplate().cmbDocType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void bindDocumentCategory(DocumentCategoryCollection lookupCollection) { form.cmbSource().clear(); for(int x = 0; x < lookupCollection.size(); x++) { form.cmbSource().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void bindDocumentCategory(DocumentCategoryCollection lookupCollection) { form.cmbDocType().clear(); for(int x = 0; x < lookupCollection.size(); x++) { form.cmbDocType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void initialize() throws PresentationLogicException { // WDEV-13492 // If the patient is different from the one kept in the search criteria then clear search criteria if (form.getGlobalContext().Core.getPatientDocumentSearchFilter() != null && form.getGlobalContext().Core.getPatientDocumentSearchFilter().getPatient() != null) { if (!form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(form.getGlobalContext().Core.getPatientDocumentSearchFilter().getPatient().getID_Patient())) form.getGlobalContext().Core.setPatientDocumentSearchFilter(null); } initMosComponents(); if(ConfigFlag.UI.PATIENT_DOCUMENTS_DISPLAY_EPISODEOFCARE_IN_SEARCH_CRITERIA.getValue())//WDEV-13623 { bindEpisodeCombo(); } DocumentCategoryToFormCfgVo documentCategoryConfig = domain.getDocumentCategoryConfig(form.getForms().Core.PatientDocuments.getID()); if(documentCategoryConfig != null && documentCategoryConfig.getDocumentCategory() != null && documentCategoryConfig.getDocumentCategory().size() > 0) { bindDocumentCategory(documentCategoryConfig.getDocumentCategory()); } else { DocumentCategoryCollection lookupCollection = LookupHelper.getDocumentCategory(domain.getLookupService()); bindDocumentCategory(lookupCollection); } form.grdDetails().setAuthorCaption(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue());//WDEV-13337 form.grdDetails().setDocSourceCaption(ConfigFlag.UI.PATIENT_DOCUMENT_DISPLAY_STATUS_COLUMN.getValue());//WDEV-13414 }
private DocumentCategoryCollection populateDocumentCategoryCollectionFromScreen() { DocumentCategoryCollection coll = new DocumentCategoryCollection(); for(int i=0; i<form.grdDocumentCategory().getRows().size(); i++) { if(form.grdDocumentCategory().getRows().get(i).getColSelect()) { coll.add(form.grdDocumentCategory().getRows().get(i).getValue()); } } return coll.size() > 0 ? coll : null; }
private void initializeTabTemplate() { createDynamicGridColumns(); form.lyrLetterCreate().tabTemplate().ccAuth().initialize(MosType.HCP); form.lyrLetterCreate().tabTemplate().ccAuth().isRequired(true); form.lyrLetterCreate().tabTemplate().ccResponsible().initializeResponsibleHcp(MosType.HCP, true);// WDEV-15836 form.lyrLetterCreate().tabTemplate().ccResponsible().isRequired(true); form.lyrLetterCreate().tabTemplate().ccTypist().initialize(MosType.ALL); form.lyrLetterCreate().tabTemplate().ccTypist().isRequired(true); DocumentCategoryToFormCfgVo documentCategoryConfig = domain.getDocumentCategoryConfig(form.getForms().Core.ClinicLetterBatchCreate.getID()); if(documentCategoryConfig != null && documentCategoryConfig.getDocumentCategory() != null && documentCategoryConfig.getDocumentCategory().size() > 0) { bindDocumentCategory(documentCategoryConfig.getDocumentCategory()); } else { DocumentCategoryCollection lookupCollection = LookupHelper.getDocumentCategory(domain.getLookupService()); bindDocumentCategory(lookupCollection); } Object hcpUser = domain.getHcpLiteUser(); if(hcpUser instanceof HcpLiteVo) { form.lyrLetterCreate().tabTemplate().ccAuth().setValue((IMos) hcpUser); } Object mosUser = domain.getMosUser(); if(mosUser instanceof MemberOfStaffShortVo) { form.lyrLetterCreate().tabTemplate().ccTypist().setValue((IMos) mosUser); } //wdev-14230 if(ConfigFlag.DOM.CLINIC_LETTER_BATCH_CREATE_SUMMARY_NOTE_MODE.getValue().equals("None")) //wdev-14230 { form.lyrLetterCreate().tabTemplate().lblSummaryNote().setVisible(Boolean.FALSE); form.lyrLetterCreate().tabTemplate().dyngrdSummaryNotes().setVisible(Boolean.FALSE); } else if(ConfigFlag.DOM.CLINIC_LETTER_BATCH_CREATE_SUMMARY_NOTE_MODE.getValue().equals("Latest")) { form.lyrLetterCreate().tabTemplate().lblSummaryNote().setVisible(Boolean.FALSE); form.lyrLetterCreate().tabTemplate().dyngrdSummaryNotes().setVisible(Boolean.FALSE); } else if(ConfigFlag.DOM.CLINIC_LETTER_BATCH_CREATE_SUMMARY_NOTE_MODE.getValue().equals("Select")) { createdDynamicGridSummaryNotes(); form.lyrLetterCreate().tabTemplate().lblSummaryNote().setVisible(Boolean.TRUE); form.lyrLetterCreate().tabTemplate().dyngrdSummaryNotes().setVisible(Boolean.TRUE); } //----------- }
private void initialize(Object[] args) throws PresentationLogicException { if (!(domain.getMosUser() instanceof MemberOfStaffShortVo)) throw new PresentationLogicException("You must be a member of staff to open this form."); //WDEV-12643 if(!ConfigFlag.UI.CORRESPONDENCE_KEEP_PATIENT_SELECTED.getValue() && (args == null || args.length == 0 || !NEW_DOCUMENT.equals(args[0])))// WDEV-13794 form.getGlobalContext().Core.setPatientShort(null); //WDEV-13634 //removeFromCategoryLookup(); DocumentCategoryToFormCfgVo documentCategoryConfig = domain.getDocumentCategoryConfig(form.getForms().Core.DocumentWorklist.getID()); if(documentCategoryConfig != null && documentCategoryConfig.getDocumentCategory() != null && documentCategoryConfig.getDocumentCategory().size() > 0) { bindDocumentCategory(documentCategoryConfig.getDocumentCategory()); } else { DocumentCategoryCollection lookupCollection = LookupHelper.getDocumentCategory(domain.getLookupService()); bindDocumentCategory(lookupCollection); } form.ccResponsible().initialize(MosType.HCP); PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());//WDEV-11810 form.cmbIdType().setValue(dispIdType); boolean isHCP = false;//WDEV-13909 form.ccAuthor().initialize(MosType.HCP); if (domain.getHcpLiteUser() instanceof HcpLiteVo) { form.ccAuthor().setValue((HcpLiteVo) domain.getHcpLiteUser()); isHCP = true;//WDEV-13909 } form.ccTypist().initialize(MosType.ALL); if (!isHCP && domain.getMosUser() instanceof MemberOfStaffShortVo)//WDEV-13909 { form.ccTypist().setValue((MemberOfStaffShortVo) domain.getMosUser()); } populateDocumentStatus(); // WDEV-18652 - start form.GroupSearchDateInterval().setValue(GroupSearchDateIntervalEnumeration.rdoGeneratedDate); populateDefaultValuesInSearchCriteria(ConfigFlag.UI.DOCUMENT_WORKLIST_DEFAULT_GENERATED_START_DATE_INTERVAL.getValue(), true); // WDEV-18652 - end populateLocations(); //WDEV-12643, WDEV-13794 if(ConfigFlag.UI.CORRESPONDENCE_KEEP_PATIENT_SELECTED.getValue()) initClearCheckBox(); if (form.getGlobalContext().Core.getPatientShortIsNotNull() && form.getGlobalContext().Core.getDocumentWorklistSearchCriteria() == null) //WDEV-12510 { //WDEV-11810 String hospNo = null; //WDEV-11810 if ((hospNo = getHospNo(form.getGlobalContext().Core.getPatientShort())) != null) //WDEV-11810{ form.getGlobalContext().Core.setDocumentWorklistSearchCriteria(new DocumentWorklistSearchCriteriaVo()); form.getGlobalContext().Core.getDocumentWorklistSearchCriteria().setPatient(form.getGlobalContext().Core.getPatientShort()); form.getGlobalContext().Core.getDocumentWorklistSearchCriteria().setExcludeCompleted(true); //WDEV-11810} } form.grdDocuments().setAuthorCaption(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author"); //WDEV-20193 form.grdDocuments().setAuthorHeaderTooltip(ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP")?"Responsible":"Author"); }
private void initialise() { DocumentCategoryCollection collection = (DocumentCategoryCollection) domain.getLookupService().getLookupCollection(DocumentCategory.TYPE_ID, DocumentCategoryCollection.class, DocumentCategory.class, true, false); form.getLocalContext().setDocumentCategoryInstances(collection); }