Medical Medication

medical_medication
REPOSITORY
REPOSITORYOCA/vertical-medical
GIT
GIThttps://github.com/OCA/vertical-medical.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-medical/tree/10.0/medical_medication
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYMedical
LICENSE
LICENSEGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSPedro M. Baeza, Jordi Ballester, Dave Lasley
WEBSITE
WEBSITEhttp://www.acsone.eu
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_locale_uom_default
OCA/vertical-medical:
    - medical
    - medical_disease
    - medical_medicament
odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
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 xpath Inherits medical_medication.medical_medication_template_form_view
medical_patient_medication_search_view medical.patient.medication.search medical.patient.medication xpath Inherits medical_medication.medical_medication_template_search_view
medical_patient_medication_tree_view medical.patient.medication.tree medical.patient.medication xpath Inherits medical_medication.medical_medication_template_tree_view
medical_patient_view_form medical.patient.form (medical_disease) medical.patient xpath Inherits medical.medical_patient_view_form
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)
  • abbreviation Char
    help='Dosage abbreviation, such as tid in the US or tds in the UK'
  • code Char
    help='Dosage Code,for example: SNOMED 229798009 = 3 times per day'
  • name Char
    required=True translate=True
Public methods (0)

No public methods.

New fields (11)
  • dose_unit_id Many2one → product.uom
    comodel_name='product.uom' string='Dose Unit'
  • duration Integer
    help='Period that the patient must take the medication. in minutes, hours, days, months, years or indefinately'
  • duration_period Selection
    help='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')]
  • frequency Integer
    help='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_prn Boolean
    help='Use it as needed, pro re nata'
  • frequency_unit Selection
    selection=[('seconds', 'seconds'), ('minutes', 'minutes'), ('hours', 'hours'), ('days', 'days'), ('weeks', 'weeks'), ('wr', 'when required')]
  • medicament_id Many2one → medical.medicament
    comodel_name='medical.medicament' required=True string='Medicament'
  • medication_dosage_id Many2one → medical.medication.dosage
    comodel_name='medical.medication.dosage' help='Common / standard dosage frequency for this medicament' string='Common Dose'
  • pathology_id Many2one → medical.pathology
    comodel_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'
  • quantity Integer
    help='Quantity of units (eg, 2 capsules) of the medicament' string='Dose Quantity'
  • suggested_administration_hours Char
Public methods (1)
  • name_get(self)
    @api.multi

New fields (1)
  • medication_ids One2many → medical.patient.medication
    comodel_name='medical.patient.medication' inverse_name='patient_id' string='Medications'
Public methods (0)

No public methods.

New fields (11)
  • active Boolean
    default=True help='Check if the patient is currently taking the medication'
  • adverse_reaction Text
    help='Side effects or adverse reactions that patient experienced'
  • date_start_treatment Datetime
  • date_stop_treatment Datetime
  • discontinued_reason Char
    help='Short description for discontinuing the treatment'
  • is_course_complete Boolean
    string='Course Completed'
  • is_discontinued Boolean
  • medication_template_id Many2one → medical.medication.template
    comodel_name='medical.medication.template' index=True string='Medication Template'
  • notes Text
  • patient_id Many2one → medical.patient
    comodel_name='medical.patient' index=True required=True string='Patient'
  • physician_id Many2one → medical.physician
    comodel_name='medical.physician' help='Physician who prescribed the medicament' index=True string='Physician'
Public methods (0)

No public methods.