{% extends "dossiers/base.html" %} {% load url from future %} {% block extrascripts %} {% endblock %} {% block appbar %}

{{ object.last_name }} {{ object.first_name }} - Dossier {{ object.paper_id|default_if_none:"" }}

Retourner aux dossiers {% if object.can_be_deleted %}{% endif %} {% endblock %} {% block content %} {% if messages %} {% endif %}
{% include "dossiers/patientrecord_tab1.html" %}
{% include "dossiers/patientrecord_tab2.html" %}
{% csrf_token %}

{% if object.gender == 1 %}M.{% elif object.gender == 2 %}Mme{% endif %} {{ object.first_name }} {{ object.last_name }} {% if object.id == object.id %} (PATIENT){% endif %}

Assuré
    {% if object.parente %}
  • {{ object.parente }}
  • {% endif %} {% if object.mobile %}
  • {{ object.mobile }} (perso)
  • {% endif %} {% if object.phone %}
  • {{ object.phone }} (pro)
  • {% endif %} {% if object.email %}
  • {{ object.email }}
  • {% endif %} {% if object.job %}
  • {{ object.job }}
  • {% endif %} {% if object.contact_comment %}
  • {{ object.contact_comment }}
  • {% endif %}
    • {% if object.social_security_id %}
    • {{ object.social_security_id }} {{ object.get_control_key }}
    • {% endif %} {% if object.birthdate %}
    • {{ object.birthdate }}
    • {% endif %} {% if object.birthplace %}
    • {{ object.birthplace }}
    • {% endif %} {% if object.begin_rights %}
    • {{ object.begin_rights }}
    • {% endif %} {% if object.end_rights %}
    • {{ object.end_rights }}
    • {% endif %} {% if object.health_center %}
    • {{ object.health_center }}
    • {% endif %} {% if object.other_health_center %}
    • {{ object.other_health_center }}
    • {% endif %}
    • {% if object.thirdparty_payer %} Oui {% else %} Non {% endif %}
    • {% if object.twinning_rank %}
    • {{ object.twinning_rank }}
    • {% endif %}
{% for address in object.addresses.all %}

{% if not address.display_name %}Non renseigné{% else %}{{ address.display_name }}{% endif %}

Lieu de vie
{% if address.phone %}

{{ address.phone }}

{% endif %} {% if address.comment %}

{{ address.comment }}

{% endif %} {% if not address.phone and not address.comment %}

 

{% endif %} {% for contact in address.patientcontact_set.all %} {% if contact.id != object.id %}

{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %} {{ contact.first_name }} {{ contact.last_name }} {% if contact.id == object.id %} (PATIENT){% endif %}

Assuré
    {% if contact.parente %}
  • {{ contact.parente }}
  • {% endif %} {% if contact.mobile %}
  • {{ contact.mobile }} (perso)
  • {% endif %} {% if contact.phone %}
  • {{ contact.phone }} (pro)
  • {% endif %} {% if contact.email %}
  • {{ contact.email }}
  • {% endif %} {% if contact.job %}
  • {{ contact.job }}
  • {% endif %} {% if contact.contact_comment %}
  • {{ contact.contact_comment }}
  • {% endif %}
    • {% if contact.social_security_id %}
    • {{ contact.social_security_id }} {{ contact.get_control_key }}
    • {% endif %} {% if contact.birthdate %}
    • {{ contact.birthdate }}
    • {% endif %} {% if contact.birthplace %}
    • {{ contact.birthplace }}
    • {% endif %} {% if contact.begin_rights %}
    • {{ contact.begin_rights }}
    • {% endif %} {% if contact.end_rights %}
    • {{ contact.end_rights }}
    • {% endif %} {% if contact.health_center %}
    • {{ contact.health_center }}
    • {% endif %}
    • {% if contact.thirdparty_payer %} Oui {% else %} Non {% endif %}
    • {% if contact.twinning_rank %}
    • {{ contact.twinning_rank }}
    • {% endif %}
{% endif %} {% endfor %}
{% endfor %}
{% if object.service.name == "CMPP" %}

