<?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"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  id="Definitions_Contraloria"
                  targetNamespace="http://workmed.cl/bpmn/contraloria"
                  exporter="EMERCOM SpA"
                  exporterVersion="2.0">

  <bpmn:collaboration id="Collaboration_CT">
    <bpmn:participant id="Participant_CT" name="Workmed - UCI / Contraloría de Salud (dueño: Vicente Rivano · ~12 administrativos + médicos contralores + psicólogos Salud Mental)" processRef="Process_CT"/>
  </bpmn:collaboration>

  <bpmn:process id="Process_CT" isExecutable="false">
    <bpmn:laneSet id="LaneSet_CT">
      <bpmn:lane id="Lane_OpHandoff" name="Operación (handoff in) · Pablo Martínez · paquete clínico cerrado SACMed/OneDrive">
        <bpmn:flowNodeRef>Start_CT</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Origen</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_JefaCentro" name="Jefa Centro / Supervisora · María Ignacia Sandoval (Manuel Montt) · D-11 match Op↔Contraloría">
        <bpmn:flowNodeRef>Task_DigitacionMasiva</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_MatchExcelWA</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Admin" name="Administrativo Contraloría · UCI ~12 personas · paso 1 FlowMed (preinforme + espejo SACMed)">
        <bpmn:flowNodeRef>SubProc_Preinforme</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Drogas</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_AutoLibera</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Medico" name="Médico Contralor · paso 2 FlowMed · firma médica = autoridad legal Ley 16.744 · meta 6 inf/h">
        <bpmn:flowNodeRef>UserTask_RevisaFirma</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Dictamen</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Service_InformeApto</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Service_InformeNoApto</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Send_Interconsulta</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Receive_DocExterna</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_SaludMental" name="Salud Mental (paralelo · RN-13) · psicólogos + administrativos SM segregados del pool médico">
        <bpmn:flowNodeRef>SubProc_SaludMental</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Vicente" name="Vicente Rivano · Subgerente UCI · monitoreo Power BI + cierre de mes + productividad">
        <bpmn:flowNodeRef>SubProc_Monitoreo</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>SubProc_CierreMes</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Finanzas" name="Finanzas (handoff out) · valorización + DTE post-cierre (RN-12 SLA)">
        <bpmn:flowNodeRef>Receive_Finanzas</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Finanzas</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Cliente" name="Cliente Mandante · Anglo American/BHP exigen entrega al trabajador · otras solo a RR.HH.">
        <bpmn:flowNodeRef>Receive_Cliente</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Cliente</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Sistemas" name="Sistemas (FlowMed · SACMed · SharePoint · OneDrive · TSCom · Power BI · Excel match)">
        <bpmn:flowNodeRef>DS_FlowMed</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_SACMed</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_SharePoint</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_OneDrive</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_TSCom</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_PowerBI</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_ExcelMatch</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>

    <!-- ============== EVENTOS PRINCIPALES ============== -->
    <bpmn:startEvent id="Start_CT" name="Paquete clínico disponible (check-out cerrado · RN-CT-01)">
      <bpmn:outgoing>F1</bpmn:outgoing>
    </bpmn:startEvent>

    <!-- ============== GATEWAY G1 · ORIGEN ============== -->
    <bpmn:exclusiveGateway id="GW_Origen" name="¿Centro propio (60%) o acreditado (40%)? · RN-CT-03">
      <bpmn:incoming>F1</bpmn:incoming>
      <bpmn:outgoing>F_PROP</bpmn:outgoing>
      <bpmn:outgoing>F_ACR</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <!-- ============== JEFA CENTRO ============== -->
    <bpmn:manualTask id="Task_DigitacionMasiva" name="Digitación masiva desde OneDrive/SharePoint (40% acreditados · 'los chiquillos se vuelven locos digitando')">
      <bpmn:incoming>F_ACR</bpmn:incoming>
      <bpmn:outgoing>F_ACR_OUT</bpmn:outgoing>
      <bpmn:dataInputAssociation id="DIA_OneDrive">
        <bpmn:sourceRef>DS_OneDrive</bpmn:sourceRef>
        <bpmn:targetRef>Task_DigitacionMasiva</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:manualTask>
    <bpmn:userTask id="Task_MatchExcelWA" name="Match Operación↔Contraloría vía WhatsApp + Excel (D-11 · reporte horario tipo '11:00 Santiago 26 de 62')">
      <bpmn:incoming>F_PROP</bpmn:incoming>
      <bpmn:incoming>F_ACR_OUT</bpmn:incoming>
      <bpmn:outgoing>F_MATCH_OUT</bpmn:outgoing>
      <bpmn:dataInputAssociation id="DIA_ExcelMatch">
        <bpmn:sourceRef>DS_ExcelMatch</bpmn:sourceRef>
        <bpmn:targetRef>Task_MatchExcelWA</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:userTask>

    <!-- ============== ADMIN · SUB-PROCESO PREINFORME (6 pasos) ============== -->
    <bpmn:subProcess id="SubProc_Preinforme" name="Sub-proceso Administrativo · 6 pasos (origen → espejo/digitación → interpretable → adjuntar → preinforme → paso 2) · meta 6 inf/h declarada · RN-CT-10">
      <bpmn:incoming>F_MATCH_OUT</bpmn:incoming>
      <bpmn:outgoing>F_PRE_OUT</bpmn:outgoing>

      <bpmn:startEvent id="PR_Start" name="RUT en paso 1 FlowMed">
        <bpmn:outgoing>PR_F1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:serviceTask id="PR_Espejo" name="Botón espejo SACMed→FlowMed (datos numéricos · centros propios) RN-CT-04">
        <bpmn:incoming>PR_F1</bpmn:incoming>
        <bpmn:outgoing>PR_F2</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:manualTask id="PR_Interpretable" name="Digitar dato interpretable (electro normal/alterado · rayo · espirometría) RN-CT-06">
        <bpmn:incoming>PR_F2</bpmn:incoming>
        <bpmn:outgoing>PR_F3</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:manualTask id="PR_Adjuntar" name="Adjuntar baterías extra (ELA · perfil lipídico · hemograma · grupo y RH · EX-CT-04)">
        <bpmn:incoming>PR_F3</bpmn:incoming>
        <bpmn:outgoing>PR_F4</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:userTask id="PR_Preinforme" name="Armar preinforme + anotar productividad declarada (6 inf/h · RN-CT-10)">
        <bpmn:incoming>PR_F4</bpmn:incoming>
        <bpmn:outgoing>PR_F5</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:serviceTask id="PR_Paso2" name="RUT pasa a paso 2 (visible pool médico)">
        <bpmn:incoming>PR_F5</bpmn:incoming>
        <bpmn:outgoing>PR_F6</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:endEvent id="PR_End" name="Preinforme listo">
        <bpmn:incoming>PR_F6</bpmn:incoming>
      </bpmn:endEvent>

      <bpmn:sequenceFlow id="PR_F1" sourceRef="PR_Start" targetRef="PR_Espejo"/>
      <bpmn:sequenceFlow id="PR_F2" sourceRef="PR_Espejo" targetRef="PR_Interpretable"/>
      <bpmn:sequenceFlow id="PR_F3" sourceRef="PR_Interpretable" targetRef="PR_Adjuntar"/>
      <bpmn:sequenceFlow id="PR_F4" sourceRef="PR_Adjuntar" targetRef="PR_Preinforme"/>
      <bpmn:sequenceFlow id="PR_F5" sourceRef="PR_Preinforme" targetRef="PR_Paso2"/>
      <bpmn:sequenceFlow id="PR_F6" sourceRef="PR_Paso2" targetRef="PR_End"/>
    </bpmn:subProcess>

    <!-- ============== GATEWAY G2 · DROGAS ============== -->
    <bpmn:exclusiveGateway id="GW_Drogas" name="¿Drogas negativo automático? RN-CT-11">
      <bpmn:incoming>F_PRE_OUT</bpmn:incoming>
      <bpmn:outgoing>F_DROGAS_AUTO</bpmn:outgoing>
      <bpmn:outgoing>F_DROGAS_MED</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Task_AutoLibera" name="Liberación automática TSCom (única automatización 100% · RN-CT-11)">
      <bpmn:incoming>F_DROGAS_AUTO</bpmn:incoming>
      <bpmn:outgoing>F_AUTO_OUT</bpmn:outgoing>
      <bpmn:dataInputAssociation id="DIA_TSCom">
        <bpmn:sourceRef>DS_TSCom</bpmn:sourceRef>
        <bpmn:targetRef>Task_AutoLibera</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:serviceTask>

    <!-- ============== MÉDICO CONTRALOR ============== -->
    <bpmn:userTask id="UserTask_RevisaFirma" name="Revisión médica + firma (RN-CT-02 doble validación · autoridad Ley 16.744 · CODELCO RN-CT-08 · PA/ruido RN-CT-09)">
      <bpmn:incoming>F_DROGAS_MED</bpmn:incoming>
      <bpmn:incoming>F_REVAL</bpmn:incoming>
      <bpmn:outgoing>F_DICTAMEN</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="GW_Dictamen" name="¿Dictamen? Apto / No apto / No apto transitorio · RN-CT-06">
      <bpmn:incoming>F_DICTAMEN</bpmn:incoming>
      <bpmn:outgoing>F_APTO</bpmn:outgoing>
      <bpmn:outgoing>F_NOAPTO</bpmn:outgoing>
      <bpmn:outgoing>F_NAT</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Service_InformeApto" name="Emitir informe APTO (apto / apto con restricciones)">
      <bpmn:incoming>F_APTO</bpmn:incoming>
      <bpmn:incoming>F_AUTO_OUT</bpmn:incoming>
      <bpmn:outgoing>F_APTO_OUT</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Service_InformeNoApto" name="Emitir informe NO APTO definitivo (RN-CT-21)">
      <bpmn:incoming>F_NOAPTO</bpmn:incoming>
      <bpmn:outgoing>F_NOAPTO_OUT</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:sendTask id="Send_Interconsulta" name="Solicitar interconsulta externa (no apto transitorio · RN-CT-19/20 · cerumen · perforación · etc.)">
      <bpmn:incoming>F_NAT</bpmn:incoming>
      <bpmn:outgoing>F_NAT_OUT</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:receiveTask id="Receive_DocExterna" name="Recibe documentación externa del paciente (loop revaluación E-01)">
      <bpmn:incoming>F_NAT_OUT</bpmn:incoming>
      <bpmn:outgoing>F_REVAL</bpmn:outgoing>
    </bpmn:receiveTask>

    <!-- ============== SALUD MENTAL (paralelo) ============== -->
    <bpmn:subProcess id="SubProc_SaludMental" name="Sub-proceso Salud Mental (paralelo · RN-CT-13) · tests Wonderlic · Persona bajo lluvia · aversión riesgo · somnolencia · fatiga conductor">
      <bpmn:startEvent id="SM_Start" name="Batería con eval. psicológica">
        <bpmn:outgoing>SM_F1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:userTask id="SM_AdminPre" name="Administrativo SM arma preinforme segregado (no aparece en pool médico)">
        <bpmn:incoming>SM_F1</bpmn:incoming>
        <bpmn:outgoing>SM_F2</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:userTask id="SM_Tests" name="Aplicar tests Wonderlic · Persona bajo lluvia · aversión riesgo · somnolencia · fatiga">
        <bpmn:incoming>SM_F2</bpmn:incoming>
        <bpmn:outgoing>SM_F3</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:userTask id="SM_Psico" name="Psicólogo libera informe psicológico (autoridad propia · dashboard FlowMed segregado)">
        <bpmn:incoming>SM_F3</bpmn:incoming>
        <bpmn:outgoing>SM_F4</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:endEvent id="SM_End" name="Informe SM emitido">
        <bpmn:incoming>SM_F4</bpmn:incoming>
      </bpmn:endEvent>

      <bpmn:sequenceFlow id="SM_F1" sourceRef="SM_Start" targetRef="SM_AdminPre"/>
      <bpmn:sequenceFlow id="SM_F2" sourceRef="SM_AdminPre" targetRef="SM_Tests"/>
      <bpmn:sequenceFlow id="SM_F3" sourceRef="SM_Tests" targetRef="SM_Psico"/>
      <bpmn:sequenceFlow id="SM_F4" sourceRef="SM_Psico" targetRef="SM_End"/>
    </bpmn:subProcess>

    <!-- ============== MONITOREO VICENTE (paralelo) ============== -->
    <bpmn:subProcess id="SubProc_Monitoreo" name="Sub-proceso Monitoreo Vicente (paralelo · HU-09) · Power BI cada 30 min · pendientes vs cultivos 3-4d / metales 15d · alerta SLA 8h interno vs 24h contractual (RN-CT-12)">
      <bpmn:startEvent id="MO_Start" name="Cierre día ~19:00">
        <bpmn:outgoing>MO_F1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:serviceTask id="MO_PowerBI" name="Consultar Power BI (pendientes adm vs méd vs SM · stock proyectado)">
        <bpmn:incoming>MO_F1</bpmn:incoming>
        <bpmn:outgoing>MO_F2</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:userTask id="MO_Segmentar" name="Segmentar cultivos (3-4d) · metales (15d) · backlog real (E-02)">
        <bpmn:incoming>MO_F2</bpmn:incoming>
        <bpmn:outgoing>MO_F3</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:userTask id="MO_Productividad" name="Revisar productividad por médico (6 inf/h · RN-CT-10/11) · &gt;50% pendientes 19:00 (E-08 KPI sin granularidad)">
        <bpmn:incoming>MO_F3</bpmn:incoming>
        <bpmn:outgoing>MO_F4</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:endEvent id="MO_End" name="Riesgo SLA evaluado">
        <bpmn:incoming>MO_F4</bpmn:incoming>
      </bpmn:endEvent>

      <bpmn:sequenceFlow id="MO_F1" sourceRef="MO_Start" targetRef="MO_PowerBI"/>
      <bpmn:sequenceFlow id="MO_F2" sourceRef="MO_PowerBI" targetRef="MO_Segmentar"/>
      <bpmn:sequenceFlow id="MO_F3" sourceRef="MO_Segmentar" targetRef="MO_Productividad"/>
      <bpmn:sequenceFlow id="MO_F4" sourceRef="MO_Productividad" targetRef="MO_End"/>
    </bpmn:subProcess>

    <!-- ============== CIERRE DE MES (HU-11) ============== -->
    <bpmn:subProcess id="SubProc_CierreMes" name="Sub-proceso Cierre de Mes (HU-11 · cada cierre mensual)">
      <bpmn:startEvent id="CM_Start" name="Cierre mensual">
        <bpmn:outgoing>CM_F1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:serviceTask id="CM_Cerrar" name="Cerrar producción del mes (módulo control de pago FlowMed)">
        <bpmn:incoming>CM_F1</bpmn:incoming>
        <bpmn:outgoing>CM_F2</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:manualTask id="CM_Valorizar" name="Extraer Excel + script Python valorización + consolidar SAC/Agenda/Op/CT/Comercial">
        <bpmn:incoming>CM_F2</bpmn:incoming>
        <bpmn:outgoing>CM_F3</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:sendTask id="CM_Entregar" name="Entregar valorización + DTE a Finanzas (RN-CT-12 SLA)">
        <bpmn:incoming>CM_F3</bpmn:incoming>
        <bpmn:outgoing>CM_F4</bpmn:outgoing>
      </bpmn:sendTask>
      <bpmn:endEvent id="CM_End" name="Producción entregada">
        <bpmn:incoming>CM_F4</bpmn:incoming>
      </bpmn:endEvent>

      <bpmn:sequenceFlow id="CM_F1" sourceRef="CM_Start" targetRef="CM_Cerrar"/>
      <bpmn:sequenceFlow id="CM_F2" sourceRef="CM_Cerrar" targetRef="CM_Valorizar"/>
      <bpmn:sequenceFlow id="CM_F3" sourceRef="CM_Valorizar" targetRef="CM_Entregar"/>
      <bpmn:sequenceFlow id="CM_F4" sourceRef="CM_Entregar" targetRef="CM_End"/>
    </bpmn:subProcess>

    <!-- ============== HANDOFF CLIENTE + FINANZAS ============== -->
    <bpmn:receiveTask id="Receive_Cliente" name="Cliente descarga informe firmado (Anglo American/BHP exigen entrega al trabajador · otras solo RR.HH.) · RN-CT-07/17">
      <bpmn:outgoing>F_CLI_OUT</bpmn:outgoing>
    </bpmn:receiveTask>
    <bpmn:endEvent id="End_Cliente" name="Informe entregado al mandante">
      <bpmn:incoming>F_CLI_OUT</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:receiveTask id="Receive_Finanzas" name="Finanzas recibe valorización + DTE (post-cierre mensual)">
      <bpmn:outgoing>F_FIN_OUT</bpmn:outgoing>
    </bpmn:receiveTask>
    <bpmn:endEvent id="End_Finanzas" name="Producción cerrada → DTE / Recaudación">
      <bpmn:incoming>F_FIN_OUT</bpmn:incoming>
    </bpmn:endEvent>

    <!-- ============== DATA STORES ============== -->
    <bpmn:dataStoreReference id="DS_FlowMed" name="FlowMed (espacio UCI · Secall)"/>
    <bpmn:dataStoreReference id="DS_SACMed" name="SACMed (HIS centros propios · 6 de 12)"/>
    <bpmn:dataStoreReference id="DS_SharePoint" name="SharePoint (acreditados)"/>
    <bpmn:dataStoreReference id="DS_OneDrive" name="OneDrive (acreditados)"/>
    <bpmn:dataStoreReference id="DS_TSCom" name="TSCom (drogas · auto-libera negativos)"/>
    <bpmn:dataStoreReference id="DS_PowerBI" name="Power BI (panel pendientes Vicente)"/>
    <bpmn:dataStoreReference id="DS_ExcelMatch" name="Excel match Op↔CT (D-11)"/>

    <!-- ============== TEXT ANNOTATIONS · RN-CT-01..24 ============== -->
    <bpmn:textAnnotation id="Ann_RN01">
      <bpmn:text>RN-CT-01 · Gatillante por RUT post check-out: tarea aparece en paso 1 FlowMed cuando Operaciones cierra check-out [Contraloria-20260421 10:23, 19:01]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN01" sourceRef="Ann_RN01" targetRef="Start_CT"/>

    <bpmn:textAnnotation id="Ann_RN02">
      <bpmn:text>RN-CT-02 · Doble validación firma · administrativo prepara preinforme y médico contralor firma · firma médica única autoridad legal Ley 16.744 [Contraloria-20260421 3:25, 15:27]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN02" sourceRef="Ann_RN02" targetRef="UserTask_RevisaFirma"/>

    <bpmn:textAnnotation id="Ann_RN03">
      <bpmn:text>RN-CT-03 · Origen del dato según tipo de centro · 60% propios botón espejo SACMed→FlowMed · 40% acreditados digitación manual desde OneDrive/SharePoint [Contraloria-20260421 2:27, 2:55, 12:46]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN03" sourceRef="Ann_RN03" targetRef="GW_Origen"/>

    <bpmn:textAnnotation id="Ann_RN04">
      <bpmn:text>RN-CT-04 · Botón espejo solo rescata datos numéricos/antropométricos no interpretables desde SACMed [Contraloria-20260421 2:27, 12:30, 12:46]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN04" sourceRef="Ann_RN04" targetRef="SubProc_Preinforme"/>

    <bpmn:textAnnotation id="Ann_RN08">
      <bpmn:text>RN-CT-08 · Homologación CODELCO como base normativa para puntos de corte (IMC · PA · etc.) · todos los mandantes mineros se basan en eso · Centinela mantiene puntos propios [Contraloria-20260421 6:24, 6:48, 22:09]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN08" sourceRef="Ann_RN08" targetRef="UserTask_RevisaFirma"/>

    <bpmn:textAnnotation id="Ann_RN09">
      <bpmn:text>RN-CT-09 · Reglas normativas concretas · PA &gt;90 = no apto inmediato ciertos riesgos · batería ruido CODELCO: audífono = contraindicación definitiva, tapón cerumen / perforación = transitoria [Contraloria-20260421 6:48, 22:35, 22:56]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN09" sourceRef="Ann_RN09" targetRef="GW_Dictamen"/>

    <bpmn:textAnnotation id="Ann_RN10">
      <bpmn:text>RN-CT-10/11 · Productividad declarada 6 inf/h por médico contralor · 6 consultas/h (10 min) · baja a 4/h con encuestas largas o equilibrio (15 min) · &gt;50% pendientes al cierre 19:00 [Contraloria-20260421 10:47, 24:45, 25:13, 23:49]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN10" sourceRef="Ann_RN10" targetRef="SubProc_Monitoreo"/>

    <bpmn:textAnnotation id="Ann_RN11">
      <bpmn:text>RN-CT-11 · Liberación automática solo drogas negativas (TSCom única instancia 100% automatizada) · presunto positivo entra a flujo manual [Contraloria-20260421 26:38, 27:06]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN11" sourceRef="Ann_RN11" targetRef="GW_Drogas"/>

    <bpmn:textAnnotation id="Ann_RN12">
      <bpmn:text>RN-CT-12 · SLA 8h interno desde check-out · 24h contractual con clientes · cierre de mes alimenta valorización Finanzas para emisión DTE [Contraloria-20260421 17:13, 17:38; Flowmed-20260409 35:02, 35:26]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN12" sourceRef="Ann_RN12" targetRef="SubProc_CierreMes"/>

    <bpmn:textAnnotation id="Ann_RN13">
      <bpmn:text>RN-CT-13 · Salud Mental como flujo paralelo segregado · administrativos SM + psicólogos emiten informes separados del área médica · dashboard FlowMed los segrega [Contraloria-20260421 0:27; Flowmed-20260409 36:24]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN13" sourceRef="Ann_RN13" targetRef="SubProc_SaludMental"/>

    <bpmn:textAnnotation id="Ann_RN17">
      <bpmn:text>RN-CT-17/18 · Acceso al informe · cliente accede en plataforma · paciente solo a sus exámenes (por ley) · Anglo American/BHP exigen entrega al trabajador, otras solo a RR.HH. [Contraloria-20260421 11:13, 11:43]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN17" sourceRef="Ann_RN17" targetRef="Receive_Cliente"/>

    <bpmn:textAnnotation id="Ann_RN19">
      <bpmn:text>RN-CT-19/20 · No apto transitorio gatilla interconsulta externa · paciente trata · trae documentación · loop revaluación E-01 puede pasar a apto final [Contraloria-20260421 22:35, 22:56]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN19" sourceRef="Ann_RN19" targetRef="Send_Interconsulta"/>

    <bpmn:textAnnotation id="Ann_RN21">
      <bpmn:text>RN-CT-21 · Dictamen "no apto definitivo" cierra el caso sin posibilidad de revaluación · típico de contraindicaciones definitivas (uso de audífono según ruido CODELCO)</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN21" sourceRef="Ann_RN21" targetRef="Service_InformeNoApto"/>

    <bpmn:textAnnotation id="Ann_RN22">
      <bpmn:text>RN-CT-22 · Adjuntos manuales por batería · clientes piden ELA + perfil lipídico + hemograma + grupo y RH · bajo 500-600 informes/día riesgo de adjuntar foto equivocada (EX-CT-04) [Contraloria-20260421 27:27, 27:54, 28:46]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN22" sourceRef="Ann_RN22" targetRef="SubProc_Preinforme"/>

    <bpmn:textAnnotation id="Ann_RN24">
      <bpmn:text>RN-CT-24 · Pool único actual · tareas no se distribuyen dirigidas por médico · médico atiende mañana y libera tarde (E-06 cola asíncrona) [Contraloria-20260421 29:39, 30:54]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN24" sourceRef="Ann_RN24" targetRef="UserTask_RevisaFirma"/>

    <bpmn:textAnnotation id="Ann_D11">
      <bpmn:text>D-11 · Match Op↔CT como "triple pega" · admisión marca Excel · jefa centro María Ignacia notifica WhatsApp · CT devuelve reporte horario tipo "11:00 Santiago 26 de 62 fichas" [Flowmed-20260409 33:13, 33:40, 34:06]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_D11" sourceRef="Ann_D11" targetRef="Task_MatchExcelWA"/>

    <bpmn:textAnnotation id="Ann_DigMasiva">
      <bpmn:text>Excepción · 40% atenciones acreditadas con digitación masiva ("los chiquillos se vuelven locos digitando") · pico histórico ~700 atenciones/día → ~280 manuales [Contraloria-20260421 14:58, 15:27]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_DigMasiva" sourceRef="Ann_DigMasiva" targetRef="Task_DigitacionMasiva"/>

    <bpmn:textAnnotation id="Ann_E01">
      <bpmn:text>Loop revaluación E-01 · cuando llega documentación externa, vuelve a UserTask Médico Contralor · puede convertir "no apto transitorio" en "apto final" [Contraloria-20260421 22:35, 22:56]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_E01" sourceRef="Ann_E01" targetRef="Receive_DocExterna"/>

    <bpmn:textAnnotation id="Ann_HU09">
      <bpmn:text>HU-09 · Vicente revisa Power BI cada 30 min · panel sin granularidad por peso de batería (E-08) · cultivos 3-4d hábiles · metales 15d hábiles distorsionan stock real (E-02) [Contraloria-20260421 23:25, 23:49, 24:15, 25:43]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_HU09" sourceRef="Ann_HU09" targetRef="SubProc_Monitoreo"/>

    <!-- ============== SEQUENCE FLOWS PRINCIPALES ============== -->
    <bpmn:sequenceFlow id="F1" sourceRef="Start_CT" targetRef="GW_Origen"/>
    <bpmn:sequenceFlow id="F_PROP" name="propio (60%)" sourceRef="GW_Origen" targetRef="Task_MatchExcelWA"/>
    <bpmn:sequenceFlow id="F_ACR" name="acreditado (40%)" sourceRef="GW_Origen" targetRef="Task_DigitacionMasiva"/>
    <bpmn:sequenceFlow id="F_ACR_OUT" sourceRef="Task_DigitacionMasiva" targetRef="Task_MatchExcelWA"/>
    <bpmn:sequenceFlow id="F_MATCH_OUT" sourceRef="Task_MatchExcelWA" targetRef="SubProc_Preinforme"/>
    <bpmn:sequenceFlow id="F_PRE_OUT" sourceRef="SubProc_Preinforme" targetRef="GW_Drogas"/>
    <bpmn:sequenceFlow id="F_DROGAS_AUTO" name="negativo auto" sourceRef="GW_Drogas" targetRef="Task_AutoLibera"/>
    <bpmn:sequenceFlow id="F_DROGAS_MED" name="presunto + / no drogas" sourceRef="GW_Drogas" targetRef="UserTask_RevisaFirma"/>
    <bpmn:sequenceFlow id="F_AUTO_OUT" sourceRef="Task_AutoLibera" targetRef="Service_InformeApto"/>
    <bpmn:sequenceFlow id="F_DICTAMEN" sourceRef="UserTask_RevisaFirma" targetRef="GW_Dictamen"/>
    <bpmn:sequenceFlow id="F_APTO" name="apto" sourceRef="GW_Dictamen" targetRef="Service_InformeApto"/>
    <bpmn:sequenceFlow id="F_NOAPTO" name="no apto" sourceRef="GW_Dictamen" targetRef="Service_InformeNoApto"/>
    <bpmn:sequenceFlow id="F_NAT" name="no apto transitorio" sourceRef="GW_Dictamen" targetRef="Send_Interconsulta"/>
    <bpmn:sequenceFlow id="F_NAT_OUT" sourceRef="Send_Interconsulta" targetRef="Receive_DocExterna"/>
    <bpmn:sequenceFlow id="F_REVAL" name="loop revaluación E-01" sourceRef="Receive_DocExterna" targetRef="UserTask_RevisaFirma"/>
    <bpmn:sequenceFlow id="F_APTO_OUT" sourceRef="Service_InformeApto" targetRef="Receive_Cliente"/>
    <bpmn:sequenceFlow id="F_NOAPTO_OUT" sourceRef="Service_InformeNoApto" targetRef="Receive_Cliente"/>
    <bpmn:sequenceFlow id="F_CLI_OUT" sourceRef="Receive_Cliente" targetRef="End_Cliente"/>
    <bpmn:sequenceFlow id="F_FIN_OUT" sourceRef="Receive_Finanzas" targetRef="End_Finanzas"/>
  </bpmn:process>

  <!-- =====================================================
       DI Layout
       Pool x=120 y=60 w=4400 h=1820
       Lanes:
         OpHandoff       y=60    h=120  (60..180)
         JefaCentro      y=180   h=160  (180..340)
         Admin           y=340   h=200  (340..540)
         Medico          y=540   h=240  (540..780)
         SaludMental     y=780   h=160  (780..940)
         Vicente         y=940   h=240  (940..1180)
         Finanzas        y=1180  h=140  (1180..1320)
         Cliente         y=1320  h=140  (1320..1460)
         Sistemas        y=1460  h=420  (1460..1880)
       Annotations: y=1900..2100 below pool
       ===================================================== -->
  <bpmndi:BPMNDiagram id="Diagram_CT">
    <bpmndi:BPMNPlane id="Plane_CT" bpmnElement="Collaboration_CT">

      <bpmndi:BPMNShape id="Participant_CT_di" bpmnElement="Participant_CT" isHorizontal="true">
        <dc:Bounds x="120" y="60" width="4400" height="1820"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_OpHandoff_di" bpmnElement="Lane_OpHandoff" isHorizontal="true">
        <dc:Bounds x="150" y="60" width="4370" height="120"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_JefaCentro_di" bpmnElement="Lane_JefaCentro" isHorizontal="true">
        <dc:Bounds x="150" y="180" width="4370" height="160"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Admin_di" bpmnElement="Lane_Admin" isHorizontal="true">
        <dc:Bounds x="150" y="340" width="4370" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Medico_di" bpmnElement="Lane_Medico" isHorizontal="true">
        <dc:Bounds x="150" y="540" width="4370" height="240"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_SaludMental_di" bpmnElement="Lane_SaludMental" isHorizontal="true">
        <dc:Bounds x="150" y="780" width="4370" height="160"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Vicente_di" bpmnElement="Lane_Vicente" isHorizontal="true">
        <dc:Bounds x="150" y="940" width="4370" height="240"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Finanzas_di" bpmnElement="Lane_Finanzas" isHorizontal="true">
        <dc:Bounds x="150" y="1180" width="4370" height="140"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Cliente_di" bpmnElement="Lane_Cliente" isHorizontal="true">
        <dc:Bounds x="150" y="1320" width="4370" height="140"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Sistemas_di" bpmnElement="Lane_Sistemas" isHorizontal="true">
        <dc:Bounds x="150" y="1460" width="4370" height="420"/>
      </bpmndi:BPMNShape>

      <!-- Op handoff (y=60..180, mid 120) -->
      <bpmndi:BPMNShape id="Start_CT_di" bpmnElement="Start_CT">
        <dc:Bounds x="220" y="102" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="160" y="145" width="160" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Origen_di" bpmnElement="GW_Origen" isMarkerVisible="true">
        <dc:Bounds x="400" y="102" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="335" y="60" width="180" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- Jefa Centro (y=180..340, mid 260) -->
      <bpmndi:BPMNShape id="Task_DigitacionMasiva_di" bpmnElement="Task_DigitacionMasiva">
        <dc:Bounds x="540" y="220" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_MatchExcelWA_di" bpmnElement="Task_MatchExcelWA">
        <dc:Bounds x="940" y="220" width="320" height="80"/>
      </bpmndi:BPMNShape>

      <!-- Admin (y=340..540, mid 440) -->
      <bpmndi:BPMNShape id="SubProc_Preinforme_di" bpmnElement="SubProc_Preinforme" isExpanded="false">
        <dc:Bounds x="1380" y="380" width="380" height="120"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Drogas_di" bpmnElement="GW_Drogas" isMarkerVisible="true">
        <dc:Bounds x="1840" y="415" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1780" y="475" width="180" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_AutoLibera_di" bpmnElement="Task_AutoLibera">
        <dc:Bounds x="1960" y="400" width="280" height="80"/>
      </bpmndi:BPMNShape>

      <!-- Médico (y=540..780, mid 660) -->
      <bpmndi:BPMNShape id="UserTask_RevisaFirma_di" bpmnElement="UserTask_RevisaFirma">
        <dc:Bounds x="1960" y="600" width="320" height="100"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Dictamen_di" bpmnElement="GW_Dictamen" isMarkerVisible="true">
        <dc:Bounds x="2360" y="625" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2300" y="685" width="180" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Service_InformeApto_di" bpmnElement="Service_InformeApto">
        <dc:Bounds x="2480" y="555" width="240" height="60"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Service_InformeNoApto_di" bpmnElement="Service_InformeNoApto">
        <dc:Bounds x="2480" y="625" width="240" height="60"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Send_Interconsulta_di" bpmnElement="Send_Interconsulta">
        <dc:Bounds x="2480" y="695" width="240" height="60"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Receive_DocExterna_di" bpmnElement="Receive_DocExterna">
        <dc:Bounds x="2780" y="695" width="240" height="60"/>
      </bpmndi:BPMNShape>

      <!-- Salud Mental (y=780..940, mid 860) -->
      <bpmndi:BPMNShape id="SubProc_SaludMental_di" bpmnElement="SubProc_SaludMental" isExpanded="false">
        <dc:Bounds x="1380" y="810" width="380" height="100"/>
      </bpmndi:BPMNShape>

      <!-- Vicente (y=940..1180, mid 1060) -->
      <bpmndi:BPMNShape id="SubProc_Monitoreo_di" bpmnElement="SubProc_Monitoreo" isExpanded="false">
        <dc:Bounds x="1960" y="990" width="380" height="100"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProc_CierreMes_di" bpmnElement="SubProc_CierreMes" isExpanded="false">
        <dc:Bounds x="2900" y="990" width="380" height="100"/>
      </bpmndi:BPMNShape>

      <!-- Finanzas (y=1180..1320, mid 1250) -->
      <bpmndi:BPMNShape id="Receive_Finanzas_di" bpmnElement="Receive_Finanzas">
        <dc:Bounds x="3360" y="1210" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Finanzas_di" bpmnElement="End_Finanzas">
        <dc:Bounds x="3700" y="1232" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3640" y="1275" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- Cliente (y=1320..1460, mid 1390) -->
      <bpmndi:BPMNShape id="Receive_Cliente_di" bpmnElement="Receive_Cliente">
        <dc:Bounds x="2900" y="1350" width="280" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Cliente_di" bpmnElement="End_Cliente">
        <dc:Bounds x="3260" y="1372" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3200" y="1415" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- Sistemas (y=1460..1880) · datastores en y=1500..1550 -->
      <bpmndi:BPMNShape id="DS_FlowMed_di" bpmnElement="DS_FlowMed">
        <dc:Bounds x="280" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="220" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_SACMed_di" bpmnElement="DS_SACMed">
        <dc:Bounds x="540" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="480" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_SharePoint_di" bpmnElement="DS_SharePoint">
        <dc:Bounds x="800" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="740" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_OneDrive_di" bpmnElement="DS_OneDrive">
        <dc:Bounds x="1060" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1000" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_TSCom_di" bpmnElement="DS_TSCom">
        <dc:Bounds x="1320" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1260" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_PowerBI_di" bpmnElement="DS_PowerBI">
        <dc:Bounds x="1580" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1520" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_ExcelMatch_di" bpmnElement="DS_ExcelMatch">
        <dc:Bounds x="1840" y="1500" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1780" y="1555" width="180" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- Annotations (y=1900..2100) -->
      <bpmndi:BPMNShape id="Ann_RN01_di" bpmnElement="Ann_RN01">
        <dc:Bounds x="200" y="1900" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN02_di" bpmnElement="Ann_RN02">
        <dc:Bounds x="540" y="1900" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN03_di" bpmnElement="Ann_RN03">
        <dc:Bounds x="880" y="1900" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN04_di" bpmnElement="Ann_RN04">
        <dc:Bounds x="1220" y="1900" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN08_di" bpmnElement="Ann_RN08">
        <dc:Bounds x="1560" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN09_di" bpmnElement="Ann_RN09">
        <dc:Bounds x="1920" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN10_di" bpmnElement="Ann_RN10">
        <dc:Bounds x="2280" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN11_di" bpmnElement="Ann_RN11">
        <dc:Bounds x="2640" y="1900" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN12_di" bpmnElement="Ann_RN12">
        <dc:Bounds x="2980" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN13_di" bpmnElement="Ann_RN13">
        <dc:Bounds x="3340" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN17_di" bpmnElement="Ann_RN17">
        <dc:Bounds x="3700" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN19_di" bpmnElement="Ann_RN19">
        <dc:Bounds x="4060" y="1900" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN21_di" bpmnElement="Ann_RN21">
        <dc:Bounds x="200" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN22_di" bpmnElement="Ann_RN22">
        <dc:Bounds x="560" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN24_di" bpmnElement="Ann_RN24">
        <dc:Bounds x="920" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_D11_di" bpmnElement="Ann_D11">
        <dc:Bounds x="1280" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_DigMasiva_di" bpmnElement="Ann_DigMasiva">
        <dc:Bounds x="1640" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_E01_di" bpmnElement="Ann_E01">
        <dc:Bounds x="2000" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_HU09_di" bpmnElement="Ann_HU09">
        <dc:Bounds x="2360" y="2000" width="340" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ====== EDGES ====== -->
      <!-- Op handoff -->
      <bpmndi:BPMNEdge id="F1_di" bpmnElement="F1">
        <di:waypoint x="256" y="120"/><di:waypoint x="400" y="120"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_PROP_di" bpmnElement="F_PROP">
        <di:waypoint x="450" y="127"/><di:waypoint x="900" y="127"/>
        <di:waypoint x="900" y="200"/><di:waypoint x="940" y="200"/>
        <di:waypoint x="940" y="240"/>
        <bpmndi:BPMNLabel><dc:Bounds x="600" y="105" width="120" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_ACR_di" bpmnElement="F_ACR">
        <di:waypoint x="450" y="127"/><di:waypoint x="500" y="127"/>
        <di:waypoint x="500" y="260"/><di:waypoint x="540" y="260"/>
        <bpmndi:BPMNLabel><dc:Bounds x="465" y="180" width="120" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_ACR_OUT_di" bpmnElement="F_ACR_OUT">
        <di:waypoint x="860" y="260"/><di:waypoint x="940" y="260"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_MATCH_OUT_di" bpmnElement="F_MATCH_OUT">
        <di:waypoint x="1260" y="260"/><di:waypoint x="1320" y="260"/>
        <di:waypoint x="1320" y="440"/><di:waypoint x="1380" y="440"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_PRE_OUT_di" bpmnElement="F_PRE_OUT">
        <di:waypoint x="1760" y="440"/><di:waypoint x="1840" y="440"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_DROGAS_AUTO_di" bpmnElement="F_DROGAS_AUTO">
        <di:waypoint x="1890" y="440"/><di:waypoint x="1960" y="440"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1895" y="420" width="120" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_DROGAS_MED_di" bpmnElement="F_DROGAS_MED">
        <di:waypoint x="1865" y="465"/><di:waypoint x="1865" y="650"/>
        <di:waypoint x="1960" y="650"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1870" y="500" width="160" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_AUTO_OUT_di" bpmnElement="F_AUTO_OUT">
        <di:waypoint x="2240" y="440"/><di:waypoint x="2380" y="440"/>
        <di:waypoint x="2380" y="555"/><di:waypoint x="2480" y="555"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_DICTAMEN_di" bpmnElement="F_DICTAMEN">
        <di:waypoint x="2280" y="650"/><di:waypoint x="2360" y="650"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_APTO_di" bpmnElement="F_APTO">
        <di:waypoint x="2385" y="625"/><di:waypoint x="2385" y="585"/>
        <di:waypoint x="2480" y="585"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2390" y="600" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NOAPTO_di" bpmnElement="F_NOAPTO">
        <di:waypoint x="2410" y="650"/><di:waypoint x="2480" y="650"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2415" y="630" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NAT_di" bpmnElement="F_NAT">
        <di:waypoint x="2385" y="675"/><di:waypoint x="2385" y="725"/>
        <di:waypoint x="2480" y="725"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2390" y="700" width="160" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NAT_OUT_di" bpmnElement="F_NAT_OUT">
        <di:waypoint x="2720" y="725"/><di:waypoint x="2780" y="725"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_REVAL_di" bpmnElement="F_REVAL">
        <di:waypoint x="2900" y="755"/><di:waypoint x="2900" y="770"/>
        <di:waypoint x="2120" y="770"/><di:waypoint x="2120" y="700"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2400" y="775" width="240" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_APTO_OUT_di" bpmnElement="F_APTO_OUT">
        <di:waypoint x="2720" y="585"/><di:waypoint x="3320" y="585"/>
        <di:waypoint x="3320" y="1360"/><di:waypoint x="3180" y="1360"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NOAPTO_OUT_di" bpmnElement="F_NOAPTO_OUT">
        <di:waypoint x="2720" y="655"/><di:waypoint x="3340" y="655"/>
        <di:waypoint x="3340" y="1420"/><di:waypoint x="3180" y="1420"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_CLI_OUT_di" bpmnElement="F_CLI_OUT">
        <di:waypoint x="3180" y="1390"/><di:waypoint x="3260" y="1390"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_FIN_OUT_di" bpmnElement="F_FIN_OUT">
        <di:waypoint x="3600" y="1250"/><di:waypoint x="3700" y="1250"/>
      </bpmndi:BPMNEdge>

      <!-- Annotation associations · usar corredores libres x=180, 470, 870, 1290, 1790, 2270, 2740, 3320, 3640, 3800, 4030, 4230 -->
      <bpmndi:BPMNEdge id="Assoc_RN01_di" bpmnElement="Assoc_RN01">
        <di:waypoint x="200" y="1900"/><di:waypoint x="180" y="1900"/>
        <di:waypoint x="180" y="120"/><di:waypoint x="220" y="120"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN02_di" bpmnElement="Assoc_RN02">
        <di:waypoint x="700" y="1900"/><di:waypoint x="700" y="1890"/>
        <di:waypoint x="2350" y="1890"/><di:waypoint x="2350" y="700"/>
        <di:waypoint x="2280" y="700"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN03_di" bpmnElement="Assoc_RN03">
        <di:waypoint x="1040" y="1900"/><di:waypoint x="1040" y="1885"/>
        <di:waypoint x="470" y="1885"/><di:waypoint x="470" y="127"/>
        <di:waypoint x="450" y="127"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN04_di" bpmnElement="Assoc_RN04">
        <di:waypoint x="1380" y="1900"/><di:waypoint x="1380" y="1880"/>
        <di:waypoint x="1290" y="1880"/><di:waypoint x="1290" y="440"/>
        <di:waypoint x="1380" y="440"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN08_di" bpmnElement="Assoc_RN08">
        <di:waypoint x="1730" y="1900"/><di:waypoint x="1730" y="1875"/>
        <di:waypoint x="2355" y="1875"/><di:waypoint x="2355" y="700"/>
        <di:waypoint x="2280" y="700"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN09_di" bpmnElement="Assoc_RN09">
        <di:waypoint x="2090" y="1900"/><di:waypoint x="2090" y="1870"/>
        <di:waypoint x="2360" y="1870"/><di:waypoint x="2360" y="650"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN10_di" bpmnElement="Assoc_RN10">
        <di:waypoint x="2450" y="1900"/><di:waypoint x="2450" y="1865"/>
        <di:waypoint x="2350" y="1865"/><di:waypoint x="2350" y="1090"/>
        <di:waypoint x="2340" y="1090"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN11_di" bpmnElement="Assoc_RN11">
        <di:waypoint x="2800" y="1900"/><di:waypoint x="2800" y="1860"/>
        <di:waypoint x="1790" y="1860"/><di:waypoint x="1790" y="440"/>
        <di:waypoint x="1840" y="440"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN12_di" bpmnElement="Assoc_RN12">
        <di:waypoint x="3150" y="1900"/><di:waypoint x="3150" y="1855"/>
        <di:waypoint x="3300" y="1855"/><di:waypoint x="3300" y="1090"/>
        <di:waypoint x="3280" y="1090"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN13_di" bpmnElement="Assoc_RN13">
        <di:waypoint x="3510" y="1900"/><di:waypoint x="3510" y="1850"/>
        <di:waypoint x="1790" y="1850"/><di:waypoint x="1790" y="860"/>
        <di:waypoint x="1760" y="860"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN17_di" bpmnElement="Assoc_RN17">
        <di:waypoint x="3870" y="1900"/><di:waypoint x="3870" y="1845"/>
        <di:waypoint x="3220" y="1845"/><di:waypoint x="3220" y="1430"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN19_di" bpmnElement="Assoc_RN19">
        <di:waypoint x="4230" y="1900"/><di:waypoint x="4230" y="790"/>
        <di:waypoint x="2600" y="790"/><di:waypoint x="2600" y="755"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN21_di" bpmnElement="Assoc_RN21">
        <di:waypoint x="370" y="2000"/><di:waypoint x="370" y="1990"/>
        <di:waypoint x="530" y="1990"/><di:waypoint x="530" y="1840"/>
        <di:waypoint x="2470" y="1840"/><di:waypoint x="2470" y="655"/>
        <di:waypoint x="2480" y="655"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN22_di" bpmnElement="Assoc_RN22">
        <di:waypoint x="730" y="2000"/><di:waypoint x="730" y="1990"/>
        <di:waypoint x="870" y="1990"/><di:waypoint x="870" y="1835"/>
        <di:waypoint x="1295" y="1835"/><di:waypoint x="1295" y="440"/>
        <di:waypoint x="1380" y="440"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN24_di" bpmnElement="Assoc_RN24">
        <di:waypoint x="1090" y="2000"/><di:waypoint x="1090" y="1990"/>
        <di:waypoint x="1210" y="1990"/><di:waypoint x="1210" y="1830"/>
        <di:waypoint x="2345" y="1830"/><di:waypoint x="2345" y="700"/>
        <di:waypoint x="2280" y="700"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_D11_di" bpmnElement="Assoc_D11">
        <di:waypoint x="1450" y="2000"/><di:waypoint x="1450" y="1990"/>
        <di:waypoint x="1550" y="1990"/><di:waypoint x="1550" y="1825"/>
        <di:waypoint x="1300" y="1825"/><di:waypoint x="1300" y="260"/>
        <di:waypoint x="1260" y="260"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_DigMasiva_di" bpmnElement="Assoc_DigMasiva">
        <di:waypoint x="1810" y="2000"/><di:waypoint x="1810" y="1990"/>
        <di:waypoint x="1910" y="1990"/><di:waypoint x="1910" y="1820"/>
        <di:waypoint x="900" y="1820"/><di:waypoint x="900" y="260"/>
        <di:waypoint x="860" y="260"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_E01_di" bpmnElement="Assoc_E01">
        <di:waypoint x="2170" y="2000"/><di:waypoint x="2170" y="1990"/>
        <di:waypoint x="2270" y="1990"/><di:waypoint x="2270" y="1815"/>
        <di:waypoint x="3340" y="1815"/><di:waypoint x="3340" y="725"/>
        <di:waypoint x="3020" y="725"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_HU09_di" bpmnElement="Assoc_HU09">
        <di:waypoint x="2530" y="2000"/><di:waypoint x="2530" y="1990"/>
        <di:waypoint x="2630" y="1990"/><di:waypoint x="2630" y="1090"/>
        <di:waypoint x="2340" y="1090"/>
      </bpmndi:BPMNEdge>

    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</bpmn:definitions>
