
Class Subscription
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
Definition: The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system is able to take an appropriate action.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Subscription
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBlock class for child element: Subscription.channel () -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for contactstatic final ca.uhn.fhir.rest.gclient.StringClientParamFluent Client search parameter constant for criteriastatic final ca.uhn.fhir.rest.gclient.StringClientParamFluent Client search parameter constant for payloadstatic final StringSearch parameter constant for contactstatic final StringSearch parameter constant for criteriastatic final StringSearch parameter constant for payloadstatic final StringSearch parameter constant for statusstatic final StringSearch parameter constant for tagstatic final StringSearch parameter constant for typestatic final StringSearch parameter constant for urlstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for statusstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for tagstatic 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 ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for contact (who.focus)addContact(ContactPointDt theValue) Adds a given new value for contact (who.focus)addTag()Adds and returns a new value for tag ()Adds a given new value for tag ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType(Class<T> theType) Gets the value(s) for channel ().Gets the value(s) for contact (who.focus).Gets the first repetition for contact (who.focus), creating it if it does not already exist.Gets the value(s) for criteria ().ca.uhn.fhir.model.primitive.StringDtGets the value(s) for criteria ().getEnd()Gets the value(s) for end (when.done).ca.uhn.fhir.model.primitive.InstantDtGets the value(s) for end (when.done).getError()Gets the value(s) for error ().ca.uhn.fhir.model.primitive.StringDtGets the value(s) for error ().Gets the value(s) for reason (why).ca.uhn.fhir.model.primitive.StringDtGets the value(s) for reason (why).Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetTag()Gets the value(s) for tag ().Gets the first repetition for tag (), creating it if it does not already exist.booleanisEmpty()setChannel(Subscription.Channel theValue) Sets the value(s) for channel ()setContact(List<ContactPointDt> theValue) Sets the value(s) for contact (who.focus)setCriteria(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for criteria ()setCriteria(String theString) Sets the value for criteria ()setEnd(ca.uhn.fhir.model.primitive.InstantDt theValue) Sets the value(s) for end (when.done)Sets the value for end (when.done)setEndWithMillisPrecision(Date theDate) Sets the value for end (when.done)setError(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for error ()Sets the value for error ()setReason(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for reason (why)Sets the value for reason (why)setStatus(SubscriptionStatusEnum theValue) Sets the value(s) for status (status)setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> theValue) Sets the value(s) for status (status)Sets the value(s) for tag ()Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setIdMethods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_STATUS
Search parameter constant for statusDescription:
Type: token
Path: Subscription.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription:
Type: token
Path: Subscription.status
-
SP_TYPE
Search parameter constant for typeDescription:
Type: token
Path: Subscription.channel.type
- See Also:
-
TYPE
Fluent Client search parameter constant for typeDescription:
Type: token
Path: Subscription.channel.type
-
SP_URL
Search parameter constant for urlDescription:
Type: uri
Path: Subscription.channel.endpoint
- See Also:
-
URL
Fluent Client search parameter constant for urlDescription:
Type: uri
Path: Subscription.channel.endpoint
-
SP_CRITERIA
Search parameter constant for criteriaDescription:
Type: string
Path: Subscription.criteria
- See Also:
-
CRITERIA
Fluent Client search parameter constant for criteriaDescription:
Type: string
Path: Subscription.criteria
-
SP_PAYLOAD
Search parameter constant for payloadDescription:
Type: string
Path: Subscription.channel.payload
- See Also:
-
PAYLOAD
Fluent Client search parameter constant for payloadDescription:
Type: string
Path: Subscription.channel.payload
-
SP_CONTACT
Search parameter constant for contactDescription:
Type: token
Path: Subscription.contact
- See Also:
-
CONTACT
Fluent Client search parameter constant for contactDescription:
Type: token
Path: Subscription.contact
-
SP_TAG
Search parameter constant for tagDescription:
Type: token
Path: Subscription.tag
- See Also:
-
TAG
Fluent Client search parameter constant for tagDescription:
Type: token
Path: Subscription.tag
-
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCriteriaElement
Gets the value(s) for criteria (). creating it if it does not exist. Will not returnnull.Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
getCriteria
Gets the value(s) for criteria (). creating it if it does not exist. This method may returnnull.Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
setCriteria
Sets the value(s) for criteria ()Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
setCriteria
Sets the value for criteria ()Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
getContact
Gets the value(s) for contact (who.focus). creating it if it does not exist. Will not returnnull.Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
-
setContact
Sets the value(s) for contact (who.focus)Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
-
addContact
Adds and returns a new value for contact (who.focus)Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
-
addContact
Adds a given new value for contact (who.focus)Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
- Parameters:
theValue- The contact to add (must not benull)
-
getContactFirstRep
Gets the first repetition for contact (who.focus), creating it if it does not already exist.Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
-
getReasonElement
Gets the value(s) for reason (why). creating it if it does not exist. Will not returnnull.Definition: A description of why this subscription is defined
-
getReason
Gets the value(s) for reason (why). creating it if it does not exist. This method may returnnull.Definition: A description of why this subscription is defined
-
setReason
Sets the value(s) for reason (why)Definition: A description of why this subscription is defined
-
setReason
Sets the value for reason (why)Definition: A description of why this subscription is defined
-
getStatusElement
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull.Definition: The status of the subscription, which marks the server state for managing the subscription
-
getStatus
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull.Definition: The status of the subscription, which marks the server state for managing the subscription
-
setStatus
public Subscription setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> theValue) Sets the value(s) for status (status)Definition: The status of the subscription, which marks the server state for managing the subscription
-
setStatus
Sets the value(s) for status (status)Definition: The status of the subscription, which marks the server state for managing the subscription
-
getErrorElement
Gets the value(s) for error (). creating it if it does not exist. Will not returnnull.Definition: A record of the last error that occurred when the server processed a notification
-
getError
Gets the value(s) for error (). creating it if it does not exist. This method may returnnull.Definition: A record of the last error that occurred when the server processed a notification
-
setError
Sets the value(s) for error ()Definition: A record of the last error that occurred when the server processed a notification
-
setError
Sets the value for error ()Definition: A record of the last error that occurred when the server processed a notification
-
getChannel
Gets the value(s) for channel (). creating it if it does not exist. Will not returnnull.Definition: Details where to send notifications when resources are received that meet the criteria
-
setChannel
Sets the value(s) for channel ()Definition: Details where to send notifications when resources are received that meet the criteria
-
getEndElement
Gets the value(s) for end (when.done). creating it if it does not exist. Will not returnnull.Definition: The time for the server to turn the subscription off
-
getEnd
Gets the value(s) for end (when.done). creating it if it does not exist. This method may returnnull.Definition: The time for the server to turn the subscription off
-
setEnd
Sets the value(s) for end (when.done)Definition: The time for the server to turn the subscription off
-
setEndWithMillisPrecision
Sets the value for end (when.done)Definition: The time for the server to turn the subscription off
-
setEnd
Sets the value for end (when.done)Definition: The time for the server to turn the subscription off
-
getTag
Gets the value(s) for tag (). creating it if it does not exist. Will not returnnull.Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
-
setTag
Sets the value(s) for tag ()Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
-
addTag
Adds and returns a new value for tag ()Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
-
addTag
Adds a given new value for tag ()Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
- Parameters:
theValue- The tag to add (must not benull)
-
getTagFirstRep
Gets the first repetition for tag (), creating it if it does not already exist.Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
-
getResourceName
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-