Class: Immunization

Source Location: /class_immunization.php

Class Overview [line 18]

Core
   |
   --Immunization

Immunization methods.

Author(s):

  • Elpidio Latorilla

Version:

  • beta 1.0.08

Copyright:

  • 2002,2003,2004 Elpidio Latorilla

Variables

Methods


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

Immunization 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_count =

[line 48]

Number or departments

Type: int

Overrides:

[ Top ]

$is_preloaded = false

[line 43]

Preloaded data flag

Type: boolean

Overrides: Array

[ Top ]

$preload_dept =

[line 38]

Preloaded department data

Tags:

  • var - record object

Type: adodb

Overrides:

[ Top ]

$result =

[line 33]

Preloaded data flag

Tags:

  • var - record object

Type: adodb

Overrides: Array

[ Top ]

$tabfields = array('nr',
                           'encounter_nr',
                           'date',
                           'type',
                           'medicine',
                           'dosage',
                           'application_type_nr',
                           'application_by',
                           'titer',
                           'refresh_date',
                           'notes',
                           'status',
                           'history',
                           'modify_id',
                           'modify_time',
                           'create_id',
                           'create_time')

[line 53]

Fieldnames of care_address_citytown table. Primary key is "nr".

Type: array

Overrides:

[ Top ]

$tb = 'care_encounter_immunization'

[line 23]

Database table for encounter's immunization data

Type: string

Overrides:

[ Top ]

$tb_types = 'care_type_application'

[line 28]

Database table for appication types

Type: string

Overrides:

[ Top ]


Class Methods

Immunization

Immunization Immunization( )

[line 73]

Constructor

Parameters:

[ Top ]

getAll

mixed getAll( )

[line 129]

Gets all immunization data without any condition. Unsorted.

The returned array contains the data with the index keys as set in the $tabfields array.

Tags:

  • return - 2 dimensional array or boolean

Parameters:

[ Top ]

getAllActiveSort

mixed getAllActiveSort( [string $sort = ''])

[line 149]

Gets only ACTIVE immunization data. Sorted.

The returned array contains the data with the index keys as set in the $tabfields array.

Tags:

  • return - 2 dimensional array or boolean

Parameters:

  • string $sort - Item for sorting basis

[ Top ]

getAllNoCondition

mixed getAllNoCondition( [string $sort = ''], string 1)

[line 108]

Gets all immunization data without any condition.

The returned array contains the data with the index keys as set in the $tabfields array.

Tags:

  • return - 2 dimensional array or boolean

Parameters:

  • string 1 - Item for sorting basis
  • string $sort - Query constraint

[ Top ]

getAllSort

mixed getAllSort( [string $sort = ''])

[line 139]

Gets all immunization data without any condition. Sorted.

The returned array contains the data with the index keys as set in the $tabfields array.

Tags:

  • return - 2 dimensional array or boolean

Parameters:

  • string $sort - Item for sorting basis

[ Top ]

getAppTypes

mixed getAppTypes( string 0)

[line 166]

Gets all application types.

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

  • nr = primary key number
  • group_nr = group number
  • type = application type
  • name = default application type's name
  • LD_var = the variable's name for foreign language version of the type's name
  • description = description of the application type

Tags:

  • return - 2 dimensional array or boolean

Parameters:

  • string 0 - Item for sorting basis

[ Top ]

getTypeInfo

mixed getTypeInfo( int $type_nr)

[line 193]

Gets application type information based on its type number.

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

  • type = application type
  • group_nr = group number
  • name = default application type's name
  • LD_var = the variable's name for foreign language version of the type's name
  • description = description of the application type

Tags:

  • return - or boolean

Parameters:

  • int $type_nr - Application type number

[ Top ]

_getalldata

mixed _getalldata( [string $cond = '1'], [string $sort = ''])

[line 85]

Gets all immunization data based on passed condition.

The returned array contains the data with the index keys as set in the $tabfields array.

Tags:

  • return - 2 dimensional array or boolean

Parameters:

  • string $cond - Query constraint
  • string $sort - Item for sorting basis

[ Top ]


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