<!---assessment.cfc ---> 
<cfcomponent displayname="assessment"   hint="ColdFusion Component for  assessment">

	<cffunction name="getassessment"  access="remote" output="Yes" returntype="query">   
		 <cfargument name="Assmt_ID" required="yes" default="0">
		 <cfquery  name="getass" datasource="#Application.DataSrc#">
				SELECT  * FROM #Request.prefix_db_agency#.pAssessments 
				JOIN #Request.prefix_db_agency#.pPatients ON pPatients.Patient_ID =  pAssessments.patient_ID
				WHERE pAssessments.Assmt_ID =  <cfqueryparam value = "#arguments.Assmt_ID#" CFSQLType ="CF_SQL_INTEGER">
				AND pAssessments.status = <cfqueryparam value = "0" CFSQLType ="CF_SQL_INTEGER">
				AND pPatients.status = <cfqueryparam value = "0" CFSQLType ="CF_SQL_INTEGER">
		</cfquery>
		<cfreturn getass />
	</cffunction>

	

</cfcomponent>