<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:participant id="Participant_1" name="Appointment reminder" processRef="Process_1" />
  </bpmn:collaboration>
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_System" name="Booking system">
        <bpmn:flowNodeRef>Start_TwoDaysBefore</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_Channels</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_SendEmail</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_SendSms</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_Join</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_RecordReminder</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Reminded</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Reception" name="Reception">
        <bpmn:flowNodeRef>Task_CallPatient</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="Start_TwoDaysBefore" name="2 days before the appointment">
      <bpmn:outgoing>Flow_1</bpmn:outgoing>
      <bpmn:timerEventDefinition id="TimerDef_1" />
    </bpmn:startEvent>
    <bpmn:inclusiveGateway id="Gateway_Channels" name="How can we reach the patient?" gatewayDirection="Diverging" default="Flow_Neither">
      <bpmn:incoming>Flow_1</bpmn:incoming>
      <bpmn:outgoing>Flow_Email</bpmn:outgoing>
      <bpmn:outgoing>Flow_Sms</bpmn:outgoing>
      <bpmn:outgoing>Flow_Neither</bpmn:outgoing>
    </bpmn:inclusiveGateway>
    <bpmn:sendTask id="Task_SendEmail" name="Send email reminder">
      <bpmn:incoming>Flow_Email</bpmn:incoming>
      <bpmn:outgoing>Flow_2</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:sendTask id="Task_SendSms" name="Send SMS reminder">
      <bpmn:incoming>Flow_Sms</bpmn:incoming>
      <bpmn:outgoing>Flow_3</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:userTask id="Task_CallPatient" name="Call the patient">
      <bpmn:incoming>Flow_Neither</bpmn:incoming>
      <bpmn:outgoing>Flow_4</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:inclusiveGateway id="Gateway_Join" gatewayDirection="Converging">
      <bpmn:incoming>Flow_2</bpmn:incoming>
      <bpmn:incoming>Flow_3</bpmn:incoming>
      <bpmn:incoming>Flow_4</bpmn:incoming>
      <bpmn:outgoing>Flow_5</bpmn:outgoing>
    </bpmn:inclusiveGateway>
    <bpmn:serviceTask id="Task_RecordReminder" name="Record reminder">
      <bpmn:incoming>Flow_5</bpmn:incoming>
      <bpmn:outgoing>Flow_6</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="End_Reminded" name="Patient reminded">
      <bpmn:incoming>Flow_6</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1" sourceRef="Start_TwoDaysBefore" targetRef="Gateway_Channels" />
    <bpmn:sequenceFlow id="Flow_Email" name="Has email" sourceRef="Gateway_Channels" targetRef="Task_SendEmail" />
    <bpmn:sequenceFlow id="Flow_Sms" name="Has mobile number" sourceRef="Gateway_Channels" targetRef="Task_SendSms" />
    <bpmn:sequenceFlow id="Flow_Neither" name="Neither" sourceRef="Gateway_Channels" targetRef="Task_CallPatient" />
    <bpmn:sequenceFlow id="Flow_2" sourceRef="Task_SendEmail" targetRef="Gateway_Join" />
    <bpmn:sequenceFlow id="Flow_3" sourceRef="Task_SendSms" targetRef="Gateway_Join" />
    <bpmn:sequenceFlow id="Flow_4" sourceRef="Task_CallPatient" targetRef="Gateway_Join" />
    <bpmn:sequenceFlow id="Flow_5" sourceRef="Gateway_Join" targetRef="Task_RecordReminder" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Task_RecordReminder" targetRef="End_Reminded" />
  </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
  <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
    <bpmndi:BPMNShape id="BPMNShape_Participant_1" bpmnElement="Participant_1" isHorizontal="true">
      <dc:Bounds x="0" y="0" width="1308" height="490"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Lane_System" bpmnElement="Lane_System" isHorizontal="true">
      <dc:Bounds x="30" y="0" width="1278" height="290"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Lane_Reception" bpmnElement="Lane_Reception" isHorizontal="true">
      <dc:Bounds x="30" y="290" width="1278" height="200"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Start_TwoDaysBefore" bpmnElement="Start_TwoDaysBefore">
      <dc:Bounds x="192" y="62" width="36" height="36"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="165" y="103" width="90" height="28"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Gateway_Channels" bpmnElement="Gateway_Channels">
      <dc:Bounds x="385" y="55" width="50" height="50"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="299" y="29" width="90" height="28"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_SendEmail" bpmnElement="Task_SendEmail">
      <dc:Bounds x="560" y="40" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_SendSms" bpmnElement="Task_SendSms">
      <dc:Bounds x="560" y="170" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_CallPatient" bpmnElement="Task_CallPatient">
      <dc:Bounds x="560" y="350" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Gateway_Join" bpmnElement="Gateway_Join">
      <dc:Bounds x="785" y="55" width="50" height="50"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_RecordReminder" bpmnElement="Task_RecordReminder">
      <dc:Bounds x="960" y="40" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_End_Reminded" bpmnElement="End_Reminded">
      <dc:Bounds x="1192" y="62" width="36" height="36"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="1165" y="103" width="89" height="14"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_1" bpmnElement="Flow_1">
      <di:waypoint x="228" y="80"/>
      <di:waypoint x="385" y="80"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_Email" bpmnElement="Flow_Email">
      <di:waypoint x="435" y="80"/>
      <di:waypoint x="560" y="80"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="439" y="64" width="55" height="14"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_Sms" bpmnElement="Flow_Sms">
      <di:waypoint x="410" y="55"/>
      <di:waypoint x="410" y="37"/>
      <di:waypoint x="527" y="37"/>
      <di:waypoint x="527" y="210"/>
      <di:waypoint x="560" y="210"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="415" y="23" width="61" height="28"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_Neither" bpmnElement="Flow_Neither">
      <di:waypoint x="410" y="105"/>
      <di:waypoint x="410" y="390"/>
      <di:waypoint x="560" y="390"/>
      <bpmndi:BPMNLabel>
        <dc:Bounds x="415" y="109" width="41" height="14"/>
      </bpmndi:BPMNLabel>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_2" bpmnElement="Flow_2">
      <di:waypoint x="660" y="80"/>
      <di:waypoint x="785" y="80"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_3" bpmnElement="Flow_3">
      <di:waypoint x="660" y="210"/>
      <di:waypoint x="752" y="210"/>
      <di:waypoint x="752" y="37"/>
      <di:waypoint x="810" y="37"/>
      <di:waypoint x="810" y="55"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_4" bpmnElement="Flow_4">
      <di:waypoint x="660" y="390"/>
      <di:waypoint x="810" y="390"/>
      <di:waypoint x="810" y="105"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_5" bpmnElement="Flow_5">
      <di:waypoint x="835" y="80"/>
      <di:waypoint x="960" y="80"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_6" bpmnElement="Flow_6">
      <di:waypoint x="1060" y="80"/>
      <di:waypoint x="1192" y="80"/>
    </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
