General remarks:
First release of the FhirQuestionnaireOnSwiftUI
package to display HL7 FHIR R5 Questionnaire resources in SwiftUI, collect answers, store them encrypted in a database and create exports based on HL7 FHIR R5 QuestionnaireResponse resources.
Features:
- Read HL7 FHIR R5 Questionnaire resources in JSON format
- Transform HL7 FHIR R5 Questionnaire resources into SwiftUI based user-interface
- Supported
Questionnaire.item.type
aregroup
,display
,string
,text
,integer
,decimal
,boolean
,date
,time
,dateTime
,coding
- Supports
Questionnaire.item.repeats
andQuestionnaire.item.required
- Enables displaying questions based on
Questionnaire.item.enableWhen
,Questionnaire.item.enableBehavior
and answers collected by the user-interface - Allows to cancel questionnaires before full completion based on
Questionnaire.extension.cancel-group
and answers collected by the user-interface
- Supported
- Store answers to questionnaire as encrypted values in CoreData, using a key for encryption and decryption stored in Keychain
- Create exports of given answers as HL7 FHIR R5 QuestionnaireResponse resources
- Provides supported HL7 FHIR R5 Questionnaire and QuestionnaireResponse resource profiles
Example:
An example showing how to use this package with the supported features can be found in the README.