PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r5.examples@5.0.0-snapshot1
    http://hl7.org/fhir/StructureDefinition/Subscription
{
  "description": "The subscription resource describes a particular client's request to be notified about a SubscriptionTopic.",
  "_filename": "StructureDefinition-Subscription.json",
  "package_name": "hl7.fhir.r5.examples",
  "date": "2021-12-21T15:26:20+11:00",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2021-12-21T15:26:20.831+11:00"
  },
  "publisher": "Health Level Seven International (FHIR Infrastructure)",
  "fhirVersion": "5.0.0-snapshot1",
  "name": "Subscription",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Subscription",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "5.0.0-snapshot1",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "Foundation.Other"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 2
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode": "business"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "Subscription",
      "min": 0,
      "definition": "The subscription resource describes a particular client's request to be notified about a SubscriptionTopic.",
      "isModifier": false,
      "short": "Notification about a SubscriptionTopic",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "infrastructure.exchange",
        "identity": "w5"
      } ],
      "mustSupport": false,
      "alias": [ "WebHook", "Hook", "Routing Rule" ],
      "max": "*",
      "id": "Subscription",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Subscription"
      },
      "isSummary": false
    }, {
      "path": "Subscription.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.id",
      "comment": "Typically, the resource has an id except for cases like the create operation, conditional updates.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "IETF language tag"
      },
      "max": "1",
      "id": "Subscription.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": false,
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Subscription.text",
      "comment": "Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Subscription.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "mustSupport": false,
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Subscription.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Subscription.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Subscription.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Subscription.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Subscription.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.identifier",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Additional identifiers (business identifier)",
      "mapping": [ {
        "map": "FiveWs.identifier",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Subscription.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.name",
      "min": 0,
      "definition": "A natural language name identifying the subscription.",
      "isModifier": false,
      "short": "Human readable name for this subscription",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.name",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.name"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.status",
      "min": 1,
      "definition": "The status of the subscription, which marks the server state for managing the subscription.",
      "isModifier": true,
      "short": "requested | active | error | off | entered-in-error",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-state|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionState"
        } ],
        "description": "The status of a subscription."
      },
      "max": "1",
      "id": "Subscription.status",
      "comment": "A client can only submit subscription resources in the requested or off state. Only the server can  move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Subscription.status"
      },
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.topic",
      "min": 1,
      "definition": "The reference to the subscription topic to be notified about.",
      "isModifier": false,
      "short": "Reference to the subscription topic being subscribed to",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" ]
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.topic",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Subscription.topic"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.contact",
      "min": 0,
      "definition": "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.",
      "isModifier": false,
      "short": "Contact details for source (e.g. troubleshooting)",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.contact",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Subscription.contact"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.end",
      "min": 0,
      "definition": "The time for the server to turn the subscription off.",
      "isModifier": false,
      "short": "When to automatically delete the subscription",
      "mapping": [ {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "instant"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.end",
      "comment": "The server is permitted to deviate from this time but should observe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.end"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.reason",
      "min": 0,
      "definition": "A description of why this subscription is defined.",
      "isModifier": false,
      "short": "Description of why this subscription was created",
      "mapping": [ {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.reason",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.reason"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.filterBy",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Criteria for narrowing the subscription topic stream",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.filterBy",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Subscription.filterBy"
      },
      "isSummary": true
    }, {
      "path": "Subscription.filterBy.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Subscription.filterBy.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Subscription.filterBy.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Subscription.filterBy.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Subscription.filterBy.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Subscription.filterBy.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.filterBy.resourceType",
      "min": 0,
      "definition": "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).",
      "isModifier": false,
      "short": "Allowed Data type or Resource (reference to definition) for this Subscription",
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/defined-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRDefinedTypeExt"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "Either a resource or a data type, including logical model types."
      },
      "max": "1",
      "id": "Subscription.filterBy.resourceType",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.filterBy.resourceType"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.filterBy.searchParamName",
      "min": 1,
      "definition": "The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName`  element.",
      "isModifier": false,
      "short": "Filter label defined in SubscriptionTopic",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.filterBy.searchParamName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Subscription.filterBy.searchParamName"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.filterBy.searchModifier",
      "min": 0,
      "definition": "The operator to apply to the filter value when determining matches (Search modifiers).",
      "isModifier": false,
      "short": "= | eq | ne | gt | lt | ge | le | sa | eb | ap | above | below | in | not-in | of-type",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-search-modifier|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionFilterBySearchModifier"
        } ],
        "description": "Operator to apply to filter label."
      },
      "max": "1",
      "id": "Subscription.filterBy.searchModifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.filterBy.searchModifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.filterBy.value",
      "min": 1,
      "definition": "The literal value or resource path as is legal in search - for example, \"Patient/123\" or \"le1950\".",
      "isModifier": false,
      "short": "Literal value or resource path",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.filterBy.value",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Subscription.filterBy.value"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.channelType",
      "min": 1,
      "definition": "The type of channel to send notifications on.",
      "isModifier": false,
      "short": "Channel type for notifications",
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-channel-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionChannelType"
        } ],
        "description": "The type of method used to execute a subscription."
      },
      "max": "1",
      "id": "Subscription.channelType",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Subscription.channelType"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.endpoint",
      "min": 0,
      "definition": "The url that describes the actual end-point to send messages to.",
      "isModifier": false,
      "short": "Where the channel points to",
      "type": [ {
        "code": "url"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.endpoint",
      "comment": "For rest-hook the end-point must be an http: or https: URL; for websocket ws: or wss:; for email, a mailto: url; and for message the endpoint can be in any form of url the server understands (usually, http/s: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since there may be more than one, clients should avoid using relative URIs).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.endpoint"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.header",
      "min": 0,
      "definition": "Additional headers / information to send as part of the notification.",
      "isModifier": false,
      "short": "Usage depends on the channel type",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.header",
      "comment": "Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Subscription.header"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.heartbeatPeriod",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Interval in seconds to send 'heartbeat' notification",
      "type": [ {
        "code": "unsignedInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.heartbeatPeriod",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.heartbeatPeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.timeout",
      "min": 0,
      "definition": "If present, the maximum amount of time a server will allow before failing a notification attempt.",
      "isModifier": false,
      "short": "Timeout in seconds to attempt notification delivery",
      "type": [ {
        "code": "unsignedInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.timeout",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.timeout"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.contentType",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "MIME type to send, or omit for no payload",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MimeType"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)"
      },
      "max": "1",
      "id": "Subscription.contentType",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.contentType"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.content",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "empty | id-only | full-resource",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-payload-content|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionPayloadContent"
        } ],
        "description": "Codes to represent how much resource content to send in the notification payload."
      },
      "max": "1",
      "id": "Subscription.content",
      "comment": "Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.content"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.notificationUrlLocation",
      "min": 0,
      "definition": "If present, where to place URLs of resources in notifications.",
      "isModifier": false,
      "short": "none | full-url | request-response | all",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-url-location|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionUrlLocation"
        } ],
        "description": "The location, in Bundle.entry, where URLs for resources should be located."
      },
      "max": "1",
      "id": "Subscription.notificationUrlLocation",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.notificationUrlLocation"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Subscription.maxCount",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Maximum number of triggering resources included in notification bundles",
      "type": [ {
        "code": "positiveInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.maxCount",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Subscription.maxCount"
      },
      "isSummary": true
    } ]
  },
  "status": "draft",
  "id": "069f5cb7-30d6-4fcb-9577-58023ec3d7f5",
  "kind": "resource",
  "url": "http://hl7.org/fhir/StructureDefinition/Subscription",
  "version": "5.0.0-snapshot1",
  "differential": {
    "element": [ {
      "path": "Subscription",
      "min": 0,
      "definition": "The subscription resource describes a particular client's request to be notified about a SubscriptionTopic.",
      "isModifier": false,
      "short": "Notification about a SubscriptionTopic",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "infrastructure.exchange",
        "identity": "w5"
      } ],
      "mustSupport": false,
      "alias": [ "WebHook", "Hook", "Routing Rule" ],
      "max": "*",
      "id": "Subscription"
    }, {
      "path": "Subscription.identifier",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Additional identifiers (business identifier)",
      "mapping": [ {
        "map": "FiveWs.identifier",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.identifier",
      "isSummary": true
    }, {
      "path": "Subscription.name",
      "min": 0,
      "definition": "A natural language name identifying the subscription.",
      "isModifier": false,
      "short": "Human readable name for this subscription",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.name",
      "isSummary": true
    }, {
      "path": "Subscription.status",
      "min": 1,
      "definition": "The status of the subscription, which marks the server state for managing the subscription.",
      "isModifier": true,
      "short": "requested | active | error | off | entered-in-error",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-state|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionState"
        } ],
        "description": "The status of a subscription."
      },
      "max": "1",
      "id": "Subscription.status",
      "comment": "A client can only submit subscription resources in the requested or off state. Only the server can  move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "path": "Subscription.topic",
      "min": 1,
      "definition": "The reference to the subscription topic to be notified about.",
      "isModifier": false,
      "short": "Reference to the subscription topic being subscribed to",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" ]
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.topic",
      "isSummary": true
    }, {
      "path": "Subscription.contact",
      "min": 0,
      "definition": "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.",
      "isModifier": false,
      "short": "Contact details for source (e.g. troubleshooting)",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.contact",
      "isSummary": true
    }, {
      "path": "Subscription.end",
      "min": 0,
      "definition": "The time for the server to turn the subscription off.",
      "isModifier": false,
      "short": "When to automatically delete the subscription",
      "mapping": [ {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "instant"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.end",
      "comment": "The server is permitted to deviate from this time but should observe it.",
      "isSummary": true
    }, {
      "path": "Subscription.reason",
      "min": 0,
      "definition": "A description of why this subscription is defined.",
      "isModifier": false,
      "short": "Description of why this subscription was created",
      "mapping": [ {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.reason",
      "isSummary": true
    }, {
      "path": "Subscription.filterBy",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Criteria for narrowing the subscription topic stream",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.filterBy",
      "isSummary": true
    }, {
      "path": "Subscription.filterBy.resourceType",
      "min": 0,
      "definition": "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).",
      "isModifier": false,
      "short": "Allowed Data type or Resource (reference to definition) for this Subscription",
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/defined-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRDefinedTypeExt"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "Either a resource or a data type, including logical model types."
      },
      "max": "1",
      "id": "Subscription.filterBy.resourceType",
      "isSummary": true
    }, {
      "path": "Subscription.filterBy.searchParamName",
      "min": 1,
      "definition": "The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName`  element.",
      "isModifier": false,
      "short": "Filter label defined in SubscriptionTopic",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.filterBy.searchParamName",
      "isSummary": true
    }, {
      "path": "Subscription.filterBy.searchModifier",
      "min": 0,
      "definition": "The operator to apply to the filter value when determining matches (Search modifiers).",
      "isModifier": false,
      "short": "= | eq | ne | gt | lt | ge | le | sa | eb | ap | above | below | in | not-in | of-type",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-search-modifier|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionFilterBySearchModifier"
        } ],
        "description": "Operator to apply to filter label."
      },
      "max": "1",
      "id": "Subscription.filterBy.searchModifier",
      "isSummary": true
    }, {
      "path": "Subscription.filterBy.value",
      "min": 1,
      "definition": "The literal value or resource path as is legal in search - for example, \"Patient/123\" or \"le1950\".",
      "isModifier": false,
      "short": "Literal value or resource path",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.filterBy.value",
      "isSummary": true
    }, {
      "path": "Subscription.channelType",
      "min": 1,
      "definition": "The type of channel to send notifications on.",
      "isModifier": false,
      "short": "Channel type for notifications",
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-channel-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionChannelType"
        } ],
        "description": "The type of method used to execute a subscription."
      },
      "max": "1",
      "id": "Subscription.channelType",
      "isSummary": true
    }, {
      "path": "Subscription.endpoint",
      "min": 0,
      "definition": "The url that describes the actual end-point to send messages to.",
      "isModifier": false,
      "short": "Where the channel points to",
      "type": [ {
        "code": "url"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.endpoint",
      "comment": "For rest-hook the end-point must be an http: or https: URL; for websocket ws: or wss:; for email, a mailto: url; and for message the endpoint can be in any form of url the server understands (usually, http/s: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since there may be more than one, clients should avoid using relative URIs).",
      "isSummary": true
    }, {
      "path": "Subscription.header",
      "min": 0,
      "definition": "Additional headers / information to send as part of the notification.",
      "isModifier": false,
      "short": "Usage depends on the channel type",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Subscription.header",
      "comment": "Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions.",
      "isSummary": true
    }, {
      "path": "Subscription.heartbeatPeriod",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Interval in seconds to send 'heartbeat' notification",
      "type": [ {
        "code": "unsignedInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.heartbeatPeriod",
      "isSummary": true
    }, {
      "path": "Subscription.timeout",
      "min": 0,
      "definition": "If present, the maximum amount of time a server will allow before failing a notification attempt.",
      "isModifier": false,
      "short": "Timeout in seconds to attempt notification delivery",
      "type": [ {
        "code": "unsignedInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.timeout",
      "isSummary": true
    }, {
      "path": "Subscription.contentType",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "MIME type to send, or omit for no payload",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MimeType"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)"
      },
      "max": "1",
      "id": "Subscription.contentType",
      "isSummary": true
    }, {
      "path": "Subscription.content",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "empty | id-only | full-resource",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-payload-content|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionPayloadContent"
        } ],
        "description": "Codes to represent how much resource content to send in the notification payload."
      },
      "max": "1",
      "id": "Subscription.content",
      "comment": "Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured.",
      "isSummary": true
    }, {
      "path": "Subscription.notificationUrlLocation",
      "min": 0,
      "definition": "If present, where to place URLs of resources in notifications.",
      "isModifier": false,
      "short": "none | full-url | request-response | all",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/subscription-url-location|5.0.0-snapshot1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubscriptionUrlLocation"
        } ],
        "description": "The location, in Bundle.entry, where URLs for resources should be located."
      },
      "max": "1",
      "id": "Subscription.notificationUrlLocation",
      "isSummary": true
    }, {
      "path": "Subscription.maxCount",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Maximum number of triggering resources included in notification bundles",
      "type": [ {
        "code": "positiveInt"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "Subscription.maxCount",
      "isSummary": true
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}