getDataSample method
Get a DataSample by its id
Each data sample is uniquely identified by a data sample id which is a UUID. This dataSampleId
is the preferred method to retrieve one specific data sample.
Parameters:
- String dataSampleId (required):
Implementation
@override
Future<DataSample?> getDataSample(String dataSampleId) async {
return ServiceDtoMapper(await _getServiceFromICure(dataSampleId))?.toDataSample(null) ??
(throw FormatException("Id $dataSampleId does not correspond to any existing data sample"));
}