Class: Ward

Source Location: /class_ward.php

Class Overview [line 17]

Core
   |
   --Notes
      |
      --Encounter
         |
         --Ward

Ward methods.

Author(s):

  • Elpidio Latorilla

Version:

  • beta 1.0.08

Copyright:

  • 2002,2003,2004 Elpidio Latorilla

Variables

Methods


Inherited Methods

Class: Encounter

Encounter::Encounter()
Constructor
Encounter::AdmitInWard()
Admits a patient in ward with a ward number, room number and bed number.
Encounter::AllAttDrServiceClassesObject()
Gets all service classes of 'att_dr' class.
Encounter::AllCareServiceClassesObject()
Gets all service classes of 'care' class.
Encounter::AllEncounterClassesObject()
Gets all info of all encounter classes.
Encounter::AllRoomServiceClassesObject()
Gets all service classes of 'room' class.
Encounter::allSicknessConfirm()
Gets all stored sickness confirmations of an encounter based on its department and encounter numbers.
Encounter::AllStatus()
Returns the status information and current locations of an encounter.
Encounter::assignInBed()
Saves the encounter's room location.
Encounter::assignInDept()
Saves the encounter's room location.
Encounter::assignInRoom()
Saves the encounter's room location.
Encounter::assignInWard()
Saves the encounter's ward location.
Encounter::AttDrServiceClass()
Gets the attending physician service class information of an encounter based on encounter number.
Encounter::BillingClass()
Alias of FinancialClass()
Encounter::BirthDate()
Returns date of birth in yyyy-mm-format.
Encounter::Cancel()
Cancels an encounter, but only when its encounter_status is set to '' (emtpy) or 'allow_cancel'.
Encounter::CareServiceClass()
Gets the Nursing care service class information of an encounter based on encounter number.
Encounter::ConsultingDr()
Returns consulting physician's name.
Encounter::createWaitingOutpatientList()
createWaitingOutpatientList() creates a list of outpatients waiting to be admitted in the clinic
Encounter::CurrentAttDrNr()
Returns current attending physician number.
Encounter::CurrentDeptNr()
Returns current department number.
Encounter::CurrentFirmNr()
Returns current firm number.
Encounter::CurrentRoomNr()
Returns current room number.
Encounter::CurrentWardNr()
Returns current ward number.
Encounter::Discharge()
Complete discharge of patient from the hospital or clinic.
Encounter::DischargeFromBed()
Complete discharge of patient from the bed but patient remains in room.
Encounter::DischargeFromDept()
Complete discharge of patient from the department, but patient remains admitted.
Encounter::DischargeFromRoom()
Complete discharge of patient from the room but patient remains in ward.
Encounter::DischargeFromWard()
Complete discharge of patient from the ward but patient remains admitted.
Encounter::EncounterClass()
Returns encounter or admission class.
Encounter::EncounterDate()
Returns date of admission.
Encounter::EncounterExists()
Checks if the encounter exists in the database based on the encounter number key.
Encounter::EncounterInsuranceData()
Returns the insurance relevant data of an encounter.
Encounter::EncounterStatus()
Returns encounter status.
Encounter::EncounterType()
Returns encounter type. Currently reserved.
Encounter::FinancialClass()
Returns financial class.
Encounter::FirstName()
Returns first or given name.
Encounter::FollowUpDate()
Returns follow-up date in yyyy-mm-dd format.
Encounter::FollowUpResponsibility()
Returns the name of physician or service responsible for follow-up.
Encounter::getAllServiceClassesObject()
Gets all service classes of a given class.
Encounter::getBasic4Data()
Gets an adodb object containing the "very basic" encounter's first name, family name, birth date and sex.
Encounter::getDischargeTypesData()
Gets the discharge types.
Encounter::getEncounterClassInfo()
Gets the encounter class' information based on its class_nr key.
Encounter::getInsuranceClassInfo()
Gets the insurance class' information based on its class_nr key.
Encounter::getLoadedEncounterData()
Returns the contents of the internal encounter data buffer $encounter
Encounter::getNewEncounterNr()
Gets a new encounter number.
Encounter::getServiceClass()
Gets the service class information of an encounter based on service type and encounter number.
Encounter::getSicknessConfirm()
Gets a stored sickness confirmation of an encounter.
Encounter::InBed()
Checks if the encounter has been finally assigned a bed.
Encounter::InDept()
Checks if the encounter (outpatient) is finally admitted to a department (or clinic).
Encounter::InRoom()
Checks if the encounter has been finally assigned a room.
Encounter::InsuranceFirmID()
Returns insurance company's id used in the encounter.
Encounter::InsuranceNr()
Returns insurance number used in the encounter.
Encounter::internResolveEncounterNr()
Resolves the encounter number internally.
Encounter::InWard()
Checks if the encounter is finally admitted in a ward.
Encounter::In_Dept()
Returns status flag if patient is finally admitted in department.
Encounter::In_Ward()
Returns status flag if patient is finally admitted in ward.
Encounter::isCurrentlyAdmitted()
Checks if an encounter number is currently admitted (both inpatient & outpatient).
Encounter::isENCCurrentlyAdmitted()
Checks if a given encounter number is currently admitted.
Encounter::isPIDCurrentlyAdmitted()
Checks if the person's is currently admitted based on his PID number.
Encounter::Is_Discharged()
Returns status flag if patient is finally discharged.
Encounter::LastName()
Returns last or family name.
Encounter::loadEncounterData()
Loads the encounter data including some data from the registration into an internal buffer array $encounter.
Encounter::markAppointmentDone()
Marks an appointment's status as "done" and links the encounter number resulting from the appointment.
Encounter::OutPatientsBasic()
Gets basic information of all outpatients.
Encounter::PhotoFilename()
Returns filename of the person's picture id.
Encounter::PID()
Returns PID number.
Encounter::PostEncounterNotes()
Returns post encounter notes. Short notes after discharge, not to be used for discharge summary report.
Encounter::RecordCreatorID()
Returns record's creator id or name. Technical.
Encounter::RecordHistory()
Returns record entry's history. This is the techical history of the record entry, not of the admission.
Encounter::RecordModifierID()
Returns record's modifier id or name. Technical.
Encounter::RecordStatus()
Returns the record entry's status. This status is technical and has nothing to do with the encounter status.
Encounter::Referer()
Returns referer's name.
Encounter::RefererDept()
Returns refererring department.
Encounter::RefererDiagnosis()
Returns referer's diagnosis text.
Encounter::RefererInstitution()
Returns referring institution.
Encounter::RefererNotes()
Returns referer's extra notes text.
Encounter::RefererRecomTherapy()
Returns referer's recommended therapy text.
Encounter::ReplaceWard()
Replaces the current ward number and resets the in_ward flag to 0: status is "not in ward".
Encounter::ResetAllCurrentPlaces()
Resets encounter's current locations to 0.
Encounter::resetCurrentDept()
Resets encounter's current department number to 0.
Encounter::resetCurrentWard()
Resets encounter's current ward number to 0.
Encounter::RoomServiceClass()
Gets the room service class information of an encounter based on encounter number.
Encounter::saveAttDrServiceClass()
Saves the attending service class information of an encounter based on service type and encounter number.
Encounter::saveCareServiceClass()
Saves the nursing care service class information of an encounter based on service type and encounter number.
Encounter::saveDischargeNotesFromArray()
Saves discharge notes of an encounter.
Encounter::saveRoomServiceClass()
Saves the room service class information of an encounter based on service type and encounter number.
Encounter::saveServiceClass()
Saves the service class information of an encounter based on service type and encounter number.
Encounter::saveSicknessConfirm()
Saves a sickness confirmation of an encounter.
Encounter::searchEncounterBasicInfo()
Search returning the basic admission information as outlined at _searchAdmissionBasicInfo().
Encounter::searchInpatientBasicInfo()
Searches and returns inpatient admissions based on a supplied keyword.
Encounter::searchInpatientNotInWardBasicInfo()
Search for inpatients who are not yet finally admittd in ward, returning basic information as outlined at _searchAdmissionBasicInfo().
Encounter::searchLimitEncounterBasicInfo()
Limited results search returning basic information as outlined at _searchAdmissionBasicInfo().
Encounter::searchOutpatientBasicInfo()
Searches and returns inpatient admissions based on a supplied keyword.
Encounter::setAdmittedInWard()
Sets encounter's two status to "In ward" and "disallow cancel". Sets the current ward number and current room number.
Encounter::setCoreTable()
Sets core's table name variable to a table name
Encounter::setCurrentAttdDr()
Sets encounter's current attending physician number.
Encounter::setCurrentDept()
Sets encounter's current department number.
Encounter::setCurrentDeptInDept()
Sets encounter's current department number and sets the "currently in department" status of the encounter..
Encounter::setCurrentFirm()
Sets encounter's current firm number.
Encounter::setCurrentRoom()
Sets encounter's current room number.
Encounter::setCurrentWard()
Sets encounter's current ward number.
Encounter::setCurrentWardInWard()
Sets encounter's current ward number and set the "currently in ward" status of the encounter.
Encounter::setEncoder()
Sets internal encoder buffer to current encoder's name
Encounter::setEncounterNr()
Sets internal encounter number buffer to current encounter number
Encounter::setGetEntireRecord()
Sets internal entire record flag to current record status
Encounter::setHistorySeen()
Adds a "View" note to the record's history data.
Encounter::setIgnoreStatus()
Sets internal ignore status flag to current ignore status
Encounter::setInDept()
Sets encounter's current "department" status to "In department". Sets the encounter to "disallow cancel".
Encounter::setInWard()
Sets encounter's current "ward" status to "In ward". Sets the encounter to "disallow cancel".
Encounter::setIsDischarged()
Sets the discharge status that the encounter/admission is fully discharged.
Encounter::setNotInDept()
Resets encounter's current "department" status to "not in department".
Encounter::setNotInWard()
Resets encounter's current "ward" status to "not in ward".
Encounter::setSingleResult()
Sets internal single result flag to current single result status
Encounter::updateAttDrServiceClass()
Updates the room service class information of an encounter based on service type and record's primary key number.
Encounter::updateCareServiceClass()
Updates the nursing care service class information of an encounter based on service type and record's primary key number.
Encounter::updateEncounterFromInternalArray()
Updates the encounter record with data from the internal buffer array.
Encounter::updateRoomServiceClass()
Updates the room service class information of an encounter based on service type and record's primary key number.
Encounter::updateServiceClass()
Update the service class information of an encounter based on service type record's primary key number.
Encounter::useSicknessConfirm()
Points the core to the care_encounter_sickconfirm table and fields
Encounter::_discharge()
Complete discharge or encounter.
Encounter::_InLocation()
Checks if the encounter is in a location based on the location's type number.
Encounter::_searchAdmissionBasicInfo()
Private search function, usually called by another method.
Encounter::_setCurrentAssignment()
Updates location assignment items. Generic method for setting location assigment information.
Encounter::_setLocation()
Saves the encounter location with a given location type, location group and location number.

