createOrModifyUser abstract method

Future<User?> createOrModifyUser(
  1. User user
)

Create a new user or modify an existing one.

A user must have a login, an email or a mobilePhone defined, a user should be linked to either a Healthcare Professional, a Patient or a Device. When modifying an user, you must ensure that the rev obtained when getting or creating the user is present as the rev is used to guarantee that the user has not been modified by a third party.

Parameters:

  • User user (required): The user that must be created in the database.

Implementation

Future<User?> createOrModifyUser(User user,);