Medical Medication
medical_medication · OCA/vertical-medical
Health
50/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 106 months ago
-
Required by20/252 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
GPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
12 migration notes
5 models
10 views
0 HTTP endpoints
Migration considerations
AbstractMedicalMedication— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceMedicalMedicationDosage— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceMedicalMedicationTemplate— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceMedicalMedicationTemplate— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcemedical_medication_dosage_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcemedical_medication_template_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcemedical_patient_medication_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- medical_medication_us, medical_prescription
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
medical_medication_dosage_form_view |
medical.medication.dosage.form | medical.medication.dosage | form | New |
medical_medication_dosage_search_view |
medical.medication.dosage.search | medical.medication.dosage | search | New |
medical_medication_dosage_tree_view |
medical.medication.dosage.tree | medical.medication.dosage | tree | New |
medical_medication_template_form_view |
medical.medication.template.form | medical.medication.template | form | New |
medical_medication_template_search_view |
medical.medication.template.search | medical.medication.template | search | New |
medical_medication_template_tree_view |
medical.medication.template.tree | medical.medication.template | tree | New |
medical_patient_medication_form_view |
medical.patient.medication.form | medical.patient.medication | form | Inherits medical_medication.medical_medication_template_form_view |
medical_patient_medication_search_view |
medical.patient.medication.search | medical.patient.medication | search | Inherits medical_medication.medical_medication_template_search_view |
medical_patient_medication_tree_view |
medical.patient.medication.tree | medical.patient.medication | tree | Inherits medical_medication.medical_medication_template_tree_view |
medical_patient_view_form |
medical.patient.form (medical_disease) | medical.patient | form | Inherits medical.medical_patient_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (1)-
onchange_template_id(self)@api.one@api.onchange('medication_template_id')
New fields (3)
-
abbreviationCharhelp='Dosage abbreviation, such as tid in the US or tds in the UK' -
codeCharhelp='Dosage Code,for example: SNOMED 229798009 = 3 times per day' -
nameCharrequired=Truetranslate=True
No public methods.
New fields (11)
-
dose_unit_idMany2one → product.uomcomodel_name='product.uom'string='Dose Unit' -
durationIntegerhelp='Period that the patient must take the medication. in minutes, hours, days, months, years or indefinately' -
duration_periodSelectionhelp='Period that the patient must take the medication in minutes, hours, days, months, years or indefinately'selection=[('minutes', 'Minutes'), ('hours', 'Hours'), ('days', 'Days'), ('months', 'Months'), ('years', 'Years'), ('indefinite', 'Indefinite')] -
frequencyIntegerhelp='Time in between doses the patient must wait (ie, for 1 pill each 8 hours, put here 8 and select "hours" in the unit field' -
frequency_prnBooleanhelp='Use it as needed, pro re nata' -
frequency_unitSelectionselection=[('seconds', 'seconds'), ('minutes', 'minutes'), ('hours', 'hours'), ('days', 'days'), ('weeks', 'weeks'), ('wr', 'when required')] -
medicament_idMany2one → medical.medicamentcomodel_name='medical.medicament'required=Truestring='Medicament' -
medication_dosage_idMany2one → medical.medication.dosagecomodel_name='medical.medication.dosage'help='Common / standard dosage frequency for this medicament'string='Common Dose' -
pathology_idMany2one → medical.pathologycomodel_name='medical.pathology'help='Choose a disease for this medicament from the disease list. It can be an existing disease of the patient or a prophylactic.'string='Pathology' -
quantityIntegerhelp='Quantity of units (eg, 2 capsules) of the medicament'string='Dose Quantity' -
suggested_administration_hoursChar
-
name_get(self)@api.multi
New fields (1)
-
medication_idsOne2many → medical.patient.medicationcomodel_name='medical.patient.medication'inverse_name='patient_id'string='Medications'
No public methods.
New fields (11)
-
activeBooleandefault=Truehelp='Check if the patient is currently taking the medication' -
adverse_reactionTexthelp='Side effects or adverse reactions that patient experienced' -
date_start_treatmentDatetime -
date_stop_treatmentDatetime -
discontinued_reasonCharhelp='Short description for discontinuing the treatment' -
is_course_completeBooleanstring='Course Completed' -
is_discontinuedBoolean -
medication_template_idMany2one → medical.medication.templatecomodel_name='medical.medication.template'index=Truestring='Medication Template' -
notesText -
patient_idMany2one → medical.patientcomodel_name='medical.patient'index=Truerequired=Truestring='Patient' -
physician_idMany2one → medical.physiciancomodel_name='medical.physician'help='Physician who prescribed the medicament'index=Truestring='Physician'
No public methods.