<cffunction name="getProcDescSCode" access="remote" output="false" returnType="string">
<cfargument name="getPDescSCode" type="string" required="yes">
<cfset var GetICD9Code="">
<cfset GetICD9Code = Replace('#ARGUMENTS.getPDescSCode#', ',', '')>
<cfquery name = "qgetProcDescSCode" datasource="#THIS.dsn#">
SELECT STUFF(CAST(CODE AS varchar(7)),3,0,'.') AS CODE
FROM ICD9PROC
WHERE ABBREV = '#GetICD9Code#'
</cfquery>
<cfreturn (qgetProcDescSCode.CODE)>
</cffunction>
|