Gnumed.business.gmMedication

Package Gnumed :: Package business :: Module gmMedication |
[frames] | no frames]

# Module gmMedication

source code

Medication handling code.

license: GPL v2 or later

Author: K.Hilbert <Karsten.Hilbert@gmx.net>

Classes
| cSubstance
| cSubstanceDose
| cSubstanceDoseMatchProvider
| cProductOrSubstanceMatchProvider
| cSubstanceIntakeObjectMatchProvider
| cDrugComponent
| cDrugComponentMatchProvider
| cDrugProduct Represents a drug as marketed by a manufacturer or a generic drug product.
| cSubstanceIntakeEntry Represents a substance currently taken by a patient.

Functions
drug2renal_insufficiency_url(search_term=None) | source code
get_substances(order_by=None) | source code
create_substance(substance=None, atc=None) | source code
create_substance_by_atc(substance=None, atc=None, link_obj=None) | source code
delete_substance(pk_substance=None) | source code
get_substance_doses(order_by=None) | source code
create_substance_dose(link_obj=None, pk_substance=None, substance=None, atc=None, amount=None, unit=None, dose_unit=None) | source code
create_substance_dose_by_atc(link_obj=None, substance=None, atc=None, amount=None, unit=None, dose_unit=None) | source code
delete_substance_dose(pk_dose=None) | source code
get_drug_components() | source code
get_drug_products() | source code
get_drug_by_name(product_name=None, preparation=None, link_obj=None) | source code
get_drug_by_atc(atc=None, preparation=None, link_obj=None) | source code
create_drug_product(product_name=None, preparation=None, return_existing=False, link_obj=None, doses=None) | source code
create_drug_product_by_atc(atc=None, product_name=None, preparation=None, return_existing=False, link_obj=None) | source code
delete_drug_product(pk_drug_product=None) | source code
get_substance_intakes(pk_patient=None) | source code
substance_intake_exists(pk_component=None, pk_identity=None, pk_drug_product=None, pk_dose=None) | source code
substance_intake_exists_by_atc(pk_identity=None, atc=None) | source code
create_substance_intake(pk_component=None, pk_encounter=None, pk_episode=None, pk_drug_product=None) | source code
delete_substance_intake(pk_intake=None, delete_siblings=False) | source code
format_substance_intake_as_amts_latex(intake=None, strict=True) | source code
format_substance_intake_as_amts_data(intake=None, strict=True) <M a="Handelsname" fd="freie Formangabe" t="freies Dosierschema" dud="freie Dosiereinheit (Stück Tab)" r="reason" i="info">... | source code
generate_amts_data_template_definition_file(work_dir=None, strict=True) | source code
format_substance_intake_as_amts_data_v2_0(intake=None, strict=True) | source code
calculate_amts_data_check_symbol_v2_0(intakes=None) | source code
generate_amts_data_template_definition_file_v2_0(work_dir=None, strict=True) | source code
format_substance_intake_notes(emr=None, output_format='latex', table_type=u'by-product') | source code
format_substance_intake(emr=None, output_format='latex', table_type='by-product') | source code
create_default_medication_history_episode(pk_health_issue=None, encounter=None, link_obj=None) | source code
get_tobacco() | source code
get_alcohol() | source code
get_other_drug(name=None, pk_dose=None) | source code
format_units(unit, dose_unit, preparation=None, short=True) | source code

Variables
| DEFAULT_MEDICATION_HISTORY_EPISODE = `_('Medication history')`
| URL_renal_insufficiency = `'http://www.dosing.de'`
| URL_renal_insufficiency_search_template = `'http://www.google.c`...``
| URL_long_qt = `'https://www.crediblemeds.org'`

Imports: sys, logging, io, uuid, regex, pydt, gmBusinessDBObject, gmTools, gmPG2, gmDispatcher, gmMatchProvider, gmHooks, gmDateTime, gmATC, gmAllergy, gmEMRStructItems

Function Details

### format_substance_intake_as_amts_data(intake=None, strict=True) | source code
    <M a="Handelsname" fd="freie Formangabe" t="freies Dosierschema" dud="freie Dosiereinheit (Stück Tab)" r="reason" i="info">
            <W w="Metformin" s="500 mg"/>
            <W ...>
    </M>

Variables Details

  ### URL_renal_insufficiency_search_template Value:
      'http://www.google.com/search?hl=de&source=hp&q=site%%3Adosing.de+%s&b
      tnG=Google-Suche'