當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。