Class: Notes

Notes::Notes()
Constructor
Notes::getAllTypes()
Gets all types of notes record. Unsorted result.
Notes::getAllTypesSort()
Gets all types of notes record. Sorted result.
Notes::getEncounterNotes()
Gets all notes of a given record number.
Notes::getType()
Gets notes type information based on the type number (nr key).
Notes::_Exists()
Checks if a certain notes record of a certain type exists in the database.
Notes::_getNotes()
Gets a notes record data based on a passed condition.
Notes::_getNotesDateRange()
Gets the date range of a certain notes type that fits to a given condition.
Notes::_insertNotesFromInternalArray()
Save a notes data of a given type number.
Notes::_updateNotesFromInternalArray()
Updates a notes data record based on the primary record key "nr".

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

Ward methods.

Note this class should be instantiated only after a "$db" adodb connector object has been established by an adodb instance.

Tags:

[ Top ]


Class Variables

$dept_nr =

[line 50]

Department number buffer

Tags:

  • access - private

Type: int

Overrides:

[ Top ]

$fld_room = array('nr',
                           'type_nr',
                           'date_create',
                           'date_close',
                           'is_temp_closed',
                           'room_nr',
                           'ward_nr',
                           'dept_nr',
                           'nr_of_beds',
                           'info',
                           'status',
                           'history',
                           'modify_id',
                           'modify_time',
                           'create_id',
                           'create_time')

