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 | package gov.hhs.fha.nhinc.subscription.dte;
|
---|
2 |
|
---|
3 | import gov.hhs.fha.nhinc.common.subscriptiondte.TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType;
|
---|
4 | import org.apache.commons.logging.Log;
|
---|
5 | import org.apache.commons.logging.LogFactory;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Transform an entity unsubscribe message to a subscription reference.
|
---|
9 | *
|
---|
10 | * @author Neil Webb
|
---|
11 | */
|
---|
12 | public class TransformEntityUnsubscribeToSubscriptionReferenceHelper
|
---|
13 | {
|
---|
14 | private static Log log = LogFactory.getLog(TransformEntityUnsubscribeToSubscriptionReferenceHelper.class);
|
---|
15 |
|
---|
16 | public static TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType transformEntityUnsubscribeToInternalSubscriptionReference(gov.hhs.fha.nhinc.common.subscription.UnsubscribeType unsubscribe)
|
---|
17 | { TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType resp = new TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType();
|
---|
18 | gov.hhs.fha.nhinc.common.subscription.SubscriptionReferenceType subRef = null;
|
---|
19 |
|
---|
20 | if(unsubscribe != null)
|
---|
21 | {
|
---|
22 | subRef = unsubscribe.getSubscriptionReference();
|
---|
23 | }
|
---|
24 | resp.setSubscriptionReference(subRef);
|
---|
25 | return resp;
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.