Inherited Variables
Inherited Methods
Class: Core
- Core::coreFieldNames()
- Returns the core field names of the core table in an array.
- Core::deleteDBCache()
- Deletes data from the database cache based on the id key.
- Core::FilesListArray()
- Returns a list of filename within a path in array.
- Core::getAllDataArray()
- Returns all records with the all items from the table.
- Core::getAllDataObject()
- Returns all records with all items from the table.
- Core::getAllItemsArray()
- Similar to getAllItemsObject() method but returns the records in an associative array.
- Core::getAllItemsObject()
- Returns all records with the needed items from the table.
- Core::getDBCache()
- Gets temporary data from the database cache.
- Core::getErrorMsg()
- Feturns the value of error_msg, the internal error message.
- Core::getLastQuery()
- Returns the the last sql query string
- Core::getResult()
- Feturns the value of result
- Core::insertDataFromArray()
- Inserts data from an array (passed by reference) into a table.
- Core::insertDataFromInternalArray()
- Inserts data from the internal array previously filled with data by the setDataArray() method.
- Core::isPreLoaded()
- Returns the value of is_preloaded that is set by methods that preload large number of data.
- Core::LastRecordCount()
- Returns the value of rec_count
- Core::saveDBCache()
- Saves temporary data to a cache in database.
- Core::setDataArray()
- Points the core data array to the external array that holds the data to be stored.
- Core::setRefArray()
- Points the reference variable $ref_array to the field names' array.
- Core::setSQL()
- Sets the internal sql query variable to the sql query.
- Core::setTable()
- Sets the coretable variable to the name of the database table.
- Core::setWhereCondition()
- Sets the "where" condition in an update query used with the updateDataFromInternalArray() method.
- Core::Transact()
- Transaction routine, ADODB transaction. It internally uses the ADODB transaction routine.
- Core::updateDataFromArray()
- Updates a record with the data from an array (passed by reference) based on the primary key.
- Core::updateDataFromInternalArray()
- Updates a table using data from an internal array previously filled with data by the setDataArray() method.
- Core::_prepSaveArray()
- Filters the data array intended for saving, removing the key-value pairs that do not correspond to the table's field names.
- Core::_RecordExists()
- Checks if a certain database record exists based onthe supplied query condition.
Class Details
Obstetrics methods.
Note this class should be instantiated only after a "$db" adodb connector object has been established by an adodb instance
Tags:
- copyright - 2002,2003 Elpidio Latorilla
- version - beta 1.0.08
- author - Elpidio Latorilla
[ Top ]
Class Variables
$bd =
[line 80]
Birth details buffer
Tags:
- var - record object
Type: adodb
Overrides:
[ Top ]
$fld_neonatal = array(
'nr',
'pid',
'parent_encounter_nr',
'delivery_nr',
'encounter_nr',
'delivery_place',
'delivery_mode',
'delivery_date',
'c_s_reason',
'born_before_arrival',
'face_presentation',
'posterio_occipital_position',
'delivery_rank',
'apgar_1_min',
'apgar_5_min',
'apgar_10_min',
'time_to_spont_resp',
'condition',
'weight',
'length',
'head_circumference',
'scored_gestational_age',
'feeding',
'congenital_abnormality',
'classification',
'disease_category',
'outcome',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 85]
Field names of care_neonatal table
Type: array
Overrides:
[ Top ]
$fld_preg = array(
'nr',
'encounter_nr',
'this_pregnancy_nr',
'delivery_date',
'delivery_time',
'gravida',
'para',
'pregnancy_gestational_age',
'nr_of_fetuses',
'child_encounter_nr',
'is_booked',
'vdrl',
'rh',
'delivery_mode',
'delivery_by',
'bp_systolic_high',
'bp_diastolic_high',
'proteinuria',
'labour_duration',
'induction_method',
'induction_indication',
'is_epidural',
'anaesth_type_nr',
'complications',
'perineum',
'blood_loss',
'blood_loss_unit',
'is_retained_placenta',
'post_labour_condition',
'outcome',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 123]
Field names of care_pregnancy table
Type: array
Overrides:
[ Top ]
$tb_anest = 'care_type_anaesthesia'
[line 75]
Database table for anesthesia types
Type: string
Overrides:
[ Top ]
$tb_classif = 'care_classif_neonatal'
[line 70]
Database table for neonatal classifications
Type: string
Overrides:
[ Top ]
$tb_diseases = 'care_category_disease'
[line 35]
Database table for the disease categories
Type: string
Overrides:
[ Top ]
$tb_dmodes = 'care_mode_delivery'
[line 45]
Database table for the delivery modes
Type: string
Overrides:
[ Top ]
$tb_enc = 'care_encounter'
[line 30]
Database table for the encounter/admission data.
Type: string
Overrides:
[ Top ]
$tb_feeds = 'care_type_feeding'
[line 50]
Database table for feeding types
Type: string
Overrides:
[ Top ]
$tb_indmethod = 'care_method_induction'
[line 60]
Database table for induction methods
Type: string
Overrides:
[ Top ]
$tb_neonatal = 'care_neonatal'
[line 20]
Database table for the neonatal data.
Type: string
Overrides:
[ Top ]
$tb_outcomes = 'care_type_outcome'
[line 40]
Database table for the outcome types
Type: string
Overrides:
[ Top ]
$tb_perineum = 'care_type_perineum'
[line 65]
Database table for perineum types
Type: string
Overrides:
[ Top ]
$tb_person = 'care_person'
[line 25]
Database table for the person registration data.
Type: string
Overrides:
[ Top ]
$tb_preg = 'care_pregnancy'
[line 55]
Database table for the pregnancy data
Type: string
Overrides:
[ Top ]
Class Methods
Obstetrics
Obstetrics Obstetrics(
[int
$nr = 0])
[line 164]
Constructor
Parameters:
- int $nr - Encounter number
[ Top ]
AddChildNrToParent
boolean AddChildNrToParent(
[int
$child_nr = 0], [int
$parent_nr = 0], mixed
&$birth)
[line 620]
Adds the encounter number of a child to the parents encounter record.
The birth details are passed by reference with an associative array. The data must be prepared having the following index keys:
- delivery_date = date of delivery (birth)
- delivery_nr = the number or this birth e.g. 3rd, 4th, etc.
- delivery_mode = the mode of delivery
- outcome = the outcome of the delivery
Tags:
- access - public
Parameters:
- int $child_nr - = Encounter number of the child
- int $parent_nr - = Encounter number of the parent
[ Top ]
AnaesthesiaTypes
mixed AnaesthesiaTypes(
)
[line 534]
Gets all anaesthesia types.
Tags:
- return - array or boolean
- access - public
Parameters:
[ Top ]
BirthDetails
mixed BirthDetails(
int
$pid)
[line 177]
Gets all birth data based on the PID number.
The data returned have index keys as outlined at the $fld_neonatal array.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $pid - PID number
[ Top ]
ChildNrAtParent
string ChildNrAtParent(
[int
$child_nr = 0], [int
$parent_nr = 0])
[line 591]
Checks if the encounter number of a child is recorded at the parent's encounter record.
return:
- _CHILD_EXISTS = child encounter nr is recorded at parent
- _NO_CHILD = child encounter nr is not recorded at parent
- _NO_EXISTS = parent pregnancy record not exists
Tags:
- access - public
Parameters:
- int $child_nr - = Encounter number of the child
- int $parent_nr - = Encounter number of the parent
[ Top ]
Classifications
mixed Classifications(
)
[line 503]
Gets all classifications.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
deactivateBirthDetails
mixed deactivateBirthDetails(
int
$pid)
[line 317]
Sets the status of a neonatal birth details record to "inactive".
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $pid - PID number
[ Top ]
deactivatePregnancy
mixed deactivatePregnancy(
int
$nr)
[line 427]
Sets the status of a pregnancy record to "inactive" based on the record's primary key number.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
DeliveryModes
mixed DeliveryModes(
)
[line 302]
Gets all delivery modes.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
DiseaseCategories
mixed DiseaseCategories(
)
[line 260]
Gets all disease categories.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
EncounterPregnancyExists
mixed EncounterPregnancyExists(
[int
$nr = 0])
[line 567]
Checks if the encounter has a pregnancy record. This is limited to the encounter only.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Encounter number
[ Top ]
FeedingTypes
mixed FeedingTypes(
)
[line 274]
Gets all feeding types.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
getAnaesthesia
mixed getAnaesthesia(
[int
$nr = 0])
[line 550]
Gets a complete anaesthesia information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getClassification
mixed getClassification(
[int
$nr = 0])
[line 518]
Gets a complete neonatal classification information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getDeliveryMode
mixed getDeliveryMode(
int
$nr)
[line 376]
Gets complete delivery mode information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getDiseaseCategory
mixed getDiseaseCategory(
int
$nr)
[line 328]
Gets complete disease category information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getFeedingType
mixed getFeedingType(
int
$nr)
[line 344]
Gets complete feeding type information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getInductionMethod
mixed getInductionMethod(
int
$nr)
[line 455]
Gets complete induction method information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getOutcome
mixed getOutcome(
int
$nr)
[line 360]
Gets complete outcome type information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
getPerineum
mixed getPerineum(
[int
$nr = 0])
[line 487]
Gets a complete perineum information.
Tags:
- return - array or boolean
- access - public
Parameters:
- int $nr - Primary record key number
[ Top ]
InductionMethods
mixed InductionMethods(
[int
$grp = 1])
[line 439]
Gets all induction methods.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $grp - Group number
[ Top ]
Outcomes
mixed Outcomes(
)
[line 288]
Gets all outcome types.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
Perineums
mixed Perineums(
)
[line 472]
Gets all perineum types.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
[ Top ]
Pregnancies
mixed Pregnancies(
int
$nr, [string
$nr_type = '_ENC'])
[line 395]
Gets pregnancy information based on either the pid number or encounter number.
The data returned have index keys as outlined at the $fld_prenancy array.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - Primary record key number
- string $nr_type - Flags the type of the first parameter. '_ENC' = encounter number, '_REG' = pid number.
[ Top ]
usePregnancy
void usePregnancy(
)
[line 417]
Sets the core object to point to care_pregnancy table
Tags:
- access - public
Parameters:
[ Top ]