[line 83]

Field names of table care_room

Tags:

  • access - private

Type: array

Overrides:

[ Top ]

$fld_ward = array('nr',
                           'ward_id',
                           'name',
                           'is_temp_closed',
                           'date_create',
                           'date_close',
                           'description',
                           'info',
                           'dept_nr',
                           'room_nr_start',
                           'room_nr_end',
                           'maxbed',
                           'roomprefix',
                           'status',
                           'history',
                           'modify_id',
                           'modify_time',
                           'create_id',
                           'create_time')

[line 60]

Field names of care_ward table

Tags:

  • access - private

Type: array

Overrides:

[ Top ]

$tb_dept = 'care_department'

[line 30]

Table name for department data

Tags:

  • access - private

Type: string

Overrides: Array

[ Top ]

$tb_notes = 'care_encounter_notes'

[line 40]

Table name for encounter notes

Tags:

  • access - private

Type: string

Overrides: Array

[ Top ]

$tb_room = 'care_room'

[line 35]

Table name for room data

Tags:

  • access - private

Type: string

Overrides:

[ Top ]

$tb_ward = 'care_ward'

[line 25]

Table name for ward data

Tags:

  • access - private

Type: string

Overrides:

[ Top ]

$techinfo =

[line 55]

Buffer for technical information

