getPatientResolvingMerges method

Future<EncryptedPatient> getPatientResolvingMerges(
  1. String sdkId,
  2. String patientId,
  3. int? maxMergeDepth
)

Implementation

Future<EncryptedPatient> getPatientResolvingMerges(String sdkId, String patientId, int? maxMergeDepth) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientBasicApi.getPatientResolvingMerges',
		{
			"sdkId": sdkId,
			"patientId": jsonEncode(patientId),
			"maxMergeDepth": jsonEncode(maxMergeDepth),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getPatientResolvingMerges");
	final parsedResJson = jsonDecode(res);
	return EncryptedPatient.fromJSON(parsedResJson);
}