# Label Analysis Report

Input: `009_label_data_sample_seed_42.json`


## Overview

- Total records: 1232
- Total labels (flattened): 1259
- is_bill distribution: {True: 1126, False: 133}
- bill_paid distribution: {False: 74, True: 1011, None: 174}
- Invoice dates span: 2012-04-17 .. 2025-12-20
- Unique year-month pairs: 64

## Professions (top)

- Ostéopathe: 377
- Ostéopathie: 308
- Optique: 221
- (missing): 108
- Chiropractie: 54
- Psychologue: 52
- Unknown: 21
- Kinésithérapie: 15
- Ophtalmologie: 13
- Sophrologie: 12
- Podologue: 9
- Hypnothérapie: 7
- Pharmacie: 5
- Naturopathie: 5
- Etiopathie: 4
- Radiologie: 4
- Étiopathie: 4
- Soins hospitalier: 4
- Sophrologue: 3
- Etiopathe: 3
- Psychologie: 2
- Psychomotricité: 2
- Otique: 2
- Médecine Générale: 2
- Homéopathie: 2
- Kinésiologie: 2
- Pompes funèbres: 2
- Chirurgie dentaire: 1
- Biologie: 1
- Sevrage tabagique: 1
- Acupuncture: 1
- Étiopathe: 1
- unknown: 1
- Orthopédie: 1
- Psychiatrie: 1
- Diététicienne: 1
- Chiropratie: 1
- Medecine Générale: 1
- Sage-femme: 1
- Addictologie: 1
- Ophtalmologue: 1
- Diététique: 1
- Réflexologie: 1

## Currency distribution

- EUR: 1137
- F: 2

## Identifier and key field presence

- adeli_number: 902 present
- rpps_number: 179 present
- finess_number: 133 present
- prescripteur_finess_number: 42 present
- doctor_name: 1051 present
- invoice_issuer: 1122 present
- insured_name: 203 present
- beneficiary_name: 1098 present
- security_number: 494 present
- currency: 1139 present

## Flags

- is_handwriting: {True: 62, None: 858, False: 339}
- is_rotated: {False: 372, None: 856, True: 31}

## Numeric summaries

- total_billed: {'count': 1134, 'min': 1.0, 'p25': 55.0, 'median': 60.0, 'p75': 70.0, 'max': 18600.0, 'mean': 112.98805114638448, 'sum': 128128.45000000001, 'missing': 125}
- amount_paid: {'count': 1012, 'min': 0.0, 'p25': 50.0, 'median': 60.0, 'p75': 65.0, 'max': 18600.0, 'mean': 106.93289525691699, 'sum': 108216.08999999997, 'missing': 247}
- remaining_payment: {'count': 252, 'min': 0.0, 'p25': 0.0, 'median': 0.0, 'p75': 0.0, 'max': 2744.64, 'mean': 14.226587301587301, 'sum': 3585.1, 'missing': 1007}
- client_part: {'count': 153, 'min': 0.0, 'p25': 27.72, 'median': 46.41, 'p75': 81.5, 'max': 1100.0, 'mean': 95.07934640522876, 'sum': 14547.140000000007, 'missing': 1106}
- mandatory_coverage: {'count': 138, 'min': 0.0, 'p25': 0.09, 'median': 27.380000000000003, 'p75': 47.730000000000004, 'max': 1175.72, 'mean': 39.25376811594203, 'sum': 5417.020000000004, 'missing': 1121}
- complementary_coverage: {'count': 89, 'min': 0.0, 'p25': 0.0, 'median': 0.0, 'p75': 60.0, 'max': 370.03, 'mean': 54.395168539325844, 'sum': 4841.169999999999, 'missing': 1170}

## Items analysis

- Items per label: count=1259, min=0, max=14, mean=1.22
- total_billed vs sum(items.amount) mismatches: 60

## Data quality issues (sample)

