Skip to content

Commit

Permalink
Merge pull request #32 from aleksandr-oleinikov/aidbox-sdc-api-genera…
Browse files Browse the repository at this point in the history
…te-link

Add aidbox-sdc-api.md
  • Loading branch information
qdzo authored Mar 21, 2024
2 parents a3586d9 + 158054b commit 32402cb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions reference/aidbox-forms/aidbox-sdc-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
description: Custom SDC operations supported by Aidbox Forms.
---

* [$generate-link](aidbox-sdc-api.md#generate-a-link-to-a-questionnaireresponse-usdgenerate-link)

# Generate a link to a QuestionnaireResponse - $generate-link

This operation generates a link to a web page to be used to continue answering a specified [QuestionnaireResponse](https://hl7.org/fhir/R4/questionnaireresponse.html).

## URLs

```
POST [base]/QuestionnaireResponse/[id]/$generate-link
```

## Parameters

### allow-amend

Whether the generated link will allow amending and re-submitting the form.

```
name: allow-amend
value:
Boolean: true
```

### redirect-on-submit

A URL where the user will be redirected to after successfully submitting the form.

```yaml
name: redirect-on-submit
value:
String: https://example.com/submit-hook?questionnaire=123
```

0 comments on commit 32402cb

Please sign in to comment.