Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
How to query data for participants registered in multiple CPs?
You have participants registered under multiple Collection Protocols (CPs). In CP1, only tumor samples are collected, and in CP2, only fluid samples are collected. To query only those participants who are registered in both CP1 and CP2, and exclude others.
This can be achieved by subqueries. Refer https://openspecimen.atlassian.net/wiki/x/aoA-FQ .
You have to create three queries,
Query 1: Fetch all tissue specimens from CP1.
Query 2: Fetch all fluid specimens from CP2.
Query 3: Fetch common participants from CP1 and CP2.
When a participant is registered under multiple collection protocols, their Participant ID is the same across protocols, whereas their PPID varies.