createOrModifyDataSamplesFor abstract method

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

Create or update a batch of DataSample for a patient

All the provided data samples will be created in the same batch. If you are trying to update some data samples, then those ones need to come from the same batch. 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<List<DataSample>?> createOrModifyDataSamplesFor(String patientId, List<DataSample> dataSample,);