Class Subscription
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.
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class Subscription : DomainResource, IFhirJsonSerializable
Properties
| Improve this Doc View Source_Criteria
Extension container element for Criteria
Declaration
public Element _Criteria { get; set; }
Property Value
Type | Description |
---|---|
Element |
_End
Extension container element for End
Declaration
public Element _End { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Error
Extension container element for Error
Declaration
public Element _Error { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Reason
Extension container element for Reason
Declaration
public Element _Reason { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Status
Extension container element for Status
Declaration
public Element _Status { get; set; }
Property Value
Type | Description |
---|---|
Element |
Channel
Details where to send notifications when resources are received that meet the criteria.
Declaration
public SubscriptionChannel Channel { get; set; }
Property Value
Type | Description |
---|---|
Subscription |
Contact
Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.
Declaration
public List<ContactPoint> Contact { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Criteria
The rules that the server should use to determine when to generate notifications for this subscription.
Declaration
public string Criteria { get; set; }
Property Value
Type | Description |
---|---|
System. |
End
The time for the server to turn the subscription off.
Declaration
public string End { get; set; }
Property Value
Type | Description |
---|---|
System. |
Error
A record of the last error that occurred when the server processed a notification.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
System. |
Reason
A description of why this subscription is defined.
Declaration
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
System. |
ResourceType
Resource Type Name
Declaration
public override string ResourceType { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceStatus
The status of the subscription, which marks the server state for managing the subscription.
Declaration
public string Status { get; set; }
Property Value
Type | Description |
---|---|
System. |
Tag
A tag to add to any resource that matches the criteria, after the subscription is processed.
Declaration
public List<Coding> Tag { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Methods
| Improve this Doc View SourceDeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)
Deserialize a JSON object
Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options |
DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)
Deserialize a JSON property
Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options | |
System. |
propertyName |
SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)
Serialize to a JSON object
Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
writer | |
Json |
options | |
System. |
includeStartObject |