Child classes:
- Encounter
- Patient encounter.
- DoctorsNotes
- Doctor's notes.
- NursingNotes
- Nursing Notes and Documentation methods.
- Medocs
- Medocs methods. Medocs = Textual documentation for diagnosis and therapy procedures as opposite of the DRG (code based documentation).
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
Notes 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,2004 Elpidio Latorilla
- version - beta 1.0.08
- author - Elpidio Latorilla
[ Top ]
Class Variables
$fld_notes = array('nr',
'encounter_nr',
'type_nr',
'notes',
'short_notes',
'aux_notes',
'ref_notes_nr',
'personell_nr',
'personell_name',
'send_to_pid',
'send_to_name',
'date',
'time',
'location_type',
'location_type_nr',
'location_nr',
'location_id',
'ack_short_id',
'date_ack',
'date_checked',
'date_printed',
'send_by_mail',
'send_by_email',
'send_by_fax',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 59]
Field names of care_encounter_notes table
Tags:
- access - private
Type: array
Overrides:
[ Top ]
$is_preloaded = false
[line 53]
Preloaded flag
Tags:
- access - private
Type: boolean
Overrides: Array
[ Top ]
$preload_dept =
[line 47]
Holder for preloaded department data.
Tags:
- var - record object
- access - private
Type: object adodb
Overrides:
[ Top ]
$result =
[line 41]
Holder for sql query results.
Tags:
- var - record object
- access - private
Type: object adodb
Overrides: Array
[ Top ]
$tb_enc = 'care_encounter'
[line 35]
Database table for the encounter data.
Tags:
- access - private
Type: string
Overrides:
[ Top ]
$tb_notes = 'care_encounter_notes'
[line 23]
Database table for the encounter notes data.
Tags:
- access - private
Type: string
Overrides:
[ Top ]
$tb_types = 'care_type_notes'
[line 29]
Database table for the notes types.
Tags:
- access - private
Type: string
Overrides:
[ Top ]
Class Methods
Notes
Notes Notes(
)
[line 92]
Constructor
Parameters:
[ Top ]
getAllTypes
mixed getAllTypes(
string
0)
[line 136]
Gets all types of notes record. Unsorted result.
Tags:
- return - 2 dimensional array or boolean
- access - public
Parameters:
- string 0 - Sort item
[ Top ]
getAllTypesSort
mixed getAllTypesSort(
[string
$sort = ''])
[line 114]
Gets all types of notes record. Sorted result.
Tags:
- return - 2 dimensional array or boolean
- access - public
Parameters:
- string $sort - Sort item
[ Top ]
getEncounterNotes
mixed getEncounterNotes(
int
$nr)
[line 253]
Gets all notes of a given record number.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - Record number
[ Top ]
getType
mixed getType(
[mixed
$nr = 1])
[line 151]
Gets notes type information based on the type number (nr key).
The returned array has 4 elements:
- nr = The type number (integer).
- type = The optional type id (alphanumeric).
- name = The name of the notes type.
- LD_var = The name of the language dependent variable containing the foreign name of the notes type.
Tags:
- return - 1 dimensional array or boolean
- access - public
Parameters:
[ Top ]
_Exists
boolean _Exists(
int
$enr, int
$type_nr)
[line 103]
Checks if a certain notes record of a certain type exists in the database.
Tags:
- access - private
Parameters:
- int $enr - Encounter number
- int $type_nr - Notes type number
[ Top ]
_getNotes
mixed _getNotes(
string
$cond, [string
$order = 'ORDER BY date,time DESC'])
[line 172]
Gets a notes record data based on a passed condition.
Tags:
- return - adodb record object or boolean
- access - private
Parameters:
- string $cond - Condition for the WHERE sql part. Query constraint.
- string $order - Sort directive in complete syntax e.g. "ORDER BY date DESC"
[ Top ]
_getNotesDateRange
boolean _getNotesDateRange(
[int
$enr = ''], [int
$type_nr = 0], [string
$cond = ''])
[line 231]
Gets the date range of a certain notes type that fits to a given condition.
The resulting adodb record object is stored in the internal buffer $result.
Tags:
- access - private
Parameters:
- int $enr - Encounter number
- int $type_nr - Notes type number
- string $cond - Condition string. Query constraint.
[ Top ]
_insertNotesFromInternalArray
boolean _insertNotesFromInternalArray(
[string
$type_nr = ''])
[line 191]
Save a notes data of a given type number.
The data to be saved comes from an internal buffer array that is populated by other methods.
Tags:
- access - private
Parameters:
- string $type_nr - Type number of the notes data to be saved.
[ Top ]
_updateNotesFromInternalArray
boolean _updateNotesFromInternalArray(
int
$nr)
[line 213]
Updates a notes data record based on the primary record key "nr".
The data to be saved comes from an internal buffer array that is populated by other methods.
Tags:
- access - private
Parameters:
- int $nr - Record number of the notes record to be updated.
[ Top ]