Package Gnumed :: Package business :: Module gmOrganization :: Class cOrgImpl1
[frames] | no frames]

Class cOrgImpl1

source code

                                   object --+        
                                            |        
pycommon.gmBusinessDBObject.cBusinessDBObject --+    
                                                |    
                                             cOrg --+
                                                    |
                                                   cOrgImpl1
Known Subclasses:

Instance Methods
 
__init__(self, helper=cOrgHelperImpl1())
Init business object.
source code
 
getHelper(self) source code
 
getId(self) source code
 
setId(self, pk) source code
 
getAddress(self) source code
 
getAddressDict(self) source code
 
setAddress(self, number, street, urb, postcode, state, country) source code
 
set(self, name, office, subtype, memo, category, phone, fax, email, mobile) source code
 
__setitem__(self, k, v) source code
 
__getitem__(self, k) source code
 
linkNewAddress(self, number, street, urb, postcode, state=None, country=None)
Adds a new address into this org list of addresses.
source code
 
get(self) source code
 
load(self, pk) source code
 
shallow_del(self) source code
 
save(self) source code
 
linkPerson(self, demRecord) source code
 
unlinkPerson(self, demographicRecord) source code
 
getPersonMap(self, reload=True)
gets the persons associated with this org, lazy loading demographic records and caching if needed; need to later use a singleton demographic cache, so that single copies of a demographic record is shared
source code

Inherited from pycommon.gmBusinessDBObject.cBusinessDBObject: __del__, __str__, get_fields, get_patient, get_updatable_fields, is_modified, refetch_payload, same_payload, save_payload

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

Properties

Inherited from object: __class__

Method Details

__init__(self, helper=cOrgHelperImpl1())
(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)

__setitem__(self, k, v)
(Index assignment operator)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.__setitem__

__getitem__(self, k)
(Indexing operator)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.__getitem__

linkNewAddress(self, number, street, urb, postcode, state=None, country=None)

source code 

Adds a new address into this org list of addresses. Basically cut and paste and delete unnecessary fields from gmDemographics function.

save(self)

source code 
Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.save