Class Rep
The Rep class is responsible for the repertorization process including saving and printing the result
Category: Homeopathy
Copyright: 2007-2014 Henri Schumacher
License: GNU Affero General Public License v3
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/rep_class.php
public
|
|
private
|
|
private
|
|
public
string
|
#
rep_result_table( )
rep_result_table builds a nicely formatted interactive table from the repertory result. |
private
string
|
#
get_sym_rem_src( integer $sym_id, integer $rem_id, integer & $max_grade, integer & $kuenzli_dot )
get_sym_rem_src returns the sources that exists for a given symptom-remedy-relation. |
public
integer
|
#
get_max_grade( integer $sym_id, integer $rem_id )
get_max_grade returns the max. grade of a given symptom-remedy-relation |
public
|
|
public
|
|
public
integer
|
#
date_to_timestamp( string $date )
date_to_timestamp returns an UNIX-timestamp from a given date in German format |
public
string
|
#
date_to_german( string $date )
date_to_german returns the date in German format (DD.MM.YYYY) from a given date in RFC 3339 format (YYYY-MM-DD) |
private
|
#
get_table_data( array & $header_ar, array & $first_row_ar, array & $data_ar, string & $summary )
get_table_data retrieves the data for printing the repertorization-result-table in a PDF-file. |
public
string
|
$rep_id | '' |
#
Repertorization ID |
public
string
|
$date | '' |
#
Repertorization date in RFC 3339 format (YYYY-MM-DD) |
public
string
|
$patient | '' |
#
Patient ID |
public
string
|
$note | '' |
#
Repertorization note |
public
string
|
$prescription | '' |
#
Prescription |
public
array
|
$sym_select | array() |
#
Symptom selection array: key: sym_id, value: degree |
private
array
|
$symptoms_ar | array() |
#
Symptoms array: keys: [id]: symptom ID, [name]: symptom name, [degree]: symptom degree, [kuenzli]: symptom Künzli-dot |
public
array
|
$remedies_ar | array() |
#
Remedies array: The remedies we found during reperorization: [0] = grade, [1] = hits, [2] = rem_short, [3] = rem_name, [4] = rem_id |
private
array
|
$rel_ar | array() |
#
Symptom-remedies-relation array - keys: [0] = rem_short, [1] = grade, [2] = sym_id |
public
integer
|
$sym_count |
|
#
Number of found symptoms |
public
integer
|
$rem_count |
|
#
Number of found remedies |
public
integer
|
$rel_count |
|
#
Number of found symptom-remedies-relations |
private
string
|
$symptoms_tbl |
|
#
Symptoms table |
private
string
|
$sym_rem_tbl |
|
#
Symptom-remedy-relations table |