original_docstring: Register a participant to another Collection Protocol
  
          Registers an already existing Participant to another Collection Protocol.
          The Participants unique ID has to be known and can be seen for Examples via 
          the GUI in the URL: http(s)://<host>:<port>/openspecimen/cp-view/{cpId}/participants/{cprid}/...
          or with the function get_participant_matches in the os_core class participants.
          Also, the collection protocol ID of the Protocol in which the participant is registered at has to be known.
  
          Parameters
          ---------
          params : string
              JSON-formatted string with the Parameters: the keys are participant( value is a dict with key id and value
              Pariticipant ID[mandatory])[mandatory], registrationDate [mandatory], cpId [mandatory],
              ppid[mandatory if manually generated, leave empty if system-generated]
  
          Returns
          -------
          JSON-dict
              JSON-dict of the participant which is registred to another protocol.
          
docstring: Register a participant to another Collection Protocol
  Registers an already existing Participant to another Collection Protocol.
  
  Parameters
  
  params : string
  JSON-formatted string with the Parameters: the keys are participant( value is a dict with key id and value
  Pariticipant ID[mandatory])[mandatory], registrationDate [mandatory], cpId [mandatory],
  ppid[mandatory if manually generated, leave empty if system-generated]
  
  Returns
  
  JSON-dict
  JSON-dict of the participant which is registred to another protocol.
docstring_tokens: Register a participant to another Collection Protocol Registers an already existing Participant to another Collection Protocol . Parameters params : string JSON - formatted string with the Parameters : the keys are participant ( value is a dict with key id and value Pariticipant ID [ mandatory ] ) [ mandatory ] registrationDate [ mandatory ] cpId [ mandatory ] ppid [ mandatory if manually generated leave empty if system - generated ] Returns JSON - dict JSON - dict of the participant which is registred to another protocol .
code: def register_to_cp(self, params):
  
          """Register a participant to another Collection Protocol
  
          Registers an already existing Participant to another Collection Protocol.
          The Participants unique ID has to be known and can be seen for Examples via 
          the GUI in the URL: http(s)://<host>:<port>/openspecimen/cp-view/{cpId}/participants/{cprid}/...
          or with the function get_participant_matches in the os_core class participants.
          Also, the collection protocol ID of the Protocol in which the participant is registered at has to be known.
  
          Parameters
          ---------
          params : string
              JSON-formatted string with the Parameters: the keys are participant( value is a dict with key id and value
              Pariticipant ID[mandatory])[mandatory], registrationDate [mandatory], cpId [mandatory],
              ppid[mandatory if manually generated, leave empty if system-generated]
  
          Returns
          -------
          JSON-dict
              JSON-dict of the participant which is registred to another protocol.
          """
  
          url = self.base_url + '/'
          payload = params
          r = self.OS_request_gen.post_request(url, payload)
  
          return json.loads(r.text)
code_tokens: def register_to_cp ( self , params ) : url = self . base_url + '/' payload = params r = self . OS_request_gen . post_request ( url , payload ) return json . loads ( r . text )
short_docstring: Register a participant to another Collection Protocol
  Registers an already existing Participant to another Collection Protocol.
short_docstring_tokens: Register a participant to another Collection Protocol Registers an already existing Participant to another Collection Protocol .
comment: """Register a participant to another Collection Protocol
  
          Registers an already existing Participant to another Collection Protocol.
          The Participants unique ID has to be known and can be seen for Examples via 
          the GUI in the URL: http(s)://<host>:<port>/openspecimen/cp-view/{cpId}/participants/{cprid}/...
          or with the function get_participant_matches in the os_core class participants.
          Also, the collection protocol ID of the Protocol in which the participant is registered at has to be known.
  
          Parameters
          ---------
          params : string
              JSON-formatted string with the Parameters: the keys are participant( value is a dict with key id and value
              Pariticipant ID[mandatory])[mandatory], registrationDate [mandatory], cpId [mandatory],
              ppid[mandatory if manually generated, leave empty if system-generated]
  
          Returns
          -------
          JSON-dict
              JSON-dict of the participant which is registred to another protocol.
          """