本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.setIssue_id方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.setIssue_id方法的具体用法?Java CaseManagementIssue.setIssue_id怎么用?Java CaseManagementIssue.setIssue_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.casemgmt.model.CaseManagementIssue
的用法示例。
在下文中一共展示了CaseManagementIssue.setIssue_id方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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); }
*/
}
示例3: 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;
}
示例4: getCaseMangementIssue
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
CaseManagementIssue getCaseMangementIssue(Demographic demographic,Issue issue,Integer oscarProgramID,String type){
CaseManagementIssue caseManagementIssue = new CaseManagementIssue();
caseManagementIssue.setDemographic_no(""+demographic.getDemographicNo());
caseManagementIssue.setIssue_id(issue.getId());
caseManagementIssue.setProgram_id(oscarProgramID);
caseManagementIssue.setType(type);
return caseManagementIssue;
}
示例5: 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("");
caseManagementManager.saveCaseIssue(cmIssu);
Set<CaseManagementIssue> sCmIssu = new HashSet<CaseManagementIssue>();
sCmIssu.add(cmIssu);
return sCmIssu;
}