Package ca.uhn.fhir.jpa.topic.status
Class R5NotificationStatusBuilder
java.lang.Object
ca.uhn.fhir.jpa.topic.status.R5NotificationStatusBuilder
- All Implemented Interfaces:
INotificationStatusBuilder<org.hl7.fhir.r5.model.SubscriptionStatus>
public class R5NotificationStatusBuilder
extends Object
implements INotificationStatusBuilder<org.hl7.fhir.r5.model.SubscriptionStatus>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r5.model.SubscriptionStatus
buildNotificationStatus
(List<org.hl7.fhir.instance.model.api.IBaseResource> theResources, ActiveSubscription theActiveSubscription, String theTopicUrl) Build a notification status resource to include as the first element in a topic subscription notification bundle
-
Constructor Details
-
R5NotificationStatusBuilder
-
-
Method Details
-
buildNotificationStatus
public org.hl7.fhir.r5.model.SubscriptionStatus buildNotificationStatus(List<org.hl7.fhir.instance.model.api.IBaseResource> theResources, ActiveSubscription theActiveSubscription, String theTopicUrl) Description copied from interface:INotificationStatusBuilder
Build a notification status resource to include as the first element in a topic subscription notification bundle- Specified by:
buildNotificationStatus
in interfaceINotificationStatusBuilder<org.hl7.fhir.r5.model.SubscriptionStatus>
- Parameters:
theResources
- The resources to include in the notification bundle. It should _NOT_ include the notification status resource. The first resource will be the "focus" resource.theActiveSubscription
- The active subscription that triggered the notificationtheTopicUrl
- The topic URL of the topic subscription- Returns:
- the notification status resource. The resource type varies depending on the FHIR version.
-