# HG changeset patch # User Feng Shu # Date 1687238946 -28800 # Tue Jun 20 13:29:06 2023 +0800 # Node ID a7906a78eaa4df40dd742c2a3b541d1c8490d2f3 # Parent d460a644d357679128ac0c5779b1de75560ed4a5 Add *_str fields used by report templates. diff -r d460a644d357 -r a7906a78eaa4 tryton/health/health.py --- a/tryton/health/health.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health/health.py Tue Jun 20 13:29:06 2023 +0800 @@ -2957,6 +2957,8 @@ ('m-f', 'Male -> Female'), ], 'Gender'), 'get_patient_gender') + gender_str = gender.translated('gender') + biological_sex = fields.Selection([ (None, ''), ('m', 'Male'), @@ -3203,6 +3205,8 @@ ('3_sv', 'Severe'), ], 'Severity', select=True, sort=False) + disease_severity_str = disease_severity.translated('disease_severity') + is_on_treatment = fields.Boolean('Currently on Treatment') is_infectious = fields.Boolean( 'Infectious Disease', @@ -3251,6 +3255,9 @@ ('i', 'improving'), ('w', 'worsening'), ], 'Status', select=True, sort=False) + + status_str = status.translated('status') + extra_info = fields.Text('Extra Info') healthprof = fields.Many2One( @@ -4409,6 +4416,8 @@ help='Period that the patient must take the medication in minutes,' ' hours, days, months, years or indefinately') + duration_period_str = duration_period.translated('duration_period') + infusion = fields.Boolean( 'Infusion', help='Mark if the medication is in the form of infusion' @@ -5299,6 +5308,8 @@ ('symptom', 'Symptom')], 'Subjective / Objective', required=True) + sign_or_symptom_str = sign_or_symptom.translated('sign_or_symptom') + clinical = fields.Many2One( 'gnuhealth.pathology', 'Sign or Symptom', required=True) diff -r d460a644d357 -r a7906a78eaa4 tryton/health_genetics/health_genetics.py --- a/tryton/health_genetics/health_genetics.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_genetics/health_genetics.py Tue Jun 20 13:29:06 2023 +0800 @@ -373,6 +373,8 @@ ('s', 'Sibling'), ], 'Maternal or Paternal', select=True) + xory_str = xory.translated('xory') + relative = fields.Selection([ ('mother', 'Mother'), ('father', 'Father'), diff -r d460a644d357 -r a7906a78eaa4 tryton/health_lifestyle/health_lifestyle.py --- a/tryton/health_lifestyle/health_lifestyle.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_lifestyle/health_lifestyle.py Tue Jun 20 13:29:06 2023 +0800 @@ -405,17 +405,23 @@ ('t', 'Transexual'), ], 'Sexual Preferences', sort=False) + sexual_preferences_str = sexual_preferences.translated('sexual_preferences') + sexual_practices = fields.Selection([ (None, ''), ('s', 'Safe / Protected sex'), ('r', 'Risky / Unprotected sex'), ], 'Sexual Practices', sort=False) + sexual_practices_str = sexual_practices.translated('sexual_practices') + sexual_partners = fields.Selection([ (None, ''), ('m', 'Monogamous'), ('t', 'Polygamous'), ], 'Sexual Partners', sort=False) + + sexual_partners_str = sexual_partners.translated('sexual_partners') sexual_partners_number = fields.Integer('Number of sexual partners') diff -r d460a644d357 -r a7906a78eaa4 tryton/health_nursing/health_nursing.py --- a/tryton/health_nursing/health_nursing.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_nursing/health_nursing.py Tue Jun 20 13:29:06 2023 +0800 @@ -127,6 +127,9 @@ ('w', 'Worsening'), ], 'Evolution', help="Check your judgement of current " "patient condition", sort=False, states=STATES) + + evolution_str = evolution.translated('evolution') + round_summary = fields.Text('Round Summary', states=STATES) signed_by = fields.Many2One( diff -r d460a644d357 -r a7906a78eaa4 tryton/health_pediatrics/health_pediatrics.py --- a/tryton/health_pediatrics/health_pediatrics.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_pediatrics/health_pediatrics.py Tue Jun 20 13:29:06 2023 +0800 @@ -50,6 +50,8 @@ help="Sex at birth. It might differ from the current patient" " gender. This is the biological sex.", states=STATES) + sex_str = sex.translated('sex') + state = fields.Selection([ (None, ''), ('draft', 'draft'), diff -r d460a644d357 -r a7906a78eaa4 tryton/health_socioeconomics/health_socioeconomics.py --- a/tryton/health_socioeconomics/health_socioeconomics.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_socioeconomics/health_socioeconomics.py Tue Jun 20 13:29:06 2023 +0800 @@ -77,6 +77,8 @@ ], 'Socioeconomics', help="SES - Socioeconomic Status", sort=False, states=STATES) + ses_str = ses.translated('ses') + housing = fields.Selection([ (None, ''), ('0', 'Shanty, deficient sanitary conditions'), @@ -297,6 +299,8 @@ ], 'Education Level', help="Education Level", sort=False), 'get_patient_education') + education_str = education.translated('education') + housing = fields.Function(fields.Selection([ (None, ''), ('0', 'Shanty, deficient sanitary conditions'), @@ -307,6 +311,8 @@ ], 'Housing conditions', help="Housing and sanitary living conditions", sort=False), 'get_patient_housing') + housing_str = housing.translated('housing') + ses = fields.Function(fields.Selection([ (None, ''), ('0', 'Lower'), diff -r d460a644d357 -r a7906a78eaa4 tryton/health_surgery/health_surgery.py --- a/tryton/health_surgery/health_surgery.py Mon Jun 19 03:09:28 2023 +0200 +++ b/tryton/health_surgery/health_surgery.py Tue Jun 20 13:29:06 2023 +0800 @@ -227,6 +227,9 @@ ('u', 'Urgent'), ('e', 'Emergency'), ], 'Urgency', help="Urgency level for this surgery", sort=False) + + classification_str = classification.translated('classification') + surgeon = fields.Many2One( 'gnuhealth.healthprofessional', 'Surgeon', help="Surgeon who did the procedure")