This scalar TSQL function returns the user-specified portion of a patient's name from expressions with data in "LAST,FIRST MI..." format. Options include first name, last name, middle initial, title and suffix.
(Read our blog for more information about user-defined functions in T-SQL.)
Please note: the image below is only a partial view of the complete function. Download the file to see the complete code sample.
To download this report, please log in or create an account. →