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.4 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.subscription.dte;
|
---|
| 6 |
|
---|
| 7 | import gov.hhs.fha.nhinc.common.subscription.SubscriptionItemType;
|
---|
| 8 | import gov.hhs.fha.nhinc.common.subscriptiondte.TransformInternalSubscriptionItemToNhinSubscribeRequestType;
|
---|
| 9 | import gov.hhs.fha.nhinc.common.subscriptiondte.TransformInternalSubscriptionItemToNhinSubscribeResponseType;
|
---|
| 10 | import org.oasis_open.docs.wsn.b_2.Subscribe;
|
---|
| 11 |
|
---|
| 12 | /**
|
---|
| 13 | *
|
---|
| 14 | * @author rayj
|
---|
| 15 | */
|
---|
| 16 | public class TransformInternalSubscriptionItemToNhinSubscribeHelper {
|
---|
| 17 |
|
---|
| 18 | public static TransformInternalSubscriptionItemToNhinSubscribeResponseType transformInternalSubscriptionItemToNhinSubscribe(TransformInternalSubscriptionItemToNhinSubscribeRequestType request) {
|
---|
| 19 | TransformInternalSubscriptionItemToNhinSubscribeResponseType response = new TransformInternalSubscriptionItemToNhinSubscribeResponseType();
|
---|
| 20 | if (request != null) {
|
---|
| 21 | SubscriptionItemType subscriptionItem = request.getSubscriptionItem();
|
---|
| 22 | Subscribe subscribe = transformInternalSubscriptionItemToNhinSubscribe(subscriptionItem);
|
---|
| 23 | response.setSubscribe(subscribe);
|
---|
| 24 | }
|
---|
| 25 | return response;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public static Subscribe transformInternalSubscriptionItemToNhinSubscribe(SubscriptionItemType subscriptionItem) {
|
---|
| 29 | return NhinSubscribeBuilder.transformInternalSubscriptionItemToNhinSubscribe(subscriptionItem);
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.