<?php
class MedicationTreatment extends AppModel {

	var $name = 'MedicationTreatment';
//	var $displayField = 'name';

	var $belongsTo = array(
		'QuestionnaireTreatment' => array(
			'className' => 'QuestionnaireTreatment',
			'foreignKey' => 'questionnaire_treatment_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Drug' => array(
			'className' => 'Drug',
			'foreignKey' => 'drug_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)		
	);
		
	/*
	• DOSE is mentioned
	AND
	• NUMBER of [Antidepressant(1st,2nd or 3rd)] >= 1
	*/	
//	function checkMedsDose ($drug_id, $language)
//	{
//		return $this->find('first', array('conditions' => array('MedicationTreatment.evaluation_id' => $eval_id)));
//	}		

	function beforeSave($opt=[]) 
	{
	#### Insert
		if(empty($this->id))		 
		{
		
//		echo pr($this->data);
			# Current Treatment with medications 
	
		}
//		echo pr($this->data);
		return true;
	}	
}
?>