...
reserveSpecimens.py: Reserves the specimens based on the information in the CSV file.
unreserveSpecimens.py: Unreserves the specimens based on the information in the CSV file.
Prerequisites
Before running the scripts, ensure that you have the following:
Python 3.x installed on your system.
The required Python libraries (e.g.,
requests
) installed.Access to the OpenSpecimen API with admin credentials.
A valid CSV input file with the distribution protocol and specimen ID to be reserved or unreserved.
Parameters
The scripts accept four parameters:
...
To generate the CSV file you can create use a OpenSpecimen Query module.
Steps to create a parametrized query to get distribution protocol short title and specimen identifier are:
A. Login to OpenSpeicmen → Navigate To → Query → Create
B. Select Specimen → Label → ALL as shown in the below image.
C. Click on View Records → Actions → Columns → Select Only Needed Columns → Done
Output:
...