Child classes:
- Quicklist
- Quicklist for DRG codes.
Inherited Variables
Class: Encounter
- Encounter::$date
- Encounter::$encoder
- Encounter::$encounter
- Encounter::$enc_nr
- Encounter::$entire_record
- Encounter::$fld_sickconfirm
- Encounter::$group_nr
- Encounter::$ignore_status
- Encounter::$is_loaded
- Encounter::$loc_nr
- Encounter::$record_count
- Encounter::$single_result
- Encounter::$tabfields
- Encounter::$tb_appt
- Encounter::$tb_citytown
- Encounter::$tb_dept
- Encounter::$tb_dis_type
- Encounter::$tb_ec
- Encounter::$tb_enc
- Encounter::$tb_enc_fc
- Encounter::$tb_fc
- Encounter::$tb_ic
- Encounter::$tb_insco
- Encounter::$tb_location
- Encounter::$tb_person
- Encounter::$tb_sickconfirm
- Encounter::$time
- Encounter::$type_nr
Class: Notes
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
DRG = Diagnosis related groups.
Methods for Diagnosis and Procedure codes (ICD and OPS) 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
$dept_nr =
[line 79]
Current department number
Type: int
Overrides:
[ Top ]
$fld_diagnosis = array(
'diagnosis_nr',
'encounter_nr',
'op_nr',
'date',
'code',
'code_parent',
'group_nr',
'code_version',
'localcode',
'category_nr',
'type',
'localization',
'diagnosing_clinician',
'diagnosing_dept_nr',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 89]
Field names of care_encounter_diagnosis table
Type: array
Overrides:
[ Top ]
$fld_drg = array(
'nr',
'code',
'description',
'synonyms',
'notes',
'std_code',
'sub_level',
'parent_code',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 155]
Field names of care_drg_intern table
Type: array
Overrides:
[ Top ]
$fld_enc_drg = array(
'nr',
'encounter_nr',
'date',
'group_nr',
'clinician',
'dept_nr',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 138]
Field names of care_encounter_drg_intern table
Type: array
Overrides:
[ Top ]
$fld_procedure = array(
'procedure_nr',
'encounter_nr',
'op_nr',
'date',
'code',
'code_parent',
'group_nr',
'code_version',
'localcode',
'category_nr',
'localization',
'responsible_clinician',
'responsible_dept_nr',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 114]
Field names of care_encounter_procedure table
Type: array
Overrides:
[ Top ]
$fld_qlist = array(
'nr',
'code',
'code_parent',
'dept_nr',
'qlist_type',
'rank',
'status',
'history',
'modify_id',
'modify_time',
'create_id',
'create_time')
[line 174]
Field names of care_drg_quicklist table
Type: array
Overrides:
[ Top ]
$icd_version = '10'
[line 191]
ICD version
Type: string
Overrides:
[ Top ]
$ops_version = '301'
[line 196]
OPS version
Type: string
Overrides:
[ Top ]
$sel_limit = 50
[line 84]
Maximum rows returned by sql search
Type: int
Overrides:
[ Top ]
$tb_cat_diag = 'care_category_diagnosis'
[line 54]
Table name for diagnosis categories
Type: string
Overrides:
[ Top ]
$tb_cat_proc = 'care_category_procedure'
[line 59]
Table name for procedure categories
Type: string
Overrides:
[ Top ]
$tb_diagnosis = 'care_encounter_diagnosis'
[line 24]
Table name for diagnosis data
Type: string
Overrides:
[ Top ]
$tb_diag_codes =
[line 201]
Holder for diagnosis codes table name
Type: string
Overrides:
[ Top ]
$tb_drg = 'care_drg_intern'
[line 74]
Table name for internal drg codes
Type: string
Overrides:
[ Top ]
$tb_enc_drg = 'care_encounter_drg_intern'
[line 69]
Table name for internal drg code of an encounter
Type: string
Overrides:
[ Top ]
$tb_icd_default = 'care_icd10_en'
[line 211]
Default ICD table name. The default table must be existing in your database!
Type: string
Overrides:
[ Top ]
$tb_icpm_default = 'care_ops301_de'
[line 216]
Default OPS table name. The default table must be existing in your database!
Type: string
Overrides:
[ Top ]
$tb_intern = 'care_drg_ops_intern'
[line 39]
Table name for internal grouping code
Type: string
Overrides:
[ Top ]
$tb_lang_icd = 'en,de'
[line 221]
Language codes that have corresponding ICD tables
Type: string
Overrides:
[ Top ]
$tb_lang_icpm = 'de'
[line 226]
Language codes that have corresponding OPS/ICPM tables
Type: string
Overrides:
[ Top ]
$tb_localcode = 'care_diagnosis_localcode'
[line 34]
Table name for local diagnosis code data
Type: string
Overrides:
[ Top ]
$tb_procedure = 'care_encounter_procedure'
[line 29]
Table name for procedure data
Type: string
Overrides:
[ Top ]
$tb_proc_codes =
[line 206]
Holder for procedure codes table name
Type: string
Overrides:
[ Top ]
$tb_qlist = 'care_drg_quicklist'
[line 44]
Table name for drg codes quicklist
Type: string
Overrides:
[ Top ]
$tb_related = 'care_drg_related_codes'
[line 49]
Table name for drg related codes
Type: string
Overrides:
[ Top ]
$tb_type_loc = 'care_type_localization'
[line 64]
Table name for localization types
Type: string
Overrides:
[ Top ]
Class Methods
DRG
DRG DRG(
[int
$enc_nr = 0], int
$dept_nr)
[line 233]
Constructor.
Parameters:
- int $enc_nr - Encounter number
- int $dept_nr - Department number
[ Top ]
addDRGRelatedCode
boolean addDRGRelatedCode(
array
&$data)
[line 828]
Adds a new related code entry in the care_drg_related_codes table.
The data are packed in the array with the following index keys:
- group_nr = the group number
- code = the code to be added
- code_parent = the parent code in case the actual code is a subcode
- qlist_type = type of quick list
Parameters:
- array &$data - Data to be stored in the table. By reference.
[ Top ]
addQuickCode
boolean addQuickCode(
array
&$data)
[line 774]
Adds a new code entry in the quicklist.
The code to be added is contained in an associative array together with relevant information. The data are packed in the array with the following index keys:
- code = the code to be added
- code_parent = the parent code in case the actual code is a subcode
- qlist_type = type of quick list
Parameters:
- array &$data - Data in associative array
[ Top ]
deleteDiagnosis
boolean deleteDiagnosis(
[int
$diag_nr = 0])
[line 392]
"Deletes" a diagnosis code record entry.
The entry is not actually deleted from the table but its status is set to "deleted".
Parameters:
- int $diag_nr - Diagnosis code record entry number
[ Top ]
deleteEncounterDRGGroup
boolean deleteEncounterDRGGroup(
[int
$drg_nr = 0])
[line 423]
"Deletes" a internal DRG group number record entry.
The entry is not actually deleted from the table but its status is set to "deleted".
Parameters:
- int $drg_nr - Internal DRG group record entry number
[ Top ]
deleteProcedure
boolean deleteProcedure(
[int
$proc_nr = 0])
[line 407]
"Deletes" a procedure code record entry.
The entry is not actually deleted from the table but its status is set to "deleted".
Parameters:
- int $proc_nr - Procedure code record entry number
[ Top ]
DeptQuicklist
mixed DeptQuicklist(
[string
$type = ''], [int
$dept_nr = 0])
[line 703]
Returns the quicklist code items of a department.
The record count is stored in the rec_count variable and can be fetched via the LastRecordCount().
Tags:
- return - ADODB record object or boolean
Overridden in child classes as:
- Quicklist::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 ]
DiagnosisCategories
mixed DiagnosisCategories(
)
[line 522]
Gets the diagnosis categories.
Tags:
- return - ADODB record object or boolean
Parameters:
[ Top ]
DiagnosisCodes
void DiagnosisCodes(
[int
$grp_nr = 0], [int
$enc_nr = 0])
[line 315]
Gets the diagnosis codes of an encounter
Parameters:
- int $grp_nr - Internal DRG Code group number
- int $enc_nr - Encounter number return mixed ADODB record object or boolean
[ Top ]
DRGRelatedCodeExists
mixed DRGRelatedCodeExists(
[int
$group_nr = 0], [string
$relcode = 0], [string
$code_type = 0])
[line 793]
Checks if a drg related code exists in the table.
If the code exist, its primary record key will be returned, else FALSE will be returned.
Tags:
- return - integer or boolean
Parameters:
- int $group_nr - Drg group number
- string $relcode - Related code
- string $code_type - Type of the related code (diagnosis, procedure)
[ Top ]
encDRGList
mixed encDRGList(
int
$nr)
[line 993]
Gets all DRG records of an encounter based on the encounter number.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - Encounter number
[ Top ]
EncounterDRGGroupExists
boolean EncounterDRGGroupExists(
int
$grp_nr, [int
$enc_nr = 0])
[line 617]
Checks if the local DRG group for the encounter exists
Parameters:
- int $grp_nr - Group number to be checked
- int $enc_nr - Encounter number
[ Top ]
groupNonGroupedItems
boolean groupNonGroupedItems(
int
$grp_nr, int
$enc_nr)
[line 633]
Sets the group number of all non-grouped diagnosis and procedure entries of an encounter.
Parameters:
- int $grp_nr - Group number
- int $enc_nr - Encounter number
[ Top ]
ICDVersion
string ICDVersion(
)
[line 298]
Returns the ICD code version (Diagnosis codes)
Tags:
- access - public
Parameters:
[ Top ]
InternDRGGroups
void InternDRGGroups(
int
$enc_nr)
[line 368]
Gets the internal DRG groups of an encounter
Parameters:
- int $enc_nr - Encounter number return mixed ADODB record object or boolean
[ Top ]
internResolveDeptNr
boolean internResolveDeptNr(
[int
$dept_nr = ''])
[line 686]
Resolves the department number to be used for the internal routines.
Overridden in child classes as:
- Quicklist::internResolveDeptNr()
- Resolves the encounter number.
Parameters:
- int $dept_nr - Department number
[ Top ]
LocalizationTypes
mixed LocalizationTypes(
)
[line 548]
Gets the localization types.
Tags:
- return - ADODB record object or boolean
Parameters:
[ Top ]
nongroupedDiagnosisExists
boolean nongroupedDiagnosisExists(
int
$enc_nr)
[line 562]
Checks if non-grouped diagnosis entries for an encounter exist
Parameters:
- int $enc_nr - Encounter number
[ Top ]
nongroupedProcedureExists
boolean nongroupedProcedureExists(
int
$enc_nr)
[line 577]
Checks if non-grouped procedure entries for an encounter exist
Parameters:
- int $enc_nr - Encounter number
[ Top ]
OPDiagnosisCodes
mixed OPDiagnosisCodes(
[int
$op_nr = 0], [int
$enc_nr = 0])
[line 891]
Gets the diagnosis codes for an encounter's operative intervention.
Tags:
- return - adodb record object or boolean
Parameters:
- int $op_nr - Operation number
- int $enc_nr - Encounter number
[ Top ]
OPProcedureCodes
mixed OPProcedureCodes(
[int
$op_nr = 0], [int
$enc_nr = 0])
[line 920]
Gets the procedure codes for an encounter's operative intervention.
Tags:
- return - adodb record object or boolean
Parameters:
- int $op_nr - Operation number
- int $enc_nr - Encounter number
[ Top ]
OPSVersion
string OPSVersion(
)
[line 306]
Returns the OPS code version (Procedure codes)
Tags:
- access - public
Parameters:
[ Top ]
pidDRGList
mixed pidDRGList(
int
$nr)
[line 1002]
Gets all DRG records of a person based on his PID number.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $nr - PID number
[ Top ]
ProcedureCategories
mixed ProcedureCategories(
)
[line 535]
Gets the procedure categories.
Tags:
- return - ADODB record object or boolean
Parameters:
[ Top ]
ProcedureCodes
void ProcedureCodes(
[int
$grp_nr = 0], [int
$enc_nr = 0])
[line 343]
Gets the procedure codes of an encounter
Parameters:
- int $grp_nr - Internal DRG Code group number
- int $enc_nr - Encounter number return mixed ADODB record object or boolean
[ Top ]
QuickCodeExists
mixed QuickCodeExists(
[string
$code = 0])
[line 741]
Checks if the code exists in the quicklist.
Tags:
- return - integer or boolean
Overridden in child classes as:
- Quicklist::QuickCodeExists()
- Checks if the code exists in the quicklist.
Parameters:
- string $code - Code id or number
[ Top ]
RelatedDiagnoses
mixed RelatedDiagnoses(
[int
$group_nr = 0])
[line 845]
Gets the diagnosis codes related to the internal drg group number
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $group_nr - Number of the internal drg group
[ Top ]
RelatedProcedures
mixed RelatedProcedures(
[int
$group_nr = 0])
[line 868]
Gets the procedure codes related to the internal drg group number.
Tags:
- return - adodb record object or boolean
- access - public
Parameters:
- int $group_nr - Number of the internal drg group
[ Top ]
searchGroup
mixed searchGroup(
string
$key, [string
$order = 'description'])
[line 593]
Searches and returns a local DRG group code.
Tags:
- return - ADODB record object or boolean
Parameters:
- string $key - Search key
- string $order - Sort item. Defaults to "description" in ascending order.
[ Top ]
setDiagnosisCategory
void setDiagnosisCategory(
int
$enc_nr, [int
$diag_nr = 0], [int
$cat_nr = 0])
[line 441]
Sets the category number of the diagnosis code entry.
Tags:
- access - public
Parameters:
- int $enc_nr - Encounter number
- int $diag_nr - Diagnosis code record number
- int $cat_nr - Category number return boolean
[ Top ]
setDiagnosisLocalization
void setDiagnosisLocalization(
[int
$diag_nr = 0], [int
$loc = ''])
[line 466]
Sets the localization number of the diagnosis entry.
Tags:
- access - public
Parameters:
- int $diag_nr - Diagnosis code record number
- int $loc - Localization number return boolean
[ Top ]
setProcedureCategory
void setProcedureCategory(
int
$enc_nr, [int
$proc_nr = 0], [int
$cat_nr = 0])
[line 484]
Sets the category number of the procedure code entry.
Tags:
- access - public
Parameters:
- int $enc_nr - Encounter number
- int $proc_nr - Procedure code record number
- int $cat_nr - Category number return boolean
[ Top ]
setProcedureLocalization
void setProcedureLocalization(
[int
$proc_nr = 0], [int
$loc = ''])
[line 508]
Sets the localization number of the procedure entry.
Tags:
- access - public
Parameters:
- int $proc_nr - Procedure code record number
- int $loc - Localization number return boolean
[ Top ]
ungroupDiagnoses
boolean ungroupDiagnoses(
int
$grp_nr, int
$enc_nr)
[line 657]
Resets the group number of diagnosis code entries of an encounter to 0 (no group)
Parameters:
- int $grp_nr - Current group number
- int $enc_nr - Encounter number
[ Top ]
ungroupProcedures
boolean ungroupProcedures(
int
$grp_nr, int
$enc_nr)
[line 672]
Resets the group number of procedure code entries of an encounter to 0 (no group)
Parameters:
- int $grp_nr - Current group number
- int $enc_nr - Encounter number
[ Top ]
upRankDRGRelatedCode
boolean upRankDRGRelatedCode(
[int
$group_nr = 0], [string
$relcode = 0], [string
$code_type = 0], [int
$step = 1])
[line 812]
Increases the ranking of a drg related code by $step value.
Parameters:
- int $group_nr - Drg group number
- string $relcode - Related code
- string $code_type - Type of the related code (diagnosis, procedure)
- int $step - Increase step (defaults to 1)
[ Top ]
upRankQuickCode
boolean upRankQuickCode(
[mixed
$code = 0], [int
$step = 1])
[line 758]
Increases the ranking of the code in the quicklist by given $step value.
Parameters:
- mixed $code - Code number (int) or id (string)
- int $step - Increase step (defaults to 1)
[ Top ]
useDiagnosis
void useDiagnosis(
)
[line 257]
Sets the core object to point to the encounter's diagnosis (care_encounter_diagnosis) table and fields
Tags:
- access - public
Parameters:
[ Top ]
useInternalDRG
void useInternalDRG(
)
[line 273]
Sets the core object to point to the local encounter DRG groups (care_encounter_drg_intern) table and fields
Tags:
- access - public
Parameters:
[ Top ]
useInternalDRGCodes
void useInternalDRGCodes(
)
[line 281]
Sets the core object to point to the internal DRG groups (care_drg_intern) table and fields
Tags:
- access - public
Parameters:
[ Top ]
useProcedure
void useProcedure(
)
[line 265]
Sets the core object to point to the encounter's procedure (care_encounter_procedure) table and fields
Tags:
- access - public
Parameters:
[ Top ]
useQuicklistCodes
void useQuicklistCodes(
)
[line 289]
Sets the core object to point to the quick list (care_drg_quicklist) table and fields
Tags:
- access - public
Parameters:
[ Top ]
_getDRGList
mixed _getDRGList(
int
$nr, [int
$nr_type = '_ENC'])
[line 952]
Gets all DRG entries based on the given number
Tags:
- return - adodb record object or boolean
- access - private
Parameters:
- int $nr - Select number
- int $nr_type - Type of select number (_ENC = encounter nr, _REG = pid nr.)
[ Top ]