- eedda33e-049b-4ab8-aee8-6f5d0c88b500_IMG_0358: item[0].quantity missing
- eedda33e-049b-4ab8-aee8-6f5d0c88b500_IMG_0358: item[1].quantity missing
- e72e49e0-7891-4dc8-b62f-40c7bf6252a4_Nuria_Ravier_Ophtalomologiste: item[0].quantity missing
- e72e49e0-7891-4dc8-b62f-40c7bf6252a4_Nuria_Ravier_Ophtalomologiste: item[0].quantity missing
- Facture ostéopathe-25417096: item[0].quantity missing
- eb5561dd-937b-4c0b-b6c6-56da8b528c94_facture_vision_claire_ophtalmo_1_001: item[0].quantity missing
- 6f544990-74c6-4c7e-8a25-08eb3f9138c8_RemboursementSoins01082024_1: item[0].quantity missing
- 6f544990-74c6-4c7e-8a25-08eb3f9138c8_RemboursementSoins01082024_1: item[1].quantity missing
- 1150ac6a-abdc-409d-b7ca-296e7b35769c_Facture_BOLZERJean_Francois_20250131GMAM: item[0].quantity missing
- Facture ostéopathe-26738638: item[0].quantity missing
- 34162b51-6c3f-4dcc-a18a-d6b9e45e4f22_Recu_ophtalmo_Cadet_Corine_2025-03-09: bill_paid True but remaining_payment > 0
- 34162b51-6c3f-4dcc-a18a-d6b9e45e4f22_Recu_ophtalmo_Cadet_Corine_2025-03-09: item[0].quantity missing
- 34162b51-6c3f-4dcc-a18a-d6b9e45e4f22_Recu_ophtalmo_Cadet_Corine_2025-03-09: item[1].quantity missing
- abff81b4-d895-47d5-b3d4-93da48f5c1e6_20241212_172044: item[0].quantity missing
- abff81b4-d895-47d5-b3d4-93da48f5c1e6_20241212_172044: item[1].quantity missing
- 2c75bd51-e61c-452e-b19b-494fa70e9cc9_Facture_lentilles_janvier_2024: item[4].amount negative: -2.9
- 2c75bd51-e61c-452e-b19b-494fa70e9cc9_Facture_lentilles_janvier_2024: item[5].amount negative: -3.0
- Facture ostéopathe-26605349: item[0].quantity missing
- Facture médecine douce-27702698: item[0].quantity missing
- 6221379e-7344-4868-9ee0-04f2c4e26874_consultation_ophtalmo27janvier2025BEAUPERINyann: item[0].quantity missing
- f55f9121-499d-4c25-b79b-464413d7ca6c_Quittance_Ophtalmologue: item[0].quantity missing
- f55f9121-499d-4c25-b79b-464413d7ca6c_Quittance_Ophtalmologue: item[0].quantity missing
- 62b45277-a437-48c6-af52-d1814f23434f_17460042180346042803920585280783: item[0].quantity missing
- 62b45277-a437-48c6-af52-d1814f23434f_17460042180346042803920585280783: item[1].quantity missing
- Facture ostéopathe-25847017: bill_paid True but remaining_payment > 0
- 02358c4c-820a-409f-9489-a75f22af3f32_image: item[0].quantity missing
- 02358c4c-820a-409f-9489-a75f22af3f32_image: item[1].quantity missing
- 7ef7306d-400e-4a56-b31c-02237212c470_Scan: item[0].quantity missing
- 7ef7306d-400e-4a56-b31c-02237212c470_Scan: item[1].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[0].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[1].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[3].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[4].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[6].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[7].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[8].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[9].quantity missing
- f482ebef-e885-4627-a927-96ad54ab5aa0_Facture: item[11].quantity missing
- Facture ostéopathe-26610949: item[0].quantity missing
- 8908ff09-4087-467a-88f1-e415501a95b4_POUVAIT_lunettes: item[0].quantity missing
- 8908ff09-4087-467a-88f1-e415501a95b4_POUVAIT_lunettes: item[1].quantity missing
- 8908ff09-4087-467a-88f1-e415501a95b4_POUVAIT_lunettes: item[2].quantity missing
- 8908ff09-4087-467a-88f1-e415501a95b4_POUVAIT_lunettes: item[3].quantity missing
- 8908ff09-4087-467a-88f1-e415501a95b4_POUVAIT_lunettes: item[4].quantity missing
- bf09a877-0705-4c79-b908-6e8da44e44c7_17490641879424403676372514736136: item[0].quantity missing
- bf09a877-0705-4c79-b908-6e8da44e44c7_17490641879424403676372514736136: item[1].quantity missing
- 17b264a2-4881-49a4-8326-48ace17dd86f_factures_ophtalmo: item[0].quantity missing
- 17b264a2-4881-49a4-8326-48ace17dd86f_factures_ophtalmo: item[1].quantity missing
- 17b264a2-4881-49a4-8326-48ace17dd86f_factures_ophtalmo: item[0].quantity missing
- e566a3b0-cc99-4c4d-8715-9f3be841a066_noname: item[0].quantity missing

## Plots

- is_bill
![](plots/is_bill.png)

- bill_paid
![](plots/bill_paid.png)

- is_handwriting
![](plots/is_handwriting.png)

- is_rotated
![](plots/is_rotated.png)

- professions_top20
![](plots/professions_top20.png)

- currency
![](plots/currency.png)

- invoice_year_month
![](plots/invoice_year_month.png)

- items_per_label
![](plots/items_per_label.png)

- hist_total_billed
![](plots/hist_total_billed.png)

- hist_amount_paid
![](plots/hist_amount_paid.png)

- hist_remaining_payment
![](plots/hist_remaining_payment.png)

- hist_client_part
![](plots/hist_client_part.png)

- hist_mandatory_coverage
![](plots/hist_mandatory_coverage.png)

- hist_complementary_coverage
![](plots/hist_complementary_coverage.png)
