getMedicalDevice method
Get a Medical Device
Each medical device is uniquely identified by a device id. The device id is a UUID. This medicalDeviceId
is the preferred method to retrieve one specific device.
Parameters:
- String medicalDeviceId (required):
Implementation
@override
Future<MedicalDevice?> getMedicalDevice(String medicalDeviceId) async {
return DeviceDtoMapper(await api.baseDeviceApi.getDevice(medicalDeviceId)
?? (throw ArgumentError("MedicalDevice with id $medicalDeviceId not found"))
).toMedicalDevice();
}