createOrModifyDataSampleFor abstract method

Future<DataSample?> createOrModifyDataSampleFor(
  1. String patientId,
  2. DataSample dataSample
)

Create or update a DataSample for a patient

When modifying a data sample, you can't update the patient of it : For this, you need to delete the faulty data sample and create a new one. When modifying the data sample, you also need to keep the same batchId : It is not possible to change the batch of a data sample.

Parameters:

Implementation

Future<DataSample?> createOrModifyDataSampleFor(String patientId, DataSample dataSample,);