source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/MpiEJB/src/java/gov/hhs/fha/nhinc/adaptercomponentmpi/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: 663 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.adaptercomponentmpi;
7
8import gov.hhs.fha.nhinc.mpilib.Patients;
9
10/**
11 *
12 * @author rayj
13 */
14public class CommonChecks {
15
16 public static boolean isSingleSearchResult(Patients patients) {
17 return ((patients != null) && (patients.size() == 1));
18 }
19
20 public static boolean isMultipleSearchResult(Patients patients) {
21 return ((patients != null) && (patients.size() > 1));
22 }
23
24 public static boolean isZeroSearchResult(Patients patients) {
25 return ((patients == null) || (patients.size() == 0));
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.