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


Java CaseManagementIssue.setType方法代码示例

本文整理汇总了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;
      }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:27,代码来源:BaseCaseManagementEntryAction.java

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

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

示例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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:16,代码来源:ImportDemographicDataAction4.java


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