本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.setType方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.setType方法的具体用法?Java CaseManagementIssue.setType怎么用?Java CaseManagementIssue.setType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.casemgmt.model.CaseManagementIssue
的用法示例。
在下文中一共展示了CaseManagementIssue.setType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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;
}
示例3: 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;
}
示例4: 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;
}