<?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_Process_medicinskie_centry" targetNamespace="https://stackum.ru/bpmn" exporter="Стэкум" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_Process_medicinskie_centry">
    <bpmn:participant id="Participant_Process_medicinskie_centry" name="Запись пациента по телефону" processRef="Process_medicinskie_centry"/>
  </bpmn:collaboration>
  <bpmn:process id="Process_medicinskie_centry" name="Запись пациента по телефону" isExecutable="false">
    <bpmn:laneSet id="LaneSet_Process_medicinskie_centry">
      <bpmn:lane id="Lane_patient" name="Пациент">
        <bpmn:flowNodeRef>start</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>pay</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_admin" name="Администратор">
        <bpmn:flowNodeRef>book</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>check</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_system" name="Стэкум">
        <bpmn:flowNodeRef>card</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>contract</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>gw</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>remind</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_doctor" name="Врач">
        <bpmn:flowNodeRef>visit</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="start" name="Пациент звонит в клинику"></bpmn:startEvent>
    <bpmn:serviceTask id="card" name="Показывает карточку пациента по номеру"></bpmn:serviceTask>
    <bpmn:userTask id="book" name="Записывает к врачу из карточки звонка"></bpmn:userTask>
    <bpmn:serviceTask id="contract" name="Готовит договор по шаблону"></bpmn:serviceTask>
    <bpmn:exclusiveGateway id="gw" name="Услуга с предоплатой?"></bpmn:exclusiveGateway>
    <bpmn:userTask id="pay" name="Оплачивает по ссылке"></bpmn:userTask>
    <bpmn:sendTask id="remind" name="SMS: напоминание и «Придёте?»"></bpmn:sendTask>
    <bpmn:userTask id="visit" name="Принимает пациента"></bpmn:userTask>
    <bpmn:userTask id="check" name="Чек 54-ФЗ: зачёт предоплаты и доплата"></bpmn:userTask>
    <bpmn:endEvent id="end" name="Визит закрыт"></bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1_start_card" sourceRef="start" targetRef="card"/>
    <bpmn:sequenceFlow id="Flow_2_card_book" sourceRef="card" targetRef="book"/>
    <bpmn:sequenceFlow id="Flow_3_book_contract" sourceRef="book" targetRef="contract"/>
    <bpmn:sequenceFlow id="Flow_4_contract_gw" sourceRef="contract" targetRef="gw"/>
    <bpmn:sequenceFlow id="Flow_5_gw_pay" sourceRef="gw" targetRef="pay" name="Да"/>
    <bpmn:sequenceFlow id="Flow_6_gw_remind" sourceRef="gw" targetRef="remind" name="Нет"/>
    <bpmn:sequenceFlow id="Flow_7_pay_remind" sourceRef="pay" targetRef="remind"/>
    <bpmn:sequenceFlow id="Flow_8_remind_visit" sourceRef="remind" targetRef="visit"/>
    <bpmn:sequenceFlow id="Flow_9_visit_check" sourceRef="visit" targetRef="check"/>
    <bpmn:sequenceFlow id="Flow_10_check_end" sourceRef="check" targetRef="end"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_Process_medicinskie_centry">
    <bpmndi:BPMNPlane id="Plane_Process_medicinskie_centry" bpmnElement="Collaboration_Process_medicinskie_centry">
      <bpmndi:BPMNShape id="Participant_di" bpmnElement="Participant_Process_medicinskie_centry" isHorizontal="true"><dc:Bounds x="0" y="0" width="1844" height="528"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_patient_di" bpmnElement="Lane_patient" isHorizontal="true"><dc:Bounds x="44" y="0" width="1800" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_admin_di" bpmnElement="Lane_admin" isHorizontal="true"><dc:Bounds x="44" y="132" width="1800" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_system_di" bpmnElement="Lane_system" isHorizontal="true"><dc:Bounds x="44" y="264" width="1800" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_doctor_di" bpmnElement="Lane_doctor" isHorizontal="true"><dc:Bounds x="44" y="396" width="1800" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="start_di" bpmnElement="start"><dc:Bounds x="134" y="48" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="card_di" bpmnElement="card"><dc:Bounds x="262" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="book_di" bpmnElement="book"><dc:Bounds x="438" y="164" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="contract_di" bpmnElement="contract"><dc:Bounds x="614" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="gw_di" bpmnElement="gw" isMarkerVisible="true"><dc:Bounds x="833" y="307" width="46" height="46"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="pay_di" bpmnElement="pay"><dc:Bounds x="966" y="32" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="remind_di" bpmnElement="remind"><dc:Bounds x="1142" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="visit_di" bpmnElement="visit"><dc:Bounds x="1318" y="428" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="check_di" bpmnElement="check"><dc:Bounds x="1494" y="164" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="end_di" bpmnElement="end"><dc:Bounds x="1718" y="180" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_1_start_card_di" bpmnElement="Flow_1_start_card"><di:waypoint x="170" y="66"/><di:waypoint x="238" y="66"/><di:waypoint x="238" y="330"/><di:waypoint x="262" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_card_book_di" bpmnElement="Flow_2_card_book"><di:waypoint x="394" y="330"/><di:waypoint x="414" y="330"/><di:waypoint x="414" y="198"/><di:waypoint x="438" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_book_contract_di" bpmnElement="Flow_3_book_contract"><di:waypoint x="570" y="198"/><di:waypoint x="590" y="198"/><di:waypoint x="590" y="330"/><di:waypoint x="614" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_contract_gw_di" bpmnElement="Flow_4_contract_gw"><di:waypoint x="746" y="330"/><di:waypoint x="833" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_gw_pay_di" bpmnElement="Flow_5_gw_pay"><di:waypoint x="856" y="307"/><di:waypoint x="856" y="66"/><di:waypoint x="966" y="66"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_gw_remind_di" bpmnElement="Flow_6_gw_remind"><di:waypoint x="879" y="330"/><di:waypoint x="1142" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_pay_remind_di" bpmnElement="Flow_7_pay_remind"><di:waypoint x="1098" y="66"/><di:waypoint x="1118" y="66"/><di:waypoint x="1118" y="330"/><di:waypoint x="1142" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_remind_visit_di" bpmnElement="Flow_8_remind_visit"><di:waypoint x="1274" y="330"/><di:waypoint x="1294" y="330"/><di:waypoint x="1294" y="462"/><di:waypoint x="1318" y="462"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_visit_check_di" bpmnElement="Flow_9_visit_check"><di:waypoint x="1450" y="462"/><di:waypoint x="1470" y="462"/><di:waypoint x="1470" y="198"/><di:waypoint x="1494" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_check_end_di" bpmnElement="Flow_10_check_end"><di:waypoint x="1626" y="198"/><di:waypoint x="1718" y="198"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
