Package Gnumed :: Package business :: Module gmEMRStructItems :: Class cEncounter
[frames] | no frames]

Class cEncounter

source code

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

Represents one encounter.

Instance Methods
 
set_active(self, staff_id=None)
Set the enconter as the active one.
source code
 
transfer_clinical_data(self, source_episode=None, target_episode=None)
Moves every element currently linked to the current encounter and the source_episode onto target_episode.
source code
 
same_payload(self, another_object=None) source code
 
has_clinical_data(self) source code
 
has_narrative(self) source code
 
has_documents(self) source code
 
get_latest_soap(self, soap_cat=None, episode=None) source code
 
format_soap(self, episodes=None, left_margin=0, soap_cats='soap', emr=None, issues=None) source code
 
format(self, episodes=None, with_soap=False, left_margin=0, patient=None, issues=None, with_docs=True, with_tests=True, fancy_header=True) source code

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

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

Properties

Inherited from object: __class__

Method Details

set_active(self, staff_id=None)

source code 

Set the enconter as the active one.

"Setting active" means making sure the encounter row has the youngest "last_affirmed" timestamp of all encounter rows for this patient.

staff_id - Provider's primary key

transfer_clinical_data(self, source_episode=None, target_episode=None)

source code 

Moves every element currently linked to the current encounter and the source_episode onto target_episode.

@param source_episode The episode the elements are currently linked to. @type target_episode A cEpisode intance. @param target_episode The episode the elements will be relinked to. @type target_episode A cEpisode intance.

same_payload(self, another_object=None)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.same_payload