{"resourceType":"SubscriptionTopic","id":"admission-lm","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/admission-lm","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:44c36873-5167-4b17-a15d-df4f8cb51343"}],"title":"admission-lm","status":"active","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example admission topic using a Logical Model","trigger":[{"description":"Logical Model of Admission being created or updated into an `in-progress` state","resource":"http://example.org/LogicalModels/Admission","supportedInteraction":["create","update"],"event":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"A01","display":"ADT/ACK - Admit/visit notification"}]},"canFilterBy":[{"description":"Matching based on the Patient. Input is expected to be a search `token` and match against the ID of the patient.","resource":"http://example.org/LogicalModels/Admission","filterParameter":"Patient","filterDefinition":"http://example.org/LogicalModels/Admission/Match_Patient"},{"description":"Matching based on the Patient Group. Input is expected to be a `string` and match against the logical group name where a patient has membership.","resource":"http://example.org/LogicalModels/Admission","filterParameter":"PatientGroup","filterDefinition":"http://example.org/LogicalModels/Admission/Match_Patient_Group"}],"notificationShape":[{"resource":"http://example.org/LogicalModels/Admission"}]}]}
{"resourceType":"SubscriptionTopic","id":"admission-parameters","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/admission-parameters","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:6651a462-e65e-4ef1-9bab-b3ae997e5be9"}],"title":"admission-parameters","status":"active","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example admission topic using a Parameters representation","trigger":[{"description":"Patient admission or visit begins.","resource":"Parameters","supportedInteraction":["create","update"],"event":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"A01","display":"ADT/ACK - Admit/visit notification"}]},"canFilterBy":[{"description":"Matching based on the Patient MRN, expected to be in a `part` named `mrn` and contain a `string` value, matched using `token` search rules.","resource":"Parameters","filterParameter":"MRN"}],"notificationShape":[{"resource":"Parameters"}]}]}
{"resourceType":"SubscriptionTopic","id":"admission-basic","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/admission-basic","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:0b67b140-59d0-4c49-9fe8-b62f7fcf4eb9"}],"title":"admission-basic","status":"active","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example admission topic using a Basic resource","trigger":[{"description":"Basic Resource Admission being created or updated into an `in-progress` state","resource":"http://hl7.org/fhir/StructureDefinition/Basic","supportedInteraction":["create","update"],"queryCriteria":{"previous":"code\u003dAdmission\u0026admission-status:not\u003din-progress","resultForCreate":"test-passes","current":"code\u003dAdmission\u0026admission-status\u003din-progress","resultForDelete":"test-fails","requireBoth":true},"fhirPathCriteria":"(%previous.id.empty() or (%previous.extension(\u0027status\u0027) !\u003d \u0027in-progress\u0027)) and (%current.extension(\u0027status\u0027) \u003d \u0027in-progress\u0027)","event":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"A01","display":"ADT/ACK - Admit/visit notification"}]},"canFilterBy":[{"description":"Matching based on the Patient. Input is expected to be a search `reference` and match against a reference to the patient.","resource":"Basic","filterParameter":"admission-patient","filterDefinition":"http://example.org/SearchParameters/Basic/admission-patient"},{"description":"Matching based on the Patient Group. Input is expected to be a search `reference` and match against a reference to a group the patient has membership in.","resource":"Basic","filterParameter":"admission-patient-group","filterDefinition":"http://example.org/SearchParameters/Basic/admission-patient-group"}],"notificationShape":[{"resource":"Basic","include":["Basic:admission-patient","Basic:admission-patient-group","Basic:admission-diagnosis"]}]}]}
{"resourceType":"SubscriptionTopic","id":"admission-binary","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/admission-binary","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:174f26f9-c66f-4165-9407-2c90e3fc3123"}],"title":"admission-binary","status":"active","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example admission topic using a Binary resource","trigger":[{"description":"Admission being created or updated into an `in-progress` state","resource":"http://hl7.org/fhir/StructureDefinition/Basic","supportedInteraction":["create","update"],"event":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"A01","display":"ADT/ACK - Admit/visit notification"}]},"canFilterBy":[{"description":"Matching based on the Patient. Input is expected to be a search `reference` and match against a reference to the patient.","resource":"Binary","filterParameter":"admission-patient","filterDefinition":"http://example.org/SearchParameters/Binary/admission-patient"},{"description":"Matching based on the Patient Group. Input is expected to be a search `reference` and match against a reference to a group the patient has membership in.","resource":"Basic","filterParameter":"admission-patient-group","filterDefinition":"http://example.org/SearchParameters/Binary/admission-patient-group"}],"notificationShape":[{"resource":"Binary","include":["Binary:admission-patient","Binary:admission-patient-group"]}]}]}
{"resourceType":"SubscriptionTopic","id":"admission","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/admission","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:915c2040-b0a8-4935-adf8-94d6e1a74052"}],"title":"admission","status":"active","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example admission topic","trigger":[{"description":"Encounter resource moving to state \u0027in-progress\u0027 or event matching HL7v2 ADT^A01","resource":"http://hl7.org/fhir/StructureDefinition/Encounter","supportedInteraction":["create","update"],"queryCriteria":{"previous":"status:not\u003din-progress","resultForCreate":"test-passes","current":"status\u003din-progress","resultForDelete":"test-fails","requireBoth":true},"fhirPathCriteria":"(%previous.id.empty() or (%previous.status !\u003d \u0027in-progress\u0027)) and (%current.status \u003d \u0027in-progress\u0027)","event":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0003","code":"A01","display":"ADT/ACK - Admit/visit notification"}]},"canFilterBy":[{"description":"Matching based on the Patient (subject) of an Encounter or based on the Patient\u0027s group membership (in/not-in).","resource":"Encounter","filterParameter":"patient","modifier":["in","not-in"]}],"notificationShape":[{"resource":"Encounter","include":["Encounter:patient","Encounter:practitioner","Encounter:service-provider","Encounter:account","Encounter:diagnosis","Encounter:observation","Encounter:location"]}]}]}
{"resourceType":"SubscriptionTopic","id":"example","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://example.org/FHIR/SubscriptionTopic/example","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:uuid:1caa02ba-051b-4602-8856-65921748ae76"}],"version":"1.0.0-beta.1","title":"example","status":"draft","date":"2019-01-01","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"Example topic for completed encounters","trigger":[{"description":"An Encounter has been completed","resource":"http://hl7.org/fhir/StructureDefinition/Encounter","supportedInteraction":["update"],"queryCriteria":{"previous":"status:not\u003dcompleted","resultForCreate":"test-passes","current":"status\u003dcompleted","resultForDelete":"test-fails","requireBoth":true},"fhirPathCriteria":"(%previous.empty() | (%previous.status !\u003d \u0027completed\u0027)) and (%current.status \u003d \u0027completed\u0027)","canFilterBy":[{"description":"Filter based on the subject of an encounter.","resource":"Encounter","filterParameter":"subject"},{"description":"Filter based on the group membership of the subject of an encounter.","resource":"Encounter","filterParameter":"_in"},{"description":"Filter based on the length of an encounter.","resource":"Encounter","filterParameter":"length","comparator":["gt","lt","ge","le"]},{"description":"Filter based on the account for billing an encounter.","resource":"Encounter","filterParameter":"account","modifier":["missing","not","identifier"]}],"notificationShape":[{"resource":"Encounter","include":["Encounter:patient\u0026iterate\u003dPatient.link","Encounter:practitioner","Encounter:service-provider","Encounter:account","Encounter:diagnosis","Encounter:observation","Encounter:location"],"relatedQuery":[{"query":"Patient?_include:iterate\u003dPatient:link"},{"queryType":{"system":"http://example.org/fhir/CodeSystem-patient-queries","code":"current-providers"},"query":"$current-providers"}]}]}]}