Skip to main content

PDF configuration

Launch a PDF preview from a defined HTML structure and Questionnaire Responses that contains data to be populated into the PDF. App user then can save that previewed PDF into their device as a file.

info

The PDF Generation feature is responsible in populating data from Questionnaire Response to HTML.

Sample JSON

{
"trigger": "ON_CLICK",
"workflow": "LAUNCH_PDF_GENERATION",
"pdfConfig": {
"title": "Depression Report",
"titleSuffix": "James",
"structureReference": "Binary/b1234",
"subjectReference": "Patient/p1234",
"questionnaireReferences": [
"Questionnaire/q1",
"Questionnaire/q2",
"Questionnaire/q3",
"Questionnaire/q4"
]
}
}

Config properties

PropertyDescriptionRequiredDefault
titleThe saved PDF file titleNonull
titleSuffixThe saved PDF file title suffix; usually contains the subject nameNonull
structureReferenceThe Binary resource that contains HTML structure of the PDFYesnull
subjectReferenceThe subject/patient/child who the answers from the Questionnaire Response apply toYesnull
questionnaireReferencesThe Questionnaire resource that is related to a Questionnaire Response which contains data to be populated into the PDFYes[]