/** * */ private void listSpecialties() { SpecialtyCollection collSpecialties = LookupHelper.getSpecialty(domain.getLookupService()); if (collSpecialties != null) { form.grdSpecialty().getRows().clear(); GenForm.grdSpecialtyRow row; for (int i = 0; i < collSpecialties.size(); i++) { row = form.grdSpecialty().getRows().newRow(); row.setValue(collSpecialties.get(i)); row.setcolSpecialty(collSpecialties.get(i).getText()); row.setTooltipForcolSpecialty(collSpecialties.get(i).getText()); row.setcolSpecialtyImage(form.getImages().Admin.Service); } } }
/** * */ private void listSpecialties() { SpecialtyCollection lkpCollSpecialties = LookupHelper.getSpecialty(domain.getLookupService()); if (lkpCollSpecialties != null) { form.grdSpecialty().getRows().clear(); for (int i = 0; i < lkpCollSpecialties.size(); i++) { GenForm.grdSpecialtyRow specRow = form.grdSpecialty().getRows().newRow(); specRow.setValue(lkpCollSpecialties.get(i)); specRow.setcolSpecialtyImage(form.getImages().Admin.Service); specRow.setcolSpecialty(lkpCollSpecialties.get(i).getText()); } } }
private void initialize() throws PresentationLogicException { StringBuffer exceptions = new StringBuffer(); if (ims.nursing.vo.lookups.LookupHelper.getTurnsDuration(domain.getLookupService()).size() == 0) { exceptions.append("Please configure TurnsDuration lookup"); exceptions.append("\n"); } if (LookupHelper.getPatientPosition(domain.getLookupService()).size()== 0) { exceptions.append("Please configure PatientPosition lookup"); exceptions.append("\n"); } if(exceptions.length() > 0) throw new PresentationLogicException(exceptions.toString()); form.ctnRepo().customAuthoring().setIsRequiredPropertyToControls(true); //WDEV-13175 }
private void loadReasonCombo(PatientAssessmentStatusReason parent) { form.lyrTabs().tabCurrent().cmbStatusReason().clear(); if (parent == null) return; PatientAssessmentStatusReasonCollection lookupColl = LookupHelper.getPatientAssessmentStatusReason(domain.getLookupService()); for (int i = 0; i < lookupColl.size(); i++) { PatientAssessmentStatusReason reasonLkp = lookupColl.get(i); if (reasonLkp.getParent() != null && reasonLkp.getParent().equals(parent)) { form.lyrTabs().tabCurrent().cmbStatusReason().newRow(reasonLkp, reasonLkp.toString()); } } }
private void populateAssessmentCombo() { DPPTypeCollection excludeColl = new DPPTypeCollection(); excludeColl.add(DPPType.PREADMISSION); if(admissionAssessmentAdded()) excludeColl.add(DPPType.ADMISSION); DPPTypeCollection coll = ims.assessment.vo.lookups.LookupHelper.getDPPType(domain.getLookupService()); for (int i = 0; i < coll.size(); i++) { if(coll.get(i) != null && excludeColl.indexOf(coll.get(i)) >= 0) continue; addAssessmentToCombo(coll.get(i)); } }
private void prepopulateStatusCombo() { form.lyrTabs().tabCurrent().cmbStatus().clear(); if (isNewRecord() == false) { PatientAssessmentStatusReasonCollection lookupColl = LookupHelper.getPatientAssessmentStatusReason(domain.getLookupService()); for (int i = 0; i < lookupColl.size(); i++) { PatientAssessmentStatusReason reasonLkp = lookupColl.get(i); if (reasonLkp.getParent() == null) { if (isNewRecord() == false && reasonLkp.equals(PatientAssessmentStatusReason.NOTCOMMENCED)) continue; form.lyrTabs().tabCurrent().cmbStatus().newRow(reasonLkp, reasonLkp.toString()); } } } }
protected void onCmbDocumentCategoryValueChanged() throws ims.framework.exceptions.PresentationLogicException { form.getLocalContext().setDocumentCategoryMapping(null); if(form.cmbDocumentCategory().getValue() != null ) { LookupInstVo inst = LookupHelper.getDocumentCategoryInstance(this.domain.getLookupService(),form.cmbDocumentCategory().getValue().getID()); LookupInstVo instMap = domain.getMappings(inst); LookupMappingVoCollection tempColl = instMap.getMappings().sort(); for(int i = 0; tempColl != null && i < tempColl.size();i++) { if(tempColl.get(i) != null && TaxonomyType.EDRM.getText().equals(tempColl.get(i).getExtSystem())) { TaxonomySeedVo taxSeedVo = new TaxonomySeedVo(); taxSeedVo.setID_TaxonomySeed(form.cmbDocumentCategory().getValue().getID()); taxSeedVo.setExtCode(tempColl.get(i).getExtCode()); taxSeedVo.setExtSystem(tempColl.get(i).getExtSystem()); form.getLocalContext().setDocumentCategoryMapping(taxSeedVo); break; } } } }
private void populateAdmissionTypeGrid() { form.grdAdmissionType().getRows().clear(); MethodOfAdmissionCollection collAdmissionType = LookupHelper.getMethodOfAdmission(domain.getLookupService()); if (collAdmissionType==null) return; for (int i=0;i<collAdmissionType.size();i++) { if (collAdmissionType.get(i).isActive()) { grdAdmissionTypeRow row = form.grdAdmissionType().getRows().newRow(); row.setcolAdmissionType(collAdmissionType.get(i).getIItemText()); row.setcolSelected(false); row.setValue(collAdmissionType.get(i)); } } }
private void loadClassificationTree() { QuestionClassificationCollection classColl = LookupHelper.getQuestionClassification(domain.getLookupService()); form.lyrSearch().tabPageClassification().treClassification().clear(); //Load top parents LookupInstVo[] roots = classColl.getRoots(); for(int i=0; roots != null && i<roots.length; i++) { TreeNode nodeClass = form.lyrSearch().tabPageClassification().treClassification().getNodes().add(roots[i], roots[i].toString()); nodeClass.setExpanded(false); nodeClass.setCheckBoxVisible(true); loadChildren(nodeClass, roots[i]); TreeNode nodeTextClass = form.lyrSearch().tabPageTextClass().treTextAndClass().getNodes().add(roots[i], roots[i].toString()); nodeTextClass.setExpanded(true); nodeTextClass.setCheckBoxVisible(false); loadChildren(nodeTextClass, roots[i]); } }
private QuestionClassification getParentLkp(QuestionClassification lkpItem) { QuestionClassificationCollection classColl = LookupHelper.getQuestionClassification(domain.getLookupService()); //Load top parents LookupInstVo[] roots = classColl.getRoots(); for(int i=0; roots != null && i<roots.length; i++) { for(int j=0; roots[i].getChildInstances() != null && j<roots[i].getChildInstances().size(); j++) { if(roots[i].getChildInstances().get(j).equals(lkpItem)) return (QuestionClassification)roots[i]; } } return null; }
/** * */ private void loadClassification() { //Classification if(isDialog()) form.lyrTabs().tabSearchQuestion().cmbClassification().clear(); else form.lyrTabs().tabListQuestions().cmbClassificationList().clear(); QuestionClassificationCollection classificationColl = LookupHelper.getQuestionClassification(domain.getLookupService()); for(int i=0; classificationColl != null && i<classificationColl.size(); i++) { if(classificationColl.get(i).getParent() != null) { if(isDialog()) form.lyrTabs().tabSearchQuestion().cmbClassification().newRow(classificationColl.get(i), classificationColl.get(i).toString()); else form.lyrTabs().tabListQuestions().cmbClassificationList().newRow(classificationColl.get(i), classificationColl.get(i).toString()); } } }
private void loadClassificationTree() { form.lyrTabs().tabNewQuestion().lyrDetails().tabClasification().treClassification().clear(); /*if (isPrimaryQuestion() == false) return;*/ QuestionClassificationCollection classColl = LookupHelper.getQuestionClassification(domain.getLookupService()); // Load top parents LookupInstVo[] roots = classColl.getRoots(); for (int i = 0; roots != null && i < roots.length; i++) { TreeNode node = form.lyrTabs().tabNewQuestion().lyrDetails().tabClasification().treClassification().getNodes().add(roots[i], roots[i].toString()); node.setExpanded(true); node.setCheckBoxVisible(false); loadChildren(node, roots[i]); } }
public WorklistContactType getWorklistContactTypeByExternalCode(ContactType contactType) { if (contactType == null) return null; LookupInstVo instContactType = LookupHelper.getContactTypeInstance(getLookupService(), contactType.getId()); LookupInstVo instMap = getMappings(instContactType); LookupMappingVoCollection mapColl = instMap.getMappings(); for (int j = 0; j < mapColl.size(); j++) { LookupMappingVo valueObject = mapColl.get(j); TaxonomyType taxonomyType = getExtSystemInstance(valueObject.getExtSystem()); if(taxonomyType.equals(TaxonomyType.WORKLIST_MAPPING)){ Integer codeVal = Integer.valueOf(valueObject.getExtCode()); WorklistContactTypeCollection collWorklistContactType = LookupHelper.getWorklistContactType(getLookupService()); for(int i=0;i<collWorklistContactType.size();i++) { if(codeVal == collWorklistContactType.get(i).getId()) return collWorklistContactType.get(i); } } } return null; }
public void populateParameterCombo( SECSTypesCollection usedItemsLookupCollection ) { form.cmbParameter().clear(); SECSTypesCollection lookupCollection = LookupHelper.getSECSTypes(this.domain.getLookupService()); for(int x = 0; x < lookupCollection.size(); x++) { boolean bAllowAdd = true; if(usedItemsLookupCollection != null) { for(int p=0;p<usedItemsLookupCollection.size();p++) { if(lookupCollection.get(x).equals(usedItemsLookupCollection.get(p))) { bAllowAdd = false; break; } } } if(bAllowAdd) form.cmbParameter().newRow(lookupCollection.get(x), lookupCollection.get(x).getText()); } }
private void bindColType(ims.RefMan.forms.daycaseadmissiondialog.GenForm.grdIdentifiersRow row, boolean isNew) { row.getcolIdType().clear(); PatIdTypeCollection collTypes = LookupHelper.getPatIdType(domain.getLookupService()); for(int i=0;i<collTypes.size();i++) { if(ConfigFlag.DOM.HEARTS_REPLICATE_PATIENTS.getValue()) { if(isNew) { if(collTypes.get(i).equals(PatIdType.HOSPNUM) || collTypes.get(i).equals(PatIdType.PKEY)) continue; } } row.getcolIdType().newRow(collTypes.get(i), collTypes.get(i).getText()); } }
private void loadCombos() { //Status form.cmbStatus().clear(); PreActiveActiveInactiveStatusCollection statusColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for(int i=0; statusColl != null && i<statusColl.size(); i++) { PreActiveActiveInactiveStatus status = statusColl.get(i); if(isNewQuestion()) { //When we have a new Question - Remove Inactive entry (cannot create a new Inactive Record) if(status.equals(PreActiveActiveInactiveStatus.INACTIVE)) continue; } else { //When record is active don't allow to Preactivate it if(isRecordActive() && status.equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; } form.cmbStatus().newRow(status, status.toString()); } }
private VSSnellen retrieveCodeFromID(String id) { VSSnellenCollection coll = LookupHelper.getVSSnellen(domain.getLookupService()); VSSnellen type = null; Integer val = null; try { val = Integer.valueOf(id); } catch (NumberFormatException e) { return null; } for (int i = 0; i < coll.size(); i++) { type = coll.get(i); if (type.getID() == val.intValue()) break; } return type; }
VSSnellen retrieveCodeFromID(String id) { VSSnellenCollection coll = LookupHelper.getVSSnellen(domain.getLookupService()); VSSnellen type = null; Integer val = null; try { val = Integer.valueOf(id); } catch(NumberFormatException e) { return null; } for(int i=0;i<coll.size();i++) { type = coll.get(i); if(type.getID() == val.intValue()) break; } return type; }
private void prepopulateSpecialties() { //Specialty form.grdSpecialties().getRows().clear(); SpecialtyCollection collSpec = LookupHelper.getSpecialty(domain.getLookupService()); if(collSpec == null) return; for (int i=0;i<collSpec.size();i++) { Specialty specInst = collSpec.get(i); grdSpecialtiesRow row = form.grdSpecialties().getRows().newRow(); row.setSpecialty(specInst); } }
/** * Lists all the specialties lookups in the grid. set row values to the relevant specialty. * @param void * @return void */ private void populateListControl() { form.grdHotlists().getRows().clear(); SpecialtyCollection lkpCollSpecialties = LookupHelper.getSpecialty(domain.getLookupService()); if (lkpCollSpecialties != null) { for (int x=0; x < lkpCollSpecialties.size(); x++) { grdHotlistsRow row = form.grdHotlists().getRows().newRow(); row.setColumnHotlist(lkpCollSpecialties.get(x).getText()); row.setValue(lkpCollSpecialties.get(x)); } } }
private void removeActiveOrPreactiveLookup() { PreActiveActiveInactiveStatus status = form.cmbActiveStatus().getValue(); form.cmbActiveStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for(int i=0; lookupColl != null && i<lookupColl.size(); i++) { if(isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if(isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; form.cmbActiveStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.cmbActiveStatus().setValue(status); }
private void listSpecialties() { form.treLeadCons().clear(); SpecialtyCollection lkpCollSpecialties = LookupHelper.getSpecialty(domain.getLookupService()); if (lkpCollSpecialties == null) return; for (int i=0; i < lkpCollSpecialties.size(); i++) { TreeNode nodeSpecialty=form.treLeadCons().getNodes().add(lkpCollSpecialties.get(i), lkpCollSpecialties.get(i).getText()); //put images for Specialty Node nodeSpecialty.setExpandedImage(form.getImages().Admin.Specialty01); nodeSpecialty.setCollapsedImage(form.getImages().Admin.Specialty01); } }
private void updateSpecialty() { SpecialtyCollection lkpCollSpecialties = ims.core.vo.lookups.LookupHelper.getSpecialty(domain.getLookupService()); SpecialtyCollection coll = new SpecialtyCollection(); if (lkpCollSpecialties != null) { for (int i = 0; i < form.lyrTabs().tabSpecialties().grdSpecialty().getRows().size(); i++) { for (int x = 0; x < lkpCollSpecialties.size(); x++) { if (form.lyrTabs().tabSpecialties().grdSpecialty().getRows().get(i).getValue().equals(lkpCollSpecialties.get(x))) coll.add(lkpCollSpecialties.get(x)); } } } form.getGlobalContext().Core.setSpecialties(coll); engine.open(form.getForms().ClinicalAdmin.HotlistDialog); }
private void removePreactiveOrActiveLookup() { PreActiveActiveInactiveStatus status = form.lyrFindings().tabView().cmbStatus().getValue(); form.lyrFindings().tabView().cmbStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for (int i = 0; lookupColl != null && i < lookupColl.size(); i++) { if(isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if(isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; form.lyrFindings().tabView().cmbStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.lyrFindings().tabView().cmbStatus().setValue(status); }
private void loadStatusCombo(boolean removeNonCommenced) { //Status - has to load only parents form.cmbStatus().clear(); PatientAssessmentStatusReasonCollection voColl = LookupHelper.getPatientAssessmentStatusReason(domain.getLookupService()); for(int i = 0; voColl != null && i < voColl.size(); i++) { if(voColl.get(i).getParent() == null) { if(removeNonCommenced && voColl.get(i).equals(PatientAssessmentStatusReason.NOTCOMMENCED)) continue; form.cmbStatus().newRow(voColl.get(i), voColl.get(i).toString()); } } }
private void removePreactiveOrActiveLookup() { PreActiveActiveInactiveStatus status = form.cmbActiveStatus().getValue(); form.cmbActiveStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for(int i=0; lookupColl != null && i<lookupColl.size(); i++) { if(isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if(isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; form.cmbActiveStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.cmbActiveStatus().setValue(status); }
private UserDefinedAssessmentTypeCollection getUserDefinedTypes(UserDefinedAssessmentType type) { UserDefinedAssessmentTypeCollection assTypeColl = new UserDefinedAssessmentTypeCollection(); if(type != null) { assTypeColl.add(type); UserDefinedAssessmentTypeCollection udfColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService()); for (int i = 0; i < udfColl.size(); i++) { UserDefinedAssessmentType lkpType = udfColl.get(i); if(type.equals(lkpType)) { //Add the children (if any) to the collection for (int j = 0; lkpType.getChildInstances() != null && j < lkpType.getChildInstances().size(); j++) { assTypeColl.add((UserDefinedAssessmentType)lkpType.getChildInstances().get(j)); } } } } return assTypeColl; }
private void loadStatusCombo(boolean removeNonCommenced) { //Status form.cmbStatus().clear(); PatientAssessmentStatusReasonCollection voColl = LookupHelper.getPatientAssessmentStatusReason(domain.getLookupService()); for (int i = 0; voColl != null && i < voColl.size(); i++) { if (voColl.get(i).getParent() == null) { if(removeNonCommenced && voColl.get(i).equals(PatientAssessmentStatusReason.NOTCOMMENCED)) continue; form.cmbStatus().newRow(voColl.get(i), voColl.get(i).toString()); } } }
private Patient_AssessmentVo assemblePatientAssessment(PatientAssessment doPatientAssessment) { if(doPatientAssessment == null) return null; Patient_AssessmentVo patientAssessment = new Patient_AssessmentVo(doPatientAssessment.getId(), doPatientAssessment.getVersion()); patientAssessment.setIsRIE(doPatientAssessment.getIsRIE()); patientAssessment.setStatus(doPatientAssessment.getStatus() != null ? LookupHelper.getPatientAssessmentStatusReasonInstance(getLookupService(), doPatientAssessment.getStatus().getId()) : null); patientAssessment.setAuthoringInformation(AuthoringInformationVoAssembler.create(doPatientAssessment.getAuthoringInformation())); patientAssessment.setCompletedHCP(HcpLiteVoAssembler.create(doPatientAssessment.getCompletedHCP())); patientAssessment.setCompletedDateTime(doPatientAssessment.getCompletedDateTime() != null ? new DateTime(doPatientAssessment.getCompletedDateTime()) : null); patientAssessment.setPatient(doPatientAssessment.getPatient() != null ? new PatientRefVo(doPatientAssessment.getPatient().getId(), doPatientAssessment.getPatient().getVersion()) : null); patientAssessment.setEpisodeOfCare(doPatientAssessment.getEpisodeOfCare() != null ? new EpisodeOfCareRefVo(doPatientAssessment.getEpisodeOfCare().getId(), doPatientAssessment.getEpisodeOfCare().getVersion()) : null); patientAssessment.setCareContext(doPatientAssessment.getCareContext() != null ? new CareContextRefVo(doPatientAssessment.getCareContext().getId(), doPatientAssessment.getCareContext().getVersion()) : null); patientAssessment.setClinicalContact(doPatientAssessment.getClinicalContact() != null ? new ClinicalContactRefVo(doPatientAssessment.getClinicalContact().getId(), doPatientAssessment.getClinicalContact().getVersion()) : null); patientAssessment.setScore(doPatientAssessment.getScore()); patientAssessment.setIsAssessmentDocumentSaved(doPatientAssessment.isIsAssessmentDocumentSaved()); patientAssessment.setAssessmentData(assemblePatientAssessmentData(doPatientAssessment.getAssessmentData())); //wdev-15972 patientAssessment.setAssociatedDocument(doPatientAssessment.getAssociatedDocument() != null ? new PatientDocumentRefVo(doPatientAssessment.getAssociatedDocument().getId(),doPatientAssessment.getAssociatedDocument().getVersion()):null); //---------- return patientAssessment; }
private Assessment_QuestionVo assembleAssessmentQuestion(AssessmentQuestion doAssessmentQuestion) { if(doAssessmentQuestion == null) return null; Assessment_QuestionVo assessmentQuestion = new Assessment_QuestionVo(doAssessmentQuestion.getId(), doAssessmentQuestion.getVersion()); assessmentQuestion.setIsRIE(doAssessmentQuestion.getIsRIE()); assessmentQuestion.setLegendText(doAssessmentQuestion.getLegendText()); assessmentQuestion.setQuestion(assembleQuestionInformation(doAssessmentQuestion.getQuestion())); assessmentQuestion.setIsMandatory(doAssessmentQuestion.isIsMandatory()); assessmentQuestion.setActiveStatus(doAssessmentQuestion.getActiveStatus() != null ? LookupHelper.getPreActiveActiveInactiveStatusInstance(getLookupService(), doAssessmentQuestion.getActiveStatus().getId()) : null); assessmentQuestion.setAllowsMultipleAnswers(doAssessmentQuestion.isAllowsMultipleAnswers()); assessmentQuestion.setSequence(doAssessmentQuestion.getSequence()); assessmentQuestion.setAssessmentAnswerRole(AssessmentQuestionRoleVoAssembler.createAssessmentQuestionRoleVoCollectionFromAssessmentQuestionRole(doAssessmentQuestion.getAssessmentAnswerRole())); // WDEV-3709 return assessmentQuestion; }
private void removePreactiveOrActiveLookup() { PreActiveActiveInactiveStatus status = form.lyrDrawing().tabImageSelect().cmbImageStatus().getValue(); form.lyrDrawing().tabImageSelect().cmbImageStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for (int i = 0; lookupColl != null && i < lookupColl.size(); i++) { if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; form.lyrDrawing().tabImageSelect().cmbImageStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.lyrDrawing().tabImageSelect().cmbImageStatus().setValue(status); }
private Graphic_AssessmentFindingQuestionVo assembleGraphicAssessmentFindingQuestion(GraphicAssessmentFindingQuestion doGraphicAssessmentFindingQuestion) { if(doGraphicAssessmentFindingQuestion == null) return null; Graphic_AssessmentFindingQuestionVo graphicAssessmentFindingQuestion = new Graphic_AssessmentFindingQuestionVo(doGraphicAssessmentFindingQuestion.getId(), doGraphicAssessmentFindingQuestion.getVersion()); graphicAssessmentFindingQuestion.setIsRIE(doGraphicAssessmentFindingQuestion.getIsRIE()); graphicAssessmentFindingQuestion.setQuestion(assembleQuestionInformation(doGraphicAssessmentFindingQuestion.getQuestion())); graphicAssessmentFindingQuestion.setActiveStatus(doGraphicAssessmentFindingQuestion.getActiveStatus() != null ? LookupHelper.getPreActiveActiveInactiveStatusInstance(getLookupService(), doGraphicAssessmentFindingQuestion.getActiveStatus().getId()) : null); graphicAssessmentFindingQuestion.setIsMandatory(doGraphicAssessmentFindingQuestion.isIsMandatory()); graphicAssessmentFindingQuestion.setSequence(doGraphicAssessmentFindingQuestion.getSequence()); graphicAssessmentFindingQuestion.setAllowsMultipleAnswers(doGraphicAssessmentFindingQuestion.isAllowsMultipleAnswers()); return graphicAssessmentFindingQuestion; }
private Graphic_AssessmentQuestionVo assembleGraphicAssessmentQuestion(GraphicAssessmentQuestion doGraphicAssessmentQuestion) { if(doGraphicAssessmentQuestion == null) return null; Graphic_AssessmentQuestionVo graphicAssessmentQuestion = new Graphic_AssessmentQuestionVo(doGraphicAssessmentQuestion.getId(), doGraphicAssessmentQuestion.getVersion()); graphicAssessmentQuestion.setIsRIE(doGraphicAssessmentQuestion.getIsRIE()); graphicAssessmentQuestion.setIsMandatory(doGraphicAssessmentQuestion.isIsMandatory()); graphicAssessmentQuestion.setActiveStatus(doGraphicAssessmentQuestion.getActiveStatus() != null ? LookupHelper.getPreActiveActiveInactiveStatusInstance(getLookupService(), doGraphicAssessmentQuestion.getActiveStatus().getId()) : null); graphicAssessmentQuestion.setQuestion(assembleQuestionInformation(doGraphicAssessmentQuestion.getQuestion())); graphicAssessmentQuestion.setSequence(doGraphicAssessmentQuestion.getSequence()); graphicAssessmentQuestion.setAllowsMultipleAnswers(doGraphicAssessmentQuestion.isAllowsMultipleAnswers()); return graphicAssessmentQuestion; }
private void loadEPrescribingLookup() { form.grdDetails().getRows().clear(); ElectronicPrescribingButtonCollection lkpColl = LookupHelper.getElectronicPrescribingButton(domain.getLookupService()); if (lkpColl != null) { for (int x=0; x < lkpColl.size(); x++) { grdDetailsRow row = form.grdDetails().getRows().newRow(); row.setColButton(lkpColl.get(x).getText()); row.setTooltipForColButton(lkpColl.get(x).getText()); row.setValue(lkpColl.get(x)); } } }
/** * Function used to bind Equipment Provided lookup to grid */ private void bindEquipmentProvided() { // Clear grid form.lyrAdviceMobility().tabMobilityAndEquipment().grdEquipment().getRows().clear(); // Get Equipment values DischargequipmentCollection values = ims.emergency.vo.lookups.LookupHelper.getDischargequipment(domain.getLookupService()); // Add each Equipment to grid if (values != null) { for (int i = 0; i < values.size(); i++) { Dischargequipment equipment = values.get(i); grdEquipmentRow row = form.lyrAdviceMobility().tabMobilityAndEquipment().grdEquipment().getRows().newRow(); row.setColEquipment(equipment.getText()); row.setColEquipmentReadOnly(false); row.setValue(equipment); } } }
/** * Function used to bind Patient Mobility lookup to grid */ private void bindPatientMobilityGrid() { // Clear grid form.grdMobility().getRows().clear(); // Get PatientMobility values PatientMobilityCollection values = LookupHelper.getPatientMobility(domain.getLookupService()); // Add each Patient Mobility to grid if (values != null) { for (int i = 0; i < values.size(); i++) { PatientMobility mobility = values.get(i); grdMobilityRow row = form.grdMobility().getRows().newRow(); row.setColMobility(mobility.getText()); row.setColMobilityReadOnly(false); row.setValue(mobility); } } }
/** * Function used to bind Equipment Provided lookup to grid */ private void bindEquipmentProvided() { // Clear grid form.grdEquipment().getRows().clear(); // Get Equipment values DischargequipmentCollection values = ims.emergency.vo.lookups.LookupHelper.getDischargequipment(domain.getLookupService()); // Add each Equipment to grid if (values != null) { for (int i = 0; i < values.size(); i++) { Dischargequipment equipment = values.get(i); grdEquipmentRow row = form.grdEquipment().getRows().newRow(); row.setColEquipment(equipment.getText()); row.setColEquipmentReadOnly(false); row.setValue(equipment); } } }
private void removePreactiveOrActiveLookup() { PreActiveActiveInactiveStatus status = form.ctnDetails().cmbStatus().getValue(); form.ctnDetails().cmbStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for (int i = 0; lookupColl != null && i < lookupColl.size(); i++) { if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; form.ctnDetails().cmbStatus().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.ctnDetails().cmbStatus().setValue(status); }