source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/MpiEJB/src/java/gov/hhs/fha/nhinc/adaptercomponentmpi/MpiDataAccess.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: 1.2 KB
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package gov.hhs.fha.nhinc.adaptercomponentmpi;
6
7import org.apache.commons.logging.Log;
8import org.apache.commons.logging.LogFactory;
9import gov.hhs.fha.nhinc.adaptercomponentmpi.hl7parsers.HL7Parser201305;
10import gov.hhs.fha.nhinc.mpilib.*;
11import org.hl7.v3.*;
12
13/**
14 *
15 * @author Jon Hoppesch
16 */
17public class MpiDataAccess {
18 private static Log log = LogFactory.getLog(MpiDataAccess.class);
19 public static Patients LookupPatients(PRPAMT201306UVParameterList queryParams) {
20 return LookupPatients(queryParams, true);
21 }
22
23 public static Patients LookupPatients(PRPAMT201306UVParameterList queryParams, boolean AllowSearchByDemographics) {
24 return LookupPatients(HL7Parser201305.ExtractMpiPatientFromQueryParams(queryParams), AllowSearchByDemographics);
25 }
26
27 public static Patients LookupPatients(Patient searchParams) {
28 return LookupPatients(searchParams,true);
29 }
30 public static Patients LookupPatients(Patient searchParams, boolean AllowSearchByDemographics) {
31 MiniMpi mpi = MiniMpi.GetMpiInstance();
32 return mpi.Search(searchParams,AllowSearchByDemographics);
33 }
34}
Note: See TracBrowser for help on using the repository browser.