ajout des UUID comme numéro AVS si absent
correction faute orthographe
This commit is contained in:
12
main.py
12
main.py
@@ -4,6 +4,7 @@ import os
|
|||||||
import logging
|
import logging
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
|
import uuid
|
||||||
import tkinter
|
import tkinter
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@@ -16,7 +17,7 @@ from threading import *
|
|||||||
|
|
||||||
from class_invoices import *
|
from class_invoices import *
|
||||||
|
|
||||||
VERSION = "20220304-1546"
|
VERSION = "202200506-1229"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -545,6 +546,7 @@ class ClercAttrib2Biz():
|
|||||||
self.logger.warn(f"Débiteur établissement facture N°: {data.data['id']} / {data.Patient['fip_number']} {data.Debtor['name']}")
|
self.logger.warn(f"Débiteur établissement facture N°: {data.data['id']} / {data.Patient['fip_number']} {data.Debtor['name']}")
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
if data.Debtor["code"] == 1 and data.Patient["lastname"] + data.Patient["firstname"] != data.Debtor["lastname"] + data.Debtor["firstname"]:
|
if data.Debtor["code"] == 1 and data.Patient["lastname"] + data.Patient["firstname"] != data.Debtor["lastname"] + data.Debtor["firstname"]:
|
||||||
self.a_listings["to_check"].append(data.Patient["fip_number"])
|
self.a_listings["to_check"].append(data.Patient["fip_number"])
|
||||||
print(data.Patient["complement"])
|
print(data.Patient["complement"])
|
||||||
@@ -557,6 +559,10 @@ class ClercAttrib2Biz():
|
|||||||
self.logger.warning(f"Complément patient: facture N°: {data.data['id']} / {data.Patient['fip_number']}")
|
self.logger.warning(f"Complément patient: facture N°: {data.data['id']} / {data.Patient['fip_number']}")
|
||||||
|
|
||||||
|
|
||||||
|
if data.Patient['insurance_policy_number'] == None:
|
||||||
|
data.Patient['insurance_policy_number'] = uuid.uuid4()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
b_HRF = False
|
b_HRF = False
|
||||||
sHRF = ""
|
sHRF = ""
|
||||||
@@ -610,6 +616,10 @@ class ClercAttrib2Biz():
|
|||||||
|
|
||||||
|
|
||||||
for elem in data.Patient:
|
for elem in data.Patient:
|
||||||
|
if elem == "lastname":
|
||||||
|
if data.Patient[elem] == None:
|
||||||
|
data.Patient[elem] = "Patient inconnu"
|
||||||
|
|
||||||
self.addToIndexs(obj=csv_col, data=data.Patient[elem], cat="patient", key=elem)
|
self.addToIndexs(obj=csv_col, data=data.Patient[elem], cat="patient", key=elem)
|
||||||
|
|
||||||
for elem in data.Debtor:
|
for elem in data.Debtor:
|
||||||
|
Reference in New Issue
Block a user