source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/MpiManagerEJB/src/java/gov/hhs/fha/nhinc/adaptermpimanager/MpiManager.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 */
5
6package gov.hhs.fha.nhinc.adaptermpimanager;
7
8import javax.ejb.Stateless;
9import javax.jws.WebService;
10
11/**
12 *
13 * @author mflynn02
14 */
15@WebService(serviceName = "AdapterMpiManagerService", portName = "AdapterMpiManagerPortTypeBindingPort", endpointInterface = "gov.hhs.fha.nhinc.adaptermpimanager.AdapterMpiManagerPortType", targetNamespace = "urn:gov:hhs:fha:nhinc:adaptermpimanager", wsdlLocation = "META-INF/wsdl/MpiManager/AdapterMpiManager.wsdl")
16@Stateless
17public class MpiManager implements AdapterMpiManagerPortType {
18
19 public org.hl7.v3.MCCIIN000002UV01 addPatient(org.hl7.v3.PRPAIN201301UV addPatientRequest) {
20 org.hl7.v3.MCCIIN000002UV01 result;
21 // Add Patient to MPI
22 result = PatientSaver.SavePatient(addPatientRequest);
23
24 return result;
25 }
26
27 public org.hl7.v3.MCCIIN000002UV01 removePatient(org.hl7.v3.PRPAIN201303UV removePatientRequest) {
28 org.hl7.v3.MCCIIN000002UV01 result;
29 // Add Patient to MPI
30 result = PatientSaver.RevokePatient(removePatientRequest);
31
32 return result;
33 }
34
35}
Note: See TracBrowser for help on using the repository browser.