<commit_before>.. doctest docs/specs/clients_chatelet.rst
.. _welfare.specs.clients.chatelet:

==================
Clients (Chatelet)
==================

.. doctest init:

    >>> import lino
    >>> lino.startup('lino_welfare.projects.chatelet.settings.doctests')
    >>> from lino.api.doctest import *

.. contents::
   :depth: 2
   :local:



The detail layout of a client
=============================

Here is a textual description of the fields and their layout used in
the :class:`ClientDetail
<lino_welfare.projects.eupen.modlib.pcsw.models.ClientDetail>` of a
Lino Welfare à la Chatelet.

>>> from lino.utils.diag import py2rst
>>> print(py2rst(pcsw.Clients.detail_layout, True))
... #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE +REPORT_UDIFF -SKIP
(main) [visible for all]:
- **Personne** (general):
  - (general_1):
    - **None** (overview)
    - (general2):
      - (general2_1): **Sexe** (gender), **ID** (id), **Nationalité** (nationality)
      - **Nom de famille** (last_name)
      - (general2_3): **Prénom** (first_name), **Deuxième prénom** (middle_name)
      - (general2_4): **Date de naissance** (birth_date), **Âge** (age), **Langue** (language)
    - (general3): **adresse e-mail** (email), **Téléphone** (phone), **Fax** (fax), **GSM** (gsm)
    - **None** (image)
  - (general_2): **NISS** (national_id), **Etat civil** (civil_state), **Pays de naissance** (birth_country), **Lieu de naissance** (birth_place), **Nom déclaré** (declared_name), **besoin permis de séjour** (needs_residence_permit), **besoin permis de travail** (needs_work_permit)
  - (general_3): **en Belgique depuis** (in_belgium_since), **Titre de séjour** (residence_type), **Inscription jusque** (residence_until), **Phase d'insertion** (group), **Type d'aide sociale** (aid_type)
  - (general_4) [visible for 100 110 120 200 210 220 300 400 410 420 500 510 800 admin 910]:
    - **Rendez-vous** (reception.AppointmentsByPartner)
    - **Créer rendez-vous avec** (AgentsByClient)
    - **Inscriptions** (courses.EnrolmentsByPupil) [visible for 100 110 120 200 210 300 400 410 420 800 admin 910]
- **Intervenants** (coaching) [visible for 100 110 120 200 210 220 300 400 410 420 500 510 800 admin 910]:<commit_msg> #2521 Fix after last changes<commit_after>.. doctest docs/specs/clients_chatelet.rst
.. _welfare.specs.clients.chatelet:

==================
Clients (Chatelet)
==================

.. doctest init:

    >>> import lino
    >>> lino.startup('lino_welfare.projects.chatelet.settings.doctests')
    >>> from lino.api.doctest import *

.. contents::
   :depth: 2
   :local:



The detail layout of a client
=============================

Here is a textual description of the fields and their layout used in
the :class:`ClientDetail
<lino_welfare.projects.eupen.modlib.pcsw.models.ClientDetail>` of a
Lino Welfare à la Chatelet.

>>> from lino.utils.diag import py2rst
>>> print(py2rst(pcsw.Clients.detail_layout, True))
... #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE +REPORT_UDIFF -SKIP
(main) [visible for all]:
- **Personne** (general):
  - (general_1):
    - **Activity** (overview)
    - (general2):
      - (general2_1): **Sexe** (gender), **ID** (id), **Nationalité** (nationality)
      - **Nom de famille** (last_name)
      - (general2_3): **Prénom** (first_name), **Deuxième prénom** (middle_name)
      - (general2_4): **Date de naissance** (birth_date), **Âge** (age), **Langue** (language)
    - (general3): **adresse e-mail** (email), **Téléphone** (phone), **Fax** (fax), **GSM** (gsm)
    - **None** (image)
  - (general_2): **NISS** (national_id), **Etat civil** (civil_state), **Pays de naissance** (birth_country), **Lieu de naissance** (birth_place), **Nom déclaré** (declared_name), **besoin permis de séjour** (needs_residence_permit), **besoin permis de travail** (needs_work_permit)
  - (general_3): **en Belgique depuis** (in_belgium_since), **Titre de séjour** (residence_type), **Inscription jusque** (residence_until), **Phase d'insertion** (group), **Type d'aide sociale** (aid_type)
  - (general_4) [visible for 100 110 120 200 210 220 300 400 410 420 500 510 800 admin 910]:
    - **Rendez-vous** (reception.AppointmentsByPartner)
    - **Créer rendez-vous avec** (AgentsByClient)
    - **Inscriptions** (courses.EnrolmentsByPupil) [visible for 100 110 120 200 210 300 400 410 420 800 admin 910]
- **Intervenants** (coaching) [visible for 100 110 120 200 210 220 300 400 410 420 500 510 800 admin 910]:
{'fraction_non_alphanumeric': 0.19138863841298467, 'fraction_numerical': 0.060414788097385035, 'mean_word_length': 4.717783505154639, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '497714', 'n_tokens_mistral': 1827, 'n_tokens_neox': 1534, 'n_words': 426}