0

Sort view by initial exam

Hi All,
I have a view of all patients examined in a given month.

Some of the patients have been examined more than one time during the month.

How can I sort the view so that it is filtered to view only the first visit for each patient?

There is an exam ID and a time stamp for each exam as well as a patient ID.

thanks,

Sam

 

3 replies

null
    • Fred
    • 1 yr ago
    • Reported - view

    Can you give us a bit more info about your db structure?

      • Sam.1
      • 1 yr ago
      • Reported - view

      Fred hi Fred,I apologize for the delay. Busy week.

      Here is the before and desired filtered view showing the first exam for each patient.

      PATIENT

      PATIENT ID

      EXAM ID

      A

      100

      600

      B

      101

      601

      D

      104

      602

      D

      104

      603

      A

      100

      604

      C

      103

      605

      E

      105

      606

      B

      102

      607

      A

      100

      608

       

       

       

      PATIENT

      PATIENT ID

      EXAM ID

      A

      100

      600

      B

      101

      601

      D

      104

      602

      C

      103

      605

      E

      105

      606

       

       

       

      • Sam.1
      • 1 yr ago
      • Reported - view

      Fred Patient B ID should be 101 for both rows. My typo in the first example

Content aside

  • 1 yr agoLast active
  • 3Replies
  • 42Views
  • 2 Following