Skip to content

Commit

Permalink
lforms editor update
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpos committed Sep 19, 2024
1 parent 74819b9 commit f3a49e5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

> **Note:** The dates included here are the dates of the commits that were made to the repository. The actual release dates may be different.
## 19 September 2024 (dev)
* Update the CSIRO renderer to v0.40.1

## 18 September 2024 (dev)
* Update the CSIRO renderer to v0.40.0
* Enhance the POC $extract Questionnaire tester based on initial testing
Expand Down
2 changes: 1 addition & 1 deletion components/QuestionnaireExtractTest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default class QuestionnaireExtractTest extends Vue {
this.extractingInProgress = false;
}
@Watch('questionnaireResponse', { immediate: false, deep: true })
@Watch('questionnaireResponse', { immediate: true, deep: false })
async onQuestionnaireResponseChanged() {
console.log("QR changed");
}
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@aehrc/sdc-populate": "^2.3.1",
"@aehrc/smart-forms-renderer": "^0.40.0",
"@aehrc/smart-forms-renderer": "^0.40.1",
"@nuxtjs/applicationinsights": "^1.2.2",
"@types/ace": "^0.0.52",
"@types/fhir": "^0.0.41",
Expand Down
6 changes: 4 additions & 2 deletions pages/Questionnaire/tester.vue
Original file line number Diff line number Diff line change
Expand Up @@ -926,9 +926,11 @@ export default Vue.extend({
},
async processUpdatedQuestionnaireResponse(value: fhir4b.QuestionnaireResponse) {
if (this.questionnaireResponseJsonEditor) {
this.questionnaireResponse = value;
const jsonValue = JSON.stringify(value, null, 2);
this.questionnaireResponse = JSON.parse(jsonValue);
// console.log("Updated QuestionnaireResponse: ", this.questionnaireResponse);
this.questionnaireResponseJsonEditor.setValue(
JSON.stringify(this.questionnaireResponse, null, 2)
jsonValue
);
this.questionnaireResponseJsonEditor.clearSelection();
this.selectTab(10);
Expand Down

0 comments on commit f3a49e5

Please sign in to comment.