StanfordSpezi / SpeziOnboarding

Spezi Onboarding module to inform a user or retrieve consent for a study participation
https://swiftpackageindex.com/StanfordSpezi/SpeziOnboarding/documentation/
MIT License
11 stars 5 forks source link

Support storing multiple signed consent documents #50

Open vishnuravi opened 3 weeks ago

vishnuravi commented 3 weeks ago

Problem

Research studies often require users to sign multiple consent documents during onboarding. Currently SpeziOnboarding can only be used to store one signed consent document, as the store method defined by the OnboardingConstraint receives a PDFDocument which does not include any identifier that could be used to distinguish between different consent documents being used within the same onboarding flow and store them with separate file names.

Solution

An identifier should be passed either to the store method as an argument, or within the PDFDocument's attributes such that multiple documents signed within the same onboarding flow can be distinguished and stored appropriately.

Additional context

No response

Code of Conduct