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:
  • Field Details

    • 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.
    • status

      The status of the subscription, which marks the server state for managing the subscription.
    • topic

      protected CanonicalType topic
      The reference to the subscription topic to be notified about.
    • 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.
    • managingEntity

      Entity with authorization to make subsequent revisions to the Subscription and also determines what data the subscription is authorized to disclose.
    • reason

      protected StringType reason
      A description of why this subscription is defined.
    • 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 applicable to that resource 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 notifications to.
    • parameter

      Channel-dependent information to send as part of the notification (e.g., HTTP Headers).
    • heartbeatPeriod

      If present, a 'heartbeat' notification (keep-alive) is sent via this channel with an interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
    • 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 - e.g., `application/fhir+xml` or `application/fhir+json`. Note that: clients may request notifications in a specific FHIR version by using the [FHIR Version Parameter](http.html#version-parameter) - e.g., `application/fhir+json; fhirVersion=4.0`. additional MIME types can be allowed by channels - e.g., `text/plain` and `text/html` are defined by the Email channel.
    • content

      How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
    • maxCount

      If present, the maximum number of events that will be included in a notification bundle. 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:
    • 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

    • SP_CONTENT_LEVEL

      public static final String SP_CONTENT_LEVEL
      Search parameter: content-level

      Description: Content level included in notifications
      Type: token
      Path: Subscription.content

      See Also:
    • CONTENT_LEVEL

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENT_LEVEL
      Fluent Client search parameter constant for content-level

      Description: Content level included in notifications
      Type: token
      Path: Subscription.content

    • SP_FILTER_VALUE

      public static final String SP_FILTER_VALUE
      Search parameter: filter-value

      Description: Filter value used to narrow notifications
      Type: string
      Path: Subscription.filterBy.value

      See Also:
    • FILTER_VALUE

      public static final ca.uhn.fhir.rest.gclient.StringClientParam FILTER_VALUE
      Fluent Client search parameter constant for filter-value

      Description: Filter value used to narrow notifications
      Type: string
      Path: Subscription.filterBy.value

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter: identifier

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

      See Also:
    • 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_NAME

      public static final String SP_NAME
      Search parameter: name

      Description: A human-readable name
      Type: string
      Path: Subscription.name

      See Also:
    • NAME

      public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME
      Fluent Client search parameter constant for name

      Description: A human-readable name
      Type: string
      Path: Subscription.name

    • SP_OWNER

      public static final String SP_OWNER
      Search parameter: owner

      Description: The managing entity
      Type: reference
      Path: Subscription.managingEntity

      See Also:
    • OWNER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OWNER
      Fluent Client search parameter constant for owner

      Description: The managing entity
      Type: reference
      Path: Subscription.managingEntity

    • INCLUDE_OWNER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_OWNER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Subscription:owner".
    • SP_PAYLOAD

      public static final String SP_PAYLOAD
      Search parameter: payload

      Description: The mime-type of notifications
      Type: token
      Path: Subscription.contentType

      See Also:
    • PAYLOAD

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

      Description: The mime-type of notifications
      Type: token
      Path: Subscription.contentType

    • 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:
    • 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_TOPIC

      public static final String SP_TOPIC
      Search parameter: topic

      Description: The canonical topic url that triggers notifications
      Type: uri
      Path: Subscription.topic

      See Also:
    • TOPIC

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

      Description: The canonical topic url that triggers notifications
      Type: uri
      Path: Subscription.topic

    • SP_TYPE

      public static final String SP_TYPE
      Search parameter: type

      Description: The type of channel for the sent notifications
      Type: token
      Path: Subscription.channelType

      See Also:
    • 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: Subscription.channelType

    • SP_URL

      public static final String SP_URL
      Search parameter: url

      Description: The uri that will receive the notifications
      Type: uri
      Path: Subscription.endpoint

      See Also:
    • 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: Subscription.endpoint

  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      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.)
    • setIdentifier

      public Subscription setIdentifier(List<Identifier> theIdentifier)
      Returns:
      Returns a reference to this for easy method chaining
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

    • addIdentifier

    • getIdentifierFirstRep

      Returns:
      The first repetition of repeating field identifier, creating it if it does not already exist {3}
    • getNameElement

      Returns:
      name (A natural language name identifying the subscription.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
    • hasNameElement

      public boolean hasNameElement()
    • hasName

      public boolean hasName()
    • setNameElement

      Parameters:
      value - name (A natural language name identifying the subscription.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
    • getName

      public String getName()
      Returns:
      A natural language name identifying the subscription.
    • setName

      public Subscription setName(String value)
      Parameters:
      value - A natural language name identifying the subscription.
    • 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

      public boolean hasStatusElement()
    • hasStatus

      public boolean 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.
    • getTopicElement

      Returns:
      topic (The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value
    • hasTopicElement

      public boolean hasTopicElement()
    • hasTopic

      public boolean hasTopic()
    • setTopicElement

      Parameters:
      value - topic (The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value
    • getTopic

      public String getTopic()
      Returns:
      The reference to the subscription topic to be notified about.
    • setTopic

      public Subscription setTopic(String value)
      Parameters:
      value - The reference to the subscription topic to be notified about.
    • getContact

      Returns:
      contact (Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.)
    • setContact

      public Subscription setContact(List<ContactPoint> theContact)
      Returns:
      Returns a reference to this for easy method chaining
    • hasContact

      public boolean hasContact()
    • addContact

    • addContact

    • getContactFirstRep

      Returns:
      The first repetition of repeating field contact, creating it if it does not already exist {3}
    • 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

      public boolean hasEndElement()
    • hasEnd

      public boolean 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

      public Date getEnd()
      Returns:
      The time for the server to turn the subscription off.
    • setEnd

      public Subscription setEnd(Date value)
      Parameters:
      value - The time for the server to turn the subscription off.
    • getManagingEntity

      Returns:
      managingEntity (Entity with authorization to make subsequent revisions to the Subscription and also determines what data the subscription is authorized to disclose.)
    • hasManagingEntity

      public boolean hasManagingEntity()
    • setManagingEntity

      Parameters:
      value - managingEntity (Entity with authorization to make subsequent revisions to the Subscription and also determines what data the subscription is authorized to disclose.)
    • 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

      public boolean hasReasonElement()
    • hasReason

      public boolean 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

      public String getReason()
      Returns:
      A description of why this subscription is defined.
    • setReason

      public Subscription setReason(String value)
      Parameters:
      value - A description of why this subscription is defined.
    • getFilterBy

      Returns:
      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 applicable to that resource are met; otherwise it returns false (i.e., logical AND).)
    • setFilterBy

      Returns:
      Returns a reference to this for easy method chaining
    • hasFilterBy

      public boolean hasFilterBy()
    • addFilterBy

    • addFilterBy

    • getFilterByFirstRep

      Returns:
      The first repetition of repeating field filterBy, creating it if it does not already exist {3}
    • getChannelType

      Returns:
      channelType (The type of channel to send notifications on.)
    • hasChannelType

      public boolean hasChannelType()
    • setChannelType

      Parameters:
      value - channelType (The type of channel to send notifications on.)
    • getEndpointElement

      Returns:
      endpoint (The url that describes the actual end-point to send notifications to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value
    • hasEndpointElement

      public boolean hasEndpointElement()
    • hasEndpoint

      public boolean hasEndpoint()
    • setEndpointElement

      Parameters:
      value - endpoint (The url that describes the actual end-point to send notifications to.). This is the underlying object with id, value and extensions. The accessor "getEndpoint" gives direct access to the value
    • getEndpoint

      public String getEndpoint()
      Returns:
      The url that describes the actual end-point to send notifications to.
    • setEndpoint

      Parameters:
      value - The url that describes the actual end-point to send notifications to.
    • getParameter

      Returns:
      parameter (Channel-dependent information to send as part of the notification (e.g., HTTP Headers).)
    • setParameter

      Returns:
      Returns a reference to this for easy method chaining
    • hasParameter

      public boolean hasParameter()
    • addParameter

    • addParameter

    • getParameterFirstRep

      Returns:
      The first repetition of repeating field parameter, creating it if it does not already exist {3}
    • getHeartbeatPeriodElement

      Returns:
      heartbeatPeriod (If present, a 'heartbeat' notification (keep-alive) is sent via this channel with an interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.). This is the underlying object with id, value and extensions. The accessor "getHeartbeatPeriod" gives direct access to the value
    • hasHeartbeatPeriodElement

      public boolean hasHeartbeatPeriodElement()
    • hasHeartbeatPeriod

      public boolean hasHeartbeatPeriod()
    • setHeartbeatPeriodElement

      Parameters:
      value - heartbeatPeriod (If present, a 'heartbeat' notification (keep-alive) is sent via this channel with an interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.). This is the underlying object with id, value and extensions. The accessor "getHeartbeatPeriod" gives direct access to the value
    • getHeartbeatPeriod

      public int getHeartbeatPeriod()
      Returns:
      If present, a 'heartbeat' notification (keep-alive) is sent via this channel with an interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
    • setHeartbeatPeriod

      public Subscription setHeartbeatPeriod(int value)
      Parameters:
      value - If present, a 'heartbeat' notification (keep-alive) is sent via this channel with an interval period equal to this elements integer value in seconds. If not present, a heartbeat notification is not sent.
    • getTimeoutElement

      Returns:
      timeout (If present, the maximum amount of time a server will allow before failing a notification attempt.). This is the underlying object with id, value and extensions. The accessor "getTimeout" gives direct access to the value
    • hasTimeoutElement

      public boolean hasTimeoutElement()
    • hasTimeout

      public boolean hasTimeout()
    • setTimeoutElement

      Parameters:
      value - timeout (If present, the maximum amount of time a server will allow before failing a notification attempt.). This is the underlying object with id, value and extensions. The accessor "getTimeout" gives direct access to the value
    • getTimeout

      public int getTimeout()
      Returns:
      If present, the maximum amount of time a server will allow before failing a notification attempt.
    • setTimeout

      public Subscription setTimeout(int value)
      Parameters:
      value - If present, the maximum amount of time a server will allow before failing a notification attempt.
    • getContentTypeElement

      Returns:
      contentType (The MIME type to send the payload in - e.g., `application/fhir+xml` or `application/fhir+json`. Note that: clients may request notifications in a specific FHIR version by using the [FHIR Version Parameter](http.html#version-parameter) - e.g., `application/fhir+json; fhirVersion=4.0`. additional MIME types can be allowed by channels - e.g., `text/plain` and `text/html` are defined by the Email channel.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
    • hasContentTypeElement

      public boolean hasContentTypeElement()
    • hasContentType

      public boolean hasContentType()
    • setContentTypeElement

      Parameters:
      value - contentType (The MIME type to send the payload in - e.g., `application/fhir+xml` or `application/fhir+json`. Note that: clients may request notifications in a specific FHIR version by using the [FHIR Version Parameter](http.html#version-parameter) - e.g., `application/fhir+json; fhirVersion=4.0`. additional MIME types can be allowed by channels - e.g., `text/plain` and `text/html` are defined by the Email channel.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
    • getContentType

      Returns:
      The MIME type to send the payload in - e.g., `application/fhir+xml` or `application/fhir+json`. Note that: clients may request notifications in a specific FHIR version by using the [FHIR Version Parameter](http.html#version-parameter) - e.g., `application/fhir+json; fhirVersion=4.0`. additional MIME types can be allowed by channels - e.g., `text/plain` and `text/html` are defined by the Email channel.
    • setContentType

      Parameters:
      value - The MIME type to send the payload in - e.g., `application/fhir+xml` or `application/fhir+json`. Note that: clients may request notifications in a specific FHIR version by using the [FHIR Version Parameter](http.html#version-parameter) - e.g., `application/fhir+json; fhirVersion=4.0`. additional MIME types can be allowed by channels - e.g., `text/plain` and `text/html` are defined by the Email channel.
    • getContentElement

      Returns:
      content (How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
    • hasContentElement

      public boolean hasContentElement()
    • hasContent

      public boolean hasContent()
    • setContentElement

      Parameters:
      value - content (How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
    • getContent

      Returns:
      How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
    • setContent

      Parameters:
      value - How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.
    • getMaxCountElement

      Returns:
      maxCount (If present, the maximum number of events that will be included in a notification bundle. Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value
    • hasMaxCountElement

      public boolean hasMaxCountElement()
    • hasMaxCount

      public boolean hasMaxCount()
    • setMaxCountElement

      Parameters:
      value - maxCount (If present, the maximum number of events that will be included in a notification bundle. Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value
    • getMaxCount

      public int getMaxCount()
      Returns:
      If present, the maximum number of events that will be included in a notification bundle. Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.
    • setMaxCount

      public Subscription setMaxCount(int value)
      Parameters:
      value - If present, the maximum number of events that will be included in a notification bundle. Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class DomainResource
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public Subscription copy()
      Specified by:
      copy in class DomainResource
    • copyValues

      public void copyValues(Subscription dst)
    • typedCopy

      protected Subscription typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource