refacto: Exporting is now in CSV the values + auto gestion of perfusion

This commit is contained in:
gauvainboiche
2026-08-02 14:44:03 +02:00
parent c0843ed083
commit abe44eca1d
9 changed files with 646 additions and 217 deletions
+52 -30
View File
@@ -7,50 +7,72 @@
"mode_esk": "ESKETAMINE",
"mode_rac": "RACEMIC",
"calculator": "Calculator",
"export_pdf": "Export PDF",
"export_csv": "Export CSV",
"raz": "Reset"
},
"patient": {
"title": "Patient Parameters",
"weight": "Weight (kg)",
"age": "Age (years)",
"height": "Height (cm)",
"concentration": "Drug Concentration (mg/mL)"
"name_label": "Patient Name",
"name_placeholder": "e.g. SMITH John",
"weight_label": "Patient Weight (kg)",
"weight_warning": "⚠️ Pharmacokinetic models are not guaranteed outside the 30 - 120 kg range.",
"infusion_unit_label": "Continuous infusion unit"
},
"models": {
"title": "PK Models"
"units": {
"mg_kg_h": "mg / kg / h",
"mcg_kg_min": "µg / kg / min",
"mg_h": "mg / h (fixed dose)"
},
"timeline": {
"title": "Chronological Dosing & Infusion (0 - 300 min)",
"scroll_hint": "Horizontal scroll 👉",
"bolus": "Bolus (mg)",
"perf": "Infusion (mg/kg/h)"
"buttons": {
"export_csv": "📊 Export CSV values (ng/mL)"
},
"calculator": {
"title": "Calculator & Dose Conversions",
"patient_weight": "Patient Weight",
"drug_conc": "Concentration",
"bolus_header": "Bolus Conversion",
"total_dose": "Total Dose (mg)",
"relative_dose": "Relative Dose (mg/kg)",
"infusion_header": "Infusion Conversion",
"rate_mgkgh": "Rate (mg/kg/h)",
"rate_ugkgmin": "Rate (µg/kg/min)"
"table": {
"summary_title": "🔍 Concentration Control Table (0 - 300 min)",
"summary_subtitle": "Click to expand/collapse",
"col_time": "Time",
"col_bolus": "Bolus (mg)",
"col_infusion": "Active Infusion",
"col_domino": "Domino (ng/mL)",
"col_clements": "Clements (ng/mL)",
"col_kamp": "Kamp (ng/mL)"
},
"csv": {
"title": "KetaPK - Raw Data Report",
"weight": "Patient weight (kg)",
"unit": "Infusion unit",
"col_time": "Time (min)",
"col_bolus": "Bolus (mg)",
"col_infusion": "Active infusion",
"col_domino": "Domino (ng/mL)",
"col_clements": "Clements (ng/mL)",
"col_kamp": "Kamp (ng/mL)"
},
"zones": {
"inactive": "Inactive",
"anti_hyperalgesic": "Anti-Hyperalgesic",
"anti_hyperalgesic": "Anti-hyperalgesic",
"analgesia": "Analgesia",
"psychedelic": "Psychedelic",
"emergence": "Emergence",
"narcosis": "Narcosis",
"excessive": "Excessive"
},
"pdf": {
"title": "KetaPK - Pharmacokinetic Simulation Report",
"date": "Simulation Date: ",
"mode": "Selected Mode: ",
"patient_info": "Patient: Weight {weight} kg | Age {age} yrs | Height {height} cm",
"disclaimer": "Generated by KetaPK Web. Please double-check."
"models": {
"title": "Pharmacokinetic Models"
},
"timeline": {
"title": "Chronological Doses & Infusion Entry (0 - 300 min)",
"scroll_hint": "Horizontal scroll 👉",
"bolus": "Bolus (mg)",
"perf": "Infusion rate"
},
"calculator": {
"title": "Calculator & Dose Conversions",
"patient_weight": "Patient Weight",
"drug_conc": "Concentration",
"bolus_header": "Bolus Conversion",
"total_dose": "Total dose (mg)",
"relative_dose": "Relative dose (mg/kg)",
"infusion_header": "Infusion Conversion",
"rate_mgkgh": "Rate (mg/kg/h)",
"rate_ugkgmin": "Rate (µg/kg/min)"
}
}