{# # 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 > people : créer un patient / pro # # @author Bertrand Boutillier # @contrib fr33z00 #} {% extends "page.html.twig" %} {% import "macroForm.html.twig" as f %} {% block title %}{{ config.designAppName }} : {% if page.porp == 'patient'%} patient {% elseif page.porp == 'pro' %} praticien {% elseif page.porp == 'groupe' %} groupe {% elseif page.porp == 'registre' %} registre {% endif %} {% endblock %} {% block jsFiles %} {{ parent() }} {% if config.optionGeActiverVitaleLecture =='true' %} {% endif %} {% endblock %} {% block jsEmbed %} {{ parent() }} $(document).ready(function() { $("#id_lastname_id, #id_birthname_id, #id_firstname_id, #id_groupname_id").typeWatch({ wait: 1000, highlight: false, allowSubmit: false, captureLength: 1, callback: function(value) { searchSimilarPeople(); } }); searchSimilarPeople(); }); function searchSimilarPeople() { $.ajax({ url: urlBase + '/patients/ajax/peopleSimilarSearch/', type: 'post', data: $(".searchSimilar form").serialize(), dataType: "json", success: function(data) { showSimilar(data); }, error: function() {} }); } function showSimilar(data) { str = ''; if (data.length > 0) { str = '
\
\ {{ page.porp|capitalize }}s similaires existants \
\
'; $.each(data, function(index, value) { str += '' + value.label + ''; }); str += '
\
'; } $('#peopleSim').html(str); } {% endblock %} {% block body %}

{% if page.porp == 'patient'%} Nouveau patient {% elseif page.porp == 'pro' %} Nouveau praticien {% elseif page.porp == 'groupe' %} Nouveau groupe {% elseif page.porp == 'registre' %} Nouveau registre {% endif %}

{% if page.porp == 'patient' and config.optionGeActiverVitaleLecture =='true' %}
{% endif %} {% if session['form'][page.formIN]['validationErrorsMsg'] %}
{{ f.errorFormDiv( session['form'][page.formIN]['validationErrorsMsg']) }}
{% endif %} {% if page.createFromDropbox == 1 %}
{% endif %}
{{ f.formbuilder(page.form , page.formIN , session) }}
{% if page['formJavascript'][page.formIN] is not empty %} {% endif %}
{% endblock %} {% block modals %} {# modal résultat lecture CPS Vitale #} {% if config.optionGeActiverVitaleLecture =='true' %} {% include 'inc-modalLectureCpsVitale.html.twig' %} {% endif %} {% endblock %}