对于想了解ims.clinical.vo.SystemReviewVo的实例源码的读者,本文将提供新的信息,我们将详细介绍开源的im源码,并且为您提供关于ims.admin.vo.SystemRepo
对于想了解ims.clinical.vo.SystemReviewVo的实例源码的读者,本文将提供新的信息,我们将详细介绍开源的im源码,并且为您提供关于ims.admin.vo.SystemReportVo的实例源码、ims.clinical.vo.CheckListItemsVo的实例源码、ims.clinical.vo.ClinicalCorrespondenceLiteVo的实例源码、ims.clinical.vo.ClinicalCorrespondenceVo的实例源码的有价值信息。
本文目录一览:- ims.clinical.vo.SystemReviewVo的实例源码(开源的im源码)
- ims.admin.vo.SystemReportVo的实例源码
- ims.clinical.vo.CheckListItemsVo的实例源码
- ims.clinical.vo.ClinicalCorrespondenceLiteVo的实例源码
- ims.clinical.vo.ClinicalCorrespondenceVo的实例源码
ims.clinical.vo.SystemReviewVo的实例源码(开源的im源码)
private void open() { clearGrid(form.GrdSymptoms().getRows()); // Check the global context var got the clinical contacts if (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContactIsNotNull()) { SystemReviewVo voSystemReview = domain.getSystemReview(form.getGlobalContext().Core.getCurrentClinicalContact()); form.getLocalContext().setSystemReview(voSystemReview); populateScreenFromData(voSystemReview); } form.setMode(FormMode.VIEW); updateControlsstate(); }
private void open() { clearGrid(form.GrdSymptoms().getRows()); // Check the global context var got the clinical contacts if (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContactIsNotNull()) { SystemReviewVo voSystemReview = domain.getSystemReview(form.getGlobalContext().Core.getCurrentClinicalContact()); form.getLocalContext().setSystemReview(voSystemReview); populateScreenFromData(voSystemReview); } form.setMode(FormMode.VIEW); updateControlsstate(); }
private void open() { clearGrid(form.GrdSymptoms().getRows()); // Check the global context var got the clinical contacts if (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContactIsNotNull()) { SystemReviewVo voSystemReview = domain.getSystemReview(form.getGlobalContext().Core.getCurrentClinicalContact()); form.getLocalContext().setSystemReview(voSystemReview); populateScreenFromData(voSystemReview); } form.setMode(FormMode.VIEW); updateControlsstate(); }
/** * Gets the collection of symptom vo's from the local context. * Looks at each row in the grid that has a parent and compares the lookup element of the vo with the lookup * column in the grid. If a match is found the other columns are populated with their corresponding vo fields. */ protected void populateScreenFromData(SystemReviewVo voSystemReview) { if(voSystemReview == null) return; SystemReviewSymptomVoCollection voCollSymptoms = voSystemReview.getSymptomsIsNotNull() ? voSystemReview.getSymptoms() : null; if(voCollSymptoms != null) { for(int i = 0; i < voCollSymptoms.size(); i++) { nextSymptomVo: for (int j=0; j < form.GrdSymptoms().getRows().size(); j++) { for (int k=0; k < form.GrdSymptoms().getRows().get(j).getRows().size(); k++) { GenForm.GrdSymptomsRow childRow = form.GrdSymptoms().getRows().get(j).getRows().get(k); if (voCollSymptoms.get(i).getSymptom().equals(childRow.getcolSymptom())) { childRow.setValue(voCollSymptoms.get(i)); childRow.setcolSymptom(voCollSymptoms.get(i).getSymptom()); childRow.setcolSelect(voCollSymptoms.get(i).getAbsentPresent()); childRow.setcolDuration(voCollSymptoms.get(i).getDurationValue()); childRow.setcolUnitOfDuration(voCollSymptoms.get(i).getDurationUnit()); break nextSymptomVo; } } } } } }
/** * Gets the collection of symptom vo's from the local context. * Looks at each row in the grid that has a parent and compares the lookup element of the vo with the lookup * column in the grid. If a match is found the other columns are populated with their corresponding vo fields. */ protected void populateScreenFromData(SystemReviewVo voSystemReview) { if(voSystemReview == null) return; SystemReviewSymptomVoCollection voCollSymptoms = voSystemReview.getSymptomsIsNotNull() ? voSystemReview.getSymptoms() : null; if(voCollSymptoms != null) { for(int i = 0; i < voCollSymptoms.size(); i++) { nextSymptomVo: for (int j=0; j < form.GrdSymptoms().getRows().size(); j++) { for (int k=0; k < form.GrdSymptoms().getRows().get(j).getRows().size(); k++) { GenForm.GrdSymptomsRow childRow = form.GrdSymptoms().getRows().get(j).getRows().get(k); if (voCollSymptoms.get(i).getSymptom().equals(childRow.getcolSymptom())) { childRow.setValue(voCollSymptoms.get(i)); childRow.setcolSymptom(voCollSymptoms.get(i).getSymptom()); childRow.setcolSelect(voCollSymptoms.get(i).getAbsentPresent()); childRow.setcolDuration(voCollSymptoms.get(i).getDurationValue()); childRow.setcolUnitOfDuration(voCollSymptoms.get(i).getDurationUnit()); break nextSymptomVo; } } } } } }
/** * Gets the collection of symptom vo's from the local context. * Looks at each row in the grid that has a parent and compares the lookup element of the vo with the lookup * column in the grid. If a match is found the other columns are populated with their corresponding vo fields. */ protected void populateScreenFromData(SystemReviewVo voSystemReview) { if(voSystemReview == null) return; SystemReviewSymptomVoCollection voCollSymptoms = voSystemReview.getSymptomsIsNotNull() ? voSystemReview.getSymptoms() : null; if(voCollSymptoms != null) { for(int i = 0; i < voCollSymptoms.size(); i++) { nextSymptomVo: for (int j=0; j < form.GrdSymptoms().getRows().size(); j++) { for (int k=0; k < form.GrdSymptoms().getRows().get(j).getRows().size(); k++) { GenForm.GrdSymptomsRow childRow = form.GrdSymptoms().getRows().get(j).getRows().get(k); if (voCollSymptoms.get(i).getSymptom().equals(childRow.getcolSymptom())) { childRow.setValue(voCollSymptoms.get(i)); childRow.setcolSymptom(voCollSymptoms.get(i).getSymptom()); childRow.setcolSelect(voCollSymptoms.get(i).getAbsentPresent()); childRow.setcolDuration(voCollSymptoms.get(i).getDurationValue()); childRow.setcolUnitOfDuration(voCollSymptoms.get(i).getDurationUnit()); break nextSymptomVo; } } } } } }
ims.admin.vo.SystemReportVo的实例源码
private boolean save(SystemReportVo report,GrdReportsRow selectedRow) { SystemReportVo savedReport; String[] errors = report.validate(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return false; } try { savedReport = domain.saveReport(report); } catch (StaleObjectException e) { engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return false; } selectedRow.setValue(domain.getReport(savedReport)); return true; }
ims.clinical.vo.CheckListItemsVo的实例源码
private void populateScreenFromData(POACCheckListVo voPoacCheckList) { if (voPoacCheckList != null) { if (voPoacCheckList.getID_POACChecklistIsNotNull()) { GenForm.GrdItemRow row; CheckListItemsVo voCheckListItem; for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++) { voCheckListItem = voPoacCheckList.getChecklistItems().get(i); if (voCheckListItem.getChecklistItemIsNotNull()) { row = form.GrdItem().getRowByValue(voCheckListItem.getChecklistItem()); if (row != null) { if (voCheckListItem.getAbsentPresentIsNotNull()) row.setcolSelect(voCheckListItem.getAbsentPresent()); if (voCheckListItem.getChecklistItemIsNotNull()) row.setcolItem(voCheckListItem.getChecklistItem()); if (voCheckListItem.getCommentIsNotNull()) row.setcolComments(voCheckListItem.getComment()); } } } } } }
private void populateScreenFromData(POACCheckListVo voPoacCheckList) { if (voPoacCheckList != null) { if (voPoacCheckList.getID_POACChecklistIsNotNull()) { GenForm.GrdItemRow row; CheckListItemsVo voCheckListItem; for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++) { voCheckListItem = voPoacCheckList.getChecklistItems().get(i); if (voCheckListItem.getChecklistItemIsNotNull()) { row = form.GrdItem().getRowByValue(voCheckListItem.getChecklistItem()); if (row != null) { if (voCheckListItem.getAbsentPresentIsNotNull()) row.setcolSelect(voCheckListItem.getAbsentPresent()); if (voCheckListItem.getChecklistItemIsNotNull()) row.setcolItem(voCheckListItem.getChecklistItem()); if (voCheckListItem.getCommentIsNotNull()) row.setcolComments(voCheckListItem.getComment()); } } } } } }
private void populateScreenFromData(POACCheckListVo voPoacCheckList) { if (voPoacCheckList != null) { if (voPoacCheckList.getID_POACChecklistIsNotNull()) { GenForm.GrdItemRow row; CheckListItemsVo voCheckListItem; for (int i=0; i < voPoacCheckList.getChecklistItems().size();i++) { voCheckListItem = voPoacCheckList.getChecklistItems().get(i); if (voCheckListItem.getChecklistItemIsNotNull()) { row = form.GrdItem().getRowByValue(voCheckListItem.getChecklistItem()); if (row != null) { if (voCheckListItem.getAbsentPresentIsNotNull()) row.setcolSelect(voCheckListItem.getAbsentPresent()); if (voCheckListItem.getChecklistItemIsNotNull()) row.setcolItem(voCheckListItem.getChecklistItem()); if (voCheckListItem.getCommentIsNotNull()) row.setcolComments(voCheckListItem.getComment()); } } } } } }
ims.clinical.vo.ClinicalCorrespondenceLiteVo的实例源码
protected void onDynGrdCorrespondenceRowSelectionChanged(ims.framework.controls.DynamicGridRow row) { enableContextMenu(); if (form.dynGrdCorrespondence().getSelectedRow().getValue() != null) { ClinicalCorrespondenceLiteVo vocclite = (ClinicalCorrespondenceLiteVo) form.dynGrdCorrespondence().getSelectedRow().getValue(); form.getGlobalContext().Core.setPatientShort(domain.getPatientForCareContextId(vocclite.getCareContext())); form.getGlobalContext().Clinical.setCurrentCorrespondanceSearchCriteria(createSearchCriteria()); form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Core.CorrespondenceList); form.getGlobalContext().Core.setCurrentClinicalContact(vocclite.getClinicalContact()); } }
private void displayCorrespondance(ClinicalCorrespondenceLiteVoCollection collection) { formatGrid(); form.dynGrdCorrespondence().getRows().clear(); for (int i = 0; collection != null && i < collection.size(); i++) { ClinicalCorrespondenceLiteVo vocclite = collection.get(i); DynamicGridRow row = form.dynGrdCorrespondence().getRows().newRow(); DynamicGridCell cellAuthorDate = row.getCells().newCell(getColByIdentifier(COL_AUTH_DATE),DynamicCellType.LABEL); cellAuthorDate.setValue(vocclite.getAuthoringinformation().getAuthoringDateTimeIsNotNull() ? vocclite.getAuthoringinformation().getAuthoringDateTime().toString() : ""); cellAuthorDate.setIdentifier(COL_AUTH_DATE); cellAuthorDate.setWidth(130); DynamicGridCell cellAuthorHCP = row.getCells().newCell(getColByIdentifier(COL_AUTH_HCP),DynamicCellType.LABEL); cellAuthorHCP.setValue(vocclite.getAuthoringinformation().getAuthoringHcpIsNotNull() ? vocclite.getAuthoringinformation().getAuthoringHcp().toString() : ""); cellAuthorHCP.setIdentifier(COL_AUTH_HCP); cellAuthorHCP.setWidth(140); DynamicGridCell cellPatName = row.getCells().newCell(getColByIdentifier(COL_PAT_NAME),DynamicCellType.LABEL); PatientShort patient = null; if(vocclite.getCareContextIsNotNull() && vocclite.getCareContext().getEpisodeOfCareIsNotNull() && vocclite.getCareContext().getEpisodeOfCare().getCareSpellIsNotNull()) patient = vocclite.getCareContext().getEpisodeOfCare().getCareSpell().getPatient(); cellPatName.setValue(patient != null? patient.getName().toShortForm() : ""); cellPatName.setIdentifier(COL_PAT_NAME); cellPatName.setWidth(140); DynamicGridCell cellPatNumber = row.getCells().newCell(getColByIdentifier(COL_PAT_NUM),DynamicCellType.LABEL); cellPatNumber.setValue(patient != null && patient.getdisplayId() != null? patient.getdisplayId().getValue() : ""); cellPatNumber.setIdentifier(COL_PAT_NUM); cellPatNumber.setWidth(70); if (form.cmbStatus().getValue() == null) { DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(COL_STATUS),DynamicCellType.LABEL); cellStatus.setValue(vocclite.getCurrentStatusIsNotNull() ? vocclite.getCurrentStatus().getCorrespondenceStatus().toString() : ""); cellStatus.setIdentifier(COL_STATUS); cellStatus.setWidth(100); } DynamicGridCell cellRespHCP = row.getCells().newCell(getColByIdentifier(COL_RESP_HCP),DynamicCellType.LABEL); cellRespHCP.setValue(vocclite.getCareContext().getEpisodeOfCare().getResponsibleHCPIsNotNull() ? vocclite.getCareContext().getEpisodeOfCare().getResponsibleHCP().toString() : ""); cellRespHCP.setIdentifier(COL_RESP_HCP); cellRespHCP.setWidth(140); DynamicGridCell cellNote = row.getCells().newCell(getColByIdentifier(COL_NOTE),DynamicCellType.HTMLVIEW); if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALINPATIENTdisCHARGE) ) { if (vocclite.getInpatientdischargeSummaryIsNotNull()) cellNote.setValue(vocclite.getInpatientdischargeSummary().getClinicalNoteIsNotNull() ? vocclite.getInpatientdischargeSummary().getClinicalNote().getClinicalNote().toString() : ""); } else if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER) ) { if (vocclite.getoPDNotesIsNotNull()) cellNote.setValue(vocclite.getoPDNotes().getClinicalNoteIsNotNull() ? vocclite.getoPDNotes().getClinicalNote().getClinicalNote().getClinicalNote().toString() : ""); } cellNote.setIdentifier(COL_NOTE); cellNote.setWidth(-1); row.setValue(vocclite); } }
protected void onDynGrdCorrespondenceRowSelectionChanged(ims.framework.controls.DynamicGridRow row) { enableContextMenu(); if (form.dynGrdCorrespondence().getSelectedRow().getValue() != null) { ClinicalCorrespondenceLiteVo vocclite = (ClinicalCorrespondenceLiteVo) form.dynGrdCorrespondence().getSelectedRow().getValue(); form.getGlobalContext().Core.setPatientShort(domain.getPatientForCareContextId(vocclite.getCareContext())); form.getGlobalContext().Clinical.setCurrentCorrespondanceSearchCriteria(createSearchCriteria()); form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Core.CorrespondenceList); form.getGlobalContext().Core.setCurrentClinicalContact(vocclite.getClinicalContact()); } }
private void displayCorrespondance(ClinicalCorrespondenceLiteVoCollection collection) { formatGrid(); form.dynGrdCorrespondence().getRows().clear(); for (int i = 0; collection != null && i < collection.size(); i++) { ClinicalCorrespondenceLiteVo vocclite = collection.get(i); DynamicGridRow row = form.dynGrdCorrespondence().getRows().newRow(); DynamicGridCell cellAuthorDate = row.getCells().newCell(getColByIdentifier(COL_AUTH_DATE),DynamicCellType.HTMLVIEW); if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALINPATIENTdisCHARGE) ) { if (vocclite.getInpatientdischargeSummaryIsNotNull()) cellNote.setValue(vocclite.getInpatientdischargeSummary().getClinicalNoteIsNotNull() ? vocclite.getInpatientdischargeSummary().getClinicalNote().getClinicalNote().toString() : ""); } else if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER) ) { if (vocclite.getoPDNotesIsNotNull()) cellNote.setValue(vocclite.getoPDNotes().getClinicalNoteIsNotNull() ? vocclite.getoPDNotes().getClinicalNote().getClinicalNote().getClinicalNote().toString() : ""); } cellNote.setIdentifier(COL_NOTE); cellNote.setWidth(-1); row.setValue(vocclite); } }
protected void onDynGrdCorrespondenceRowSelectionChanged(ims.framework.controls.DynamicGridRow row) { enableContextMenu(); if (form.dynGrdCorrespondence().getSelectedRow().getValue() != null) { ClinicalCorrespondenceLiteVo vocclite = (ClinicalCorrespondenceLiteVo) form.dynGrdCorrespondence().getSelectedRow().getValue(); form.getGlobalContext().Core.setPatientShort(domain.getPatientForCareContextId(vocclite.getCareContext())); form.getGlobalContext().Clinical.setCurrentCorrespondanceSearchCriteria(createSearchCriteria()); form.getGlobalContext().Clinical.setReturnToFormName(form.getForms().Core.CorrespondenceList); form.getGlobalContext().Core.setCurrentClinicalContact(vocclite.getClinicalContact()); } }
private void displayCorrespondance(ClinicalCorrespondenceLiteVoCollection collection) { formatGrid(); form.dynGrdCorrespondence().getRows().clear(); for (int i = 0; collection != null && i < collection.size(); i++) { ClinicalCorrespondenceLiteVo vocclite = collection.get(i); DynamicGridRow row = form.dynGrdCorrespondence().getRows().newRow(); DynamicGridCell cellAuthorDate = row.getCells().newCell(getColByIdentifier(COL_AUTH_DATE),DynamicCellType.HTMLVIEW); if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALINPATIENTdisCHARGE) ) { if (vocclite.getInpatientdischargeSummaryIsNotNull()) cellNote.setValue(vocclite.getInpatientdischargeSummary().getClinicalNoteIsNotNull() ? vocclite.getInpatientdischargeSummary().getClinicalNote().getClinicalNote().toString() : ""); } else if (vocclite.getTypeIsNotNull() && vocclite.getType().equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER) ) { if (vocclite.getoPDNotesIsNotNull()) cellNote.setValue(vocclite.getoPDNotes().getClinicalNoteIsNotNull() ? vocclite.getoPDNotes().getClinicalNote().getClinicalNote().getClinicalNote().toString() : ""); } cellNote.setIdentifier(COL_NOTE); cellNote.setWidth(-1); row.setValue(vocclite); } }
ims.clinical.vo.ClinicalCorrespondenceVo的实例源码
@SuppressWarnings("unchecked") private void setTooltip(ClinicalCorrespondenceVo vo) { if (vo != null && vo.getStatusHistoryIsNotNull() && vo.getStatusHistory().size() > 0) { CorrespondenceStatusVoCollection collVo = vo.getStatusHistory(); if(collVo != null) { ArrayList collActions = getArrayList(collVo); Collections.sort(collActions,new ActionsComparator()); copyArrayListIntoColl(collVo,collActions); StringBuffer tooltip = new StringBuffer(); for (int i = 0; i < collVo.size(); i++) { tooltip.append(new Textile().process("**"+(i+1)+". "+ collVo.get(i).getCorrespondenceStatus().getText() +"**"+"\n"+ collVo.get(i).getAuthoringinformation().getCreationUser()+" "+ collVo.get(i).getAuthoringinformation().getCreationDateTime())); } form.lyrDetails().tabRecipents().imbStatus().setTooltip(tooltip.toString()); } } else form.lyrDetails().tabRecipents().imbStatus().setTooltip(null); }
/** * saveClinicalCorrespondence */ public ims.clinical.vo.ClinicalCorrespondenceVo saveClinicalCorrespondence(ims.clinical.vo.ClinicalCorrespondenceVo clinicalCorrespondence) throws ims.domain.exceptions.StaleObjectException,ims.domain.exceptions.UniquekeyviolationException { if(clinicalCorrespondence == null) throw new CodingRuntimeException("null clinicalCorrespondence passed to saveClinicalCorrespondence() !"); if(!clinicalCorrespondence.isValidated()) throw new CodingRuntimeException("clinicalCorrespondence not validated !"); DomainFactory factory = getDomainFactory(); ClinicalCorrespondence boClinicalCorrespondence = ClinicalCorrespondenceVoAssembler.extractClinicalCorrespondence(factory,clinicalCorrespondence); InpatientdischargeNoteFollowup idsBo = boClinicalCorrespondence.getInpatientdischargeSummary(); OutpatientNotesOutcome opdBo = boClinicalCorrespondence.getoPDNotes(); if(idsBo != null) { factory.save(idsBo); boClinicalCorrespondence.setInpatientdischargeSummary(idsBo); } if(opdBo != null) { factory.save(opdBo); boClinicalCorrespondence.setoPDNotes(opdBo); } factory.save(boClinicalCorrespondence); return ClinicalCorrespondenceVoAssembler.create(boClinicalCorrespondence); }
@SuppressWarnings("unchecked") private void setTooltip(ClinicalCorrespondenceVo vo) { if (vo != null && vo.getStatusHistoryIsNotNull() && vo.getStatusHistory().size() > 0) { CorrespondenceStatusVoCollection collVo = vo.getStatusHistory(); if(collVo != null) { ArrayList collActions = getArrayList(collVo); Collections.sort(collActions,collActions); StringBuffer tooltip = new StringBuffer(); for (int i = 0; i < collVo.size(); i++) { tooltip.append(new Textile().process("**"+(i+1)+". "+ collVo.get(i).getCorrespondenceStatus().getText() +"**"+"\n"+ collVo.get(i).getAuthoringinformation().getCreationUser()+" "+ collVo.get(i).getAuthoringinformation().getCreationDateTime())); } form.lyrDetails().tabRecipents().imbStatus().setTooltip(tooltip.toString()); } } else form.lyrDetails().tabRecipents().imbStatus().setTooltip(null); }
/** * saveClinicalCorrespondence */ public ims.clinical.vo.ClinicalCorrespondenceVo saveClinicalCorrespondence(ims.clinical.vo.ClinicalCorrespondenceVo clinicalCorrespondence) throws ims.domain.exceptions.StaleObjectException,clinicalCorrespondence); InpatientdischargeNoteFollowup idsBo = boClinicalCorrespondence.getInpatientdischargeSummary(); OutpatientNotesOutcome opdBo = boClinicalCorrespondence.getoPDNotes(); if(idsBo != null) { factory.save(idsBo); boClinicalCorrespondence.setInpatientdischargeSummary(idsBo); } if(opdBo != null) { factory.save(opdBo); boClinicalCorrespondence.setoPDNotes(opdBo); } factory.save(boClinicalCorrespondence); return ClinicalCorrespondenceVoAssembler.create(boClinicalCorrespondence); }
@SuppressWarnings("unchecked") private void setTooltip(ClinicalCorrespondenceVo vo) { if (vo != null && vo.getStatusHistoryIsNotNull() && vo.getStatusHistory().size() > 0) { CorrespondenceStatusVoCollection collVo = vo.getStatusHistory(); if(collVo != null) { ArrayList collActions = getArrayList(collVo); Collections.sort(collActions,collActions); StringBuffer tooltip = new StringBuffer(); for (int i = 0; i < collVo.size(); i++) { tooltip.append(new Textile().process("**"+(i+1)+". "+ collVo.get(i).getCorrespondenceStatus().getText() +"**"+"\n"+ collVo.get(i).getAuthoringinformation().getCreationUser()+" "+ collVo.get(i).getAuthoringinformation().getCreationDateTime())); } form.lyrDetails().tabRecipents().imbStatus().setTooltip(tooltip.toString()); } } else form.lyrDetails().tabRecipents().imbStatus().setTooltip(null); }
/** * saveClinicalCorrespondence */ public ims.clinical.vo.ClinicalCorrespondenceVo saveClinicalCorrespondence(ims.clinical.vo.ClinicalCorrespondenceVo clinicalCorrespondence) throws ims.domain.exceptions.StaleObjectException,clinicalCorrespondence); InpatientdischargeNoteFollowup idsBo = boClinicalCorrespondence.getInpatientdischargeSummary(); OutpatientNotesOutcome opdBo = boClinicalCorrespondence.getoPDNotes(); if(idsBo != null) { factory.save(idsBo); boClinicalCorrespondence.setInpatientdischargeSummary(idsBo); } if(opdBo != null) { factory.save(opdBo); boClinicalCorrespondence.setoPDNotes(opdBo); } factory.save(boClinicalCorrespondence); return ClinicalCorrespondenceVoAssembler.create(boClinicalCorrespondence); }
private boolean verifyStatusHistory() { if (form.lyrDetails().tabRecipents().cmbStatus().getValue() != null) { if (form.lyrDetails().tabRecipents().cmbStatus().getValue().equals(CorrespondenceStatus.VERIFIED)) { ClinicalCorrespondenceVo voClinicalCorrespondence = null; CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (form.getGlobalContext().Core.getCurrentCareContext(),ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER,form.getGlobalContext().Core.getCurrentClinicalContact()); } else { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (form.getGlobalContext().Core.getCurrentCareContext(),ClinicalCorrespondenceType.MEDICALINPATIENTdisCHARGE,form.getGlobalContext().Core.getCurrentClinicalContact()); } if (voClinicalCorrespondence != null && voClinicalCorrespondence.getStatusHistoryIsNotNull()) { for (int i = 0; i < voClinicalCorrespondence.getStatusHistory().size(); i++) { if (voClinicalCorrespondence.getStatusHistory().get(i).getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) { if (voClinicalCorrespondence.getVerifyingHCPIsNotNull() && voClinicalCorrespondence.getVerifyingDateTimeIsNotNull()) { form.lyrDetails().tabRecipents().qmbVerifyingHCP().newRow(voClinicalCorrespondence.getVerifyingHCP(),voClinicalCorrespondence.getVerifyingHCP().toString()); form.lyrDetails().tabRecipents().qmbVerifyingHCP().setValue(voClinicalCorrespondence.getVerifyingHCP()); form.lyrDetails().tabRecipents().dtimVerifying().setValue(voClinicalCorrespondence.getVerifyingDateTime()); return true; } } } } } } return false; }
private void open() { clearScreen(); setCurrentClinicalNote(); ClinicalCorrespondenceVo voClinicalCorrespondence = null; /* if(form.getGlobalContext().Clinical.getReturnToFormNameIsNotNull() && form.getGlobalContext().Clinical.getReturnToFormName().equals(form.getForms().Clinical.OutPatientsTreatmentPlan)) */ CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (null,form.getGlobalContext().Core.getCurrentClinicalContact()); } else { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (form.getGlobalContext().Core.getCurrentCareContext(),null); } form.getLocalContext().setSelectedItem(voClinicalCorrespondence); //WDEV-2536 setTooltip(voClinicalCorrespondence); verifyStatusHistory(); form.setMode(FormMode.VIEW); if(voClinicalCorrespondence == null) { form.btnNew().setVisible(true); form.btnUpdate().setVisible(false); form.getLocalContext().setoutpatientSummaryChanged(Boolean.TRUE); } else { form.btnNew().setVisible(false); form.btnUpdate().setVisible(true); displayRecord(voClinicalCorrespondence); form.getLocalContext().setReportChanged(Boolean.TRUE); } updateContextMenu(); }
protected void onFormModeChanged() { boolean viewmode = form.getMode().equals(FormMode.VIEW); form.btnClose().setVisible(viewmode && engine.isDialog()); if(!viewmode) { boolean dataSaved = isNewData(); ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); if(dataSaved) { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.TRUE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.TRUE); } else { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.FALSE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.FALSE); } if(voClinicalCorrespondence != null) { //wdev-1800 boolean bFound = true; if (voClinicalCorrespondence.getCurrentStatusIsNotNull() && voClinicalCorrespondence.getCurrentStatus().getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) bFound = false; if (voClinicalCorrespondence.getStatusHistoryIsNotNull() && voClinicalCorrespondence.getStatusHistory().size() > 0) { for (int i = 0 ; i < voClinicalCorrespondence.getStatusHistory().size() ; i ++) { if (voClinicalCorrespondence.getStatusHistory().get(i).getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) { bFound = false; break; } } } enabLeverified(bFound); } else enabLeverified(true); } //WDEV-1039 - 4) disable the preview until the ClinicalCorrespondenceBo has been saved and in Edit Mode form.lyrDetails().tabPreview().setHeaderEnabled(viewmode && !isNewData()); }
private boolean isNewData() { ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); return !(voClinicalCorrespondence != null && voClinicalCorrespondence.getID_ClinicalCorrespondenceIsNotNull()); }
/** * getLastClinicalCorrespondence */ public ClinicalCorrespondenceVo getLastClinicalCorrespondence(CareContextRefVo careContext,ClinicalCorrespondenceType type,ClinicalContactRefVo clinicalContact) { /* if(careContext == null) throw new CodingRuntimeException("null careContext passed to getLastClinicalCorrespondence() !"); */ ArrayList names = new ArrayList(); ArrayList values = new ArrayList(); if(type == null) throw new CodingRuntimeException("null type passed to getLastClinicalCorrespondence() !"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from ClinicalCorrespondence as c1_1 "); hql.append(" where c1_1.type.id = :TYPEID"); names.add("TYPEID"); values.add(new Integer(type.getId())); if (careContext != null) { hql.append (" and c1_1.careContext.id = :CONTEXTID"); names.add("CONTEXTID"); values.add(careContext.getID_CareContext()); } if (clinicalContact != null) { hql.append (" and c1_1.clinicalContact.id = :CONTACTID"); names.add("CONTACTID"); values.add(clinicalContact.getID_ClinicalContact()); } List list = factory.find(hql.toString(),names,values); if(list.size() == 0) return null; ClinicalCorrespondenceVo voClinicalCorrespondence = ClinicalCorrespondenceVoAssembler.create((ClinicalCorrespondence)list.get(0)); if (type.equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER)) { if(voClinicalCorrespondence.getoPDNotes() == null && clinicalContact != null && clinicalContact.getID_ClinicalContactIsNotNull()) voClinicalCorrespondence.setoPDNotes(getoPDSummary(clinicalContact)); } return voClinicalCorrespondence; }
private boolean verifyStatusHistory() { if (form.lyrDetails().tabRecipents().cmbStatus().getValue() != null) { if (form.lyrDetails().tabRecipents().cmbStatus().getValue().equals(CorrespondenceStatus.VERIFIED)) { ClinicalCorrespondenceVo voClinicalCorrespondence = null; CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (form.getGlobalContext().Core.getCurrentCareContext(),voClinicalCorrespondence.getVerifyingHCP().toString()); form.lyrDetails().tabRecipents().qmbVerifyingHCP().setValue(voClinicalCorrespondence.getVerifyingHCP()); form.lyrDetails().tabRecipents().dtimVerifying().setValue(voClinicalCorrespondence.getVerifyingDateTime()); return true; } } } } } } return false; }
private void open() { clearScreen(); setCurrentClinicalNote(); ClinicalCorrespondenceVo voClinicalCorrespondence = null; /* if(form.getGlobalContext().Clinical.getReturnToFormNameIsNotNull() && form.getGlobalContext().Clinical.getReturnToFormName().equals(form.getForms().Clinical.OutPatientsTreatmentPlan)) */ CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (null,null); } form.getLocalContext().setSelectedItem(voClinicalCorrespondence); //WDEV-2536 setTooltip(voClinicalCorrespondence); verifyStatusHistory(); form.setMode(FormMode.VIEW); if(voClinicalCorrespondence == null) { form.btnNew().setVisible(true); form.btnUpdate().setVisible(false); form.getLocalContext().setoutpatientSummaryChanged(Boolean.TRUE); } else { form.btnNew().setVisible(false); form.btnUpdate().setVisible(true); displayRecord(voClinicalCorrespondence); form.getLocalContext().setReportChanged(Boolean.TRUE); } updateContextMenu(); }
protected void onFormModeChanged() { boolean viewmode = form.getMode().equals(FormMode.VIEW); form.btnClose().setVisible(viewmode && engine.isDialog()); if(!viewmode) { boolean dataSaved = isNewData(); ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); if(dataSaved) { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.TRUE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.TRUE); } else { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.FALSE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.FALSE); } if(voClinicalCorrespondence != null) { //wdev-1800 boolean bFound = true; if (voClinicalCorrespondence.getCurrentStatusIsNotNull() && voClinicalCorrespondence.getCurrentStatus().getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) bFound = false; if (voClinicalCorrespondence.getStatusHistoryIsNotNull() && voClinicalCorrespondence.getStatusHistory().size() > 0) { for (int i = 0 ; i < voClinicalCorrespondence.getStatusHistory().size() ; i ++) { if (voClinicalCorrespondence.getStatusHistory().get(i).getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) { bFound = false; break; } } } enabLeverified(bFound); } else enabLeverified(true); } //WDEV-1039 - 4) disable the preview until the ClinicalCorrespondenceBo has been saved and in Edit Mode form.lyrDetails().tabPreview().setHeaderEnabled(viewmode && !isNewData()); }
private boolean isNewData() { ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); return !(voClinicalCorrespondence != null && voClinicalCorrespondence.getID_ClinicalCorrespondenceIsNotNull()); }
/** * getLastClinicalCorrespondence */ public ClinicalCorrespondenceVo getLastClinicalCorrespondence(CareContextRefVo careContext,values); if(list.size() == 0) return null; ClinicalCorrespondenceVo voClinicalCorrespondence = ClinicalCorrespondenceVoAssembler.create((ClinicalCorrespondence)list.get(0)); if (type.equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER)) { if(voClinicalCorrespondence.getoPDNotes() == null && clinicalContact != null && clinicalContact.getID_ClinicalContactIsNotNull()) voClinicalCorrespondence.setoPDNotes(getoPDSummary(clinicalContact)); } return voClinicalCorrespondence; }
private boolean verifyStatusHistory() { if (form.lyrDetails().tabRecipents().cmbStatus().getValue() != null) { if (form.lyrDetails().tabRecipents().cmbStatus().getValue().equals(CorrespondenceStatus.VERIFIED)) { ClinicalCorrespondenceVo voClinicalCorrespondence = null; CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (form.getGlobalContext().Core.getCurrentCareContext(),voClinicalCorrespondence.getVerifyingHCP().toString()); form.lyrDetails().tabRecipents().qmbVerifyingHCP().setValue(voClinicalCorrespondence.getVerifyingHCP()); form.lyrDetails().tabRecipents().dtimVerifying().setValue(voClinicalCorrespondence.getVerifyingDateTime()); return true; } } } } } } return false; }
private void open() { clearScreen(); setCurrentClinicalNote(); ClinicalCorrespondenceVo voClinicalCorrespondence = null; /* if(form.getGlobalContext().Clinical.getReturnToFormNameIsNotNull() && form.getGlobalContext().Clinical.getReturnToFormName().equals(form.getForms().Clinical.OutPatientsTreatmentPlan)) */ CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext(); if(ContextType.OUTPATIENT.equals(careContext.getContext())) { voClinicalCorrespondence = domain.getLastClinicalCorrespondence (null,null); } form.getLocalContext().setSelectedItem(voClinicalCorrespondence); //WDEV-2536 setTooltip(voClinicalCorrespondence); verifyStatusHistory(); form.setMode(FormMode.VIEW); if(voClinicalCorrespondence == null) { form.btnNew().setVisible(true); form.btnUpdate().setVisible(false); form.getLocalContext().setoutpatientSummaryChanged(Boolean.TRUE); } else { form.btnNew().setVisible(false); form.btnUpdate().setVisible(true); displayRecord(voClinicalCorrespondence); form.getLocalContext().setReportChanged(Boolean.TRUE); } updateContextMenu(); }
protected void onFormModeChanged() { boolean viewmode = form.getMode().equals(FormMode.VIEW); form.btnClose().setVisible(viewmode && engine.isDialog()); if(!viewmode) { boolean dataSaved = isNewData(); ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); if(dataSaved) { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.TRUE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.TRUE); } else { form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledAuthoringHCP(Boolean.FALSE); form.lyrDetails().tabRecipents().customControlAuthoringInfo().setEnabledDateTime(Boolean.FALSE); } if(voClinicalCorrespondence != null) { //wdev-1800 boolean bFound = true; if (voClinicalCorrespondence.getCurrentStatusIsNotNull() && voClinicalCorrespondence.getCurrentStatus().getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) bFound = false; if (voClinicalCorrespondence.getStatusHistoryIsNotNull() && voClinicalCorrespondence.getStatusHistory().size() > 0) { for (int i = 0 ; i < voClinicalCorrespondence.getStatusHistory().size() ; i ++) { if (voClinicalCorrespondence.getStatusHistory().get(i).getCorrespondenceStatus().equals(CorrespondenceStatus.VERIFIED)) { bFound = false; break; } } } enabLeverified(bFound); } else enabLeverified(true); } //WDEV-1039 - 4) disable the preview until the ClinicalCorrespondenceBo has been saved and in Edit Mode form.lyrDetails().tabPreview().setHeaderEnabled(viewmode && !isNewData()); }
private boolean isNewData() { ClinicalCorrespondenceVo voClinicalCorrespondence = form.getLocalContext().getSelectedItem(); return !(voClinicalCorrespondence != null && voClinicalCorrespondence.getID_ClinicalCorrespondenceIsNotNull()); }
/** * getLastClinicalCorrespondence */ public ClinicalCorrespondenceVo getLastClinicalCorrespondence(CareContextRefVo careContext,values); if(list.size() == 0) return null; ClinicalCorrespondenceVo voClinicalCorrespondence = ClinicalCorrespondenceVoAssembler.create((ClinicalCorrespondence)list.get(0)); if (type.equals(ClinicalCorrespondenceType.MEDICALOUTPATIENTLETTER)) { if(voClinicalCorrespondence.getoPDNotes() == null && clinicalContact != null && clinicalContact.getID_ClinicalContactIsNotNull()) voClinicalCorrespondence.setoPDNotes(getoPDSummary(clinicalContact)); } return voClinicalCorrespondence; }
关于ims.clinical.vo.SystemReviewVo的实例源码和开源的im源码的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于ims.admin.vo.SystemReportVo的实例源码、ims.clinical.vo.CheckListItemsVo的实例源码、ims.clinical.vo.ClinicalCorrespondenceLiteVo的实例源码、ims.clinical.vo.ClinicalCorrespondenceVo的实例源码等相关内容,可以在本站寻找。
本文标签: