{# # This file is part of MedShakeEHR. # # Copyright (c) 2022 # Bertrand Boutillier # http://www.medshake.net # # MedShakeEHR is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # MedShakeEHR is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with MedShakeEHR. If not, see . #/ /## # Template > patients : résultat recherche patients / pro : ligne contenant les résultats de la recherche # # @author Bertrand Boutillier # @contrib fr33z00 # @contrib DEMAREST Maxime #} {% if page.porp == 'registre' %} {% set porpurl = 'registre' %} {% elseif page.porp == 'groupe' %} {% set porpurl = 'groupe' %} {% else %} {% set porpurl = page.porp in ['patient', 'today'] ? 'patient' : 'pro' %} {% endif %} {% for patientID, tab in page.outputTableRow %} {% if page.porp == 'externe' %} {% else %} {% set patientIDmod = page['outputType'][patientID]['type']=='externe' and patientID in page.extToInt|keys ? page.extToInt[patientID] : patientID %} {% endif %} {% if (page['outputType'][patientID]['type']=='externe' and patientIDmod == patientID) or page.porp == 'externe' %} {% elseif page['outputType'][patientID]['type']=='pro' and page['outputType'][patientID]['isUser'] == 'isUser' %} {% elseif page['outputType'][patientID]['type']=='pro' %} {% elseif page['outputType'][patientID]['type']=='groupe' %} {% elseif page['outputType'][patientID]['type']=='registre' %} {% else %} {% endif %} {% for k, p in tab %} {% if loop.first %} {{ p }} {% else %} {{ p }} {% endif %} {% endfor %} {% if page['outputType'][patientID]['type'] == 'registre' %} {% include('inc-listing-registre.html.twig') %} {% elseif page['outputType'][patientID]['type'] == 'groupe' %} {% include('inc-listing-groupe.html.twig') %} {% else %} {% include('inc-listing-patient&pro.html.twig') %} {% endif %} {% endfor %}