本文整理汇总了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);
}
}
}
}
示例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());
}
示例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);
}
}
}
}