Most Recent Posts
ICD-10 codes
by ffac - 10/06/2026 12:54 PM
Finding my API
by It's me - 10/04/2026 6:58 PM
SQL server
by denvertech - 09/27/2026 12:51 PM
Laptops v. Desktops, what do users prefer?
by denvertech - 09/27/2026 12:46 PM
Electronic Signature Pad for Consent Forms
by denvertech - 09/27/2026 11:12 AM
Member Spotlight
Bert
Bert
Maine
Posts: 12,908
Joined: September 2003
Newest Members
peter smith, Christophe1776, Jun Valley Occ H, Michael Lara, DrDr
4,614 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2005
Posts: 2,370
Likes: 2
Member
OP Offline
Member
Joined: Nov 2005
Posts: 2,370
Likes: 2
I am working on PCMH and trying to run a report for patients without a telephone number seen in the last 3 months.

the problem is that the report will not allow = or <> (blank), it requires 10 digits ( % wildcard will not work).

Any ideas?


Wendell
Pediatrician in Chicago

The patient's expectation is that you have all the answers, sometimes they just don't like the answer you have for them
Joined: Dec 2009
Posts: 1,211
Likes: 8
Member
Offline
Member
Joined: Dec 2009
Posts: 1,211
Likes: 8
Just add a WHERE clause to the query I put in a previous post. Change dates as appropriate.

Code
DECLARE @StartDate DATETIME
DECLARE @EndDate DATETIME

SET @StartDate = '1/1/2017'
SET @EndDate = '4/1/2017'

SELECT Demographics.PatientID, [Last] as LastName, [First] as FirstName, Gender, BirthDate, Phone FROM Demographics INNER JOIN 
(SELECT DISTINCT PatientID FROM Billing WHERE DateOfService BETWEEN @StartDate AND @EndDate) as a on Demographics.PatientID = a.PatientID 
WHERE phone is null or phone = ''
ORDER BY LastName


JamesNT


James Summerlin
My personal site: http://www.dataintegrationsolutions.net
james@dataintegrationsolutions.net

Moderated by  DocGene, JBS, Wendell365 

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Who's Online Now
0 members (), 316 guests, and 70 robots.
Key: Admin, Global Mod, Mod
Top Posters(30 Days)
ffac 2
Top Posters
Bert 12,908
JBS 3,002
Wendell365 2,370
Sandeep 2,316
ryanjo 2,084
Leslie 2,002
Wayne 1,889
This board is dedicated to the memory of Michael "Indy" Astleford. February 6, 1961 -- April 16, 2019




SiteLock
Powered by UBB.threads™ PHP Forum Software 7.7.5