Package org.hl7.fhir.dstu2.model
Class Subscription
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.BaseResource
org.hl7.fhir.dstu2.model.Resource
org.hl7.fhir.dstu2.model.DomainResource
org.hl7.fhir.dstu2.model.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
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.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionDetails where to send notifications when resources are received that meet the criteria.protected List
<ContactPoint> Contact details for a human to contact about the subscription.protected StringType
The rules that the server should use to determine when to generate notifications for this subscription.protected InstantType
The time for the server to turn the subscription off.protected StringType
A record of the last error that occurred when the server processed a notification.protected StringType
A description of why this subscription is defined.static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected Enumeration
<Subscription.SubscriptionStatus> The status of the subscription, which marks the server state for managing the subscription.A tag to add to any resource that matches the criteria, after the subscription is processed.Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorDescriptionSubscription
(StringType criteria, StringType reason, Enumeration<Subscription.SubscriptionStatus> status, Subscription.SubscriptionChannelComponent channel) -
Method Summary
Modifier and TypeMethodDescriptionaddTag()
copy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getEnd()
getError()
getTag()
boolean
boolean
boolean
boolean
boolean
hasEnd()
boolean
boolean
hasError()
boolean
boolean
boolean
boolean
boolean
boolean
hasTag()
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) setCriteria
(String value) setCriteriaElement
(StringType value) setEndElement
(InstantType value) setErrorElement
(StringType value) void
setProperty
(String name, Base value) setReasonElement
(StringType value) protected Subscription
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getModifierExtension, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setText
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
criteria
The rules that the server should use to determine when to generate notifications for this subscription. -
contact
Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting. -
reason
A description of why this subscription is defined. -
status
The status of the subscription, which marks the server state for managing the subscription. -
error
A record of the last error that occurred when the server processed a notification. -
channel
Details where to send notifications when resources are received that meet the criteria. -
end
The time for the server to turn the subscription off. -
tag
A tag to add to any resource that matches the criteria, after the subscription is processed. -
SP_PAYLOAD
- See Also:
-
SP_CRITERIA
- See Also:
-
SP_CONTACT
- See Also:
-
SP_TAG
- See Also:
-
SP_TYPE
- See Also:
-
SP_URL
- See Also:
-
SP_STATUS
- See Also:
-
-
Constructor Details
-
Subscription
public Subscription() -
Subscription
public Subscription(StringType criteria, StringType reason, Enumeration<Subscription.SubscriptionStatus> status, Subscription.SubscriptionChannelComponent channel)
-
-
Method Details
-
getCriteriaElement
- Returns:
criteria
(The rules that the server should use to determine when to generate notifications for this subscription.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
-
hasCriteriaElement
-
hasCriteria
-
setCriteriaElement
- Parameters:
value
-criteria
(The rules that the server should use to determine when to generate notifications for this subscription.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
-
getCriteria
- Returns:
- The rules that the server should use to determine when to generate notifications for this subscription.
-
setCriteria
- Parameters:
value
- The rules that the server should use to determine when to generate notifications for this subscription.
-
getContact
- Returns:
contact
(Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.)
-
hasContact
-
addContact
- Returns:
contact
(Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.)
-
addContact
-
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.
-
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.
-
getErrorElement
- Returns:
error
(A record of the last error that occurred when the server processed a notification.). This is the underlying object with id, value and extensions. The accessor "getError" gives direct access to the value
-
hasErrorElement
-
hasError
-
setErrorElement
- Parameters:
value
-error
(A record of the last error that occurred when the server processed a notification.). This is the underlying object with id, value and extensions. The accessor "getError" gives direct access to the value
-
getError
- Returns:
- A record of the last error that occurred when the server processed a notification.
-
setError
- Parameters:
value
- A record of the last error that occurred when the server processed a notification.
-
getChannel
- Returns:
channel
(Details where to send notifications when resources are received that meet the criteria.)
-
hasChannel
-
setChannel
- Parameters:
value
-channel
(Details where to send notifications when resources are received that meet the criteria.)
-
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.
-
getTag
- Returns:
tag
(A tag to add to any resource that matches the criteria, after the subscription is processed.)
-
hasTag
-
addTag
- Returns:
tag
(A tag to add to any resource that matches the criteria, after the subscription is processed.)
-
addTag
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
- Specified by:
copy
in classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-