Class: NursingNotes

Source Location: /class_notes_nursing.php

Class Overview [line 23]

Core
   |
   --Notes
      |
      --NursingNotes

Nursing Notes and Documentation methods.

Author(s):

  • Elpidio Latorilla

Version:

  • beta 1.0.08

Copyright:

  • 2002,2003,2004 Elpidio Latorilla

Variables

Methods


Child classes:

Charts
Charts methods.

Inherited Methods

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

Nursing Notes and Documentation 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


Class Methods

NursingNotes

NursingNotes NursingNotes( )

[line 27]

Constructor

Parameters:

[ Top ]

DailyWardNotesExists

mixed DailyWardNotesExists( int $enr)

[line 55]

Checks if daily ward notes record exists in the database.

Tags:

  • return - integer = record number if exists, FALSE=boolean if not exists

Parameters:

  • int $enr - Encounter number

[ Top ]

EffectivityExists

boolean EffectivityExists( int $enr)

[line 45]

Checks if nursing effectivity report record exists in the database.

Parameters:

  • int $enr - Encounter number

[ Top ]

Exists

boolean Exists( int $enr)

[line 35]

Checks if nursing report record exists in the database.

Parameters:

  • int $enr - Encounter number

[ Top ]

getDailyWardNotes

mixed getDailyWardNotes( int $enr)

[line 171]

Gets all daily notes data of an encounter number.

Tags:

  • return - adodb record object or boolean

Parameters:

  • int $enr - Encounter number

[ Top ]

getEffectivityReport

mixed getEffectivityReport( int $enr)

[line 79]

Gets a nursing effectivity report based on the encounter_nr key.

Tags:

  • return - adodby record object if exists, FALSE=boolean if not exists

Parameters:

  • int $enr - Encounter number

[ Top ]

getNursingAndEffectivityReport

mixed getNursingAndEffectivityReport( int $enr)

[line 91]

Gets both nursing report and effectivity report based on the encounter_nr key.

Tags:

  • return - adodby record object if exists, FALSE=boolean if not exists

Parameters:

  • int $enr - Encounter number

[ Top ]

getNursingReport

mixed getNursingReport( int $enr)

[line 67]

Gets a nursing report based on the encounter_nr key.

Tags:

  • return - adodby record object if exists, FALSE=boolean if not exists

Parameters:

  • int $enr - Encounter number

[ Top ]

getNursingReportDateRange

mixed getNursingReportDateRange( int $enr)

[line 161]

Gets the date range of a nursing report.

Tags:

  • return - 1 dimensional array or boolean

Parameters:

  • int $enr - Encounter number

[ Top ]

saveDailyWardNotes

boolean saveDailyWardNotes( string &$data)

[line 183]

Saves a ward notes of a day.

Parameters:

  • string &$data - Ward notes. Reference pass.

[ Top ]

saveEffectivityReport

boolean saveEffectivityReport( array &$data)

[line 140]

Saves a nursing effectivity report.

The data must be contained in an associative array and passed by reference.

Parameters:

  • array &$data - Nursing effectivity data in associative array. Reference pass.

[ Top ]

saveNursingReport

boolean saveNursingReport( array &$data)

[line 118]

Saves a nursing report.

The data must be contained in an associative array and passed by reference.

Parameters:

  • array &$data - Nursing data in associative array. Reference pass.

[ Top ]


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