/**
   * Adds the patient info estudio to the database. Also notifies the appropriate model listeners.
   *
   * @param patientInfoEstudio the patient info estudio
   * @return the patient info estudio that was added
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  public PatientInfoEstudio addPatientInfoEstudio(PatientInfoEstudio patientInfoEstudio)
      throws SystemException {
    patientInfoEstudio.setNew(true);

    return patientInfoEstudioPersistence.update(patientInfoEstudio, false);
  }
  /**
   * Updates the patient info estudio in the database or adds it if it does not yet exist. Also
   * notifies the appropriate model listeners.
   *
   * @param patientInfoEstudio the patient info estudio
   * @param merge whether to merge the patient info estudio with the current session. See {@link
   *     com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session,
   *     com.liferay.portal.model.BaseModel, boolean)} for an explanation.
   * @return the patient info estudio that was updated
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  public PatientInfoEstudio updatePatientInfoEstudio(
      PatientInfoEstudio patientInfoEstudio, boolean merge) throws SystemException {
    patientInfoEstudio.setNew(false);

    return patientInfoEstudioPersistence.update(patientInfoEstudio, merge);
  }