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

Class cSubstanceIntakeEntry

source code

                                   object --+    
                                            |    
pycommon.gmBusinessDBObject.cBusinessDBObject --+
                                                |
                                               cSubstanceIntakeEntry

Represents a substance currently taken by a patient.

Instance Methods
 
format_maximum_information(self, patient=None) source code
 
format(self, left_margin=0, date_format='%Y %b %d', single_line=True, allergy=None, show_all_product_components=False, include_metadata=True, include_instructions=False, include_loincs=False) source code
 
format_as_single_line_abuse(self, left_margin=0, date_format='%Y %b %d') source code
 
format_as_single_line(self, left_margin=0, date_format='%Y %b %d') source code
 
format_as_multiple_lines_abuse(self, left_margin=0, date_format='%Y %b %d', include_metadata=True) source code
 
format_as_multiple_lines(self, left_margin=0, date_format='%Y %b %d', allergy=None, show_all_product_components=False, include_instructions=False, include_loincs=False) source code
 
turn_into_allergy(self, encounter_id=None, allergy_type='allergy') source code
 
delete(self) source code
 
harmful_use_type_string(self) source code

Inherited from pycommon.gmBusinessDBObject.cBusinessDBObject: __del__, __getitem__, __init__, __setitem__, __str__, fields_as_dict, get_fields, get_patient, get_updatable_fields, is_modified, refetch_payload, same_payload, save, save_payload, staff_id

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  external_code = property(_get_external_code, lambda x: x)
  external_code_type = property(_get_external_code_type, lambda ...
  containing_drug = property(_get_containing_drug, lambda x: x)
  formatted_units = property(_get_formatted_units, lambda x: x)
  medically_formatted_start = property(_get_medically_formatted_...
  medically_formatted_start_end = property(_get_medically_format...
  as_amts_latex = property(_get_as_amts_latex, lambda x: x)
  as_amts_data = property(_get_as_amts_data, lambda x: x)
Properties

Inherited from object: __class__

Method Details

format(self, left_margin=0, date_format='%Y %b %d', single_line=True, allergy=None, show_all_product_components=False, include_metadata=True, include_instructions=False, include_loincs=False)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.format

Class Variable Details

external_code_type

Value:
property(_get_external_code_type, lambda x: x)

medically_formatted_start

Value:
property(_get_medically_formatted_start, lambda x: x)

medically_formatted_start_end

Value:
property(_get_medically_formatted_start_end, lambda x: x)