Changes between Version 4 and Version 5 of AdvancedQueries


Ignore:
Timestamp:
08/25/25 13:18:05 (8 days ago)
Author:
221007
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedQueries

    v4 v5  
    295295             join medicalreport_diagnosis mrd on mrd.report_id = r.report_id
    296296             join diagnosis d on mrd.diagnosis_id = d.diagnosis_id
    297     where p.person_id = 14 --parameter (the most of them are person_id = 1)
     297    where p.person_id = :person_id
    298298)
    299299select cast(p2.person_id as bigint),
     
    305305         join report r2 on r2.report_id = mrd2.report_id
    306306         join person p2 on p2.person_id = r2.person_id
    307 where p2.person_id != 14 --parameter of the person
     307where p2.person_id != :person_id
    308308group by p2.person_id, p2.name, p2.surname
    309309having count(distinct spd.diagnosis_id) >=1