本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue类的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue类的具体用法?Java CaseManagementIssue怎么用?Java CaseManagementIssue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CaseManagementIssue类属于org.oscarehr.casemgmt.model包,在下文中一共展示了CaseManagementIssue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newIssueToCIssue
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
protected CaseManagementIssue newIssueToCIssue(String demoNo, Issue iss, Integer programId) {
CaseManagementIssue cIssue = new CaseManagementIssue();
// cIssue.setActive(true);
cIssue.setAcute(false);
cIssue.setCertain(false);
cIssue.setDemographic_no(demoNo);
cIssue.setIssue_id(iss.getId().longValue());
cIssue.setIssue(iss);
cIssue.setMajor(false);
// cIssue.setMedical_diagnosis(true);
cIssue.setNotes(new HashSet());
cIssue.setResolved(false);
String issueType = iss.getRole();
cIssue.setType(issueType);
cIssue.setUpdate_date(new Date());
cIssue.setProgram_id(programId);
// add it to database
List<CaseManagementIssue> uList = new ArrayList<CaseManagementIssue>();
uList.add(cIssue);
caseManagementMgr.saveAndUpdateCaseIssues(uList);
// add new issues to ongoing concern
//caseManagementMgr.addNewIssueToConcern((String) cform.getDemoNo(), iss.getDescription());
return cIssue;
}
示例2: applyIssueFilter
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
private List<CaseManagementNote> applyIssueFilter(List<CaseManagementNote> notes, String[] issueId) {
// if no filter return everything
if (Arrays.binarySearch(issueId, "a") >= 0) return notes;
List<CaseManagementNote> filteredNotes = new ArrayList<CaseManagementNote>();
for (Iterator<CaseManagementNote> iter = notes.listIterator(); iter.hasNext();) {
CaseManagementNote note = iter.next();
List<CaseManagementIssue> issues = cmeIssueNotesDao.getNoteIssues((Integer.valueOf(note.getId().toString())));
for (CaseManagementIssue issue : issues) {
if (Arrays.binarySearch(issueId, String.valueOf(issue.getId())) >= 0) {
filteredNotes.add(note);
break;
}
}
}
return filteredNotes;
}
示例3: addGroupIssues
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
protected void addGroupIssues(LoggedInInfo loggedInInfo, ArrayList<CheckBoxBean> checkBoxBeanList, int demographicNo, boolean hideInactiveIssues) {
if (!loggedInInfo.getCurrentFacility().isEnableGroupNotes()) return;
try {
// get all the issues for which we have group notes for
List<GroupNoteLink> links = this.groupNoteDao.findLinksByDemographic(demographicNo);
for (GroupNoteLink link : links) {
int noteId = link.getNoteId();
List<CaseManagementIssue> issues = this.caseManagementMgr.getIssuesByNote(noteId);
logger.warn("we are doing nothing with this: " + issues);
}
/*
* for (CachedDemographicIssue cachedDemographicIssue : remoteIssues) { try { IssueDisplay issueDisplay=null;
*
* if (!hideInactiveIssues) issueDisplay=getIssueToDisplay(cachedDemographicIssue); else if (!cachedDemographicIssue.isResolved()) issueDisplay=getIssueToDisplay(cachedDemographicIssue);
*
* if (issueDisplay!=null) { CheckBoxBean checkBoxBean=new CheckBoxBean(); checkBoxBean.setIssueDisplay(issueDisplay); checkBoxBean.setUsed(caseManagementNoteDao.haveIssue(issueDisplay.getCode(), demographicNo));
* checkBoxBeanList.add(checkBoxBean); } } catch (Exception e) { log.error("Unexpected error.", e); } }
*/
} catch (Exception e) {
logger.error("Unexpected error.", e);
}
}
示例4: getIssueDisplay
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
protected IssueDisplay getIssueDisplay(String providerNo, Integer programId, CaseManagementIssue cmi) {
IssueDisplay issueDisplay = new IssueDisplay();
if (programId != null) issueDisplay.writeAccess = cmi.isWriteAccess(providerNo, programId);
issueDisplay.acute = cmi.isAcute() ? "acute" : "chronic";
issueDisplay.certain = cmi.isCertain() ? "certain" : "uncertain";
long issueId = cmi.getIssue_id();
Issue issue = issueDao.getIssue(issueId);
issueDisplay.code = issue.getCode();
issueDisplay.codeType = OscarProperties.getInstance().getProperty("COMMUNITY_ISSUE_CODETYPE").toUpperCase();
issueDisplay.description = issue.getDescription();
issueDisplay.location = "local";
issueDisplay.major = cmi.isMajor() ? "major" : "not major";
issueDisplay.priority = issue.getPriority();
issueDisplay.resolved = cmi.isResolved() ? "resolved" : "unresolved";
issueDisplay.role = issue.getRole();
issueDisplay.sortOrderId = issue.getSortOrderId();
return issueDisplay;
}
示例5: calculateIsCpp
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
private boolean calculateIsCpp(){
if(this.caseManagementIssues == null){
return false;
}
for (CaseManagementIssue caseManagementIssue : this.caseManagementIssues)
{
for (int cppIdx = 0; cppIdx < CppUtils.cppCodes.length; cppIdx++)
{
if (caseManagementIssue.getIssue().getCode().equals(CppUtils.cppCodes[cppIdx]))
{
return(true);
}
}
}
return(false);
}
示例6: filterOutCpp
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
public List<CaseManagementNote> filterOutCpp(Collection<CaseManagementNote> notes) {
List<CaseManagementNote> filteredNotes = new ArrayList<CaseManagementNote>();
for(CaseManagementNote note:notes) {
boolean skip=false;
for(CaseManagementIssue issue:note.getIssues()) {
for(int x=0;x<cppIssues.length;x++) {
if(issue.getIssue().getCode().equals(cppIssues[x])) {
skip=true;
}
}
}
if(!skip) {
filteredNotes.add(note);
}
}
return filteredNotes;
}
示例7: filterIssueList
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
private List<CaseManagementIssue> filterIssueList(List<CaseManagementIssue> allIssue, List accessRight) {
List<String> role = secRoleDao.findAllNames();
List<CaseManagementIssue> filteredIssue = new ArrayList<CaseManagementIssue>();
for (int i = 0; i < role.size(); i++) {
Iterator<CaseManagementIssue> itr = allIssue.iterator();
String rl = role.get(i);
String right = rl.trim() + "issues";
boolean inaccessRight = inAccessRight(right, issueAccessType, accessRight);
if (inaccessRight) {
String iRole = rl;
while (itr.hasNext()) {
CaseManagementIssue iss = itr.next();
if (iss.getIssue().getRole().trim().equalsIgnoreCase(iRole.trim())) {
filteredIssue.add(iss);
}
}
}
}
return filteredIssue;
}
示例8: updateCurrentIssueToCPP
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
public void updateCurrentIssueToCPP(String demoNo, List issueList) {
CaseManagementCPP cpp = caseManagementCPPDAO.getCPP(demoNo);
if (cpp == null) {
cpp = new CaseManagementCPP();
cpp.setDemographic_no(demoNo);
}
String ongoing = "";
Iterator itr = issueList.iterator();
while (itr.hasNext()) {
CaseManagementIssue iss = (CaseManagementIssue) itr.next();
ongoing = ongoing + iss.getIssue().getDescription() + "\n";
}
cpp.setOngoingConcerns(ongoing);
caseManagementCPPDAO.saveCPP(cpp);
OscarProperties properties = OscarProperties.getInstance();
if (!Boolean.parseBoolean(properties.getProperty("AbandonOldChart", "false"))) {
eChartDao.updateEchartOngoing(cpp);
}
}
示例9: updateIssue
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
public void updateIssue(String demographicNo, Long originalIssueId, Long newIssueId) {
List<CaseManagementIssue> issues = this.caseManagementIssueDAO.getIssuesByDemographic(demographicNo);
for (CaseManagementIssue issue : issues) {
boolean save = false;
if (issue.getIssue_id() == originalIssueId.longValue()) {
issue.setIssue_id(newIssueId.longValue());
issue.setIssue(null);
save = true;
}
if (save) {
this.caseManagementIssueDAO.saveIssue(issue);
}
}
/*
* String[] issueIdList = new String[1]; issueIdList[0] = String.valueOf(newIssueId); List<CaseManagementNote> notes = this.caseManagementNoteDAO.getNotesByDemographic(demographicNo); for(CaseManagementNote note:notes) { Set<CaseManagementIssue>
* issues = note.getIssues(); for(CaseManagementIssue issue:issues) { if(issue.getIssue().getId().equals(originalIssueId)) { //update this CaseManagementIssue issue.setIssue(null); issue.setIssue_id(newIssueId.longValue()); } }
* this.caseManagementNoteDAO.saveNote(note); }
*/
}
示例10: filterOutCpp
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
public List<CaseManagementNote> filterOutCpp(
Collection<CaseManagementNote> notes) {
List<CaseManagementNote> filteredNotes = new ArrayList<CaseManagementNote>();
for (CaseManagementNote note : notes) {
boolean skip = false;
for (CaseManagementIssue issue : note.getIssues()) {
for (int x = 0; x < cppIssues.length; x++) {
if (issue.getIssue().getCode().equals(cppIssues[x])) {
skip = true;
}
}
}
if (!skip) {
filteredNotes.add(note);
}
}
return filteredNotes;
}
示例11: getCMIssue
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
Set<CaseManagementIssue> getCMIssue(String code) {
CaseManagementIssue cmIssu = new CaseManagementIssue();
cmIssu.setDemographic_no(demographicNo);
Issue isu = caseManagementManager.getIssueInfoByCode(StringUtils.noNull(code));
cmIssu.setIssue_id(isu.getId());
if(isu.getType()!=null)
cmIssu.setType(isu.getType());
else
cmIssu.setType("");
//Check issue exists?
Set<CaseManagementIssue> sCmIssu = new HashSet<CaseManagementIssue>();
CaseManagementIssue cmIssue_existing = caseManagementManager.getIssueById(demographicNo, isu.getId().toString());
if(cmIssue_existing == null) {
caseManagementManager.saveCaseIssue(cmIssu);
sCmIssu.add(cmIssu);
} else {
sCmIssu.add(cmIssue_existing);
}
return sCmIssu;
}
示例12: getCaseManagementNoteWithIssueSet
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
CaseManagementNote getCaseManagementNoteWithIssueSet(Date observationDate,Demographic demographic,String providerNo,String note,Integer oscarProgramID,Set<CaseManagementIssue> caseManagementIssue){
CaseManagementNote cmn=new CaseManagementNote();
cmn.setUpdate_date(observationDate);
cmn.setObservation_date(observationDate);
cmn.setDemographic_no(""+demographic.getDemographicNo());
cmn.setProviderNo(providerNo);
cmn.setNote(note);
cmn.setSigned(true);
cmn.setSigning_provider_no(providerNo);
cmn.setProgram_no(""+oscarProgramID);
cmn.setReporter_caisi_role("1");
cmn.setReporter_program_team("0");
cmn.setPassword("NULL");
cmn.setLocked(false);
cmn.setHistory("note");
cmn.setPosition(0);
cmn.setIssues(caseManagementIssue);
return cmn;
}
示例13: getCaseManagementNote
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
CaseManagementNote getCaseManagementNote(Date observationDate,Demographic demographic,String providerNo,String note,Integer oscarProgramID,CaseManagementIssue caseManagementIssue){
CaseManagementNote cmn=new CaseManagementNote();
cmn.setUpdate_date(observationDate);
cmn.setObservation_date(observationDate);
cmn.setDemographic_no(""+demographic.getDemographicNo());
cmn.setProviderNo(providerNo);
cmn.setNote(note);
cmn.setSigned(true);
cmn.setSigning_provider_no(providerNo);
cmn.setProgram_no(""+oscarProgramID);
cmn.setReporter_caisi_role("1");
cmn.setReporter_program_team("0");
cmn.setPassword("NULL");
cmn.setLocked(false);
cmn.setHistory("note");
cmn.setPosition(0);
if (caseManagementIssue != null){
Set<CaseManagementIssue> set = new HashSet();
set.add(caseManagementIssue);
cmn.setIssues(set);
}
return cmn;
}
示例14: applyIssueFilter
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
private List<CaseManagementNote> applyIssueFilter(
List<CaseManagementNote> notes, String[] issueId) {
// if no filter return everything
if (Arrays.binarySearch(issueId, "a") >= 0)
return notes;
List<CaseManagementNote> filteredNotes = new ArrayList<CaseManagementNote>();
for (Iterator<CaseManagementNote> iter = notes.listIterator(); iter
.hasNext();) {
CaseManagementNote note = iter.next();
List<CaseManagementIssue> issues = cmeIssueNotesDao
.getNoteIssues((Integer.valueOf(note.getId().toString())));
for (CaseManagementIssue issue : issues) {
if (Arrays.binarySearch(issueId, String.valueOf(issue.getId())) >= 0) {
filteredNotes.add(note);
break;
}
}
}
return filteredNotes;
}
示例15: addLocalIssues
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入依赖的package包/类
protected void addLocalIssues(ArrayList<CheckBoxBean> checkBoxBeanList,
Integer demographicNo, boolean hideInactiveIssues, Integer programId) {
List<CaseManagementIssue> localIssues = caseManagementManager
.getIssues(demographicNo, hideInactiveIssues ? false : null);
for (CaseManagementIssue cmi : localIssues) {
CheckBoxBean checkBoxBean = new CheckBoxBean();
checkBoxBean.setIssue(cmi);
IssueDisplay issueDisplay = getIssueDisplay(programId, cmi);
checkBoxBean.setIssueDisplay(issueDisplay);
checkBoxBean.setUsed(caseManagementNoteDao.haveIssue(cmi.getIssue()
.getCode(), demographicNo));
checkBoxBeanList.add(checkBoxBean);
}
}