How to create public links for consent forms for p...
# support
t
Hello all, We are working on a solution to generate unique public links that allow patients to complete their consent forms via a web app. Our current plan is as follows: 1. Authorization and Data Retrieval: We will use a client application to authorize the web app. This application will: - Retrieve the consent questionnaire. - Post the questionnaire response. Access to the client application will be limited via an Access Policy. 2. Data Processing: Bots will subsequently process and save the consent data to the Consent Resource. Next Steps: 1. Token-Based Access Control: Consider limiting the client application's access using tokens. This can help ensure that only authorized sessions can retrieve or post sensitive data. 2. Link Expiration Mechanism: Ensure that the unique links expire under either of the following conditions: - Once the patient has completed the consent form. - After a predetermined time (e.g., one hour). Has anyone dealt with a similar use case or have any thoughts on this implementation approach?
d
hi! are you still working on this? I did it for one of our applications is a nextjs application, so i created an api endpoint that has client_id & secret, retrieves the questionnaire to display when the user submits, the nextjs applications forwards the relevant info to medplum and performs other operations
205 Views