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

Module gmPerson

source code

GNUmed patient objects.

This is a patient object intended to let a useful client-side API crystallize from actual use in true XP fashion.


Version: $Revision: 1.198 $

Author: K.Hilbert <Karsten.Hilbert@gmx.net>

License: GPL

Classes
  cDTO_person
  cPersonName
  cStaff
  gmCurrentProvider
Staff member Borg to hold currently logged on provider.
  cIdentity
  cStaffMember
Represents a staff member which is a person.
  cPatient
Represents a person which is a patient.
  gmCurrentPatient
Patient Borg to hold currently active patient.
  cPatientSearcher_SQL
UI independant i18n aware patient searcher.
  cMatchProvider_Provider
Functions
 
set_current_provider_to_logged_on_user() source code
 
create_name(pk_person, firstnames, lastnames, active=False) source code
 
create_identity(gender=None, dob=None, lastnames=None, firstnames=None) source code
 
create_dummy_identity() source code
 
set_active_patient(patient=None, forced_reload=False)
Set active patient.
source code
 
prompted_input(prompt, default=None)
Obtains entry from standard input.
source code
 
ask_for_patient()
Text mode UI function to ask for patient.
source code
 
get_gender_list() source code
 
map_gender2salutation(gender=None)
Maps GNUmed related i18n-aware gender specifiers to a human-readable salutation.
source code
 
map_firstnames2gender(firstnames=None)
Try getting the gender for the given first name.
source code
 
get_staff_list(active_only=False) source code
 
get_persons_from_pks(pks=None) source code
 
get_person_from_xdt(filename=None, encoding=None, dob_format=None) source code
 
get_persons_from_pracsoft_file(filename=None, encoding='ascii') source code
Variables
  map_gender2symbol = {'f': u'', 'h': u'', 'm': u'', 'tf': u'...

Imports: sys, os, time, regex, string, types, pyDT, codecs, threading, logging, gmExceptions, gmDispatcher, gmBorg, gmI18N, gmNull, gmBusinessDBObject, gmTools, gmPG2, gmMatchProvider, gmDateTime, gmLog2, gmMedDoc, gmDemographicRecord, gmProviderInbox, gmXdtMappings, gmClinicalRecord


Function Details

set_active_patient(patient=None, forced_reload=False)

source code 

Set active patient.

If patient is -1 the active patient will be UNset.

prompted_input(prompt, default=None)

source code 

Obtains entry from standard input.

prompt - Prompt text to display in standard output default - Default value (for user to press enter only)


Variables Details

map_gender2symbol

Value:
{'f': u'', 'h': u'', 'm': u'', 'tf': u'⚥♀', 'tm': u'⚥♂'}