Tags:

  • access - private

Type: mixed

Overrides:

[ Top ]

$ward_nr =

[line 45]

Ward number buffer

Tags:

  • access - private

Type: int

Overrides:

[ Top ]


Class Methods

Ward

Ward Ward( int $ward_nr)

[line 105]

Constructor

Parameters:

  • int $ward_nr - Ward number

[ Top ]

closeBed

boolean closeBed( int $ward_nr, int $room_nr, int $bed_nr)

[line 379]

Closes a bed.

Tags:

  • access - public

Parameters:

  • int $ward_nr - Ward number
  • int $room_nr - Room number
  • int $bed_nr - Bed number

[ Top ]

closeWardNonReversible

boolean closeWardNonReversible( int $nr)

[line 524]

Closes a ward irreversibly.

Tags:

  • access - public

Parameters:

  • int $nr - Primary record key number

[ Top ]

closeWardTemporary

boolean closeWardTemporary( int $nr)

[line 506]

Closes a ward temporarily.

Tags:

  • access - public

Parameters:

  • int $nr - Primary record key number

[ Top ]

countBeds

mixed countBeds( int $ward_nr)

[line 701]

Counts and returns the number of beds available to the ward.

Tags:

  • return - integer or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number

[ Top ]

countCreatedRooms

boolean countCreatedRooms( int 0)

[line 575]

Returns total number of created rooms.

The returned adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • room_nr = room number
  • nr_rooms = total number of rooms
  • nr = the primary record key

Tags:

  • access - public

Parameters:

  • int 0 - Primary record key number

[ Top ]

createWaitingInpatientList

mixed createWaitingInpatientList( [int $ward_nr = 0])

[line 730]

Creates and returns a list of patients waiting to be assigned a room or bed.

The returned adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • encounter_nr = encounter number
  • encounter_class_nr = encounter class number
  • current_ward_nr = current ward number
  • pid = PID number
  • name_last = Patient's last name
  • name_first = Patient's first name
  • date_birth = date of birth
  • sex = sex
  • ward_id = ward id

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number

[ Top ]

EncounterLocationsInfo

mixed EncounterLocationsInfo( int $enc_nr)

[line 764]

Returns current location information of an encounter.

The returned adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • ward_id = ward id
  • ward_name = ward name
  • roomprefix = room prefix
  • dept_id = department id
  • dept_name = department default name
  • room_nr = room number
  • bed_nr = bed number

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $enc_nr - Encounter number

[ Top ]

exitBed

void exitBed( mixed $loc_nr)

