本文整理汇总了Java中org.oscarehr.common.dao.Hl7TextInfoDao.updateResultStatusByLabId方法的典型用法代码示例。如果您正苦于以下问题:Java Hl7TextInfoDao.updateResultStatusByLabId方法的具体用法?Java Hl7TextInfoDao.updateResultStatusByLabId怎么用?Java Hl7TextInfoDao.updateResultStatusByLabId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.dao.Hl7TextInfoDao
的用法示例。
在下文中一共展示了Hl7TextInfoDao.updateResultStatusByLabId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateLabStatus
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private void updateLabStatus(int n) {
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
List<Hl7TextInfo> labList = hl7TextInfoDao.getAllLabsByLabNumberResultStatus();
Collections.sort(labList, Collections.reverseOrder(new Comparator<Hl7TextInfo>() {
public int compare(Hl7TextInfo o1, Hl7TextInfo o2) {
return o1.getId().compareTo(o2.getId());
}
}));
ListIterator<Hl7TextInfo> iter = labList.listIterator();
while (iter.hasNext() && n>0) {
Hl7TextInfo lab = iter.next();
if (!oscar.Misc.getString(lab.getResultStatus()).equals("A")) {
oscar.oscarLab.ca.all.parsers.MessageHandler h = Factory.getHandler(((Integer)lab.getLabNumber()).toString());
int i=0;
int j=0;
String resultStatus = "";
while(resultStatus.equals("") && i < h.getOBRCount()){
j = 0;
while(resultStatus.equals("") && j < h.getOBXCount(i)){
logger.info("obr("+i+") obx("+j+") abnormal ? : "+h.getOBXAbnormalFlag(i, j));
if(h.isOBXAbnormal(i, j)){
resultStatus = "A";
hl7TextInfoDao.updateResultStatusByLabId("A", lab.getLabNumber());
}
j++;
}
i++;
}
}
n--;
}
}
示例2: updateLabStatus
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private void updateLabStatus(int n) {
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
List<Hl7TextInfo> labList = hl7TextInfoDao.getAllLabsByLabNumberResultStatus();
ListIterator<Hl7TextInfo> iter = labList.listIterator();
while (iter.hasNext() && n>0) {
if (!iter.next().getResultStatus().equals("A")) {
oscar.oscarLab.ca.all.parsers.MessageHandler h = Factory.getHandler(((Integer)iter.next().getLabNumber()).toString());
int i=0;
int j=0;
String resultStatus = "";
while(resultStatus.equals("") && i < h.getOBRCount()){
j = 0;
while(resultStatus.equals("") && j < h.getOBXCount(i)){
logger.info("obr("+i+") obx("+j+") abnormal ? : "+h.getOBXAbnormalFlag(i, j));
if(h.isOBXAbnormal(i, j)){
resultStatus = "A";
hl7TextInfoDao.updateResultStatusByLabId("A", iter.next().getLabNumber());
}
j++;
}
i++;
}
}
n--;
}
}
示例3: updateLabStatus
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private void updateLabStatus(int n) {
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
List<Hl7TextInfo> labList = hl7TextInfoDao.getAllLabsByLabNumberResultStatus();
ListIterator<Hl7TextInfo> iter = labList.listIterator();
while (iter.hasNext() && n>0) {
if (!iter.next().getResultStatus().equals("A")) {
oscar.oscarLab.ca.all.parsers.MessageHandler h = Factory.getHandler(((Integer)iter.next().getLabNumber()).toString());
int i=0;
int j=0;
String resultStatus = "";
while(resultStatus.equals("") && i < h.getOBRCount()){
j = 0;
while(resultStatus.equals("") && j < h.getOBXCount(i)){
logger.info("obr("+i+") obx("+j+") abnormal ? : "+h.getOBXAbnormalFlag(i, j));
if(h.isOBXAbnormal(i, j)){
resultStatus = "A";
hl7TextInfoDao.updateResultStatusByLabId("A", iter.next().getLabNumber());
}
j++;
}
i++;
}
}
n--;
}
}
示例4: updateLabStatus
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private void updateLabStatus(int n) {
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
List<Hl7TextInfo> labList = hl7TextInfoDao.getAllLabsByLabNumberResultStatus();
ListIterator<Hl7TextInfo> iter = labList.listIterator();
while (iter.hasNext() && n>0) {
if (!iter.next().getResultStatus().equals("A")) {
oscar.oscarLab.ca.all.parsers.MessageHandler h = Factory.getHandler(((Integer)iter.next().getLabNumber()).toString());
int i=0;
int j=0;
String resultStatus = "";
while(resultStatus.equals("") && i < h.getOBRCount()){
j = 0;
while(resultStatus.equals("") && j < h.getOBXCount(i)){
logger.info("obr("+i+") obx("+j+") abnormal ? : "+h.getOBXAbnormalFlag(i, j));
if(h.isOBXAbnormal(i, j)){
resultStatus = "A";
hl7TextInfoDao.updateResultStatusByLabId("A", iter.next().getLabNumber());
}
j++;
}
i++;
}
}
n--;
}
}
示例5: updateLabStatus
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private void updateLabStatus(int n)
{
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao)SpringUtils.getBean("hl7TextInfoDao");
List<Hl7TextInfo> labList = hl7TextInfoDao.getAllLabsByLabNumberResultStatus();
for (Hl7TextInfo hinfo : labList)
while (n > 0) {
if (hinfo.getResultStatus().equals("A")) {
Integer labNum = Integer.valueOf(hinfo.getLabNumber());
oscar.oscarLab.ca.all.parsers.MessageHandler h = Factory.getHandler(labNum.toString());
int i = 0;
int j = 0;
String resultStatus = "";
while ((resultStatus.equals("")) && (i < h.getOBRCount())) {
j = 0;
while ((resultStatus.equals("")) && (j < h.getOBXCount(i))) {
this.logger.info("obr(" + i + ") obx(" + j + ") abnormal ? : " + h.getOBXAbnormalFlag(i, j));
if (h.isOBXAbnormal(i, j)) {
resultStatus = "A";
hl7TextInfoDao.updateResultStatusByLabId("A", hinfo.getLabNumber());
}
j++;
}
i++;
}
}
n--;
}
}