Skip to content

Commit

Permalink
feat(app): add disclaimer to PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Feb 28, 2024
1 parent 15690ce commit 9da5bfe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/lib/common/utilities/pdf_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ List<pw.Widget> _buildHeader(Drug drug, BuildContext buildContext) {
textAlign: pw.TextAlign.center,
),
),
_buildTextSpacer(),
_buildTextSpacer(),
_PdfSegment(
child: pw.Text(
buildContext.l10n.pdf_disclaimer,
style: pw.TextStyle(fontStyle: FontStyle.italic),
),
),
];
}

Expand Down Expand Up @@ -301,7 +309,6 @@ List<pw.Widget> _buildExternalGuidelinePart(
..._buildGuidelinePart(guideline, buildContext)
]
),
_buildTextDivider(),
];
}

Expand Down
2 changes: 2 additions & 0 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@
"gene_page_further_inhibitor_drugs": "Your results for this gene can also be influenced by taking any of the following drugs:",
"gene_page_activity_score": "Activity score",


"pdf_disclaimer": "Disclaimer: The information contained in this PDF document is intended solely for use by trained health care professionals. It is provided for informational purposes only and should not be considered medical advice. The content may include technical terminology and clinical data that are intended for professional interpretation and application. Recipients are advised to exercise professional judgment and discretion when utilizing the information contained herein. If you are not a trained health care professional, please consult with a qualified medical practitioner or specialist before interpreting or applying the information provided in this document.",
"pdf_pgx_report": "PGx Report",
"pdf_heading_user_data": "User data",
"pdf_heading_clinical_guidelines": "Clinical guideline(s)",
Expand Down

0 comments on commit 9da5bfe

Please sign in to comment.