[line 358]

Reserved method name.

Parameters:

[ Top ]

exitRoom

void exitRoom( mixed $loc_nr)

[line 363]

Reserved method name.

Parameters:

[ Top ]

exitWard

void exitWard( mixed $loc_nr)

[line 368]

Reserved method name.

Parameters:

[ Top ]

getActiveRoomInfo

mixed getActiveRoomInfo( [int $room_nr = 0], [int $ward_nr = 0])

[line 689]

Gets one active room information.

The returned adodb record object contains a row of array. This array contains the data with index keys as outlined in the $fld_room variable

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $room_nr - Room number
  • int $ward_nr - Ward number

[ Top ]

getAllActiveRoomsInfo

mixed getAllActiveRoomsInfo( [int $ward_nr = 0])

[line 673]

Gets all active rooms information.

The returned adodb record object contains rows of arrays. Each array contains the data with index keys as outlined in the $fld_room variable

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number

[ Top ]

getAllActiveWards

mixed getAllActiveWards( int 0)

[line 549]

Returns information of all ACTIVE wards.

The returned adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • all ward index keys as outlined in the $fld_ward variable
  • dept_name = Department default name

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int 0 - Primary record key number

[ Top ]

getAllWardsDataArray

mixed getAllWardsDataArray( )

[line 193]

Returns all wards data.

Similar to getAllWardsDataObject() but returns a 2 dimensional array. Data returned have index keys as outlined in the $fld_ward array.

Tags:

  • return - array or boolean
  • access - public

Parameters:

[ Top ]

getAllWardsDataObject

mixed getAllWardsDataObject( )

[line 154]

Returns all wards data.

The returned adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • all ward index keys as outlined in the $fld_ward variable
  • dept_name = Department default name

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

[ Top ]

getAllWardsItemsArray

mixed getAllWardsItemsArray( string &$items)

[line 174]

Returns items of all wards.

Similar to getAllWardsItemsObject() but returns a 2 dimensional array.

Tags:

  • return - array or boolean
  • access - public

Parameters:

  • string &$items - Field names of items to be fetched

[ Top ]

getAllWardsItemsObject

mixed getAllWardsItemsObject( string &$items)

[line 133]

Returns items of all wards.

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • string &$items - Field names of items to be fetched

[ Top ]

getDayWardOccupants

mixed getDayWardOccupants( int $ward_nr, [string $date = ''])

[line 349]

Returns ward occupants (inpatients) information on a given date.

For detailed structure of the returned data, see the _getWardOccupants() method.

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number
  • string $date - Date of occupancy

[ Top ]

getRoomInfo

mixed getRoomInfo( int $ward_nr, int $s_nr, int $e_nr)

[line 253]

Returns room information.

The returned adodb record object contains a row of array. This array contains the data with index keys as outlined in the $fld_room variable

Tags:

  • return - adodb record object or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number
  • int $s_nr - Starting room number
  • int $e_nr - Ending room number

[ Top ]

getWardInfo

mixed getWardInfo( int $ward_nr)

[line 231]

Returns ward information.

The returned array contains the data with the following index keys:

  • all ward index keys as outlined in the $fld_ward variable
  • dept_name = Department default name

Tags:

  • return - array or boolean
  • access - public

Parameters:

  • int $ward_nr - Ward number

[ Top ]

hasPatient

boolean hasPatient( int $nr)

[line 461]

Checks if there is at least one patient admitted in the ward.

Tags:

  • access - public

Parameters:

  • int $nr - Ward id

[ Top ]

IDExists

boolean IDExists( int $id)

[line 446]

IDExists() checks if the ward id is existing.

Tags:

  • access - public

Parameters:

  • int $id - Ward id

[ Top ]

openBed

boolean openBed( int $ward_nr, int $room_nr, int $bed_nr)

[line 393]

Opens a bed.

Tags:

  • access - public

Parameters:

  • int $ward_nr - Ward number
  • int $room_nr - Room number
  • int $bed_nr - Bed number

[ Top ]

reOpenWard

boolean reOpenWard( int $nr)

[line 515]

Reopens a ward that was previously closed temporarily.

