<?php
/*
----------------------------------------------------------------------------------------
Castor is a system to manage medical information.
Copyright (C) 2002, 2003 INTTELMEX hide@address.com, hide@address.com
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-----------------------------------------------------------------------------------------
Castor es un sistema para el manejo de información médica
Copyright (C) 2002, 2003 INTTELMEX hide@address.com, hide@address.com
Este programa es Software Libre; usted puede redistribuirlo
y/o modificarlo bajo los términos de la "GNU General Public
License" como lo publica la "FSF Free Software Foundation" version 2,
o de cualquier versión posterior.
Este programa es distribuido con la esperanza de que le será
útil, pero SIN NINGUNA GARANTIA; incluso sin la garantía
implícita por el MERCADEO o EJERCICIO DE ALGUN PROPOSITO en
particular. Vea la "GNU General Public License" para más
detalles.
Usted debe haber recibido una copia de la "GNU General Public
License" junto con este programa, si no, escriba a la "FSF
Free Software Foundation, Inc.", 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
----------------------------------------------------------------------------------------------
*/
/** Consulta Externa: Tratamiento Familiar.
* Método de desparasitación.
* Almacena los datos de tratamiento familiar.
* <b>Tablas de BD:</b> <em>rel_trat_fam, tratamientofamiliar</em>.
* @author Luis Arturo Calderón Villegas <em>hide@address.com</em>
*/
class Trel_trat_fam {
//! secuencial de la tabla "rel_trat_fam"
var $idrtf;
//! indica el numero de consulta al que corresponde este registro
var $idconsulta;
//! indica el tipo de tratamiento de acuerdo a la tabla "tratamientofamiliar"
var $idtf;
/** Constructor
* @param $consulta clave de la consulta
* @param $tf el tratamiento que se registró en la Consulta externa.
*/
function Trel_trat_fam($consulta,$tf)
{
$this->idconsulta=$consulta;
$this->idtf=$tf;
} // end constructor
/** Se encarga de añadir un registro en la tabla "rel_trat_fam" de la base de datos.
*/
function add_record() {
$sql=new Tquery("INSERT INTO rel_trat_fam (idconsulta,idtf)
VALUES('$this->idconsulta', '$this->idtf');");
$sql->consulta();
} //end add_record()
} // end class
?>