Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Assistance in creation of report Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Apr 2010 at 7:20am

Rereading all of this you are likely running into a problem with the MAX date on your main table.

Can you give more exact examples of your data your links and and your conditions?

My guess is you have something like multiple rows of a diagnosis with different dates and you need to link this table using a the most current diagnosis. This gets tricky to do in crystal. If you give more concrete examples (change the actual data if you need to for security issues) someone will ilkely e able to better answer your question.
IP IP Logged
jordanofmn
Newbie
Newbie


Joined: 06 Apr 2010
Online Status: Offline
Posts: 10
Quote jordanofmn Replybullet Posted: 08 Apr 2010 at 7:46am

For Example - What I am attempting to do is pull all patients diagnosed with Diabetes and then return the latest blood work test results; XXX, ZZZ. All of these are kept in the same table, so my sorting expert is catching all of the patients that have an XXX result, but is not diagnosed Diabetic.

IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 08 Apr 2010 at 8:01am
Maybe what you need is to be able to select 'one of' (or one of the other possibilities).  That makes the selection more like an 'OR' instead of a 'AND'.
IP IP Logged
jordanofmn
Newbie
Newbie


Joined: 06 Apr 2010
Online Status: Offline
Posts: 10
Quote jordanofmn Replybullet Posted: 08 Apr 2010 at 8:17am

When I select 'one of' I get all results, regaurdless of being diagnosed as Diabetic. What i need is 'Is Exactly like' AND 'one of', I think. My head is starting to hurt!!!

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Apr 2010 at 8:24am

Guessing on your structure here but inner join the patient table to the diagnosis table and the outer join the diagnosis table to the blood work table.

In the select expert make diagnosis=Diabetes (or ICD code if you use it)
In the report group on patient ID
Add an extra group header (B)
sort descending on blood work date
place the desired result fields for display on the group header B
these should be from the most recent blood work for that patient
 
They will be NULL if the patient has no blood work reported


Edited by DBlank - 08 Apr 2010 at 8:26am
IP IP Logged
jordanofmn
Newbie
Newbie


Joined: 06 Apr 2010
Online Status: Offline
Posts: 10
Quote jordanofmn Replybullet Posted: 12 Apr 2010 at 5:59am

Am I able to create a sub set of data (ie All Diabetics) and then do a sub report pulling all info based that subset?

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Apr 2010 at 3:45am
Theoretically yes you could do a mian report that limits your pateint set to only those with diabetes and then run a sub report per patient to get the blood work data.
IP IP Logged
<< Prev Page  of 2
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.