Package Gnumed :: Package business :: Module gmPathLab :: Class cMeasurementType
[frames] | no frames]

Class cMeasurementType

source code

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

Represents one test result type.

Instance Methods
 
get_most_recent_results(self, patient=None, no_of_results=1) source code
 
get_oldest_result(self, patient=None) source code
 
get_meta_test_type(self, real_one_only=True) source code
 
get_temporally_closest_normal_range(self, unit, timestamp=None)
Returns the closest test result which does have normal range information.
source code
 
get_temporally_closest_target_range(self, unit, patient, timestamp=None)
Returns the closest test result which does have target range information.
source code
 
get_temporally_closest_unit(self, timestamp=None)
Returns the unit of the closest test result.
source code
 
format(self, patient=None) source code

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

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

Properties
  in_use
  test_panels
  meta_test_type
  temporally_closest_unit
Returns the unit of the closest test result.

Inherited from object: __class__

Method Details

get_temporally_closest_normal_range(self, unit, timestamp=None)

source code 
Returns the closest test result which does have normal range information.

- needs <unit>
- if <timestamp> is None it will assume now() and thus return the most recent

get_temporally_closest_target_range(self, unit, patient, timestamp=None)

source code 
Returns the closest test result which does have target range information.

- needs <unit>
- needs <patient> (as target will be per-patient)
- if <timestamp> is None it will assume now() and thus return the most recent

get_temporally_closest_unit(self, timestamp=None)

source code 
Returns the unit of the closest test result.

- if <timestamp> is None it will assume now() and thus return the most recent

format(self, patient=None)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.format

Property Details

in_use

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

test_panels

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

meta_test_type

Get Method:
get_meta_test_type(self, real_one_only=True)
Set Method:
unreachable(x)

temporally_closest_unit

Returns the unit of the closest test result.

- if <timestamp> is None it will assume now() and thus return the most recent

Get Method:
get_temporally_closest_unit(self, timestamp=None) - Returns the unit of the closest test result.
Set Method:
unreachable(x)