
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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic enumstatic class - 
Field Summary
FieldsModifier 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 StringTypeThe rules that the server should use to determine when to generate notifications for this subscription.protected InstantTypeThe time for the server to turn the subscription off.protected StringTypeA record of the last error that occurred when the server processed a notification.protected StringTypeA description of why this subscription is defined.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected 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, textFields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, metaFields 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_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET - 
Constructor Summary
ConstructorsConstructorDescriptionSubscription(StringType criteria, StringType reason, Enumeration<Subscription.SubscriptionStatus> status, Subscription.SubscriptionChannelComponent channel)  - 
Method Summary
Modifier and TypeMethodDescriptionaddTag()copy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getEnd()getError()getTag()booleanbooleanbooleanbooleanbooleanhasEnd()booleanbooleanhasError()booleanbooleanbooleanbooleanbooleanbooleanhasTag()booleanisEmpty()protected voidlistChildren(List<Property> childrenList) setCriteria(String value) setCriteriaElement(StringType value) setEndElement(InstantType value) setErrorElement(StringType value) voidsetProperty(String name, Base value) setReasonElement(StringType value) protected SubscriptionMethods 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, setTextMethods 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, setMetaMethods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setIdMethods 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, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods 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:
 listChildrenin classDomainResource
 - 
setProperty
- Overrides:
 setPropertyin classDomainResource- Throws:
 org.hl7.fhir.exceptions.FHIRException
 - 
addChild
- Overrides:
 addChildin classDomainResource- Throws:
 org.hl7.fhir.exceptions.FHIRException
 - 
fhirType
- Specified by:
 fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
 fhirTypein classDomainResource
 - 
copy
- Specified by:
 copyin classDomainResource
 - 
typedCopy
 - 
equalsDeep
- Overrides:
 equalsDeepin classDomainResource
 - 
equalsShallow
- Overrides:
 equalsShallowin classDomainResource
 - 
isEmpty
- Specified by:
 isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
 isEmptyin classDomainResource
 - 
getResourceType
- Specified by:
 getResourceTypein classResource
 
 -