openspecimen/rest/ng/collection-protocols/merge
Sometimes users wants to close one collection protocol and merge all registrations/data of that protocol with another protocol. In this case this API is useful to merge two collection protocols.
How merge is happen
Lets say
Source CP - The protocol which wanted to close.
Target CP - The protocol in which source CP's registrations wanted to merge.
- Move all participant registrations to target CP.
- If participant match found in target CP, then move all visits and specimens of source registration to target registration. If no matched participant found then make source registration to target CP.
- Matching of participants is done on basic of PPID and participant Id
- Map all visits of source CP registration to first event of target CP and mark all created specimens as unplanned.
Use HTTP POST method to call this API by passing the below details in JSON format.
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
srcCpShortTitle | Short title of collection protocol which wanted to merge. |
tgtCpShortTitle | Short title of collection protocol in which source protocol going to merge |
srcCpShortTitle