original_docstring: Merge Participant x to Participant y
  
          Merges Participant with the unique Participant ID <id_from> to the Participant with
          unique Participant ID <id_to>. This will move data from all visits and specimens from the source participant to the target participant
          and then deletes the source participant.
          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.
  
          Parameters
          ----------
          id_from : int
              System generated unique ID of the source participant. Will get converted to a string.
          
          id_to : int
              System generated unique ID of the target participant. Will get converted to a string.
  
          Returns
          -------
          JSON-dict
             Returns details of the merged participants as JSON-dict or OpenSpecimen's error message.
          
docstring: Merge Participant x to Participant y
  Merges Participant with the unique Participant ID  to the Participant with
  unique Participant ID . This will move data from all visits and specimens from the source participant to the target participant
  and then deletes the source participant.
  
  Parameters
  
  id_from : int
  System generated unique ID of the source participant. Will get converted to a string.
  
  id_to : int
  System generated unique ID of the target participant. Will get converted to a string.
  
  Returns
  
  JSON-dict
  Returns details of the merged participants as JSON-dict or OpenSpecimen's error message.
docstring_tokens: Merge Participant x to Participant y Merges Participant with the unique Participant ID to the Participant with unique Participant ID . This will move data from all visits and specimens from the source participant to the target participant and then deletes the source participant . Parameters id_from : int System generated unique ID of the source participant . Will get converted to a string . id_to : int System generated unique ID of the target participant . Will get converted to a string . Returns JSON - dict Returns details of the merged participants as JSON - dict or OpenSpecimen ' s error message .
code: def merge_participants(self, id_from, id_to):
  
          """Merge Participant x to Participant y
  
          Merges Participant with the unique Participant ID <id_from> to the Participant with
          unique Participant ID <id_to>. This will move data from all visits and specimens from the source participant to the target participant
          and then deletes the source participant.
          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.
  
          Parameters
          ----------
          id_from : int
              System generated unique ID of the source participant. Will get converted to a string.
          
          id_to : int
              System generated unique ID of the target participant. Will get converted to a string.
  
          Returns
          -------
          JSON-dict
             Returns details of the merged participants as JSON-dict or OpenSpecimen's error message.
          """
  
          endpoint = '/'+ str(id_from)
          url = self.base_url + endpoint
          payload = '{\"participant\":{\"id\":\"' + str(id_to) + '\"}}'
          r = self.OS_request_gen.put_request(url, payload)
  
          return json.loads(r.text)
code_tokens: def merge_participants ( self , id_from , id_to ) : endpoint = '/' + str ( id_from ) url = self . base_url + endpoint payload = '{\"participant\":{\"id\":\"' + str ( id_to ) + '\"}}' r = self . OS_request_gen . put_request ( url , payload ) return json . loads ( r . text )
short_docstring: Merge Participant x to Participant y
  Merges Participant with the unique Participant ID <id_from> to the Participant with
  unique Participant ID <id_to>.
short_docstring_tokens: Merge Participant x to Participant y Merges Participant with the unique Participant ID <id_from > to the Participant with unique Participant ID <id_to > .
comment: """Merge Participant x to Participant y
  
          Merges Participant with the unique Participant ID <id_from> to the Participant with
          unique Participant ID <id_to>. This will move data from all visits and specimens from the source participant to the target participant
          and then deletes the source participant.
          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.
  
          Parameters
          ----------
          id_from : int
              System generated unique ID of the source participant. Will get converted to a string.
          
          id_to : int
              System generated unique ID of the target participant. Will get converted to a string.
  
          Returns
          -------
          JSON-dict
             Returns details of the merged participants as JSON-dict or OpenSpecimen's error message.
          """