From 2a42096dcb88b73ce97efca6476edd0797d7192b Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Thu, 2 Jun 2022 16:36:54 +0200 Subject: [PATCH] Changement affichage date naissance --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a0d76d0..37fbc69 100644 --- a/main.py +++ b/main.py @@ -633,7 +633,7 @@ class ClercAttrib2Biz(): csv_col.data[115] = self.ifNotNull(data.Patient["lastname"]) + " " + self.ifNotNull(data.Patient["firstname"]) csv_col.data[108] = data.Patient["complement"] - csv_col.data[109] = datetime.strptime(data.Patient["birthdate"], "%Y-%m-%d").strftime("%d.%m.%Y") if data.Patient["birthdate"] is not None else "date naissance inconnue" + csv_col.data[109] = datetime.strptime(data.Patient["birthdate"], "%Y-%m-%d").strftime("%d.%m.%Y") if data.Patient["birthdate"] is not None else "" if data.Patient["insurance_policy_number"] is not None and '-' not in data.Patient["insurance_policy_number"]: csv_col.data[109] += ", " + data.Patient["insurance_policy_number"]