PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

REST https://ctr-dev.pharmaledger.pdmfc.com/borest/api/#/ClinicalTrial/ClinicalTrialController_search filter by medicalCondition excludes other conditions #11

Open joaoluis-pdm opened 3 years ago

joaoluis-pdm commented 3 years ago

(At v0.4.5) When ClinicalTrials are queried by REST https://ctr-dev.pharmaledger.pdmfc.com/borest/api/#/ClinicalTrial/ClinicalTrialController_search filter , if a filter by medicalConditionName or medicalConditionCode is present, other non-matched medical conditions are excluded from the results (for ClinicalTrials that have multiple medical conditions). This is not correct. The each ClinicalTrial listed should have the full listing of medical conditions, if one of those medical conditions match.

As at the time, re-writting this join as a special condition has some high effort estimate, it is left as a low-pri bug issue.