本文整理汇总了Java中org.oscarehr.common.dao.Hl7TextInfoDao.getMatchingLabs方法的典型用法代码示例。如果您正苦于以下问题:Java Hl7TextInfoDao.getMatchingLabs方法的具体用法?Java Hl7TextInfoDao.getMatchingLabs怎么用?Java Hl7TextInfoDao.getMatchingLabs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.dao.Hl7TextInfoDao
的用法示例。
在下文中一共展示了Hl7TextInfoDao.getMatchingLabs方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMatchingGDMLLabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingGDMLLabs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for ( Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例2: getMatchingHL7Labs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingHL7Labs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for (Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例3: getMatchingHL7Labs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingHL7Labs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for ( Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例4: getMatchingPFHTlabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingPFHTlabs(String hl7Body){
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try{
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for ( Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
}catch(Exception e){
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
//if there have been no labs added to the database yet just return this lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例5: getMatchingHL7Labs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingHL7Labs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for ( Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例6: getMatchingBioTestLabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingBioTestLabs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for ( Hl7TextMessageInfo l: matchingLabs ) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A==l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例7: getMatchingAlphaLabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingAlphaLabs(String hl7Body) {
Base64 base64 = new Base64(0);
ArrayList<String> ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao) SpringUtils
.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao
.getMatchingLabs(hl7Body);
for (Hl7TextMessageInfo l : matchingLabs) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A,
"yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B,
"yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB)) {
monthsBetween = UtilDateUtilities
.getNumMonths(dateA, dateB);
} else {
monthsBetween = UtilDateUtilities
.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message
.getBytes("ASCII")), "ASCII"));
}
if (l.lab_no_A == l.lab_no_B)
break;
}
} catch (Exception e) {
logger.error("Exception in HL7 getMatchingLabs: ", e);
}
// if there have been no labs added to the database yet just return this
// lab
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例8: getMatchingHRSRHLabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingHRSRHLabs(String hl7Body)
{
Base64 base64 = new Base64();
ArrayList ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao)SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for (Hl7TextMessageInfo l : matchingLabs) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A, "yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B, "yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB))
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("UTF-8")), "UTF-8"));
}
if (l.lab_no_A == l.lab_no_B)
break;
}
}
catch (Exception e)
{
this.logger.error("Exception in HL7 getMatchingLabs: ", e);
}
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例9: getMatchingKMHlabs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingKMHlabs(String hl7Body)
{
Base64 base64 = new Base64();
ArrayList ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao)SpringUtils.getBean("hl7TextInfoDao");
try {
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for (Hl7TextMessageInfo l : matchingLabs) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A, "yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B, "yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB))
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("UTF-8")), "UTF-8"));
}
if (l.lab_no_A == l.lab_no_B)
break;
}
}
catch (Exception e)
{
this.logger.error("Exception in HL7 getMatchingLabs: ", e);
}
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}
示例10: getMatchingHL7Labs
import org.oscarehr.common.dao.Hl7TextInfoDao; //导入方法依赖的package包/类
private ArrayList<String> getMatchingHL7Labs(String hl7Body)
{
Base64 base64 = new Base64();
ArrayList ret = new ArrayList<String>();
int monthsBetween = 0;
Hl7TextInfoDao hl7TextInfoDao = (Hl7TextInfoDao)SpringUtils.getBean("hl7TextInfoDao");
try
{
List<Hl7TextMessageInfo> matchingLabs = hl7TextInfoDao.getMatchingLabs(hl7Body);
for (Hl7TextMessageInfo l : matchingLabs) {
Date dateA = UtilDateUtilities.StringToDate(l.labDate_A, "yyyy-MM-dd hh:mm:ss");
Date dateB = UtilDateUtilities.StringToDate(l.labDate_B, "yyyy-MM-dd hh:mm:ss");
if (dateA.before(dateB))
monthsBetween = UtilDateUtilities.getNumMonths(dateA, dateB);
else {
monthsBetween = UtilDateUtilities.getNumMonths(dateB, dateA);
}
if (monthsBetween < 4) {
ret.add(new String(base64.decode(l.message.getBytes("UTF-8")), "UTF-8"));
}
if (l.lab_no_A == l.lab_no_B)
break;
}
}
catch (Exception e)
{
this.logger.error("Exception in HL7 getMatchingLabs: ", e);
}
if (ret.size() == 0)
ret.add(hl7Body);
return ret;
}