Changelog
1.5.3
Patch Changes
d349307f: Support reading questionnaire response data into CQF statements
d349307f: Added support for
http://hl7.org/fhir/StructureDefinition/cqf-calculatedValueitem extensions. This will allow for calculated values to be displayed as answers in the rendered form.JSON{ "linkId": "0", "text": "BMI Calculation", "type": "group", "item": [ { "linkId": "0.1", "text": "Weight", "type": "quantity" }, { "linkId": "0.2", "text": "Height", "type": "quantity" }, { "linkId": "0.3", "text": "BMI", "type": "integer", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption", "valueCoding": { "display": "BMI" } }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue", "valueExpression": { "language": "text/fhirpath", "expression": "((QuestionnaireResponse.item.where(linkId='0').item.where(linkId='0.1').answer[0].valueQuantity/QuestionnaireResponse.item.where(linkId='0').item.where(linkId='0.2').answer[0].valueQuantity/QuestionnaireResponse.item.where(linkId='0').item.where(linkId='0.2').answer[0].valueQuantity) * 10000).round(0)" } } ] } ] }
1.5.2
Patch Changes
- 2f7b7747: Fixed Implant Scanner mobile connection
1.5.1
Patch Changes
- 4b831f1c: Custom Spine
choicecomponent will no longer trigger autoSave unintentionally on load. - fad7fbaf: New configuration option
hideStatusModalwill prevent the final submit modal from displaying. - c3f1e669: Input field text is now visible when viewed in light mode.
- ab9c170a: ConsentWorkflowPlugin will no longer attempt to run its workflow when the Engine is
initializing. This should prevent the plugin from overwritting answers when a QuestionnaireResponse is provided.
1.5.0
Minor Changes
- d819305e: Skipping version 1.4.x due to NPM registry problems. This is to notify that expected 1.4.x changes will now be in 1.5.x.
Patch Changes
- d819305e: Update internal
/Questionnaire/datasharingconsentresource. - d819305e: Fix the initial
RendererConfig.themenot applying in some cases.
1.4.1
Patch Changes
9b105f8e: Required "*" symbol will now appear inline with its label text.
9b105f8e: Consent questionnaire formatting improvements.
9b105f8e: Summary component now supports question linking and applying general categories with two new extensions.
Summary Category: 'https://visiontree.com/fhir/form-controls/summary-category', Summary Link: 'https://visiontree.com/fhir/form-controls/summary-link',8441bf19: Render the 'clinical' layout type as the default if a layout configuration is not provided.
Updated dependencies [3caf79c1]
- @visiontree/vue-ui@1.11.0
1.4.0
Minor Changes
adb21bb5: Consent v2.5 and its required resources are now available. To enable this workflow you must also provide the FhirEngine with the exported
useConsentWorkflowPluginto properly enable non-FHIR based features.tsimport { FhirEngine, DataSharingConsent, useConsentWorkflowPlugin, } from '@visiontree/mfx-auto-renderer' const engine = new FhirEngine({ config: { autoSave: true, fhirResources: [ DataSharingConsent, // ... other resources ], }, plugins: [ useConsentWorkflowPlugin(), // ... other plugins ], })6900dc87: Implement Duration tracking for forms and questions. 3 new extensions made available to users.
Questionnaire Extension:
https://visiontree.com/fhir/form-controls/duration- opts a questionnaire into tracking
Questionnaire Response Extensions:
https://visiontree.com/fhir/form-controls/questionnaire-response-duration- contains the Duration of the initial creation and completion timeshttps://visiontree.com/fhir/form-controls/questionnaire-response-item-duration- contains the Duration of the focusin and focusout times of each question (can contain multiple Durations)
ts{ url: 'https://visiontree.com/fhir/form-controls/questionnaire-response-item-duration', valueDuration: { value: 12212351234552, unit: 'ms', system: 'http://unitsofmeasure.org', code: 'focusin' }, }, { url: 'https://visiontree.com/fhir/form-controls/questionnaire-response-item-duration', valueDuration: { value: 12212351235552, unit: 'ms', system: 'http://unitsofmeasure.org', code: 'focusout' }, }
Patch Changes
- adb21bb5: Groups will now display their "text" property if nested.
- c9edf56e: Update FHIR model, print view
1.3.8
Patch Changes
- c244ae0f: Support markdown extension translations
- 169c68c1: Support enableBehavior
anyorallon QuestionnaireItems - Updated dependencies [60379d17]
- @visiontree/fhir-validator@1.0.1
1.3.7
Patch Changes
f5e7d07c: Internal values for questions of type
choicewill be unique based onvalueCoding.code+valueCoding.displaycombination. This will allow multiple questions with the samecodeto be answered and solves this case:json{ "valueCoding": { "code": "T81.2", "display": "Gefäßverletzung", "system": "http://fhir.de/CodeSystem/dimdi/icd-10-gm" } }, { "valueCoding": { "code": "T81.2", "display": "Viszerale Verletzung", "system": "http://fhir.de/CodeSystem/dimdi/icd-10-gm" } },
1.3.6
Patch Changes
bd5c070d: Question types
decimalwill now set a default step of0.01if none is provided.8482cce3: Empty string are now removed from the generated QuestionnaireResponse
1.3.5
Patch Changes
3ae95701: Consent v1 theme will correctly match the current settings
e5698be6: Consent v1 will no longer default to 'de-DE' language
1f4b2b26: enableWhen conditions that reference a choice value now take into account repeating values (checkboxes)
The following example will now work as expected when there are multiple selected values for the question
dwg_base_diagnosis_localization_of_pathology:json"enableWhen": [ { "answerCoding": { "code": "dwg_base_localization_of_pathology::dwg_localization_of_pathology_c1", "system": "http://mint.medical.fhir/code-system/dwgbasicdatasetv32_1" }, "operator": "=", "question": "dwg_base_diagnosis_localization_of_pathology" } ],
1.3.4
Patch Changes
- dd41c7ea: Revert - a6e92765: Extend
choiceandopen-choicequestions to include new properties (system,version,userSelected) for FHIR standards - 129f549e: Fix choice questions reporting missing answerOptions incorrectly
- 129f549e: Remove expression calculations from consent v1 data model
- 129f549e: Add missing english translation to packaged consent_v1 data model
1.3.3
Patch Changes
e64e22fc: Format time in summary card
e64e22fc: Support better display of repeating types in summary cards
8cf2af22: Modify fhir-expression format to require quotes around all non expressions
Example:
tsexpression: "'My name is: ' & Patient.name.text"64034651: Consent V1 print css improvements
8cf2af22: Support calculating in fhir-expressions
e64e22fc:
choiceandbooleantypes can now be used in repeating groups without interferringa6e92765: Extend
choiceandopen-choicequestions to include new properties (system,version,userSelected) for FHIR standards
1.3.2
Patch Changes
- 110d2152: Fix FHIR validation errors and a few changes
1.3.1
Patch Changes
ecbab58f: Fix implant field not rendering properly
4ecadf38: Consent Questionnaires are loaded in a custom view
5d5bda96: Updated
consentV1export to support FHIR standard Media resources for images2208be2a: Support translating inside
rendering-xhtmlextensionExample
tsextension: [ { url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml', valueString: "<div class='flex flex-col justify-center items-center gap-4'>Hi</div>", _valueString: { extension: [ { extension: [ { url: 'lang', valueCode: 'de-DE', }, { url: 'content', valueString: "<div class='flex flex-col justify-center items-center gap-4'>Hallo</div>", }, ], url: 'http://hl7.org/fhir/StructureDefinition/translation', }, ], }, }, ],e40efede: Support
maxLengthproperty fortextorstringquestionsd47b26ee: Support
cqf-expressionextensionExample:
ts{ url: 'http://hl7.org/fhir/StructureDefinition/cqf-expression', valueExpression: { language: 'text/fhirpath', expression: 'Patient Name is: Patient.name.text', }, },5f4326fe: Questionnaire titles translate
1c4b80fe: Consolidate internal components
82d491c7: Support
optionExclusiveextension for repeatingchoicequestionsExample:
ts{ type: 'choice', repeats: true, answerOption: [ { valueCoding: { code: 'choice-1', display: '1st Choice', }, extension: [ { url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive', valueBoolean: true, }, ], }, { valueCoding: { code: 'choice-2', display: '2nd Choice', }, }, ] }4e502508: Support
rendering-markdownextensionExample:
ts{ type: 'display', _text: { extension: [ { url: 'http://hl7.org/fhir/StructureDefinition/rendering-markdown', valueMarkdown: 'This is test *markdown*', }, ], }, ... }2208be2a: Support images inside of tooltips with the
rendering-xhtmlextensionExample:
ts{ type: 'display', text: 'Test is a tooltip', _text: { extension: [ { url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml', valueString: "<img src='#image1' alt='demo' />", _valueString: { extension: [ { url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-referencesContained', valueReference: { reference: '#image1', }, }, ], }, }, ], }, extension: [ { url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl', valueCodeableConcept: { coding: [ { code: 'help', display: 'Help-Button', system: 'http://hl7.org/fhir/questionnaire-item-control', }, ], }, }, ], },ecbab58f: Implant display in summary improved
ae1d1079: Consent V1 custom styles integrated within the auto-renderer
4e502508: Add styles for markdown rendered in tooltips
d47b26ee: Support passing other FHIR Resources besides Questionnaires and QuestionnaireResponses in when creating app
Example:
tsconst engineConfig: EngineConfig = { logLevel: 'info', autoSave: true, fhirResources: [ questionnaire { id: '1', resourceType: 'Patient', name: [ { text: 'John Doe', }, ], } ], }Updated dependencies [03518921]
Updated dependencies [03518921]
Updated dependencies [03518921]
Updated dependencies [03518921]
- @visiontree/vue-ui@1.10.0
1.3.0
Minor Changes
fc666390: Corrected FHIR implementation for
containedimages inQuestionnaires. Contained images should now be made up ofMediaResources.Example:
tscontained: [ { resourceType: 'Media', id: 'image1', status: 'in-progress', content: { contentType: 'image/png', data: 'REPLACE WITH BASE64 ENCODING', }, }, ],d96495d7: Added SOP layout. Enable with the following:
jsonrendererConfig: { layout: { type: LayoutType.sop, }, },c353a7a1: Validation messages with german translations
Patch Changes
dd109ae9: Translate boolean inputs
11e8f275: Support
type: 'open-choice'question type3ae8d356: Internal rework
c353a7a1: Fix reacitivy leaking into non-intended Form fields.
11e8f275: Support the
dropdownvariant ofitemControlextension foropen-choiceandchoicequestion typestsextension: [ { url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl', valueCodeableConcept: { text: 'Dropdown', coding: [ { code: 'dropdown', display: 'Dropdown', system: 'http://hl7.org/fhir/questionnaire-item-control', }, ], }, }, ... ],36126127: Full support for
type: 'text'for textareas Refactortype: 'string'for text inputs with better A11y accessibilityf4ef590d: Translation selection displays correct language on select
d96495d7: Deprecate
progressBarandsplitSectionslayout setting. Useviewinstead.tsview?: 'full' | 'sections' | 'sop'b1221f28: Prevent input from Firefox and Safari browsers when entering non-numeric values into number fields
72acb3e5: Summary card displays local timezone for dates
c353a7a1: Dependency cleanup
216825d5: Date, DateTime, and Time inputs display in locale format while handling logic and saving responses in fhir standard format
5aa066c9: Internal rework
2c5377fa: Calculated choices correctly return an empty array when the QuestionnaireItem has no answerOptions
1.2.5
Patch Changes
- 8b578a55: Display items will correctly render its original text when required
- e99f4e2c: Supports dateTime questions
typewith full accessibility - 8b578a55: Display items will now produce a valid summary
- 8b578a55: Generated QuestionnaireResponse will now be logged in debug mode
- 5667b7c4: Normalize unknown date strings - fixes de date formats
1.2.4
Patch Changes
c18cd6d3: Implant fields match based on linkId pattern
4abbcc3a: Summary panel displays date in correct locale format
964089b1:
VItem.validate()correctly ignore disabled questions964089b1:
VForm.validate()validates the entire form instead of stopping on first failure964089b1: On validation the UI with correctly scroll to the first section with an invalid item
0006ef65: Summary panel values that are disabled via enableWhen are no longer shown
964089b1: Fix implant headers language translations
2f2c65a9: Step extension for decimal input fields
Example:
json{ "type": "decimal", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue", "valueDecimal": 0.1 } ] }97204de3: Modals no longer cut off on Safari browser
974c48e0: Can set sliders to minimum value from initial state
2f2c65a9: Number input fields respect min and max extensions
ddaba5a3: MfxNumericStepper accepts undefined values
97204de3: Implant plugin includes ability to modify existing fields or add a new empty implant for manual entry
5bc11849: Clearing dates removes date from summary panel
Updated dependencies [84a5822e]
- @visiontree/vue-ui@1.9.1
1.2.3
Patch Changes
- cc7b0036: FhirEngine
refreshfunction reflects internal state in UI - 54277816: Time picker only takes in valid times
- 7d634947: Fix missing computed value in Spine component
1.2.2
Patch Changes
- c65f6111: Correctly loop through repeating group values in the summary panel
- e9927107: Clean up info log with package version
- c12c4c61: Required questions must be filled out before proceeding
- 69de3ba0: Submission modal closable
- 1b5fc87f: Date field only defaults to current date when required
- 183204a5: Section complete indicator can be toggled
- c65f6111: Spine component correctly displays its repeating answers
- 6bf1d19a: Date input fields now format to locale
- 206f12f3: Default section titles
- 5fd147c4: Repeating groups will only show the "add item" button on the last index
- 6bf1d19a: Date response value formats to FHIR standards
- 5fd147c4: Reapting groups can only add an item if it is currently valid
- 1b5fc87f: Resolve error when clearing date field
- 603d1817: Scanned implants appear in implant table
- 9939c032: Tooltips render properly
- c65f6111: Fixes grouped items applying a QuestionnaireResponse with repeating values
- be0c17dc: Modals close properly
1.2.1
Patch Changes
- 9f0cadb7: Resolve issue with warning reguarding mounting instance of DatePicker
- a517b079: Better letter spacing for text
- 7d158c71: Fix crash when omitting rendererConfig
- d1d74ed1: Groups will correctly hide child QuestionnaireItems that are not enabled.
- 3e594421: Calendar no longer changes height when switching between months
- 107f5f6a: Better accessibility for icons
- c7835a0f: Resolve issue with light mode toggling back to dark when interacting with the questionnaire
- 0a7a1a4f: Summary card text wraps
- bf6aca03: Repeating sections now insert appropriately
- 9ab6548c: UI / UX Improvements for DWG pilot phase.
- 9ab6548c: Summary panel will now correctly be hidden on tablet or mobile devices.
- 23c89b38: Log package and version as
infoon startup
1.2.0
Minor Changes
4bc9bed3: "display" type Questionnaire items support rendering text as markdown.
Example:
json{ "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "Help-Button", "coding": [ { "code": "help", "display": "Help-Button", "system": "http://hl7.org/fhir/questionnaire-item-control" } ] } } ], "linkId": "help_test", "text": "Test is a test *markdown* tooltip", "type": "display" }a80ac309: Refactor the implementation of the tooltips to improve accessibility.
b545660b: Refactor the implementation of the number input QuestionnaireItem type to improve accessibility.
a0d5d9ea: Deprecated
BaseLayoutandRendererLayoutin favor ofLayouttsinterface Layout { type?: LayoutTypes splitSections?: boolean | undefined progressBar?: boolean | undefined toolbar?: { position?: 'left' | 'right' } | boolean | undefined summary?: boolean | undefined }e6b54dfc: Refactor the implementation of the modal to improve accessibility.
8b1050c5: Informative data tags. This will help to identify specific HTML elements that correspond to the root Questionnaire element, and rendered QuestionnaireItems.
tsdocument.querySelector('[data-questionnaire]') document.querySelector('[data-layout]') document.querySelector('[data-item-id]') document.querySelector('[data-item-type]') document.querySelector('[data-summary-item-id]') document.querySelector('[data-summary-item-type]')f14aa2ff: New custom rendering for consent forms (
"url": "http://visiontree.com/data-sharing-consent")Export default consent form as
consentV1.jsonExport utility functionisConsentFormtsimport { createMfxApp, consentV1, isConsentForm } from '@visiontree/mfx-auto-renderer' const app = createMfxApp({ engineConfig: { ... fhirResources: [consentV1], }, rendererConfig: { layout: { type: LayoutType.patient, ... }, }, plugins: [ { async onFormSave(formResponse) { console.log('qr', formResponse) if (isConsentForm(formResponse)) { console.log('Consent form saved') } }, }, ], })c9a543ce: Refactor the implementation of the theme toggle to improve accessibility.
Patch Changes
- 56232ab4: Reworking internal API
- b6caff36: Rework internal API
- c9df04f2: Fix incorrect QuestionnaireResponse being passed through onFormChange events.
- 47315110: Refactor MfxNumericStepper. Removed several unused props. A11y support for all buttons and input fields
- 54479647: Refactor internal API
- bfee8290: Required questions will be ignored if they are not enabled.
- ee3bc522: Provide better logging
- 441d5d84: Adjust internal prop names
- b5506e55: Update default date format in datepicker
- a0d5d9ea: Refactor select fields for better A11y support
- 6edf37ca: Refactor the implementation of the date QuestionnaireItem type to improve accessibility.
- ee3bc522: Engine exposes
activeFormfor getting the current form - 0ef70bac: Resolved issue with sliders preventing form from rendering
- 3ea72c63: Config UI now translates properly on initialization based on the
renderer.languageoption. - 3d423e24: Fix bug rendering only patient layout
- 977932d4: Datepicker no longer renders inline
- Updated dependencies [67ffac01]
- @visiontree/vue-ui@1.9.0
1.1.0
Minor Changes
- 7cd66943: Regex validation support for string and numberic based item types.
- 0228efa5: Adjusted all text to fit better conventions and A11y standards
- fab588b9: Add onReady callback support to plugins which allows plugins to be informed when the FhirEngine has completed the setup process.
- 7cd66943: Updated Spine component with optional disk selection choices
- bcb0f2d2: Introduced
VFormclass to improve answer handling and QuestionnaireResponse generation. - 10912e9e: Improved R4 FHIR utils and constants
- a8579d76: auto-renderer mounting now takes in stored question responses to update internal data
- bcb0f2d2: Implement full set of Questionnaire -> enableWhen -> operators.
- fab588b9: Add onFormChange callback support to plugins which allows plugins to be informed when a QuestionnaireResponse has changed.
- 7cd66943: New checklist layout that supports Digital OR workflows.
- 7cd66943: Add MfxSignature component for capturing signatures as an image
- 7cd66943: Add support for enableWhen expressions: https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-enableWhenExpression.html
- e474d848: Deprecated unused customLabels option in the rendererConfig. Replaced with working i18n option for passing translations into the package
- 7cd66943: New SOP layout that supports Digital OR workflows.
Patch Changes
- 078e566c: Refactored and redesigned the plugin form for Implants for improved usability and mobile responsiveness
- 7cd66943: Repeating choice questions now render correctly as a checkbox.
- 7cd66943: Add authored timestamp to generated QuestionnaireResponse.
- bcb0f2d2: Group types will now properly show the reapeat item button.
- e4e29a47: Remove dependency on mfx-tools
- dc255a7b: Reorganized Tailwind class names for improved readability and maintainability
- bcb0f2d2: Undefined values are now removed from the QuestionnaireResponse.
- bcb0f2d2: Long answerOptions labels will now properly line break.
- 7cd66943: Support language translations in item help tooltips.
- 669f0e3a: Remove dependency on @visiontree/mfx-components
- Updated dependencies [5699b02c]
- Updated dependencies [23104e7a]
- Updated dependencies [7cd66943]
- @visiontree/vue-ui@1.8.0
- @visiontree/mfx-themes@0.4.3
1.0.1
Patch Changes
- 85240dd5: Overloaded createMfxApp function that accepts plain configuration.
- f77ea50a: Repeating choice questions now render correctly as a checkbox
- d1538a66: Add authored timestamp to generated QuestionnaireResponse
- 7377c08b: Add support for tooltip language translations
- d1538a66: Fix answerOption language translations
0.6.0
Minor Changes
51376894: Builds JSON schema off of config types for providing config metadata when building UI.
Exposes
getTranslatedFieldsfunction for translating schema as fields
Patch Changes
- Updated dependencies [4d6e85e3]
- Updated dependencies [4d6e85e3]
- @visiontree/vue-ui@1.7.0
0.5.3
Patch Changes
- Updated dependencies [747ec085]
- Updated dependencies [cc02fb2e]
- Updated dependencies [cc02fb2e]
- Updated dependencies [747ec085]
- Updated dependencies [cc02fb2e]
- Updated dependencies [747ec085]
- Updated dependencies [cc02fb2e]
- @visiontree/vue-ui@1.6.0
0.5.2
Patch Changes
- Updated dependencies [0fdd4667]
- Updated dependencies [9054ced3]
- Updated dependencies [0fdd4667]
- Updated dependencies [d432fad7]
- Updated dependencies [8ab75931]
- @visiontree/vue-ui@1.5.0
0.5.1
Patch Changes
- Updated dependencies [0774447a]
- Updated dependencies [0774447a]
- Updated dependencies [0774447a]
- @visiontree/vue-ui@1.4.0
0.5.0
Minor Changes
- adf98171: Included TS definitions in package distribution for improved type safety
- 6f48010d: Added XHTML rendering support for display types
Patch Changes
- 8518b057: Upgrade TypeScript to ^5.1.3
- Updated dependencies [53009003]
- Updated dependencies [adf98171]
- Updated dependencies [893ddf28]
- Updated dependencies [ed8d1da5]
- Updated dependencies [8518b057]
- Updated dependencies [893ddf28]
- Updated dependencies [c7bcd45c]
- Updated dependencies [6d574345]
- Updated dependencies [da9126a2]
- @visiontree/vue-ui@1.3.0
- @visiontree/mfx-components@0.5.0
- @visiontree/mfx-tools@0.4.3
0.2.1
Patch Changes
- Updated dependencies
- @visiontree/mfx-components@0.2.1
- @visiontree/mfx-resources@0.2.1
- @visiontree/mfx-tools@0.2.1
0.2.0
Minor Changes
- 6e10e33: Added support for FHIR repeats property
Patch Changes
- Updated dependencies [6e10e33]
- @visiontree/mfx-components@0.2.0
- @visiontree/mfx-tools@0.2.0
- @visiontree/mfx-resources@0.2.0
0.1.0
Patch Changes
- 914a0e6: Added clinical layout unit test
- Updated dependencies [cdd884a]
- Updated dependencies [cb6e808]
- @visiontree/mfx-components@0.1.0
- @visiontree/mfx-tools@0.1.0