Class Subscription
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class Subscription extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Subscription Resource (infrastructure.exchange)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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscription.ChannelBlock class for child element: Subscription.channel ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCONTACTFluent Client search parameter constant for contactstatic ca.uhn.fhir.rest.gclient.StringClientParamCRITERIAFluent Client search parameter constant for criteriastatic ca.uhn.fhir.rest.gclient.StringClientParamPAYLOADFluent Client search parameter constant for payloadstatic StringSP_CONTACTSearch parameter constant for contactstatic StringSP_CRITERIASearch parameter constant for criteriastatic StringSP_PAYLOADSearch parameter constant for payloadstatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_TAGSearch parameter constant for tagstatic StringSP_TYPESearch parameter constant for typestatic StringSP_URLSearch parameter constant for urlstatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.TokenClientParamTAGFluent Client search parameter constant for tagstatic ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for typestatic ca.uhn.fhir.rest.gclient.UriClientParamURLFluent Client search parameter constant for url-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactPointDtaddContact()Adds and returns a new value for contact (who.focus)SubscriptionaddContact(ContactPointDt theValue)Adds a given new value for contact (who.focus)CodingDtaddTag()Adds and returns a new value for tag ()SubscriptionaddTag(CodingDt theValue)Adds a given new value for tag ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)Subscription.ChannelgetChannel()Gets the value(s) for channel ().List<ContactPointDt>getContact()Gets the value(s) for contact (who.focus).ContactPointDtgetContactFirstRep()Gets the first repetition for contact (who.focus), creating it if it does not already exist.StringgetCriteria()Gets the value(s) for criteria ().ca.uhn.fhir.model.primitive.StringDtgetCriteriaElement()Gets the value(s) for criteria ().DategetEnd()Gets the value(s) for end (when.done).ca.uhn.fhir.model.primitive.InstantDtgetEndElement()Gets the value(s) for end (when.done).StringgetError()Gets the value(s) for error ().ca.uhn.fhir.model.primitive.StringDtgetErrorElement()Gets the value(s) for error ().StringgetReason()Gets the value(s) for reason (why).ca.uhn.fhir.model.primitive.StringDtgetReasonElement()Gets the value(s) for reason (why).StringgetResourceName()StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()List<CodingDt>getTag()Gets the value(s) for tag ().CodingDtgetTagFirstRep()Gets the first repetition for tag (), creating it if it does not already exist.booleanisEmpty()SubscriptionsetChannel(Subscription.Channel theValue)Sets the value(s) for channel ()SubscriptionsetContact(List<ContactPointDt> theValue)Sets the value(s) for contact (who.focus)SubscriptionsetCriteria(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for criteria ()SubscriptionsetCriteria(String theString)Sets the value for criteria ()SubscriptionsetEnd(ca.uhn.fhir.model.primitive.InstantDt theValue)Sets the value(s) for end (when.done)SubscriptionsetEnd(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for end (when.done)SubscriptionsetEndWithMillisPrecision(Date theDate)Sets the value for end (when.done)SubscriptionsetError(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for error ()SubscriptionsetError(String theString)Sets the value for error ()SubscriptionsetReason(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for reason (why)SubscriptionsetReason(String theString)Sets the value for reason (why)SubscriptionsetStatus(SubscriptionStatusEnum theValue)Sets the value(s) for status (status)SubscriptionsetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> theValue)Sets the value(s) for status (status)SubscriptionsetTag(List<CodingDt> theValue)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, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription:
Type: token
Path: Subscription.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription:
Type: token
Path: Subscription.status
-
SP_TYPE
public static final String SP_TYPE
Search parameter constant for typeDescription:
Type: token
Path: Subscription.channel.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription:
Type: token
Path: Subscription.channel.type
-
SP_URL
public static final String SP_URL
Search parameter constant for urlDescription:
Type: uri
Path: Subscription.channel.endpoint
- See Also:
- Constant Field Values
-
URL
public static final ca.uhn.fhir.rest.gclient.UriClientParam URL
Fluent Client search parameter constant for urlDescription:
Type: uri
Path: Subscription.channel.endpoint
-
SP_CRITERIA
public static final String SP_CRITERIA
Search parameter constant for criteriaDescription:
Type: string
Path: Subscription.criteria
- See Also:
- Constant Field Values
-
CRITERIA
public static final ca.uhn.fhir.rest.gclient.StringClientParam CRITERIA
Fluent Client search parameter constant for criteriaDescription:
Type: string
Path: Subscription.criteria
-
SP_PAYLOAD
public static final String SP_PAYLOAD
Search parameter constant for payloadDescription:
Type: string
Path: Subscription.channel.payload
- See Also:
- Constant Field Values
-
PAYLOAD
public static final ca.uhn.fhir.rest.gclient.StringClientParam PAYLOAD
Fluent Client search parameter constant for payloadDescription:
Type: string
Path: Subscription.channel.payload
-
SP_CONTACT
public static final String SP_CONTACT
Search parameter constant for contactDescription:
Type: token
Path: Subscription.contact
- See Also:
- Constant Field Values
-
CONTACT
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTACT
Fluent Client search parameter constant for contactDescription:
Type: token
Path: Subscription.contact
-
SP_TAG
public static final String SP_TAG
Search parameter constant for tagDescription:
Type: token
Path: Subscription.tag
- See Also:
- Constant Field Values
-
TAG
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TAG
Fluent Client search parameter constant for tagDescription:
Type: token
Path: Subscription.tag
-
-
Constructor Detail
-
Subscription
public Subscription()
-
-
Method Detail
-
isEmpty
public boolean 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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public Subscription setCriteria(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for criteria ()Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
setCriteria
public Subscription setCriteria(String theString)
Sets the value for criteria ()Definition: The rules that the server should use to determine when to generate notifications for this subscription
-
getContact
public List<ContactPointDt> 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
public Subscription setContact(List<ContactPointDt> theValue)
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
public ContactPointDt 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
public Subscription addContact(ContactPointDt theValue)
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
public ContactPointDt 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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public Subscription setReason(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for reason (why)Definition: A description of why this subscription is defined
-
setReason
public Subscription setReason(String theString)
Sets the value for reason (why)Definition: A description of why this subscription is defined
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> 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
public String 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
public Subscription setStatus(SubscriptionStatusEnum theValue)
Sets the value(s) for status (status)Definition: The status of the subscription, which marks the server state for managing the subscription
-
getErrorElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public Subscription setError(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for error ()Definition: A record of the last error that occurred when the server processed a notification
-
setError
public Subscription setError(String theString)
Sets the value for error ()Definition: A record of the last error that occurred when the server processed a notification
-
getChannel
public Subscription.Channel 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
public Subscription setChannel(Subscription.Channel theValue)
Sets the value(s) for channel ()Definition: Details where to send notifications when resources are received that meet the criteria
-
getEndElement
public ca.uhn.fhir.model.primitive.InstantDt 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
public Date 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
public Subscription setEnd(ca.uhn.fhir.model.primitive.InstantDt theValue)
Sets the value(s) for end (when.done)Definition: The time for the server to turn the subscription off
-
setEndWithMillisPrecision
public Subscription setEndWithMillisPrecision(Date theDate)
Sets the value for end (when.done)Definition: The time for the server to turn the subscription off
-
setEnd
public Subscription setEnd(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for end (when.done)Definition: The time for the server to turn the subscription off
-
getTag
public List<CodingDt> 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
public Subscription setTag(List<CodingDt> theValue)
Sets the value(s) for tag ()Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
-
addTag
public CodingDt 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
public Subscription addTag(CodingDt theValue)
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
public CodingDt 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
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-