
Package ca.uhn.fhir.jpa.topic
Class R4SubscriptionTopicBuilder
java.lang.Object
ca.uhn.fhir.jpa.topic.R4SubscriptionTopicBuilder
Builder class for creating and configuring FHIR R4 SubscriptionTopic resources.
In R4, SubscriptionTopic is represented as a Basic resource with extensions,
following the pattern outlined in the FHIR Subscriptions Backport implementation guide.
This builder provides a fluent API to create these resources without needing to
handle extension management directly.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new builder with a Basic resource having the SubscriptionTopic code -
Method Summary
Modifier and TypeMethodDescriptionStart defining a can-filter-by extensionStart defining a notification shape extensionaddNotificationShapeInclude
(String theIncludeParam) Add an include parameter to the current notification shapeaddNotificationShapeRevInclude
(String theRevIncludeParam) Add a revInclude parameter to the current notification shapeStart defining a resource triggerStart defining a query criteria extension for the current resource triggeraddResourceTriggerSupportedInteraction
(String theInteractionCode) Add a supported interaction to the current resource triggerorg.hl7.fhir.r4.model.Basic
build()
Return the built Basic resource representing the SubscriptionTopicsetCanFilterByDescription
(String theDescription) Set the description for the current can-filter-bysetCanFilterByParameter
(String theFilterParameter) Set the filter parameter for the current can-filter-bysetCanFilterByResource
(String theResourceType) Set the resource type for the current can-filter-bySet the date the topic was last updatedsetDescription
(String theDescription) Set the description of the topicSet the logical ID of the SubscriptionTopicSet the name of the topicsetNotificationShapeResource
(String theResourceType) Set the resource type for the current notification shapesetResourceTriggerDescription
(String theDescription) Set the description for the current resource triggersetResourceTriggerFhirPathCriteria
(String theFhirPathExpression) Add FHIRPath criteria to the current resource triggersetResourceTriggerQueryCriteriaCurrent
(String theCurrentQuery) Set the current query string for the current resource trigger's query criteriasetResourceTriggerQueryCriteriaPrevious
(String thePreviousQuery) Set the previous query string for the current resource trigger's query criteriasetResourceTriggerQueryCriteriaRequireBoth
(boolean theRequireBoth) Set requireBoth flag for the current resource trigger's query criteriasetResourceTriggerResource
(String theResourceType) Set the resource type for the current resource triggersetStatus
(org.hl7.fhir.r4.model.Enumerations.PublicationStatus theStatus) Set the status of the topic (note: uses modifier extension)Set the title of the topicSet the canonical URL of the topicsetVersion
(String theVersion) Set the version of the topic
-
Constructor Details
-
R4SubscriptionTopicBuilder
public R4SubscriptionTopicBuilder()Creates a new builder with a Basic resource having the SubscriptionTopic code
-
-
Method Details
-
setId
Set the logical ID of the SubscriptionTopic -
setUrl
Set the canonical URL of the topic -
setVersion
Set the version of the topic -
setName
Set the name of the topic -
setTitle
Set the title of the topic -
setDate
Set the date the topic was last updated -
setDescription
Set the description of the topic -
setStatus
public R4SubscriptionTopicBuilder setStatus(org.hl7.fhir.r4.model.Enumerations.PublicationStatus theStatus) Set the status of the topic (note: uses modifier extension) -
addResourceTrigger
Start defining a resource trigger -
setResourceTriggerDescription
Set the description for the current resource trigger -
setResourceTriggerResource
Set the resource type for the current resource trigger -
addResourceTriggerSupportedInteraction
Add a supported interaction to the current resource trigger -
setResourceTriggerFhirPathCriteria
Add FHIRPath criteria to the current resource trigger -
addResourceTriggerQueryCriteria
Start defining a query criteria extension for the current resource trigger -
setResourceTriggerQueryCriteriaPrevious
Set the previous query string for the current resource trigger's query criteria -
setResourceTriggerQueryCriteriaCurrent
Set the current query string for the current resource trigger's query criteria -
setResourceTriggerQueryCriteriaRequireBoth
public R4SubscriptionTopicBuilder setResourceTriggerQueryCriteriaRequireBoth(boolean theRequireBoth) Set requireBoth flag for the current resource trigger's query criteria -
addCanFilterBy
Start defining a can-filter-by extension -
setCanFilterByDescription
Set the description for the current can-filter-by -
setCanFilterByResource
Set the resource type for the current can-filter-by -
setCanFilterByParameter
Set the filter parameter for the current can-filter-by -
addNotificationShape
Start defining a notification shape extension -
setNotificationShapeResource
Set the resource type for the current notification shape -
addNotificationShapeInclude
Add an include parameter to the current notification shape -
addNotificationShapeRevInclude
Add a revInclude parameter to the current notification shape -
build
Return the built Basic resource representing the SubscriptionTopic
-