<html><head><meta name="qrichtext" content="charset=utf-8" /></head><body style="font-size:10pt;font-family:Sans">
<p>{{\<br /><span style="font-size:12pt">{{:: SET_VAR ( cheminW,C:/Program Files/Foxit Software/Foxit Reader/Foxit Reader)}}\<br />{{:: SET_VAR ( cheminL,/usr/bin/evince)}}\<br />{{:: SET_VAR ( cheminM,/Applications/Aperçu)}}\<br />{{:: SET_VAR ( chemin,chemin inconnu)}}\<br />{{:: SET_VAR ( chemin,{{:: TEST (S,{{OS}},=,M,{{VAR=cheminM}},{{VAR=chemin}})}})}}\<br />{{:: SET_VAR ( chemin,{{:: TEST (S,{{OS}},=,L,{{VAR=cheminL}},{{VAR=chemin}})}})}}\<br />{{:: SET_VAR ( chemin,{{:: TEST (S,{{OS}},=,W,{{VAR=cheminW}},{{VAR=chemin}})}})}}\<br />{{:: SET_VAR ( cheminpdftkW,../../pdf/pdftk)}}\<br />{{:: SET_VAR ( cheminpdftkL,/usr/bin/pdftk)}}\<br />{{:: SET_VAR ( cheminpdftk,chemin inconnu)}}\<br />{{:: SET_VAR ( cheminpdftk,{{:: TEST (S,{{OS}},=,W,{{VAR=cheminpdftkW}},{{VAR=cheminpdftk}})}})}}\<br />{{:: SET_VAR ( cheminpdftk,{{:: TEST (S,{{OS}},=,L,{{VAR=cheminpdftkL}},{{VAR=cheminpdftk}})}})}}\<br /></span>{{::SQL_SELECT (fchpat,FchPat_NomAss|FchPat_PrenomAss,WHERE FchPat_NomAss!='' AND FchPat_GUID_Doss='{{GUID}}',1,$SET_VAR)}}\<br />{{::SET_VAR (nom_ass,{{::SI (S,{{VAR=fchpat.FchPat_NomAss0}}, !=, ,{{VAR=fchpat.FchPat_NomAss0}},{{NOM PATIENT}} )}})}}\<br />{{::SET_VAR (prenom_ass,{{::SI (S,{{VAR=fchpat.FchPat_NomAss0}}, !=, ,{{VAR=fchpat.FchPat_PrenomAss0}},{{PRENOM PATIENT}} )}})}}\<br />          {{:: SET_VAR (xfdf_identifMedecin,Dr. {{PRENOM MEDECIN}} {{USER NOM MEDECIN}}&lt;br&gt;{{USER ADRESSE COMPLETE MEDECIN}})}}\<br />{{::SQL_SELECT (fchpat,FchPat_NomFille,WHERE FchPat_GUID_Doss='{{GUID}}',1,$SET_VAR)}}\<br />          {{:: SET_VAR (xfdf_prenom, {{VAR=prenom_ass}} )}}\<br />          {{:: SET_VAR (xfdf_imm1,{{:: MID({{NUM. SECU PATIENT}},0,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm2,{{:: MID({{NUM. SECU PATIENT}},1,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm3,{{:: MID({{NUM. SECU PATIENT}},2,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm4,{{:: MID({{NUM. SECU PATIENT}},3,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm5,{{:: MID({{NUM. SECU PATIENT}},4,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm6,{{:: MID({{NUM. SECU PATIENT}},5,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm7,{{:: MID({{NUM. SECU PATIENT}},6,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm8,{{:: MID({{NUM. SECU PATIENT}},7,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm9,{{:: MID({{NUM. SECU PATIENT}},8,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm10,{{:: MID({{NUM. SECU PATIENT}},9,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm11,{{:: MID({{NUM. SECU PATIENT}},10,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm12,{{:: MID({{NUM. SECU PATIENT}},11,1)}})}}\<br />          {{:: SET_VAR (xfdf_imm13,{{:: MID({{NUM. SECU PATIENT}},12,1)}})}}\<br />          {{:: SET_VAR (xfdf_cle1,{{:: MID({{NUM. SECU PATIENT}},13,1)}})}}\<br />          {{:: SET_VAR (xfdf_cle2,{{:: MID({{NUM. SECU PATIENT}},14,1)}})}}\<br />          {{:: SET_VAR (xfdf_nomBen, {{::SI (S,{{VAR=fchpat.FchPat_NomFille0}}, !=, ,{{VAR=fchpat.FchPat_NomFille0}} Épouse , )}} {{NOM PATIENT}} )}}\<br />          {{:: SET_VAR (xfdf_prenomBen, {{PRENOM PATIENT}} )}}\<br />         {{:: SET_VAR (xfdf_j2, {{:: MID({{DATE NAISSANCE PATIENT}},1,1 )}})}}\<br />         {{:: SET_VAR (xfdf_j1, {{:: MID({{DATE NAISSANCE PATIENT}},0,1 )}})}}\<br />         {{:: SET_VAR (xfdf_m1, {{:: MID({{DATE NAISSANCE PATIENT}},3,1 )}})}}\<br />         {{:: SET_VAR (xfdf_m2, {{:: MID({{DATE NAISSANCE PATIENT}},4,1 )}})}}\<br />         {{:: SET_VAR (xfdf_an1, {{:: MID({{DATE NAISSANCE PATIENT}},6,1 )}})}}\<br />         {{:: SET_VAR (xfdf_an2, {{:: MID({{DATE NAISSANCE PATIENT}},7,1 )}})}}\<br />         {{:: SET_VAR (xfdf_an3,{{:: MID({{DATE NAISSANCE PATIENT}},8,1 )}})}}\<br />         {{:: SET_VAR (xfdf_an4,{{:: MID({{DATE NAISSANCE PATIENT}},9,1 )}})}}\<br />         {{:: SET_VAR (xfdf_adresse1,{{ADRESSE PATIENT}})}}\<br />         {{:: SET_VAR (xfdf_adresse2,{{CODE POSTAL PATIENT}} {{VILLE PATIENT}})}}\<br />         {{:: SET_VAR (xfdf_adresse3, )}}\<br />         {{:: SET_VAR (xfdf_nomMedecin, {{USER NOM MEDECIN}})}}\<br />         {{:: SET_VAR (xfdf_prenomMedecin, {{USER PRENOM MEDECIN}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed1, {{:: MID({{USER IDENTIFICATION MEDECIN}},0,1 )}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed2, {{:: MID({{USER IDENTIFICATION MEDECIN}},1,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed3, {{:: MID({{USER IDENTIFICATION MEDECIN}},2,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed4, {{:: MID({{USER IDENTIFICATION MEDECIN}},3,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed5, {{:: MID({{USER IDENTIFICATION MEDECIN}},4,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed6, {{:: MID({{USER IDENTIFICATION MEDECIN}},5,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed7, {{:: MID({{USER IDENTIFICATION MEDECIN}},6,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed8, {{:: MID({{USER IDENTIFICATION MEDECIN}},7,1)}})}}\<br />         {{:: SET_VAR (xfdf_numIdentMed9, {{:: MID({{USER IDENTIFICATION MEDECIN}},8,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat1, {{:: MID({{DATE TIRET}},0,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat2, {{:: MID({{DATE TIRET}},1,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat3, {{:: MID({{DATE TIRET}},3,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat4, {{:: MID({{DATE TIRET}},4,1)}} )}}\<br />         {{:: SET_VAR (xfdf_dat5, {{:: MID({{DATE TIRET}},6,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat6, {{:: MID({{DATE TIRET}},7,1)}} )}}\<br />         {{:: SET_VAR (xfdf_dat7, {{:: MID({{DATE TIRET}},8,1)}})}}\<br />         {{:: SET_VAR (xfdf_dat8, {{:: MID({{DATE TIRET}},9,1)}})}}\<br />         {{:: SET_VAR (xfdf_nom,{{VAR=nom_ass}} )}}\<br />{{REM=--------------------- remplacement des valeurs dans le fichier de réference -------------------------------}}\<br />{{:: SET_VAR (xfdf_NomFile,{{GUID}}_MT_{{NOM PATIENT}} {{PRENOM PATIENT}}_{{DATE TIRET}})}}\<br />{{::REPLACE_IN_FILE(../../pdf/medecinTraitantModele.xml,../../pdf/medecinTraitant.xfdf,xfdf_identifMedecin,xfdf_prenom,xfdf_imm1,xfdf_imm2,xfdf_imm3,xfdf_imm4,xfdf_imm5,xfdf_imm6,xfdf_imm7,xfdf_imm8,xfdf_imm9,xfdf_imm10,xfdf_imm11,xfdf_imm12,xfdf_imm13,xfdf_cle1,xfdf_cle2,xfdf_nomBen,xfdf_prenomBen,xfdf_j2,xfdf_j1,xfdf_m1,xfdf_m2,xfdf_an1,xfdf_an2,xfdf_an3,xfdf_an4,xfdf_adresse1,xfdf_adresse2,xfdf_adresse3,xfdf_nomMedecin,xfdf_prenomMedecin,xfdf_numIdentMed1,xfdf_numIdentMed2,xfdf_numIdentMed3,xfdf_numIdentMed4,xfdf_numIdentMed5,xfdf_numIdentMed6,xfdf_numIdentMed7,xfdf_numIdentMed8,xfdf_numIdentMed9,xfdf_dat1,xfdf_dat2,xfdf_dat3,xfdf_dat4,xfdf_dat5,xfdf_dat6,xfdf_dat7,xfdf_dat8,xfdf_nom)}}\</p>
<p>{{:: exe_process (WaitEnd ,{{VAR=cheminpdftk}},$ToAbsPath../../pdf/declarationMT.pdf,fill_form,$ToAbsPath../../pdf/medecinTraitant.xfdf,output,$ToAbsPath../../pdf/doc_patients/{{VAR=xfdf_NomFile}}.pdf)}}\</p>
<p>{{:: exe_process (NoWaitEnd ,{{VAR=chemin}},$ToAbsPath../../pdf/doc_patients/{{VAR=xfdf_NomFile}}.pdf)}}\<br />}}<br /></p>
</body></html>
