Distinct patients that need to schedule a follow up appointment

Options

Hello ,

I am trying to figure out which patients did not schedule a follow up appointment after their last visit. I want to show last Kept visit per patient and if the patient needs to book an appointment . The problem i am having now is that one patient can have several Kept visits. . I want to show their last 'K' (kept) visit and if the patient does not have a follow up 'B' (booked) appointment after the K . Can I do this in beast mode? thank you


Answers

  • jaeW_at_Onyx
    Options

    you need that LEAD() window function we did in MySQL + CASE when Status = B

    Jae Wilson
    Check out my 🎥 Domo Training YouTube Channel 👨‍💻

    **Say "Thanks" by clicking the ❤️ in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
  • Liliana
    Options

    Thanks Jay!