deletePatientById method

Future<DocIdentifier> deletePatientById(
  1. String sdkId,
  2. String entityId,
  3. String rev
)

Implementation

Future<DocIdentifier> deletePatientById(String sdkId, String entityId, String rev) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientApi.deletePatientById',
		{
			"sdkId": sdkId,
			"entityId": jsonEncode(entityId),
			"rev": jsonEncode(rev),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deletePatientById");
	final parsedResJson = jsonDecode(res);
	return DocIdentifier.fromJSON(parsedResJson);
}