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"]