本文整理汇总了Java中org.oscarehr.common.model.Dxresearch.getDemographicNo方法的典型用法代码示例。如果您正苦于以下问题:Java Dxresearch.getDemographicNo方法的具体用法?Java Dxresearch.getDemographicNo怎么用?Java Dxresearch.getDemographicNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Dxresearch
的用法示例。
在下文中一共展示了Dxresearch.getDemographicNo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPatientRegisted
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public List<DxRegistedPTInfo> getPatientRegisted(List<Dxresearch> dList, List<String> doctorList) {
List<DxRegistedPTInfo> rList = new ArrayList<DxRegistedPTInfo>();
Iterator<Dxresearch> i = dList.listIterator();
while (i.hasNext()) {
Dxresearch dxres = i.next();
Integer demographicNo = dxres.getDemographicNo();
DemographicDao demographicDao = SpringUtils.getBean(DemographicDao.class);
Demographic demo = demographicDao.getClientByDemographicNo(demographicNo);
if (demo != null ) {
String demoprovider = demo.getProviderNo();
boolean isDoctorPatient = false;
// if patient's doctor is not in the doctor's list then skip, "*" means all doctor
Iterator<String> j = doctorList.listIterator();
while (j.hasNext()) {
String providerNo = j.next();
if (providerNo.equalsIgnoreCase("*") || providerNo.equalsIgnoreCase(demoprovider)) {
isDoctorPatient = true;
break;
}
}
if (isDoctorPatient && demo.getPatientStatus().equalsIgnoreCase("AC"))
rList.add(new DxRegistedPTInfo(demo.getFirstName(),demo.getLastName(),demo.getSex(),
demo.getYearOfBirth()+"-"+demo.getMonthOfBirth()+"-"+demo.getDateOfBirth(),
demo.getPhone(),demo.getHin(),dxres.getCodingSystem(),dxres.getDxresearchCode(),
dxres.getStartDate().toString(),dxres.getUpdateDate().toString(),
dxres.getStatus().toString()));
}
}
if (rList != null && rList.size() > 0) {
return rList;
} else {
return null;
}
}