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

Class cConsumableSubstance

source code

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

Instance Methods
 
save_payload(self, conn=None)
Store updated values (if any) in database.
source code

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

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

Properties
  is_in_use_by_patients
  is_drug_component

Inherited from object: __class__

Method Details

save_payload(self, conn=None)

source code 
Store updated values (if any) in database.

Optionally accepts a pre-existing connection
- returns a tuple (<True|False>, <data>)
- True: success
- False: an error occurred
        * data is (error, message)
        * for error meanings see gmPG2.run_rw_queries()

Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.save_payload
(inherited documentation)

Property Details

is_in_use_by_patients

Get Method:
_get_is_in_use_by_patients(self)
Set Method:
unreachable(x)

is_drug_component

Get Method:
_get_is_drug_component(self)
Set Method:
unreachable(x)