👤User/Patient

Find here all relevant information on how to create and update a user or a patient.

Register a new user

The following snippet shows how you can register a new user. You do not need authentication for registration.

import 'package:flutter_fibricheck_sdk/flutter_fibricheck_sdk.dart';
import 'package:flutter_fibricheck_sdk/userdata.dart';

_sdk.register(UserRegisterData(
        firstName: "John",
        lastName: "Doe",
        email: "john.doe@example.com",
        password: "Strong!987",
        phoneNumber: "000000",
        birthDay: "1970/01/01",
        gender: 0, // 0 = Not known; 1 = Male; 2 = Female; 9 = Not applicable
        country: "JO", // or "AE"
        language: "AR",
      ));

At this moment, there is no option to update the user's data.

Last updated