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


Java Hl7TextInfoDao.getMatchingLabs方法代码示例

本文整理汇总了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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:GDMLHandler.java

示例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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:37,代码来源:TDISHandler.java

示例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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:HRMXMLHandler.java

示例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;
 }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:33,代码来源:PFHTHandler.java

示例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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:MEDVUEHandler.java

示例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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:BioTestHandler.java

示例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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:41,代码来源:AlphaHL7Handler.java

示例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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:33,代码来源:HRSRHHandler.java

示例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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:33,代码来源:KMHHandler.java

示例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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:34,代码来源:TRUENORTHHandler.java


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