<?xml version="1.0" encoding="UTF-8"?>

<SubscriptionTopic xmlns="http://hl7.org/fhir">
  <id value="ZMCommunicationRequestActiveTopic"/>
  <meta>
    <profile value="http://hapi.moh.gov.zm/fhir/StructureDefinition/zm-core-communication-subscription-topic"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: SubscriptionTopic ZMCommunicationRequestActiveTopic</b></p><a name="ZMCommunicationRequestActiveTopic"> </a><a name="hcZMCommunicationRequestActiveTopic"> </a><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"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-zm-core-communication-subscription-topic.html">ZM-Core Communication Subscription Topic Profile</a></p></div><table class="grid"><tr><td><b>SubscriptionTopic</b></td><td>Active Communication Request Topic</td></tr><tr><td><b>Description</b></td><td><div><p>Notifies the Unified Health Communication Hub when a CommunicationRequest enters the active state.</p>
</div></td></tr><tr><td><b>Copyright Statement:</b></td><td> null</td></tr></table><table class="grid"><tr><td colspan="4"><b>Resource Triggers</b></td></tr><tr><th><b>Resource</b></th><th><b>Interactions</b></th><th><b>FHIR Path</b></th><th><b>Description</b></th></tr><tr><td><a href="http://hl7.org/fhir/R5/communicationrequest.html">http://hl7.org/fhir/StructureDefinition/CommunicationRequest</a></td><td>create, update</td><td>%current.status = 'active' and (%previous.empty() or %previous.status != 'active')</td><td><div><p>A communication request is created or updated to active.</p>
</div></td></tr></table><table class="grid"><tr><td colspan="3"><b>Can Filter By</b></td></tr><tr><th><b>Resource</b></th><th><b>Filter Parameter</b></th><th><b>Comparators</b></th></tr><tr><td><a href="http://hl7.org/fhir/R5/communicationrequest.html">http://hl7.org/fhir/StructureDefinition/CommunicationRequest</a></td><td>category</td><td>Equals</td></tr><tr><td><a href="http://hl7.org/fhir/R5/communicationrequest.html">http://hl7.org/fhir/StructureDefinition/CommunicationRequest</a></td><td>priority</td><td>Equals</td></tr></table><table class="grid"><tr><td colspan="2"><b>Notification Shapes</b></td></tr><tr><th><b>Resource</b></th><th><b>Includes</b></th></tr><tr><td><a href="http://hl7.org/fhir/R5/communicationrequest.html">http://hl7.org/fhir/StructureDefinition/CommunicationRequest</a></td><td>CommunicationRequest:requester</td></tr></table></div>
  </text>
  <url value="http://hapi.moh.gov.zm/fhir/SubscriptionTopic/communication-request-active"/>
  <version value="0.1.0"/>
  <name value="ZMCommunicationRequestActiveTopic"/>
  <title value="Active Communication Request Topic"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2026-08-08"/>
  <publisher value="Ministry of Health - Zambia"/>
  <contact>
    <name value="Ministry of Health - Zambia"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.moh.gov.zm/"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="digital.health@moh.gov.zm"/>
    </telecom>
  </contact>
  <contact>
    <name value="ZM-Core Team"/>
    <telecom>
      <system value="email"/>
      <value value="zm-core@moh.gov.zm"/>
      <use value="work"/>
    </telecom>
  </contact>
  <description value="Notifies the Unified Health Communication Hub when a CommunicationRequest enters the active state."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="ZM"/>
      <display value="Zambia"/>
    </coding>
  </jurisdiction>
  <purpose value="Activate governed recipient resolution, routing, delivery, acknowledgement, and escalation workflows."/>
  <resourceTrigger>
    <description value="A communication request is created or updated to active."/>
    <resource value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest"/>
    <supportedInteraction value="create"/>
    <supportedInteraction value="update"/>
    <fhirPathCriteria value="%current.status = 'active' and (%previous.empty() or %previous.status != 'active')"/>
  </resourceTrigger>
  <canFilterBy>
    <description value="Filter workflows by communication governance lane."/>
    <resource value="CommunicationRequest"/>
    <filterParameter value="category"/>
    <comparator value="eq"/>
  </canFilterBy>
  <canFilterBy>
    <description value="Filter workflows by request priority."/>
    <resource value="CommunicationRequest"/>
    <filterParameter value="priority"/>
    <comparator value="eq"/>
  </canFilterBy>
  <notificationShape>
    <resource value="CommunicationRequest"/>
    <include value="CommunicationRequest:requester"/>
  </notificationShape>
</SubscriptionTopic>