As a start to full implementation of FHIR API Questionnaire and QuestionnaireResponse resources I’ve decided to work out the Questionnaire rendering and save as both the FHIR resource for API and answers for internal analytics perhaps useful for CDR engine.
@mdsupport put me onto an excellent project to make this much easier to implement namely the NIH projects starting with the rendering engine at LHC-Forms: A Form-Rendering Widget
The basic integration for this is creating new tables like questionnaire repository, questionnaire responses and answers.
For the portal attempt I’ve added a new directive e.g.{Questionnaire:name,id etc}
to render questionnaire by questionnaire name, id or a server url API request which setups an import of a canned default template for questionnaire that adds the appropriate dependencies and questionnaire json for rendering and retrieving answers.
I’ll do a more detailed explanation soon after I finish the audit in Dashboard. However currently I’m rendering in portal so, very close for portal. Then will be moving on to a SMART App and the FHIR recourses APIs.
Comments certainly welcome and sorry for initial limited details.
A couple screenshots of two of my testing questionnaires and hopefully some folks will start putting together some questionnaires they’d like included as our standard questionnaires.
For some initial instructions please see: Questionnaire/Assessment feature implementation instructions