{% if hcs %} {% for hc in hcs %} {% if hc.cmpphealthcarediagnostic %}

En diagnostic depuis le {{ hc.start_date }}

  • : {{ hc.cmpphealthcarediagnostic.act_number }}
  • {% if hc.comment %}
  • : {{ hc.comment }}
  • {% endif %}
  • {% if hc.get_nb_acts_cared %}{{ hc.get_nb_acts_cared }} actes déja facturés.{% else %}Aucun acte facturé.{% endif %}
{% else %}

En traitement depuis le {{ hc.start_date }}{% if hc.end_date %} jusqu'au {{ hc.end_date }}{% endif %}

  • : {{ hc.cmpphealthcaretreatment.act_number }}
  • {% if hc.comment %}
  • : {{ hc.comment }}
  • {% endif %}
  • {% if hc.get_nb_acts_cared %}{{ hc.get_nb_acts_cared }} actes déja facturés.{% else %}Aucun acte facturé.{% endif %}
{% endif %} {% endfor %} {% endif %} {% endif %} {% if object.service.name == "SESSAD TED" or object.service.name == "SESSAD DYS" %} {% endif %}
{% for act, state in last_rdvs %}

{% firstof act.start_datetime|date:"d/m/y H:m" act.date %} {{ act.act_type }}

    {% if act.doctors.all %}
  • {% for doctor in act.doctors.all %} {{ doctor.first_name }} {{ doctor.last_name }} {% endfor %}
  • {% endif %} {% if act.parent_event.room %}
  • Salle : {{ act.parent_event.room }}
  • {% endif %}
  • {% if act.parent_event %} {% if act.parent_event.convocation_sent %} Convocation envoyé {% else %} Convocation non envoyé {% endif %} {% endif %}
  • {% if state %}{{ state.state_name }}, le {{ state.created }} par {{ state.author }} {% else %} Non pointé. {% endif %}
{% endfor %}
{% for act, state in next_rdvs %}

{% firstof act.start_datetime|date:"d/m/y H:m" act.date %} {{ act.act_type }}

    {% if act.doctors.all %}
  • {% for doctor in act.doctors.all %} {{ doctor.first_name }} {{ doctor.last_name }} {% endfor %}
  • {% endif %} {% if act.parent_event.room %}
  • Salle : {{ act.parent_event.room }}
  • {% endif %}
  • {% if act.convocation_sent %} Convocation envoyé {% else %} Convocation non envoyé {% endif %}
  • {% if state %}{{ state.state_name }}, le {{ state.created }} par {{ state.author }} {% else %} Non pointé. {% endif %}
{% endfor %}

Périodes de socialisation

{% for duration in object.socialisation_durations.all %}
Arrivée le {{ duration.start_date }} dans {% if duration.school %}l'établissement {{ duration.school }}{% else %}un établissement non renseigné{% endif %}{% if duration.level %} (en {{ duration.level }}){% endif %}
    {% if duration.end_date %}
  • : {{ duration.end_date }}
  • {% endif %} {% if duration.comment %}
  • : {{ duration.comment }}
  • {% endif %}
{% endfor %}

Demandes MDPH

{% for request in object.mdph_requests.all %}
Demande le {{ request.start_date }} à la MDPH {{ request.mdph }}
    {% if request.comment %}
  • : {{ request.comment }}
  • {% endif %}
{% endfor %}

Réponses MDPH

{% for response in object.mdph_responses.all %}
Du {{ response.start_date }} au {{ response.end_date }} à la MDPH {{ response.mdph }}
    {% if response.comment %}
  • : {{ response.comment }}
  • {% endif %} {% if response.type_aide %}
  • : {{ response.type_aide }}
  • {% endif %} {% if response.name %}
  • : {{ response.name }}
  • {% endif %} {% if response.rate %}
  • : {{ response.rate }}
  • {% endif %}
{% endfor %}
{% csrf_token %} {% for field in forms.physiology %}

{{ field.errors }}

{{ field.label_tag }} {{ field }}

{% endfor %}

{% endblock %} {% block dialogs %}
{% csrf_token %}
{% endblock %}