basic add patient function