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


Java Dxresearch.getId方法代码示例

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


在下文中一共展示了Dxresearch.getId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fillDx

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
private void fillDx(LoggedInInfo loggedInInfo,List<SummaryItemTo1> list,Integer demographicNo,int count){

		List<Dxresearch> diseaseList = dxManager.getDiseases(loggedInInfo,  demographicNo);
        String description = null;
        Character status;
        String CodeSys;

        for( Dxresearch disease :diseaseList ) {
            status = disease.getStatus();
            if( status != null && status.compareTo('D') == 0 ) {
                continue;
            }
            CodeSys = disease.getCodingSystem();

            String daoName = AbstractCodeSystemDao.getDaoName(AbstractCodeSystemDao.codingSystem.valueOf(CodeSys));
            @SuppressWarnings("unchecked")
            AbstractCodeSystemDao<AbstractCodeSystemModel<?>> csDao = (AbstractCodeSystemDao<AbstractCodeSystemModel<?>>) SpringUtils.getBean(daoName);
            String code = disease.getDxresearchCode();
            if (code != null && !code.isEmpty()) {
                AbstractCodeSystemModel<?> codingSystemEntity = csDao.findByCode(code);
                description = codingSystemEntity.getDescription();
            }
            String tmp = code + " " + description;
            String strTitle = StringUtils.maxLenString(tmp, MAX_LEN_TITLE, CROP_LEN_TITLE, ELLIPSES);
            
            SummaryItemTo1 summaryItem = new SummaryItemTo1(disease.getId(),strTitle,"action","diseases");
            summaryItem.setDate(disease.getStartDate());
            summaryItem.setAction("../oscarResearch/oscarDxResearch/setupDxResearch.do?quickList=&demographicNo="+demographicNo);
            list.add(summaryItem);
            count++;
        }	
	}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:33,代码来源:DxSummary.java

示例2: save

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void save(Dxresearch d) {
	if(d.getId() != null && d.getId().intValue()>0) {
		merge(d);
	} else {
		persist(d);
	}

}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:9,代码来源:DxresearchDAO.java

示例3: notifyByTickler

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void notifyByTickler(LoggedInInfo loggedInInfo,Integer demographicNo, List<String> reasons) {
	Demographic d = demographicDao.getDemographicById(demographicNo);
	
	String receiver = OscarProperties.getInstance().getProperty("ckd_notification_receiver");
	if(receiver == null || receiver.length()==0) {
		if(d != null) {
			receiver = d.getProviderNo();
		}
	}
	
	TicklerCreator tc = new TicklerCreator();
	String message = "Ontario Renal Network Pilot<br/>Please screen patient for CKD<br/>";
	for(String reason:reasons) {
		message += (reason + "<br/><br/>");
	}
	
	List<Measurement> egfrs = measurementDao.findByType(d.getDemographicNo(), "EGFR");
	List<Measurement> acrs = measurementDao.findByType(d.getDemographicNo(), "ACR");
	
	if(egfrs.size()>0) {
		message += "EGFR: " + egfrs.get(0).getDataField() + " observed on " + formatter.format(egfrs.get(0).getDateObserved()) + "<br/>";
	} else {
		message += "EGFR: None"  + "<br/>";
	}
	
	if(acrs.size()>0) {
		message += "ACR: " + acrs.get(0).getDataField() + " observed on " + formatter.format(acrs.get(0).getDateObserved()) + "<br/>";
	} else {
		message += "ACR: None"  + "<br/>";
	}
	
	String flowsheet = OscarProperties.getInstance().getProperty("ckd_flowsheet","indicators");
	if(flowsheet.equals("indicators")) {
		message += "Go to CDM Indicators <a href=\"javascript:void(0);\" onclick=\"popupPage(700,1000,'../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+demographicNo+"&amp;template=diab3');return false;\">here</a><br/>";
	} else if(flowsheet.equals("diabetes")) {
		message += "Go to Diabetes Flowsheet <a href=\"javascript:void(0)\" onclick=\"popupPage(700,1000,'../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+demographicNo+"&amp;template=diab2');return false;\">here</a><br/>";
	}
	
	Dxresearch screeningDx = null;
	List<Dxresearch> dxs = dxResearchDao.findByDemographicNoResearchCodeAndCodingSystem(d.getDemographicNo(), "CKDSCREEN", "OscarCode");
	for(Dxresearch dx:dxs) {
		if(dx.getStatus() == 'A')
			screeningDx = dx;
	}
	
	if(screeningDx != null) {
		message += "Screening complete - <a href=\"javascript:void(0)\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearchUpdate.do?status=C&did="+screeningDx.getId()+"&demographicNo="+d.getDemographicNo()+"&providerNo=-1');\">Click Here</a>.<br/>";
		message += "Screening not appropriate - <a href=\"javascript:void(0)\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearchUpdate.do?status=D&did="+screeningDx.getId()+"&demographicNo="+d.getDemographicNo()+"&providerNo=-1');\">Click Here</a>.<br/>";
	}

	dxs = dxResearchDao.findByDemographicNoResearchCodeAndCodingSystem(d.getDemographicNo(), "585", "icd9");
	if(dxs.size() == 0) {
		message += "<br/>Add 'Chronic Renal Failure' to Dx Registry, and prevent subsequent notifications - <a href=\"javascript:void(0);\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearch.do?selectedCodingSystem=icd9&xml_research1=585&xml_research2=&xml_research3=&xml_research4=&xml_research5=&demographicNo="+d.getDemographicNo()+"&quickList=default&forward=');\">Click Here</a></br/>";
	}
	
	
	 String labReqVer = oscar.OscarProperties.getInstance().getProperty("onare_labreqver","07");
	 if(labReqVer.equals("")) {labReqVer="07";}
	
	 
	 message += "<br/>Order Labs - <a title=\"Create Lab Requisition\" href=\"javascript:void(0);\" onclick=\"generateRenalLabReq("+d.getDemographicNo()+");return false;\">Lab Requisition</a><br/><br/>";
	
	tc.createTickler(loggedInInfo, demographicNo.toString(),"-1", message,receiver);
	
	logger.debug("Sent tickler notification to " + receiver + " regarding " + demographicNo + ":" + message);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:67,代码来源:CkdNotificationManager.java

示例4: notifyByTickler

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void notifyByTickler(Integer demographicNo, List<String> reasons) {
	Demographic d = demographicDao.getDemographicById(demographicNo);
	
	String receiver = OscarProperties.getInstance().getProperty("ckd_notification_receiver");
	if(receiver == null || receiver.length()==0) {
		if(d != null) {
			receiver = d.getProviderNo();
		}
	}
	
	TicklerCreator tc = new TicklerCreator();
	String message = "Ontario Renal Network Pilot<br/>Please screen patient for CKD<br/>";
	for(String reason:reasons) {
		message += (reason + "<br/><br/>");
	}
	
	List<Measurement> egfrs = measurementDao.findByType(d.getDemographicNo(), "EGFR");
	List<Measurement> acrs = measurementDao.findByType(d.getDemographicNo(), "ACR");
	
	if(egfrs.size()>0) {
		message += "EGFR: " + egfrs.get(0).getDataField() + " observed on " + formatter.format(egfrs.get(0).getDateObserved()) + "<br/>";
	} else {
		message += "EGFR: None"  + "<br/>";
	}
	
	if(acrs.size()>0) {
		message += "ACR: " + acrs.get(0).getDataField() + " observed on " + formatter.format(acrs.get(0).getDateObserved()) + "<br/>";
	} else {
		message += "ACR: None"  + "<br/>";
	}
	
	String flowsheet = OscarProperties.getInstance().getProperty("ckd_flowsheet","indicators");
	if(flowsheet.equals("indicators")) {
		message += "Go to CDM Indicators <a href=\"javascript:void(0);\" onclick=\"popupPage(700,1000,'../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+demographicNo+"&amp;template=diab3');return false;\">here</a><br/>";
	} else if(flowsheet.equals("diabetes")) {
		message += "Go to Diabetes Flowsheet <a href=\"javascript:void(0)\" onclick=\"popupPage(700,1000,'../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+demographicNo+"&amp;template=diab2');return false;\">here</a><br/>";
	}
	
	Dxresearch screeningDx = null;
	List<Dxresearch> dxs = dxResearchDao.findByDemographicNoResearchCodeAndCodingSystem(d.getDemographicNo(), "CKDSCREEN", "OscarCode");
	for(Dxresearch dx:dxs) {
		if(dx.getStatus() == 'A')
			screeningDx = dx;
	}
	
	if(screeningDx != null) {
		message += "Screening complete - <a href=\"javascript:void(0)\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearchUpdate.do?status=C&did="+screeningDx.getId()+"&demographicNo="+d.getDemographicNo()+"&providerNo=-1');\">Click Here</a>.<br/>";
		message += "Screening not appropriate - <a href=\"javascript:void(0)\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearchUpdate.do?status=D&did="+screeningDx.getId()+"&demographicNo="+d.getDemographicNo()+"&providerNo=-1');\">Click Here</a>.<br/>";
	}

	dxs = dxResearchDao.findByDemographicNoResearchCodeAndCodingSystem(d.getDemographicNo(), "585", "icd9");
	if(dxs.size() == 0) {
		message += "<br/>Add 'Chronic Renal Failure' to Dx Registry, and prevent subsequent notifications - <a href=\"javascript:void(0);\" onClick=\"popupPage(580,900,'../oscarResearch/oscarDxResearch/dxResearch.do?selectedCodingSystem=icd9&xml_research1=585&xml_research2=&xml_research3=&xml_research4=&xml_research5=&demographicNo="+d.getDemographicNo()+"&quickList=default&forward=');\">Click Here</a></br/>";
	}
	
	
	 String labReqVer = oscar.OscarProperties.getInstance().getProperty("onare_labreqver","07");
	 if(labReqVer.equals("")) {labReqVer="07";}
	
	 
	 message += "<br/>Order Labs - <a title=\"Create Lab Requisition\" href=\"javascript:void(0);\" onclick=\"generateRenalLabReq("+d.getDemographicNo()+");return false;\">Lab Requisition</a><br/><br/>";
	
	tc.createTickler(demographicNo.toString(),"-1", message,receiver);
	
	logger.debug("Sent tickler notification to " + receiver + " regarding " + demographicNo + ":" + message);
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:67,代码来源:CkdNotificationManager.java


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