deletePatient method
Implementation
Future<DocIdentifier> deletePatient(String sdkId, Patient patient) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientBasicApi.deletePatient',
{
"sdkId": sdkId,
"patient": jsonEncode(Patient.encode(patient)),
}
);
if (res == null) throw AssertionError("received null result from platform method deletePatient");
final parsedResJson = jsonDecode(res);
return DocIdentifier.fromJSON(parsedResJson);
}