Gnumed.business.gmPerson.cPatient

Package Gnumed :: Package business :: Module gmPerson :: Class cPatient |
[frames] | no frames]

# Class cPatient

source code

                                       object --+
                                                |
    pycommon.gmBusinessDBObject.cBusinessDBObject --+
                                                    |
                                              cPerson --+
                                                        |
                                                       cPatient

    Represents a person which is a patient.

    - a specializing subclass of cPerson turning it into a patient
    - its use is to cache subobjects like EMR and document folder

Instance Methods
__init__(self, aPK_obj=None, row=None) Init business object. | source code
cleanup(self) Do cleanups before dying. | source code
ensure_has_allergy_state(self, pk_encounter=None) | source code
get_emr(self) | source code
get_document_folder(self) | source code
Inherited from `cPerson`: `MECARD`, `__setitem__`, `add_external_id`, `add_name`, `add_tag`, `assimilate_identity`, `birthday_next_year`, `birthday_this_year`, `current_birthday_passed`, `delete_external_id`, `delete_message`, `delete_name`, `delete_relative`, `dob_in_range`, `export_as_gdt`, `export_as_mecard`, `export_as_vcard`, `export_as_xml_linuxmednews`, `get_active_name`, `get_addresses`, `get_bills`, `get_comm_channels`, `get_description`, `get_description_gender`, `get_external_ids`, `get_formatted_dob`, `get_last_encounter`, `get_medical_age`, `get_messages`, `get_names`, `get_occupations`, `get_relatives`, `get_subdir_name`, `get_tags`, `get_waiting_list_entry`, `link_address`, `link_comm_channel`, `link_new_relative`, `link_occupation`, `put_on_waiting_list`, `remove_tag`, `set_nickname`, `suggest_external_id`, `suggest_external_ids`, `unlink_address`, `unlink_comm_channel`, `unlink_occupation`, `update_external_id` Inherited from `pycommon.gmBusinessDBObject.cBusinessDBObject`: `__del__`, `__getitem__`, `__str__`, `fields_as_dict`, `format`, `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__`

Class Variables
| emr = `property(get_emr, lambda x: x)`
| document_folder = `property(get_document_folder, lambda x: x)`
Inherited from `cPerson`: `ID`, `active_name`, `as_patient`, `bills`, `birthday_last_year`, `comm_channels`, `dynamic_hints`, `emergency_contact_in_database`, `export_area`, `external_id_suggestion`, `external_ids`, `gender_list`, `gender_string`, `gender_symbol`, `is_patient`, `messages`, `overdue_messages`, `primary_provider`, `primary_provider_identity`, `staff_id`, `subdir_name`, `suppressed_hints`, `tags`, `waiting_list_entries`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, aPK_obj=None, row=None) (Constructor) | source code
    Init business object.

    Call from child classes:

            super(cChildClass, self).__init__(aPK_obj = aPK_obj, row = row, link_obj = link_obj)
Overrides: object.__init__ (inherited documentation)

### cleanup(self) | source code
    Do cleanups before dying.

    - note that this may be called in a thread
Overrides: cPerson.cleanup