Feature in Questionnaire Builder
# support
j
Hi, We have a requirement to collect Patient Details, Medical history, and Health records in a single Questionnaire form. Rather than creating a String field or Integer field in Form Builder to get details [name (string field), address(string field)] in a survey. Is there a way to load fields like below... Resource (Select Field) Field Names (Select Field) Patient -> Patient.Address On select Patient. Address, Address Input(https://storybook.medplum.com/?path=/story/medplum-addressinput--basic) should get loaded on Questionnaire Builder. On form submission, the Address Input Value should mapped to the Questionnaire response. kindly let me know how to implement this.
r
HI @jarluhar unfortunately we are bound by the FHIR specificaiton for QuestionnaireResponse (https://www.medplum.com/docs/api/fhir/resources/questionnaireresponse). In this specification, each answer can only take a handful of value types: boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference
The best way to implement what you are talking about is to use a Bot that translates the questionnaire response into the valid patient fields: https://www.medplum.com/docs/bots/bot-for-questionnaire-response