Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

  1. Move all participant registrations to target CP.
  2. 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.
  3.  Matching of participants is done on basic of PPID and participant Id
  4. 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
srcCpShortTitleShort title of collection protocol which wanted to merge.
tgtCpShortTitleShort title of collection protocol in which source protocol going to merge
  • No labels