Tags:

  • access - public

Parameters:

  • int $nr - Primary record key number

[ Top ]

RoomExists

boolean RoomExists( [int $room_nr = 0], [int $ward_nr = 0])

[line 611]

Checks if a room number of a given ward number exists.

Tags:

  • access - public

Parameters:

  • int $room_nr - Room number
  • int $ward_nr - Ward number

[ Top ]

saveWard

boolean saveWard( array &$data)

[line 406]

Saves ward new ward information.

Data passed by reference with associative array and have index keys as outlined in the $fld_ward array.

Tags:

  • access - public

Parameters:

  • array &$data - Data to save.

[ Top ]

saveWardRoomInfoFromArray

boolean saveWardRoomInfoFromArray( array &$data)

[line 596]

Saves new ward's room information.

Data passed by reference with associative array and have index keys as outlined in the $fld_room array.

Tags:

  • access - public

Parameters:

  • array &$data - Data to save.

[ Top ]

setDeptNr

void setDeptNr( mixed $dept_nr)

[line 114]

Sets the department number buffer.

Tags:

  • access - public

Parameters:

[ Top ]

updateWard

boolean updateWard( int $nr, array &$data)

[line 427]

Updates a ward information.

Data passed by reference with associative array and have index keys as outlined in the $fld_ward array. Only the field to be updated must be present in the array as index key to avoid replacing the wrong data.

Tags:

  • access - public

Parameters:

  • int $nr - Primary key number of the ward record to be updated.
  • array &$data - Data to save.

[ Top ]

WardName

mixed WardName( int $nr)

[line 210]

Returns ward name based on its record number.

Tags:

  • return - string or boolean
  • access - public

Parameters:

  • int $nr - Record number

[ Top ]

_getActiveRoomInfo

boolean _getActiveRoomInfo( [int $room_nr = 0], [int $ward_nr = 0])

[line 646]

Gets one/all active (not closed) room(s) information.

The resulting adodb object is stored in the internal buffer $result.

param room_nr = the room number. If supplied, the open room's info will be returned, else all open rooms info will be returned.

param ward_nr = the ward number (optional). Used if supplied, else the ward number set by the constructor will used.

return true = if room(s) found. The result is stored in the internal result variable and returned by a public function.

return false = if ward_nr is 0 AND internal ward_nr is 0

return false = if no open room(s) found

Tags:

  • access - private

Parameters:

  • int $room_nr - Room number
  • int $ward_nr - Ward number

[ Top ]

_getWardOccupants

boolean _getWardOccupants( int $ward_nr, string $date)

[line 290]

Returns ward occupants (inpatients) information.

The object is stored in the internal buffer $result. This adodb record object contains rows of arrays. Each array contains the data with the following index keys:

  • room_nr = room number
  • room_loc_nr = primary key number of room location
  • bed_nr = bed number
  • encounter_nr = encounter number
  • bed_loc_nr = primary key number of bed location
  • name_last = person's last or family name
  • name_first = person's first or given name
  • date_birth = date of birth
  • bed_nr = bed number
  • title = person's title
  • sex = person's sex
  • photo_filename = filename of stored picture id
  • insurance_class_nr = insurance class nr
  • insurance_name = insurance class default name
  • insurance_LDvar = variable's name for the foreign language version of the insurance class name
  • ward_notes = ward notes record number

Tags:

  • access - private

Parameters:

  • int $ward_nr - Ward number
  • string $date - Date of occupancy

[ Top ]

_setIsTemporaryClosed

boolean _setIsTemporaryClosed( int $nr, [int $flag = 1])

[line 484]

Sets the ward to "temporary closed" status.

Toggles the is_temp_closed field of the care_ward table

Tags:

  • access - private

Parameters:

  • int $nr - Primary record key number
  • int $flag - Flag to set. Default to 1.

[ Top ]

_useWard

void _useWard( )

[line 122]

Sets core object to point to the care_ward table

Tags:

  • access - private

Parameters:

[ Top ]


Documentation generated on Sun, 16 Nov 2003 01:03:01 +0100 by phpDocumentor 1.2.3