public class Subscription extends BaseResource implements 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 TokenClientParam |
CONTACT
Fluent Client search parameter constant for contact
|
static StringClientParam |
CRITERIA
Fluent Client search parameter constant for criteria
|
static 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 TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
static TokenClientParam |
TAG
Fluent Client search parameter constant for tag
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
static UriClientParam |
URL
Fluent Client search parameter constant for url
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| 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 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 ().
|
StringDt |
getCriteriaElement()
Gets the value(s) for criteria ().
|
Date |
getEnd()
Gets the value(s) for end (when.done).
|
InstantDt |
getEndElement()
Gets the value(s) for end (when.done).
|
String |
getError()
Gets the value(s) for error ().
|
StringDt |
getErrorElement()
Gets the value(s) for error ().
|
String |
getReason()
Gets the value(s) for reason (why).
|
StringDt |
getReasonElement()
Gets the value(s) for reason (why).
|
String |
getResourceName() |
String |
getStatus()
Gets the value(s) for status (status).
|
BoundCodeDt<SubscriptionStatusEnum> |
getStatusElement()
Gets the value(s) for status (status).
|
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(StringDt theValue)
Sets the value(s) for criteria ()
|
Subscription |
setEnd(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for end (when.done)
|
Subscription |
setEnd(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(StringDt theValue)
Sets the value(s) for error ()
|
Subscription |
setReason(String theString)
Sets the value for reason (why)
|
Subscription |
setReason(StringDt theValue)
Sets the value(s) for reason (why)
|
Subscription |
setStatus(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, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_STATUS
Description:
Type: token
Path: Subscription.status
public static final TokenClientParam STATUS
Description:
Type: token
Path: Subscription.status
public static final String SP_TYPE
Description:
Type: token
Path: Subscription.channel.type
public static final 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 UriClientParam URL
Description:
Type: uri
Path: Subscription.channel.endpoint
public static final String SP_CRITERIA
Description:
Type: string
Path: Subscription.criteria
public static final StringClientParam CRITERIA
Description:
Type: string
Path: Subscription.criteria
public static final String SP_PAYLOAD
Description:
Type: string
Path: Subscription.channel.payload
public static final StringClientParam PAYLOAD
Description:
Type: string
Path: Subscription.channel.payload
public static final String SP_CONTACT
Description:
Type: token
Path: Subscription.contact
public static final TokenClientParam CONTACT
Description:
Type: token
Path: Subscription.contact
public static final String SP_TAG
Description:
Type: token
Path: Subscription.tag
public static final TokenClientParam TAG
Description:
Type: token
Path: Subscription.tag
public Subscription()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic 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(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 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(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 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(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 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(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 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(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, 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 IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourceCopyright © 2014–2016 University Health Network. All rights reserved.