{# # This file is part of MedShakeEHR. # # Copyright (c) 2017 # 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 > patient : en-tête du dossier patient (données administratives) # # @author Bertrand Boutillier # @contrib fr33z00 #}

{# firstname #} {{ page['patient']['administrativeDatas']['firstname']['value']|e }} {# lastname & birthname #} {% if page['patient']['administrativeDatas']['birthname']['value'] and page['patient']['administrativeDatas']['lastname']['value'] %} {{ page['patient']['administrativeDatas']['lastname']['value']|e }} (né{% if page['patient']['administrativeDatas']['administrativeGenderCode']['value'] == 'F' %}e{% endif %} {{ page['patient']['administrativeDatas']['birthname']['value']|e }}) {# birthname only #} {% elseif page['patient']['administrativeDatas']['birthname']['value'] %} {{ page['patient']['administrativeDatas']['birthname']['value']|e }} {# lastname only #} {% elseif page['patient']['administrativeDatas']['lastname']['value'] %} {{ page['patient']['administrativeDatas']['lastname']['value']|e }} {% endif %} {# birthdate #} {% if page['patient']['administrativeDatas']['birthdate']['value'] is not empty %} {% if page['patient']['administrativeDatas']['birthdate']['ageFormats']['ageComposantes']['m'] == 0 and page['patient']['administrativeDatas']['birthdate']['ageFormats']['ageComposantes']['d'] == 0 %} {% endif %} {{ page['patient']['administrativeDatas']['birthdate']['value']|e }} - {% endif %} {% if page['patient']['administrativeDatas']['deathdate']['value'] != '' %} {# date décès #} {{ page['patient']['administrativeDatas']['deathdate']['value']|e }} - {{ page['patient']['administrativeDatas']['deathAge']['ageDisplay']|e }} {% else %} {# age #} {{ page['patient']['administrativeDatas']['birthdate']['age']|e }} {% endif %} - {% if page['patient']['administrativeDatas']['administrativeGenderCode']['value'] == 'F' %} {% elseif page['patient']['administrativeDatas']['administrativeGenderCode']['value'] == 'M' %} {% endif %}
{% if page['patient']['administrativeDatas']['notes']['value'] %} {% endif %} {% if config.optionGeActiverTransmissions == 'true' and config.transmissionsPeutCreer == 'true' %} {% endif %}
{% if page.patient.id in config.statsExclusionPatientsArray %} Patient test {% endif %}

{# email #} {% if page['patient']['administrativeDatas']['personalEmail']['value'] %}
{% endif %} {# tel #} {% if page['patient']['administrativeDatas']['homePhone']['value'] %} {% if config.click2callService is not empty %}{% endif %} {{ page['patient']['administrativeDatas']['homePhone']['value']|e }} {% if config.click2callService is not empty %}{% endif %} {% endif %} {% if page['patient']['administrativeDatas']['mobilePhone']['value'] %} {% if config.click2callService is not empty %}{% endif %} {{ page['patient']['administrativeDatas']['mobilePhone']['value']|e }} {% if config.click2callService is not empty %}{% endif %} {% endif %} {# adresse #} {% if page['patient']['administrativeDatas']['city']['value'] %}{% endif %} {{ page['patient']['administrativeDatas']['streetNumber']['value']|e }} {{ page['patient']['administrativeDatas']['street']['value']|e }} {{ page['patient']['administrativeDatas']['postalCodePerso']['value']|e }} {{ page['patient']['administrativeDatas']['city']['value']|e }} {% if page['patient']['administrativeDatas']['country']['value_label'] is defined %} - {{ page['patient']['administrativeDatas']['country']['value_label']|e }}{% endif %} {% if page.correspondants %}
{% for v in page.correspondants %}
{% if v.titre %}{{ v.titre }} {% endif %}{{ v.identiteUsuelle }} {% if v.typeRelation == 'MTD' %}{% endif %}
{% endfor %}
{% endif %}
{{ page['patient']['administrativeDatas']['notes']['value']|e|nl2br }}