public class Subscription extends BaseResource implements ca.uhn.fhir.model.api.IResource
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
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.Channel
Block class for child element: Subscription.channel ()
|
| Modifier and Type | Field and Description |
|---|---|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CONTACT
Fluent Client search parameter constant for contact
|
static ca.uhn.fhir.rest.gclient.StringClientParam |
CRITERIA
Fluent Client search parameter constant for criteria
|
static ca.uhn.fhir.rest.gclient.StringClientParam |
PAYLOAD
Fluent Client search parameter constant for payload
|
static String |
SP_CONTACT
Search parameter constant for contact
|
static String |
SP_CRITERIA
Search parameter constant for criteria
|
static String |
SP_PAYLOAD
Search parameter constant for payload
|
static String |
SP_STATUS
Search parameter constant for status
|
static String |
SP_TAG
Search parameter constant for tag
|
static String |
SP_TYPE
Search parameter constant for type
|
static String |
SP_URL
Search parameter constant for url
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
TAG
Fluent Client search parameter constant for tag
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
static ca.uhn.fhir.rest.gclient.UriClientParam |
URL
Fluent Client search parameter constant for url
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
ContactPointDt |
addContact()
Adds and returns a new value for contact (who.focus)
|
Subscription |
addContact(ContactPointDt theValue)
Adds a given new value for contact (who.focus)
|
CodingDt |
addTag()
Adds and returns a new value for tag ()
|
Subscription |
addTag(CodingDt theValue)
Adds a given new value for tag ()
|
<T extends ca.uhn.fhir.model.api.IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
Subscription.Channel |
getChannel()
Gets the value(s) for channel ().
|
List<ContactPointDt> |
getContact()
Gets the value(s) for contact (who.focus).
|
ContactPointDt |
getContactFirstRep()
Gets the first repetition for contact (who.focus),
creating it if it does not already exist.
|
String |
getCriteria()
Gets the value(s) for criteria ().
|
ca.uhn.fhir.model.primitive.StringDt |
getCriteriaElement()
Gets the value(s) for criteria ().
|
Date |
getEnd()
Gets the value(s) for end (when.done).
|
ca.uhn.fhir.model.primitive.InstantDt |
getEndElement()
Gets the value(s) for end (when.done).
|
String |
getError()
Gets the value(s) for error ().
|
ca.uhn.fhir.model.primitive.StringDt |
getErrorElement()
Gets the value(s) for error ().
|
String |
getReason()
Gets the value(s) for reason (why).
|
ca.uhn.fhir.model.primitive.StringDt |
getReasonElement()
Gets the value(s) for reason (why).
|
String |
getResourceName() |
String |
getStatus()
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.FhirVersionEnum |
getStructureFhirVersionEnum() |
List<CodingDt> |
getTag()
Gets the value(s) for tag ().
|
CodingDt |
getTagFirstRep()
Gets the first repetition for tag (),
creating it if it does not already exist.
|
boolean |
isEmpty() |
Subscription |
setChannel(Subscription.Channel theValue)
Sets the value(s) for channel ()
|
Subscription |
setContact(List<ContactPointDt> theValue)
Sets the value(s) for contact (who.focus)
|
Subscription |
setCriteria(String theString)
Sets the value for criteria ()
|
Subscription |
setCriteria(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for criteria ()
|
Subscription |
setEnd(Date theDate,
ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for end (when.done)
|
Subscription |
setEnd(ca.uhn.fhir.model.primitive.InstantDt theValue)
Sets the value(s) for end (when.done)
|
Subscription |
setEndWithMillisPrecision(Date theDate)
Sets the value for end (when.done)
|
Subscription |
setError(String theString)
Sets the value for error ()
|
Subscription |
setError(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for error ()
|
Subscription |
setReason(String theString)
Sets the value for reason (why)
|
Subscription |
setReason(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for reason (why)
|
Subscription |
setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> theValue)
Sets the value(s) for status (status)
|
Subscription |
setStatus(SubscriptionStatusEnum theValue)
Sets the value(s) for status (status)
|
Subscription |
setTag(List<CodingDt> theValue)
Sets the value(s) for tag ()
|
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatCommentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String SP_STATUS
Description:
Type: token
Path: Subscription.status
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Description:
Type: token
Path: Subscription.status
public static final String SP_TYPE
Description:
Type: token
Path: Subscription.channel.type
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Description:
Type: token
Path: Subscription.channel.type
public static final String SP_URL
Description:
Type: uri
Path: Subscription.channel.endpoint
public static final ca.uhn.fhir.rest.gclient.UriClientParam URL
Description:
Type: uri
Path: Subscription.channel.endpoint
public static final String SP_CRITERIA
Description:
Type: string
Path: Subscription.criteria
public static final ca.uhn.fhir.rest.gclient.StringClientParam CRITERIA
Description:
Type: string
Path: Subscription.criteria
public static final String SP_PAYLOAD
Description:
Type: string
Path: Subscription.channel.payload
public static final ca.uhn.fhir.rest.gclient.StringClientParam PAYLOAD
Description:
Type: string
Path: Subscription.channel.payload
public static final String SP_CONTACT
Description:
Type: token
Path: Subscription.contact
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTACT
Description:
Type: token
Path: Subscription.contact
public static final String SP_TAG
Description:
Type: token
Path: Subscription.tag
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TAG
Description:
Type: token
Path: Subscription.tag
public Subscription()
public boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBasepublic <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElementpublic ca.uhn.fhir.model.primitive.StringDt getCriteriaElement()
null.
Definition: The rules that the server should use to determine when to generate notifications for this subscription
public String getCriteria()
null.
Definition: The rules that the server should use to determine when to generate notifications for this subscription
public Subscription setCriteria(ca.uhn.fhir.model.primitive.StringDt theValue)
Definition: The rules that the server should use to determine when to generate notifications for this subscription
public Subscription setCriteria(String theString)
Definition: The rules that the server should use to determine when to generate notifications for this subscription
public List<ContactPointDt> getContact()
null.
Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
public Subscription setContact(List<ContactPointDt> theValue)
Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
public ContactPointDt addContact()
Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
public Subscription addContact(ContactPointDt theValue)
Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
theValue - The contact to add (must not be null)public ContactPointDt getContactFirstRep()
Definition: Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
public ca.uhn.fhir.model.primitive.StringDt getReasonElement()
null.
Definition: A description of why this subscription is defined
public String getReason()
null.
Definition: A description of why this subscription is defined
public Subscription setReason(ca.uhn.fhir.model.primitive.StringDt theValue)
Definition: A description of why this subscription is defined
public Subscription setReason(String theString)
Definition: A description of why this subscription is defined
public ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> getStatusElement()
null.
Definition: The status of the subscription, which marks the server state for managing the subscription
public String getStatus()
null.
Definition: The status of the subscription, which marks the server state for managing the subscription
public Subscription setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SubscriptionStatusEnum> theValue)
Definition: The status of the subscription, which marks the server state for managing the subscription
public Subscription setStatus(SubscriptionStatusEnum theValue)
Definition: The status of the subscription, which marks the server state for managing the subscription
public ca.uhn.fhir.model.primitive.StringDt getErrorElement()
null.
Definition: A record of the last error that occurred when the server processed a notification
public String getError()
null.
Definition: A record of the last error that occurred when the server processed a notification
public Subscription setError(ca.uhn.fhir.model.primitive.StringDt theValue)
Definition: A record of the last error that occurred when the server processed a notification
public Subscription setError(String theString)
Definition: A record of the last error that occurred when the server processed a notification
public Subscription.Channel getChannel()
null.
Definition: Details where to send notifications when resources are received that meet the criteria
public Subscription setChannel(Subscription.Channel theValue)
Definition: Details where to send notifications when resources are received that meet the criteria
public ca.uhn.fhir.model.primitive.InstantDt getEndElement()
null.
Definition: The time for the server to turn the subscription off
public Date getEnd()
null.
Definition: The time for the server to turn the subscription off
public Subscription setEnd(ca.uhn.fhir.model.primitive.InstantDt theValue)
Definition: The time for the server to turn the subscription off
public Subscription setEndWithMillisPrecision(Date theDate)
Definition: The time for the server to turn the subscription off
public Subscription setEnd(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Definition: The time for the server to turn the subscription off
public List<CodingDt> getTag()
null.
Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
public Subscription setTag(List<CodingDt> theValue)
Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
public CodingDt addTag()
Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
public Subscription addTag(CodingDt theValue)
Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
theValue - The tag to add (must not be null)public CodingDt getTagFirstRep()
Definition: A tag to add to any resource that matches the criteria, after the subscription is processed
public String getResourceName()
getResourceName in interface ca.uhn.fhir.model.api.IResourcepublic ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResourcegetStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResourceCopyright © 2014–2018 University Health Network. All rights reserved.