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

Class cHealthIssue

source code

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

Represents one health issue.

Instance Methods
 
__init__(self, aPK_obj=None, encounter=None, name='xxxDEFAULTxxx', patient=None, row=None)
Init business object.
source code
 
rename(self, description=None)
Method for issue renaming.
source code
 
get_episodes(self) source code
 
close_expired_episode(self, ttl=180)
ttl in days
source code
 
close_episode(self) source code
 
get_open_episode(self) source code
 
age_noted_human_readable(self) source code
 
add_code(self, pk_code=None)
<pk_code> must be a value from ref.coding_system_root.pk_coding_system (clin.lnk_code2item_root.fk_generic_code)
source code
 
remove_code(self, pk_code=None)
<pk_code> must be a value from ref.coding_system_root.pk_coding_system (clin.lnk_code2item_root.fk_generic_code)
source code
 
format_as_journal(self, left_margin=0, date_format='%a, %b %d %Y') source code
 
format(self, left_margin=0, patient=None, with_summary=True, with_codes=True, with_episodes=True, with_encounters=True, with_medications=True, with_hospital_stays=True, with_procedures=True, with_family_history=True, with_documents=True, with_tests=True, with_vaccinations=True) source code

Inherited from pycommon.gmBusinessDBObject.cBusinessDBObject: __del__, __getitem__, __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
  episodes
  open_episode
  has_open_episode
  first_episode
  latest_episode
  safe_start_date
This returns the date when we can assume to safely KNOW the health issue existed (because the provider said so).
  possible_start_date
  end_date
  latest_access_date
  laterality_description
  diagnostic_certainty_description
  generic_codes

Inherited from object: __class__

Method Details

__init__(self, aPK_obj=None, encounter=None, name='xxxDEFAULTxxx', patient=None, row=None)
(Constructor)

source code 
Init business object.

Call from child classes:

        super(cChildClass, self).__init__(aPK_obj = aPK_obj, row = row)

Overrides: object.__init__
(inherited documentation)

rename(self, description=None)

source code 

Method for issue renaming.

@param description

  • the new descriptive name for the issue

@type description

  • a string instance

format(self, left_margin=0, patient=None, with_summary=True, with_codes=True, with_episodes=True, with_encounters=True, with_medications=True, with_hospital_stays=True, with_procedures=True, with_family_history=True, with_documents=True, with_tests=True, with_vaccinations=True)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.format

Property Details

episodes

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

open_episode

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

has_open_episode

Get Method:
unreachable.has_open_episode(self)
Set Method:
unreachable(x)

first_episode

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

latest_episode

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

safe_start_date

This returns the date when we can assume to safely KNOW the health issue existed (because the provider said so).

Get Method:
_get_safe_start_date(self) - This returns the date when we can assume to safely KNOW the health issue existed (because the provider said so).
Set Method:
unreachable(x)

possible_start_date

Get Method:
_get_possible_start_date(self)

end_date

Get Method:
_get_end_date(self)

latest_access_date

Get Method:
_get_latest_access_date(self)

laterality_description

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

diagnostic_certainty_description

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

generic_codes

Get Method:
_get_generic_codes(self)
Set Method:
_set_generic_codes(self, pk_codes)