Hi @magnororiz, please note that ODK Build will shut down soon on Feb 1, 2024.
The data collector workflows section of the documentation has some details on different ways to do a workflow like you are asking, especially the "Multiple encounters with the same entity (longitudinal)" section and the "Using barcodes to link encounters" - let us know what questions you have after reading through that.