rawGetPatientHcPartyKeysForDelegateWithHttpInfo method

Future<Response> rawGetPatientHcPartyKeysForDelegateWithHttpInfo(
  1. String patientId
)

Get the patient (identified by patientId) hcparty keys. Those keys are AES keys (encrypted) used to share information between HCPs and a patient.

This endpoint is used to recover all keys that have already been created and that can be used to share information with this patient. It returns a map with the following structure: ID of the owner of the encrypted AES key -> encrypted AES key. The returned encrypted AES keys will have to be decrypted using the patient's private key.

Note: This method returns the HTTP Response.

Parameters:

  • String patientId (required): The patient Id for which information is shared

Implementation

Future<Response> rawGetPatientHcPartyKeysForDelegateWithHttpInfo(String patientId,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/patient/{patientId}/keys'.replaceAll('{patientId}', patientId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}