Class 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

    public class Subscription
    extends DomainResource
    The subscription resource describes a particular client's request to be notified about a SubscriptionTopic.
    See Also:
    Serialized Form
    • Field Detail

      • identifier

        protected List<Identifier> identifier
        A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.
      • name

        protected StringType name
        A natural language name identifying the subscription.
      • topic

        protected CanonicalType topic
        The reference to the subscription topic to be notified about.
      • contact

        protected List<ContactPoint> contact
        Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.
      • end

        protected InstantType end
        The time for the server to turn the subscription off.
      • reason

        protected StringType reason
        A description of why this subscription is defined.
      • filterBy

        protected List<Subscription.SubscriptionFilterByComponent> filterBy
        The filter properties to be applied to narrow the subscription topic stream. When multiple filters are applied, evaluates to true if all the conditions are met; otherwise it returns false. (i.e., logical AND).
      • channelType

        protected Coding channelType
        The type of channel to send notifications on.
      • endpoint

        protected UrlType endpoint
        The url that describes the actual end-point to send messages to.
      • header

        protected List<StringType> header
        Additional headers / information to send as part of the notification.
      • heartbeatPeriod

        protected UnsignedIntType heartbeatPeriod
        If present, a 'hearbeat" notification (keepalive) is sent via this channel with an the interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
      • timeout

        protected UnsignedIntType timeout
        If present, the maximum amount of time a server will allow before failing a notification attempt.
      • contentType

        protected CodeType contentType
        The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types "text/plain" and "text/html" may also be used for Email subscriptions.
      • maxCount

        protected PositiveIntType maxCount
        If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.
      • SP_CONTACT

        public static final String SP_CONTACT
        Search parameter: contact

        Description: Contact details for the subscription
        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 contact

        Description: Contact details for the subscription
        Type: token
        Path: Subscription.contact

      • IDENTIFIER

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
        Fluent Client search parameter constant for identifier

        Description: A subscription identifier
        Type: token
        Path: Subscription.identifier

      • SP_PAYLOAD

        public static final String SP_PAYLOAD
        Search parameter: payload

        Description: The mime-type of the notification payload
        Type: token
        Path: null

        See Also:
        Constant Field Values
      • PAYLOAD

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam PAYLOAD
        Fluent Client search parameter constant for payload

        Description: The mime-type of the notification payload
        Type: token
        Path: null

      • SP_STATUS

        public static final String SP_STATUS
        Search parameter: status

        Description: The current state of the subscription
        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 status

        Description: The current state of the subscription
        Type: token
        Path: Subscription.status

      • SP_TYPE

        public static final String SP_TYPE
        Search parameter: type

        Description: The type of channel for the sent notifications
        Type: token
        Path: null

        See Also:
        Constant Field Values
      • TYPE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
        Fluent Client search parameter constant for type

        Description: The type of channel for the sent notifications
        Type: token
        Path: null

      • SP_URL

        public static final String SP_URL
        Search parameter: url

        Description: The uri that will receive the notifications
        Type: uri
        Path: null

        See Also:
        Constant Field Values
      • URL

        public static final ca.uhn.fhir.rest.gclient.UriClientParam URL
        Fluent Client search parameter constant for url

        Description: The uri that will receive the notifications
        Type: uri
        Path: null