FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
Describe the feature request.
Using configuration, connect the HTML structure to be used to generate PDF together with the questionnaire that intends to use that HTML structure.
Additional context
N/A
Acceptance criteria
A check list of all things to verify once the implementation by the engineer is complete
[x] HTML is saved as Binary resource
[x] Create a property in the config to accept the Binary ID of the HTML structure
[x] Create a button action type in the config that will trigger the PDF generation
Area path
A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.
Go to a profile
Tap the button that will trigger the PDF generation
App shows a print manager dialog
Tap save as PDF
Implementation plan (For Engineers)
The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed.
Safe the HTML as a Binary resource
Create a rule in the profile, if the taskQuestionnaireId is X then return that Binary resource ID
Pass that rule that contains the Binary resource ID to the questionnaireConfig's property, probably called pdfStructureId
In the code, use that ID to get the HTML Binary resource
Describe the feature request. Using configuration, connect the HTML structure to be used to generate PDF together with the questionnaire that intends to use that HTML structure.
Additional context N/A
Acceptance criteria A check list of all things to verify once the implementation by the engineer is complete
Area path A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.
Implementation plan (For Engineers) The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed.