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


Java Dxresearch.getUpdateDate方法代码示例

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


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

示例1: buildOngoingproblemsDiseaseRegistry

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
private void buildOngoingproblemsDiseaseRegistry(Demographic demo, PatientRecord patientRecord) {
	List<Dxresearch> dxResearchList = dxresearchDAO.getDxResearchItemsByPatient(demo.getDemographicNo());
	String description;
	String dateFormat = "yyyy-MM-dd";
	Date date;
	Character status;

	for( Dxresearch dxResearch : dxResearchList ) {
		status = dxResearch.getStatus();
		if( status.compareTo('D') == 0 ) {
			continue;
		}
		ProblemList problemList = patientRecord.addNewProblemList();
		StandardCoding standardCoding = problemList.addNewDiagnosisCode();
		standardCoding.setStandardCodingSystem(dxResearch.getCodingSystem());
		standardCoding.setStandardCode(dxResearch.getDxresearchCode());

		if( "icd9".equalsIgnoreCase(dxResearch.getCodingSystem()) ) {
			List<Icd9>icd9Code = icd9Dao.getIcd9Code(standardCoding.getStandardCode());
			if( !icd9Code.isEmpty() ) {
				description = icd9Code.get(0).getDescription();
				standardCoding.setStandardCodeDescription(description);
			}
		}

		date = dxResearch.getStartDate();
		if( date != null ) {
			this.putPartialDate(problemList.addNewOnsetDate(), date, dateFormat);
		}

		if( status.compareTo('C') == 0 ) {
			date = dxResearch.getUpdateDate();
			if( date != null ) {
				this.putPartialDate(problemList.addNewResolutionDate(), date, dateFormat);
			}
		}
	}
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:39,代码来源:CihiExportPHC_VRSAction.java

示例2: pushDxresearchs

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
private void pushDxresearchs(Date lastDataUpdated, Facility facility, DemographicWs demographicService, Integer demographicId) throws ShutdownException {
	logger.debug("pushing dxresearchs facilityId:" + facility.getId() + ", demographicId:" + demographicId);

	List<Dxresearch> dxresearchs = dxresearchDao.getByDemographicNo(demographicId);
	if (dxresearchs.size() == 0) return;

	StringBuilder sentIds = new StringBuilder();

	for (Dxresearch dxresearch : dxresearchs) {
		if (dxresearch.getUpdateDate() != null && dxresearch.getUpdateDate().before(lastDataUpdated)) continue;

		CachedDxresearch cachedDxresearch = new CachedDxresearch();
		FacilityIdIntegerCompositePk facilityIdIntegerCompositePk = new FacilityIdIntegerCompositePk();
		facilityIdIntegerCompositePk.setCaisiItemId(dxresearch.getId().intValue());
		cachedDxresearch.setFacilityIdIntegerCompositePk(facilityIdIntegerCompositePk);

		cachedDxresearch.setCaisiDemographicId(demographicId);
		cachedDxresearch.setDxresearchCode(dxresearch.getDxresearchCode());
		cachedDxresearch.setCodingSystem(dxresearch.getCodingSystem());
		cachedDxresearch.setStartDate(MiscUtils.toCalendar(dxresearch.getStartDate()));
		cachedDxresearch.setUpdateDate(MiscUtils.toCalendar(dxresearch.getUpdateDate()));
		cachedDxresearch.setStatus(String.valueOf(dxresearch.getStatus()));

		ArrayList<CachedDxresearch> cachedDxresearchs = new ArrayList<CachedDxresearch>();
		cachedDxresearchs.add(cachedDxresearch);
		demographicService.setCachedDxresearch(cachedDxresearchs);

		sentIds.append("," + dxresearch.getId());
	}

	throttleAndChecks();
	conformanceTestLog(facility, "DxResearch", sentIds.toString());
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:34,代码来源:CaisiIntegratorUpdateTask.java

示例3: buildOngoingproblemsDiseaseRegistry

import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
private void buildOngoingproblemsDiseaseRegistry(Demographic demo, PatientRecord patientRecord) {
	List<Dxresearch> dxResearchList = dxresearchDAO.getDxResearchItemsByPatient(demo.getDemographicNo());
	String description;
	String dateFormat = "yyyy-MM-dd";
	Date date;
	Character status;

	for( Dxresearch dxResearch : dxResearchList ) {
		status = dxResearch.getStatus();
		if( status.compareTo('D') == 0 ) {
			continue;
		}
		ProblemList problemList = patientRecord.addNewProblemList();
		StandardCoding standardCoding = problemList.addNewDiagnosisCode();
		standardCoding.setStandardCodingSystem(dxResearch.getCodingSystem());
		standardCoding.setStandardCode(dxResearch.getDxresearchCode());
		
		if( "icd9".equalsIgnoreCase(dxResearch.getCodingSystem()) ) {
			List<Icd9> icd9List = icd9Dao.getIcd9Code(standardCoding.getStandardCode());
			if(icd9List!=null && icd9List.size()>0) {
				description = icd9List.get(0).getDescription();
				standardCoding.setStandardCodeDescription(description);
			}				
		}

		date = dxResearch.getStartDate();
		if( date != null ) {
			this.putPartialDate(problemList.addNewOnsetDate(), date, dateFormat);
		}

		if( status.compareTo('C') == 0 ) {
			date = dxResearch.getUpdateDate();
			if( date != null ) {
				this.putPartialDate(problemList.addNewResolutionDate(), date, dateFormat);
			}
		}
	}
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:39,代码来源:CihiExportPHC_VRSAction.java


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