{ "description": null, "_filename": "244eb95f-f120-46b5-921c-6e8ad34b8468.json", "package_name": "rdc.interoperability.guide", "date": null, "derivation": "constraint", "publisher": null, "fhirVersion": "5.0.0", "name": "Subscription", "abstract": false, "type": "Subscription", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "1.0.0", "snapshot": { "element": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.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", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "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()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.security.empty()" } ], "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": "Entity. Role, or Act", "identity": "rim" }, { "map": "Entity, Role, or Act", "identity": "rim" }, { "map": "infrastructure.exchange", "identity": "w5" }, { "map": "N/A", "identity": "rim" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "WebHook", "Hook", "Routing Rule" ], "max": "*", "id": "Subscription", "base": { "max": "*", "min": 0, "path": "Subscription" } }, { "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": "Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Meta" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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", "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", "mapping": [ { "map": "n/a", "identity": "rim" } ], "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 its 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 its meaning or interpretation", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/all-languages|5.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean": true } ], "additional": [ { "purpose": "starter", "valueSet": "http://hl7.org/fhir/ValueSet/languages" } ], "description": "IETF language tag for a human language" }, "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", "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": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" }, { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "Subscription.text", "condition": [ "dom-6" ], "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. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.", "isModifier": false, "short": "Contained, inline Resources", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "Subscription.contained", "condition": [ "dom-2", "dom-4", "dom-3", "dom-5" ], "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", "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", "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 managable, 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" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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", "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", "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 managable, 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" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ident-1", "human": "Identifier with no value has limited utility. If communicating that an identifier value has been suppressed or missing, the value element SHOULD be present with an extension indicating the missing semantic - e.g. data-absent-reason", "source": "http://hl7.org/fhir/StructureDefinition/Identifier", "severity": "warning", "expression": "value.exists()" } ], "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": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": "FiveWs.identifier", "identity": "w5" } ], "type": [ { "code": "Identifier" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "Subscription.identifier", "comment": "The rules of the identifier.type determine if a check digit is part of the ID value or sent separately, such as through the checkDigit extension.", "base": { "max": "*", "min": 0, "path": "Subscription.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": false, "max": "1", "id": "Subscription.name", "comment": "Cannot exceed 255 characters in size", "base": { "max": "1", "min": 0, "path": "Subscription.name" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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": "n/a", "identity": "rim" }, { "map": "FiveWs.status", "identity": "w5" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/subscription-status|5.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SubscriptionStatusCodes" } ], "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", "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": "n/a", "identity": "rim" }, { "map": "FiveWs.what[x]", "identity": "w5" } ], "type": [ { "code": "canonical", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" ] } ], "mustSupport": false, "max": "1", "id": "Subscription.topic", "comment": "see [Canonical References](references.html#canonical)", "base": { "max": "1", "min": 1, "path": "Subscription.topic" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "cpt-2", "human": "A system is required if a value is provided.", "source": "http://hl7.org/fhir/StructureDefinition/ContactPoint", "severity": "error", "expression": "value.empty() or system.exists()" } ], "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": "n/a", "identity": "rim" }, { "map": "XTN", "identity": "v2" }, { "map": "TEL", "identity": "rim" }, { "map": "ContactPoint", "identity": "servd" }, { "map": "FiveWs.subject[x]", "identity": "w5" } ], "type": [ { "code": "ContactPoint" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "0", "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", "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": "n/a", "identity": "rim" }, { "map": "FiveWs.done[x]", "identity": "w5" } ], "type": [ { "code": "instant" } ], "mustSupport": false, "max": "0", "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", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))" }, { "key": "ref-2", "human": "At least one of reference, identifier and display SHALL be present (unless an extension is provided).", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.exists() or identifier.exists() or display.exists() or extension.exists()" } ], "path": "Subscription.managingEntity", "min": 0, "definition": "Entity with authorization to make subsequent revisions to the Subscription and also determines what data the subscription is authorized to disclose.", "isModifier": false, "short": "Entity responsible for Subscription changes", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.author", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/CareTeam", "http://hl7.org/fhir/StructureDefinition/HealthcareService", "http://hl7.org/fhir/StructureDefinition/Organization", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "0", "id": "Subscription.managingEntity", "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "base": { "max": "1", "min": 0, "path": "Subscription.managingEntity" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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": "n/a", "identity": "rim" }, { "map": "FiveWs.why[x]", "identity": "w5" } ], "type": [ { "code": "string" } ], "mustSupport": false, "max": "1", "id": "Subscription.reason", "comment": "Cannot exceed 2048 characters in size", "base": { "max": "1", "min": 0, "path": "Subscription.reason" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "scr-1", "human": "Subscription filters may only contain a modifier or a comparator", "source": "http://hl7.org/fhir/StructureDefinition/Subscription", "severity": "error", "expression": "(comparator.exists() and modifier.exists()).not()" } ], "path": "Subscription.filterBy", "min": 1, "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 applicable to that resource are met; otherwise it returns false (i.e., logical AND).", "isModifier": false, "short": "Criteria for narrowing the subscription topic stream", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "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.", "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": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Subscription.filterBy.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "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 managable, 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.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "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 managable, 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" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.filterBy.resourceType", "min": 0, "definition": "A resource listed in the `SubscriptionTopic` this `Subscription` references (`SubscriptionTopic.canFilterBy.resource`). This element can be used to differentiate filters for topics that include more than one resource type.", "isModifier": false, "short": "Allowed Resource (reference to definition) for this Subscription filter", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "uri" } ], "mustSupport": false, "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/subscription-types", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "FHIRTypes" } ], "additional": [ { "purpose": "ui", "valueSet": "http://hl7.org/fhir/ValueSet/all-resource-types" } ], "description": "A type of resource, or a Reference (from all versions)" }, "max": "1", "id": "Subscription.filterBy.resourceType", "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "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", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.filterBy.filterParameter", "min": 1, "definition": "The filter as defined in the `SubscriptionTopic.canFilterBy.filterParameter` element.", "isModifier": false, "short": "Filter label defined in SubscriptionTopic", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": false, "binding": { "strength": "required", "description": "Can be either \"patient\" or \"organization\"" }, "max": "1", "id": "Subscription.filterBy.filterParameter", "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 1, "path": "Subscription.filterBy.filterParameter" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.filterBy.comparator", "min": 0, "definition": "Comparator applied to this filter parameter.", "isModifier": false, "short": "eq | ne | gt | lt | ge | le | sa | eb | ap", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/search-comparator|5.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SearchComparator" } ], "description": "Search Comparator Codes applied to this filter." }, "max": "1", "id": "Subscription.filterBy.comparator", "condition": [ "scr-1" ], "comment": "Must be a comparator allowed by the SubscriptionTopic relevant to this Subscription filter.", "base": { "max": "1", "min": 0, "path": "Subscription.filterBy.comparator" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.filterBy.modifier", "min": 0, "definition": "Modifier applied to this filter parameter.", "isModifier": false, "short": "missing | exact | contains | not | text | in | not-in | below | above | type | identifier | of-type | code-text | text-advanced | iterate", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/search-modifier-code|5.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SearchModifierCode" } ], "description": "Search Modifier Code applied to this filter." }, "max": "1", "id": "Subscription.filterBy.modifier", "condition": [ "scr-1" ], "comment": "Must be a modifier allowed by the SubscriptionTopic relevant to this Subscription filter.", "base": { "max": "1", "min": 0, "path": "Subscription.filterBy.modifier" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.filterBy.value", "min": 1, "definition": "For filterParameter having value \"organization\", the value must correspond to the ID of the managing organization. For filterParameter having value \"patient\", the value must correspond to ID of a patient within the managing organization.", "isModifier": false, "short": "ID of the resource", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": false, "max": "1", "id": "Subscription.filterBy.value", "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "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", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "cod-1", "human": "A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text", "source": "http://hl7.org/fhir/StructureDefinition/Coding", "severity": "warning", "expression": "code.exists().not() implies display.exists().not()" } ], "path": "Subscription.channelType", "min": 1, "definition": "The type of channel to send notifications on. Only rest-hook is allowed.", "isModifier": false, "short": "Channel type for notifications", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "mustSupport": false, "fixedCoding": { "code": "rest-hook" }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "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", "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.", "base": { "max": "1", "min": 1, "path": "Subscription.channelType" }, "isSummary": true }, { "path": "Subscription.channelType.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.", "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": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Subscription.channelType.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Subscription.channelType.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 managable, 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.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Subscription.channelType.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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.channelType.system", "requirements": "Need to be unambiguous about the source of the definition of the symbol.", "min": 0, "definition": "The identification of the code system that defines the meaning of the symbol in the code.", "short": "Identity of the terminology system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.3", "identity": "v2" }, { "map": "./codeSystem", "identity": "rim" }, { "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem", "identity": "orim" } ], "type": [ { "code": "uri" } ], "max": "0", "id": "Subscription.channelType.system", "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.", "base": { "max": "1", "min": 0, "path": "Coding.system" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.channelType.version", "min": 0, "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", "short": "Version of the system - if relevant", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.7", "identity": "v2" }, { "map": "./codeSystemVersion", "identity": "rim" }, { "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion", "identity": "orim" } ], "type": [ { "code": "string" } ], "max": "0", "id": "Subscription.channelType.version", "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.", "base": { "max": "1", "min": 0, "path": "Coding.version" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.channelType.code", "requirements": "Need to refer to a particular code in the system.", "min": 0, "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", "short": "Symbol in syntax defined by the system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.1", "identity": "v2" }, { "map": "./code", "identity": "rim" }, { "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code", "identity": "orim" } ], "type": [ { "code": "code" } ], "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/no-binding", "valueBoolean": true } ], "max": "1", "id": "Subscription.channelType.code", "condition": [ "cod-1" ], "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 0, "path": "Coding.code" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.channelType.display", "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.", "min": 0, "definition": "A representation of the meaning of the code in the system, following the rules of the system.", "short": "Representation defined by the system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.2 - but note this is not well followed", "identity": "v2" }, { "map": "CV.displayName", "identity": "rim" }, { "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "0", "id": "Subscription.channelType.display", "condition": [ "cod-1" ], "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 0, "path": "Coding.display" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.channelType.userSelected", "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.", "min": 0, "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).", "short": "If this coding was chosen directly by the user", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Sometimes implied by being first", "identity": "v2" }, { "map": "CD.codingRationale", "identity": "rim" }, { "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]", "identity": "orim" } ], "type": [ { "code": "boolean" } ], "max": "0", "id": "Subscription.channelType.userSelected", "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.", "base": { "max": "1", "min": 0, "path": "Coding.userSelected" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.endpoint", "min": 1, "definition": "The url that describes the actual end-point to send notifications to.", "isModifier": false, "short": "Where the channel points to", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "url" } ], "mustSupport": false, "max": "1", "id": "Subscription.endpoint", "comment": "Absolute URL to the endpoint to receive notifications. Must start with https://", "base": { "max": "1", "min": 0, "path": "Subscription.endpoint" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.parameter", "min": 0, "definition": "Channel-dependent information to send as part of the notification (e.g., HTTP Headers).", "isModifier": false, "short": "Channel type", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "Subscription.parameter", "comment": "Exactly what these mean depend on the channel type. They can convey additional information to the server or recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions. Note that names are not required to be unique, but channel definitions can impose restrictions.", "base": { "max": "*", "min": 0, "path": "Subscription.parameter" }, "isSummary": false }, { "path": "Subscription.parameter.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.", "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": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Subscription.parameter.id", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Subscription.parameter.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 managable, 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.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "Subscription.parameter.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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "Subscription.parameter.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 managable, 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" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "Subscription.parameter.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", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.parameter.name", "min": 1, "definition": "Parameter name for information passed to the channel for notifications, for example in the case of a REST hook wanting to pass through an authorization header, the name would be Authorization.", "isModifier": false, "short": "Name (key) of the parameter", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": false, "max": "1", "id": "Subscription.parameter.name", "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 1, "path": "Subscription.parameter.name" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.parameter.value", "min": 1, "definition": "Parameter value for information passed to the channel for notifications, for example in the case of a REST hook wanting to pass through an authorization header, the value would be `Bearer 0193...`.", "isModifier": false, "short": "Value of the parameter to use or pass through", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": false, "max": "1", "id": "Subscription.parameter.value", "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 1, "path": "Subscription.parameter.value" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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 '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.", "isModifier": false, "short": "Interval in seconds to send 'heartbeat' notification", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "unsignedInt" } ], "mustSupport": false, "max": "0", "id": "Subscription.heartbeatPeriod", "comment": "32 bit number; for values larger than this, use decimal", "base": { "max": "1", "min": 0, "path": "Subscription.heartbeatPeriod" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "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", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "unsignedInt" } ], "mustSupport": false, "max": "1", "id": "Subscription.timeout", "comment": "Number between 10 and 20. Default is 10.", "base": { "max": "1", "min": 0, "path": "Subscription.timeout" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.contentType", "min": 1, "definition": "The MIME type to send the payload in . Only values `application/json` and `application/fhir+json` are allowed.", "isModifier": false, "short": "MIME type to send, or omit for no payload", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|5.0.0", "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/binding-definition", "valueString": "The mime type of an attachment. Any valid mime type is allowed." }, { "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", "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size", "base": { "max": "1", "min": 0, "path": "Subscription.contentType" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Subscription.content", "fixedCode": "id-only", "min": 1, "definition": "How much of the resource content to deliver in the notification payload. Only id-only is supported", "isModifier": false, "short": "empty | id-only | full-resource", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": false, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/subscription-payload-content|5.0.0", "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", "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 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.", "isModifier": false, "short": "Maximum number of events that can be combined in a single notification", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "positiveInt" } ], "mustSupport": false, "max": "1", "id": "Subscription.maxCount", "comment": "By default this value is set to 100. You can change the value to a number higher than 100.", "base": { "max": "1", "min": 0, "path": "Subscription.maxCount" }, "isSummary": true } ] }, "status": "active", "id": "888fd57c-ae86-4368-a966-a4de8982f281", "kind": "resource", "url": "http://roche.com/fhir/iop/StructureDefinition/Subscription", "version": "1", "differential": { "element": [ { "id": "Subscription.name", "path": "Subscription.name", "comment": "Cannot exceed 255 characters in size" }, { "id": "Subscription.contact", "max": "0", "path": "Subscription.contact" }, { "id": "Subscription.end", "max": "0", "path": "Subscription.end" }, { "id": "Subscription.managingEntity", "max": "0", "path": "Subscription.managingEntity" }, { "id": "Subscription.reason", "path": "Subscription.reason", "comment": "Cannot exceed 2048 characters in size" }, { "id": "Subscription.filterBy", "max": "1", "min": 1, "path": "Subscription.filterBy" }, { "id": "Subscription.filterBy.filterParameter", "path": "Subscription.filterBy.filterParameter", "binding": { "strength": "required", "description": "Can be either \"patient\" or \"organization\"" } }, { "id": "Subscription.filterBy.value", "path": "Subscription.filterBy.value", "short": "ID of the resource", "definition": "For filterParameter having value \"organization\", the value must correspond to the ID of the managing organization. For filterParameter having value \"patient\", the value must correspond to ID of a patient within the managing organization." }, { "id": "Subscription.channelType", "path": "Subscription.channelType", "definition": "The type of channel to send notifications on. Only rest-hook is allowed.", "fixedCoding": { "code": "rest-hook" } }, { "id": "Subscription.channelType.system", "max": "0", "path": "Subscription.channelType.system" }, { "id": "Subscription.channelType.version", "max": "0", "path": "Subscription.channelType.version" }, { "id": "Subscription.channelType.display", "max": "0", "path": "Subscription.channelType.display" }, { "id": "Subscription.channelType.userSelected", "max": "0", "path": "Subscription.channelType.userSelected" }, { "id": "Subscription.endpoint", "min": 1, "path": "Subscription.endpoint", "comment": "Absolute URL to the endpoint to receive notifications. Must start with https://" }, { "id": "Subscription.heartbeatPeriod", "max": "0", "path": "Subscription.heartbeatPeriod" }, { "id": "Subscription.timeout", "path": "Subscription.timeout", "comment": "Number between 10 and 20. Default is 10." }, { "id": "Subscription.contentType", "min": 1, "path": "Subscription.contentType", "definition": "The MIME type to send the payload in . Only values `application/json` and `application/fhir+json` are allowed." }, { "id": "Subscription.content", "min": 1, "path": "Subscription.content", "fixedCode": "id-only", "definition": "How much of the resource content to deliver in the notification payload. Only id-only is supported" }, { "id": "Subscription.maxCount", "path": "Subscription.maxCount", "comment": "By default this value is set to 100. You can change the value to a number higher than 100." } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Subscription" }