Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ALTER Function getVteResolvedStatus (@VTE_ID INT) Returns char(50) AS
BEGIN
DECLARE @ResolveDate varchar (50)
DECLARE @OutputString varchar (50)
Set @ResolveDate = (SELECT TOP 1 ImagingDate FROM ImagingResults WHERE VenousThrombusEventID = @VTE_ID AND ImagingResultTypeID BETWEEN 1 AND 2 ORDER BY ImagingDate)
IF (@ResolveDate IS Not NULL) BEGIN
-- Record found indicating VTE is resolved
SET @OutputString = 'Resolved ' + @ResolveDate
Return @OutputString
End
Set @OutputString = 'Not Resolved'
Return @OutputString
End