Class Subscription
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CodingThe type of channel to send notifications on.protected List<ContactPoint>Contact details for a human to contact about the subscription.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for contactHow much of the resource content to deliver in the notification payload.protected CodeTypeThe mime type to send the payload in - either application/fhir+xml, or application/fhir+json.protected InstantTypeThe time for the server to turn the subscription off.protected UrlTypeThe url that describes the actual end-point to send messages to.protected List<Subscription.SubscriptionFilterByComponent>The filter properties to be applied to narrow the subscription topic stream.protected List<StringType>Additional headers / information to send as part of the notification.protected UnsignedIntTypeIf present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds.protected List<Identifier>A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for identifierprotected PositiveIntTypeIf present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification).protected StringTypeA natural language name identifying the subscription.protected Enumeration<Subscription.SubscriptionUrlLocation>If present, where to place URLs of resources in notifications.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for payloadprotected StringTypeA description of why this subscription is defined.static final StringSearch parameter: contactstatic final StringSearch parameter: identifierstatic final StringSearch parameter: payloadstatic final StringSearch parameter: statusstatic final StringSearch parameter: typestatic final StringSearch parameter: urlprotected Enumeration<Enumerations.SubscriptionState>The status of the subscription, which marks the server state for managing the subscription.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for statusprotected UnsignedIntTypeIf present, the maximum amount of time a server will allow before failing a notification attempt.protected CanonicalTypeThe reference to the subscription topic to be notified about.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for typestatic final ca.uhn.fhir.rest.gclient.UriClientParamFluent Client search parameter constant for urlFields inherited from class org.hl7.fhir.r5.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXTFields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
ConstructorsConstructorDescriptionConstructorSubscription(Enumerations.SubscriptionState status, String topic, Coding channelType) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(Subscription dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getEnd()intintgetName()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) intgetTopic()String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanbooleanbooleanbooleanbooleanhasEnd()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasName()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasTopic()booleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setChannelType(Coding value) setContact(List<ContactPoint> theContact) setContentType(String value) setContentTypeElement(CodeType value) setEndElement(InstantType value) setEndpoint(String value) setEndpointElement(UrlType value) setFilterBy(List<Subscription.SubscriptionFilterByComponent> theFilterBy) setHeader(List<StringType> theHeader) setHeartbeatPeriod(int value) setIdentifier(List<Identifier> theIdentifier) setMaxCount(int value) setNameElement(StringType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setReasonElement(StringType value) setTimeout(int value) setTimeoutElement(UnsignedIntType value) setTopicElement(CanonicalType value) protected SubscriptionMethods inherited from class org.hl7.fhir.r5.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setTextMethods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetaMethods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, setId
-
Field Details
-
identifier
A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance. -
name
A natural language name identifying the subscription. -
status
The status of the subscription, which marks the server state for managing the subscription. -
topic
The reference to the subscription topic to be notified about. -
contact
Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting. -
end
The time for the server to turn the subscription off. -
reason
A description of why this subscription is defined. -
filterBy
The filter properties to be applied to narrow the subscription topic stream. When multiple filters are applied, evaluates to true if all the conditions are met; otherwise it returns false. (i.e., logical AND). -
channelType
The type of channel to send notifications on. -
endpoint
The url that describes the actual end-point to send messages to. -
header
Additional headers / information to send as part of the notification. -
heartbeatPeriod
If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent. -
timeout
If present, the maximum amount of time a server will allow before failing a notification attempt. -
contentType
The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions. -
How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
-
notificationUrlLocation
If present, where to place URLs of resources in notifications. -
maxCount
If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included. -
SP_CONTACT
Search parameter: contactDescription: Contact details for the subscription
Type: token
Path: Subscription.contact
- See Also:
-
CONTACT
Fluent Client search parameter constant for contactDescription: Contact details for the subscription
Type: token
Path: Subscription.contact
-
SP_IDENTIFIER
Search parameter: identifierDescription: A subscription identifier
Type: token
Path: Subscription.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: A subscription identifier
Type: token
Path: Subscription.identifier
-
SP_PAYLOAD
Search parameter: payloadDescription: The mime-type of the notification payload
Type: token
Path: null
- See Also:
-
PAYLOAD
Fluent Client search parameter constant for payloadDescription: The mime-type of the notification payload
Type: token
Path: null
-
SP_STATUS
Search parameter: statusDescription: The current state of the subscription
Type: token
Path: Subscription.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: The current state of the subscription
Type: token
Path: Subscription.status
-
SP_TYPE
Search parameter: typeDescription: The type of channel for the sent notifications
Type: token
Path: null
- See Also:
-
TYPE
Fluent Client search parameter constant for typeDescription: The type of channel for the sent notifications
Type: token
Path: null
-
SP_URL
Search parameter: urlDescription: The uri that will receive the notifications
Type: uri
Path: null
- See Also:
-
URL
Fluent Client search parameter constant for urlDescription: The uri that will receive the notifications
Type: uri
Path: null
-
-
Constructor Details
-
Subscription
public Subscription()Constructor -
Subscription
Constructor
-
-
Method Details
-
getIdentifier
- Returns:
identifier(A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.)
-
setIdentifier
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
-
addIdentifier
-
addIdentifier
-
getIdentifierFirstRep
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist {3}
-
getNameElement
- Returns:
name(A natural language name identifying the subscription.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
-
hasName
-
setNameElement
- Parameters:
value-name(A natural language name identifying the subscription.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
- Returns:
- A natural language name identifying the subscription.
-
setName
- Parameters:
value- A natural language name identifying the subscription.
-
getStatusElement
- Returns:
status(The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
-
hasStatus
-
setStatusElement
- Parameters:
value-status(The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
- Returns:
- The status of the subscription, which marks the server state for managing the subscription.
-
setStatus
- Parameters:
value- The status of the subscription, which marks the server state for managing the subscription.
-
getTopicElement
- Returns:
topic(The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value
-
hasTopicElement
-
hasTopic
-
setTopicElement
- Parameters:
value-topic(The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value
-
getTopic
- Returns:
- The reference to the subscription topic to be notified about.
-
setTopic
- Parameters:
value- The reference to the subscription topic to be notified about.
-
getContact
- Returns:
contact(Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.)
-
setContact
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasContact
-
addContact
-
addContact
-
getContactFirstRep
- Returns:
- The first repetition of repeating field
contact, creating it if it does not already exist {3}
-
getEndElement
- Returns:
end(The time for the server to turn the subscription off.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value
-
hasEndElement
-
hasEnd
-
setEndElement
- Parameters:
value-end(The time for the server to turn the subscription off.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value
-
getEnd
- Returns:
- The time for the server to turn the subscription off.
-
setEnd
- Parameters:
value- The time for the server to turn the subscription off.
-
getReasonElement
- Returns:
reason(A description of why this subscription is defined.). This is the underlying object with id, value and extensions. The accessor "getReason" gives direct access to the value
-
hasReasonElement
-
hasReason
-
setReasonElement
- Parameters:
value-reason(A description of why this subscription is defined.). This is the underlying object with id, value and extensions. The accessor "getReason" gives direct access to the value
-
getReason
- Returns:
- A description of why this subscription is defined.
-
setReason
- Parameters:
value- A description of why this subscription is defined.
-
getFilterBy
- Returns:
filterBy(The filter properties to be applied to narrow the subscription topic stream. When multiple filters are applied, evaluates to true if all the conditions are met; otherwise it returns false. (i.e., logical AND).)
-
setFilterBy
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasFilterBy
-
addFilterBy
-
addFilterBy
-
getFilterByFirstRep
- Returns:
- The first repetition of repeating field
filterBy, creating it if it does not already exist {3}
-
getChannelType
- Returns:
channelType(The type of channel to send notifications on.)
-
hasChannelType
-
setChannelType
- Parameters:
value-channelType(The type of channel to send notifications on.)
-
getEndpointElement
- Returns:
endpoint(The url that describes the actual end-point to send messages to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value
-
hasEndpointElement
-
hasEndpoint
-
setEndpointElement
- Parameters:
value-endpoint(The url that describes the actual end-point to send messages to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value
-
getEndpoint
- Returns:
- The url that describes the actual end-point to send messages to.
-
setEndpoint
- Parameters:
value- The url that describes the actual end-point to send messages to.
-
getHeader
- Returns:
header(Additional headers / information to send as part of the notification.)
-
setHeader
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasHeader
-
addHeaderElement
- Returns:
header(Additional headers / information to send as part of the notification.)
-
addHeader
- Parameters:
value-header(Additional headers / information to send as part of the notification.)
-
hasHeader
- Parameters:
value-header(Additional headers / information to send as part of the notification.)
-
getHeartbeatPeriodElement
- Returns:
heartbeatPeriod(If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.). This is the underlying object with id, value and extensions. The accessor "getHeartbeatPeriod" gives direct access to the value
-
hasHeartbeatPeriodElement
-
hasHeartbeatPeriod
-
setHeartbeatPeriodElement
- Parameters:
value-heartbeatPeriod(If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.). This is the underlying object with id, value and extensions. The accessor "getHeartbeatPeriod" gives direct access to the value
-
getHeartbeatPeriod
- Returns:
- If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
-
setHeartbeatPeriod
- Parameters:
value- If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
-
getTimeoutElement
- Returns:
timeout(If present, the maximum amount of time a server will allow before failing a notification attempt.). This is the underlying object with id, value and extensions. The accessor "getTimeout" gives direct access to the value
-
hasTimeoutElement
-
hasTimeout
-
setTimeoutElement
- Parameters:
value-timeout(If present, the maximum amount of time a server will allow before failing a notification attempt.). This is the underlying object with id, value and extensions. The accessor "getTimeout" gives direct access to the value
-
getTimeout
- Returns:
- If present, the maximum amount of time a server will allow before failing a notification attempt.
-
setTimeout
- Parameters:
value- If present, the maximum amount of time a server will allow before failing a notification attempt.
-
getContentTypeElement
- Returns:
contentType(The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
-
hasContentType
-
setContentTypeElement
- Parameters:
value-contentType(The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
- Returns:
- The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions.
-
setContentType
- Parameters:
value- The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions.
-
getContentElement
- Returns:
content(How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
-
hasContentElement
-
hasContent
-
setContentElement
- Parameters:
value-content(How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
-
getContent
- Returns:
- How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
-
setContent
- Parameters:
value- How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
-
getNotificationUrlLocationElement
- Returns:
notificationUrlLocation(If present, where to place URLs of resources in notifications.). This is the underlying object with id, value and extensions. The accessor "getNotificationUrlLocation" gives direct access to the value
-
hasNotificationUrlLocationElement
-
hasNotificationUrlLocation
-
setNotificationUrlLocationElement
public Subscription setNotificationUrlLocationElement(Enumeration<Subscription.SubscriptionUrlLocation> value) - Parameters:
value-notificationUrlLocation(If present, where to place URLs of resources in notifications.). This is the underlying object with id, value and extensions. The accessor "getNotificationUrlLocation" gives direct access to the value
-
getNotificationUrlLocation
- Returns:
- If present, where to place URLs of resources in notifications.
-
setNotificationUrlLocation
- Parameters:
value- If present, where to place URLs of resources in notifications.
-
getMaxCountElement
- Returns:
maxCount(If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value
-
hasMaxCountElement
-
hasMaxCount
-
setMaxCountElement
- Parameters:
value-maxCount(If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value
-
getMaxCount
- Returns:
- If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.
-
setMaxCount
- Parameters:
value- If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.
-
listChildren
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
- Specified by:
copyin classDomainResource
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
- Specified by:
getResourceTypein classResource
-