Class: Quicklist

Source Location: /class_drg_quicklist.php

Class Overview [line 17]

Core
   |
   --Notes
      |
      --Encounter
         |
         --DRG
            |
            --Quicklist

Quicklist for DRG codes.

Author(s):

  • Elpidio Latorilla

Version:

  • beta 1.0.08

Copyright:

  • 2002,2003,2004 Elpidio Latorilla

Variables

Methods


Inherited Methods

Class: DRG

DRG::DRG()
Constructor.
DRG::addDRGRelatedCode()
Adds a new related code entry in the care_drg_related_codes table.
DRG::addQuickCode()
Adds a new code entry in the quicklist.
DRG::deleteDiagnosis()
"Deletes" a diagnosis code record entry.
DRG::deleteEncounterDRGGroup()
"Deletes" a internal DRG group number record entry.
DRG::deleteProcedure()
"Deletes" a procedure code record entry.
DRG::DeptQuicklist()
Returns the quicklist code items of a department.
DRG::DiagnosisCategories()
Gets the diagnosis categories.
DRG::DiagnosisCodes()
Gets the diagnosis codes of an encounter
DRG::DRGRelatedCodeExists()
Checks if a drg related code exists in the table.
DRG::encDRGList()
Gets all DRG records of an encounter based on the encounter number.
DRG::EncounterDRGGroupExists()
Checks if the local DRG group for the encounter exists
DRG::groupNonGroupedItems()
Sets the group number of all non-grouped diagnosis and procedure entries of an encounter.
DRG::ICDVersion()
Returns the ICD code version (Diagnosis codes)
DRG::InternDRGGroups()
Gets the internal DRG groups of an encounter
DRG::internResolveDeptNr()
Resolves the department number to be used for the internal routines.
DRG::LocalizationTypes()
Gets the localization types.
DRG::nongroupedDiagnosisExists()
Checks if non-grouped diagnosis entries for an encounter exist
DRG::nongroupedProcedureExists()
Checks if non-grouped procedure entries for an encounter exist
DRG::OPDiagnosisCodes()
Gets the diagnosis codes for an encounter's operative intervention.
DRG::OPProcedureCodes()
Gets the procedure codes for an encounter's operative intervention.
DRG::OPSVersion()
Returns the OPS code version (Procedure codes)
DRG::pidDRGList()
Gets all DRG records of a person based on his PID number.
DRG::ProcedureCategories()
Gets the procedure categories.
DRG::ProcedureCodes()
Gets the procedure codes of an encounter
DRG::QuickCodeExists()
Checks if the code exists in the quicklist.
DRG::RelatedDiagnoses()
Gets the diagnosis codes related to the internal drg group number
DRG::RelatedProcedures()
Gets the procedure codes related to the internal drg group number.
DRG::searchGroup()
Searches and returns a local DRG group code.
DRG::setDiagnosisCategory()
Sets the category number of the diagnosis code entry.
DRG::setDiagnosisLocalization()
Sets the localization number of the diagnosis entry.
DRG::setProcedureCategory()
Sets the category number of the procedure code entry.
DRG::setProcedureLocalization()
Sets the localization number of the procedure entry.
DRG::ungroupDiagnoses()
Resets the group number of diagnosis code entries of an encounter to 0 (no group)
DRG::ungroupProcedures()
Resets the group number of procedure code entries of an encounter to 0 (no group)
DRG::upRankDRGRelatedCode()
Increases the ranking of a drg related code by $step value.
DRG::upRankQuickCode()
Increases the ranking of the code in the quicklist by given $step value.
DRG::useDiagnosis()
Sets the core object to point to the encounter's diagnosis (care_encounter_diagnosis) table and fields
DRG::useInternalDRG()
Sets the core object to point to the local encounter DRG groups (care_encounter_drg_intern) table and fields
DRG::useInternalDRGCodes()
Sets the core object to point to the internal DRG groups (care_drg_intern) table and fields
DRG::useProcedure()
Sets the core object to point to the encounter's procedure (care_encounter_procedure) table and fields
DRG::useQuicklistCodes()
Sets the core object to point to the quick list (care_drg_quicklist) table and fields
DRG::_getDRGList()
Gets all DRG entries based on the given number

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

Quicklist for DRG codes.

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 27]

Current department number

Type: int

Overrides: Array

[ Top ]

$fld_qlist = array(
            'nr',
            'code',
            'dept_nr',
            'type',
            'rank',
            'status',
            'history',
            'modify_id',
            'modify_time',
            'create_id',
            'create_time')

[line 32]

Field names of care_drg_quicklist table

Type: array

Overrides: Array

[ Top ]

$tb_qlist = 'care_drg_quicklist'

[line 22]

Table name for drg quicklist data

Type: string

Overrides: Array

[ Top ]


Class Methods

Quicklist

Quicklist Quicklist( int $enc_nr, int $dept_nr)

[line 49]

Constructor

Parameters:

  • int $enc_nr - Encounter number
  • int $dept_nr - Department number

[ Top ]

DeptQuicklist

mixed DeptQuicklist( [string $type = ''], [int $dept_nr = 0])

[line 75]

Returns the quicklist code items of a department.

Tags:

  • return - adodb record object or boolean

Overrides DRG::DeptQuicklist() (Returns the quicklist code items of a department.)

Parameters:

  • string $type - Quicklist items type (drg_intern, diagnosis, procedure)
  • int $dept_nr - Department number

[ Top ]

internResolveDeptNr

mixed internResolveDeptNr( [int $dept_nr = ''])

[line 59]

Resolves the encounter number.

Tags:

  • return - integer or boolean

Overrides DRG::internResolveDeptNr() (Resolves the department number to be used for the internal routines.)

Parameters:

  • int $dept_nr - Encounter number

[ Top ]

QuickCodeExists

mixed QuickCodeExists( [string $code = 0])

[line 115]

Checks if the code exists in the quicklist.

If the code exists, its primary record number will be returned, else FALSE will be returned.

Tags:

  • return - integer or boolean

Overrides DRG::QuickCodeExists() (Checks if the code exists in the quicklist.)

Parameters:

  • string $code - Code to check

[ Top ]

upRank

boolean upRank( [string $code = 0], [int $step = 1])

[line 131]

Increases the ranking of the code in the quicklist by $step value.

Parameters:

  • string $code - Code
  • int $step - Increase step (defaults to 1)

[ Top ]


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