Viewing 15 posts - 16 through 30 (of 66 total)
Reading your link now on how to post the data examples better
December 9, 2015 at 10:40 am
Correct, I only want the 2nd row based on the date value
So, right now I'm getting back:
Patient_Status ...
December 9, 2015 at 10:35 am
worked perfectly....thanks Ed!
December 4, 2015 at 7:39 am
Thanks! Do I need to set it up as a CTE? And it will be only one colon
December 3, 2015 at 4:18 pm
Ok, it is a date time field type....and I show records for Dec 1 2015.....but, when I say that field = 12/01/2015 I get 0 results
December 2, 2015 at 10:47 am
It maybe a datetime....but, I'd like to take that field and run the prior days data. Could I do that with a field that displays data in that format?
December 2, 2015 at 10:35 am
Luis....your suggestion worked perfect when I inserted that case statement (Aliased 'Previous_Text5) into my test query:
SELECT case when Dyn_Assessments.field_name = '*Previous Treatment (Medication(s) patient has previously received for same or...
November 20, 2015 at 4:25 pm
Thanks! For the help. I was thinking that I had to put the convert code at the end (ex. Convert(Varchar....101)...so that kept me from doing it. LOL
November 19, 2015 at 9:06 am
Luis...putting together the data example now.
September 9, 2015 at 11:28 am
Sean, I'm getting an invalid column error on 'GrantColumn' and 'PartDColumn'
September 9, 2015 at 11:27 am
Wouldn't your case statement error out do the columns in the Then portion containing columns that don't exist?
September 9, 2015 at 10:51 am
I'm thinking it's some kid of order logic. If the Payer is commercial then BINNO else if Payer = Grant then BINNO...etc
September 9, 2015 at 10:41 am
Sean, I want the data in a single column
September 9, 2015 at 10:36 am
For ex...patient 1234 has Commercial Insurance and BINNO 4321
patient 1234 has Part D Insurance and BINNO 789
...
September 9, 2015 at 10:18 am
I'm not explaining it clear enough. I want it to populate the same column. If it's Commercial give me that BINNO.....if the patient doesn't have Commercial....populate that column...
September 9, 2015 at 10:15 am
Viewing 15 posts - 16 through 30 (of 66 total)