deletePatient method

Future<StoredDocumentIdentifier> deletePatient(
  1. String sdkId,
  2. Patient patient
)

Implementation

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