source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/MpiManagerEJB/src/java/gov/hhs/fha/nhinc/adaptermpimanager/CommonChecks.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 818 bytes
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package gov.hhs.fha.nhinc.adaptermpimanager;
7
8import org.apache.commons.logging.Log;
9import org.apache.commons.logging.LogFactory;
10import gov.hhs.fha.nhinc.mpilib.Patients;
11
12/**
13 *
14 * @author mflynn02
15 */
16public class CommonChecks {
17 private static Log log = LogFactory.getLog(PatientSaver.class);
18 public static boolean isSingleSearchResult(Patients patients) {
19 return ((patients != null) && (patients.size() == 1));
20 }
21
22 public static boolean isMultipleSearchResult(Patients patients) {
23 return ((patients != null) && (patients.size() > 1));
24 }
25
26 public static boolean isZeroSearchResult(Patients patients) {
27 return ((patients == null) || (patients.size() == 0));
28 }
29
30
31}
Note: See TracBrowser for help on using the repository browser.