MedTechApi constructor

MedTechApi(
  1. String iCureBasePath,
  2. String userName,
  3. String password,
  4. Map<String, RSAKeypair> rsaKeyPairs,
  5. String? authServerUrl,
  6. String? authProcessId,
)

Implementation

MedTechApi(this.iCureBasePath, this.userName, this.password, Map<String, RSAKeypair> rsaKeyPairs, this.authServerUrl, this.authProcessId) {
  final base_api.ApiClient client = base_api.ApiClient.basic(iCureBasePath, userName, password);

  this.baseHealthcarePartyApi = base_api.HealthcarePartyApi(client);
  this.basePatientApi = base_api.PatientApi(client);
  this.baseDeviceApi = base_api.DeviceApi(client);
  this.baseCodeApi = base_api.CodeApi(client);
  this.baseUserApi = base_api.UserApi(client);
  this.baseHealthElementApi = base_api.HealthElementApi(client);
  this.baseContactApi = base_api.ContactApi(client);
  this.crypto = LocalCrypto(DataOwnerResolver.withExistingApis(this.baseHealthcarePartyApi, this.basePatientApi, this.baseDeviceApi), rsaKeyPairs);
  this.baseDocumentApi = base_api.DocumentApi(client);
  this.baseAuthApi = base_api.AuthApi(client);
}