feat(fields): adds new features for FHIR Support capability + Minor Enhancements#88
Open
lattln wants to merge 6 commits into
Open
feat(fields): adds new features for FHIR Support capability + Minor Enhancements#88lattln wants to merge 6 commits into
lattln wants to merge 6 commits into
Conversation
+ added Open Choice Field, with Radio Field functionality + an additional "other" field that can have custom input. + Added File Field Type (which includes, max file, max file size, accepted file type) + stores as base64. + Remove selection / highlighting from occuring when double clicking on all field Options
+ fix response handling for fileField
This was
linked to
issues
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds FHIR-required questionnaire support for file upload and open-choice responses.
It introduces two new field types,
fileandopenchoice, and wires them through the core type system, field registry, builder, renderer, condition logic, response hydration, validation, and FHIR adapter. These changes allow questionnaires to capture attachment-based answers and choice answers that can include user-entered custom values.What Changed
Added a new
FileFieldcomponent for single or multiple file uploads.Added a new
OpenChoiceFieldcomponent for predefined options with custom user-entered values.Extended core field definitions, Zod schemas, and field type metadata for
fileandopenchoice.Added
fileDataresponse support for attachment answers.Updated the field registry with metadata for the new field types.
Registered the new fields across the builder and renderer default field sets.
Added icons and exports for the new field components.
Updated condition evaluation to support:
Updated validation so uploaded files are treated as non-empty responses.
Improved response hydration for file/media attachment answers.
Updated the FHIR adapter to map:
valueAttachmentAdded expanded test coverage for condition behavior and adapter conversion.
How to Test
filefield.openchoicefield.Breaking Changes
No breaking changes.