def to_registration(protocol, params)
      # If there is an MRN, then make a PMI
      if params.has_key?(:medical_record_number) then
        CaTissue::ParticipantMedicalIdentifier.new(params)
      end
      # the patient
      pnt = params[:participant]
      # Register the patient.
      protocol.register(pnt)
    end
def to_registration(protocol, params)
      # If there is an MRN, then make a PMI
      if params.has_key?(:medical_record_number) then
        CaTissue::ParticipantMedicalIdentifier.new(params)
      end
      # the patient
      pnt = params[:participant]
      # Register the patient.
      protocol.register(pnt)
    end
Builds the registration object specified in the given parameters.

 @param [CaTissue::CollectionProtocol] protocol the collection protocol
 @param [{Symbol => String}] params the registration parameters
 @return [CaTissue::CollectionProtocolRegistration] the SCG to save