当前位置: 首页>>代码示例>>Java>>正文


Java CaseManagementIssue.setIssue方法代码示例

本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.setIssue方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.setIssue方法的具体用法?Java CaseManagementIssue.setIssue怎么用?Java CaseManagementIssue.setIssue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.casemgmt.model.CaseManagementIssue的用法示例。


在下文中一共展示了CaseManagementIssue.setIssue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
      }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:27,代码来源:BaseCaseManagementEntryAction.java

示例2: 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); }
	 */
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:21,代码来源:CaseManagementManager.java


注:本文中的org.oscarehr.casemgmt.model.CaseManagementIssue.setIssue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。