Gnumed.business.gmMedication.cSubstance

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

# Class cSubstance

source code

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

Instance Methods
format(self, left_margin=0) | source code
save_payload(self, conn=None) Store updated values (if any) in database. | source code
exists_as_intake(self, pk_patient=None) | source code
Inherited from `pycommon.gmBusinessDBObject.cBusinessDBObject`: `__del__`, `__getitem__`, `__init__`, `__setitem__`, `__str__`, `fields_as_dict`, `get_fields`, `get_patient`, `get_updatable_fields`, `is_modified`, `patient_pk`, `refetch_payload`, `same_payload`, `save`, `staff_id` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Variables
| loincs = `property(lambda x: x, _set_loincs)`
| is_in_use_by_patients = `property(_get_is_in_use_by_patients, l`...``
| is_drug_component = `property(_get_is_drug_component, lambda x: x)`

Properties
Inherited from `object`: `__class__`

Method Details

### format(self, left_margin=0) | source code
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.format

### 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)

Class Variable Details

  ### is_in_use_by_patients Value:
      property(_get_is_in_use_by_patients, lambda x: x)