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
|
Rev | Line | |
---|
[507] | 1 | /*
|
---|
| 2 | * To change this template, choose Tools | Templates
|
---|
| 3 | * and open the template in the editor.
|
---|
| 4 | */
|
---|
| 5 | package gov.hhs.fha.nhinc.adaptercomponentmpi;
|
---|
| 6 |
|
---|
| 7 | import org.apache.commons.logging.Log;
|
---|
| 8 | import org.apache.commons.logging.LogFactory;
|
---|
| 9 | import gov.hhs.fha.nhinc.adaptercomponentmpi.hl7parsers.HL7Parser201305;
|
---|
| 10 | import gov.hhs.fha.nhinc.mpilib.*;
|
---|
| 11 | import org.hl7.v3.*;
|
---|
| 12 |
|
---|
| 13 | /**
|
---|
| 14 | *
|
---|
| 15 | * @author Jon Hoppesch
|
---|
| 16 | */
|
---|
| 17 | public 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.