{"canFilterBy":[{"description":"Filter based on the subject of an encounter.","filterParameter":"subject","resource":"Encounter"},{"description":"Filter based on the group membership of the subject of an encounter.","filterParameter":"_in","resource":"Encounter"},{"comparator":["gt","lt","ge","le"],"description":"Filter based on the length of an encounter.","filterParameter":"length","resource":"Encounter"},{"description":"Filter based on the account for billing an encounter.","filterParameter":"account","modifier":["missing","not","identifier"],"resource":"Encounter"}],"date":"2019-01-01","description":"Example topic for completed encounters","id":"example","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:1caa02ba-051b-4602-8856-65921748ae76"}],"notificationShape":[{"include":["Encounter:patient&iterate=Patient.link","Encounter:practitioner","Encounter:service-provider","Encounter:account","Encounter:diagnosis","Encounter:observation","Encounter:location"],"resource":"Encounter"}],"resourceTrigger":[{"description":"An Encounter has been completed","fhirPathCriteria":"(%previous.empty() | (%previous.status != 'completed')) and (%current.status = 'completed')","queryCriteria":{"current":"status=completed","previous":"status:not=completed","requireBoth":true,"resultForCreate":"test-passes","resultForDelete":"test-fails"},"resource":"http://hl7.org/fhir/StructureDefinition/Encounter","supportedInteraction":["update"]}],"resourceType":"SubscriptionTopic","status":"draft","text":{"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: SubscriptionTopic</b><a name=\"example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource SubscriptionTopic &quot;example&quot; </p></div><p><b>url</b>: <code>http://example.org/FHIR/R5/SubscriptionTopic/example</code></p><p><b>identifier</b>: id:\u00a0urn:uuid:1caa02ba-051b-4602-8856-65921748ae76</p><p><b>version</b>: 1.0.0-beta.1</p><p><b>title</b>: example</p><p><b>status</b>: draft</p><p><b>date</b>: 2019-01-01</p><p><b>description</b>: Example topic for completed encounters</p><blockquote><p><b>resourceTrigger</b></p><p><b>description</b>: An Encounter has been completed</p><p><b>resource</b>: <a href=\"encounter.html\">Encounter</a></p><p><b>supportedInteraction</b>: update</p><h3>QueryCriteria</h3><table class=\"grid\"><tr><td>-</td><td><b>Previous</b></td><td><b>ResultForCreate</b></td><td><b>Current</b></td><td><b>ResultForDelete</b></td><td><b>RequireBoth</b></td></tr><tr><td>*</td><td>status:not=completed</td><td>test-passes</td><td>status=completed</td><td>test-fails</td><td>true</td></tr></table><p><b>fhirPathCriteria</b>: (%previous.empty() | (%previous.status != 'completed')) and (%current.status = 'completed')</p></blockquote><blockquote><p><b>canFilterBy</b></p><p><b>description</b>: Filter based on the subject of an encounter.</p><p><b>resource</b>: <a href=\"encounter.html\">Encounter</a></p><p><b>filterParameter</b>: subject</p></blockquote><blockquote><p><b>canFilterBy</b></p><p><b>description</b>: Filter based on the group membership of the subject of an encounter.</p><p><b>resource</b>: <a href=\"encounter.html\">Encounter</a></p><p><b>filterParameter</b>: _in</p></blockquote><blockquote><p><b>canFilterBy</b></p><p><b>description</b>: Filter based on the length of an encounter.</p><p><b>resource</b>: <a href=\"encounter.html\">Encounter</a></p><p><b>filterParameter</b>: length</p><p><b>comparator</b>: gt, lt, ge, le</p></blockquote><blockquote><p><b>canFilterBy</b></p><p><b>description</b>: Filter based on the account for billing an encounter.</p><p><b>resource</b>: <a href=\"encounter.html\">Encounter</a></p><p><b>filterParameter</b>: account</p><p><b>modifier</b>: missing, not, identifier</p></blockquote><h3>NotificationShapes</h3><table class=\"grid\"><tr><td>-</td><td><b>Resource</b></td><td><b>Include</b></td></tr><tr><td>*</td><td><a href=\"encounter.html\">Encounter</a></td><td>Encounter:patient&amp;iterate=Patient.link, Encounter:practitioner, Encounter:service-provider, Encounter:account, Encounter:diagnosis, Encounter:observation, Encounter:location</td></tr></table></div>","status":"generated"},"title":"example","url":"http://example.org/FHIR/R5/SubscriptionTopic/example","version":"1.0.0-beta.1"}