From acb7eb70187bd484045f70730a654dab7d1e8206 Mon Sep 17 00:00:00 2001 From: Liu Date: Thu, 16 Jun 2022 16:02:50 -0400 Subject: [PATCH 1/2] update next question url --- databaseData/db.json | 74 ++++++++++++++++++- .../QuestionnaireForm/QuestionnaireForm.jsx | 2 +- 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/databaseData/db.json b/databaseData/db.json index c228d7d5..8969b1a6 100644 --- a/databaseData/db.json +++ b/databaseData/db.json @@ -1,6 +1,72 @@ - { - "clients": [], - "logs": [], - "count": 0 + "clients": [ + { + "name": "http://localhost:8080/test-ehr/r4", + "client": "app-login", + "id": 0 + } + ], + "logs": [ + { + "status": "launching", + "launchContextId": "6da58792-df58-419a-a522-647f46fee778", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 1 + }, + { + "status": "launching", + "launchContextId": "26703a29-6181-40a2-8f6f-ba004ea21da7", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 2 + }, + { + "status": "launching", + "launchContextId": "1cddf791-f540-4233-af99-8b19ac68c39b", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 3 + }, + { + "status": "launching", + "launchContextId": "ddbcc729-f4bd-4f3e-bb68-6fdbc204f080", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 4 + }, + { + "status": "launching", + "launchContextId": "bc22401a-6f87-4de4-b453-d20e8906ae61", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 5 + }, + { + "status": "launching", + "launchContextId": "d13b390d-2221-496a-a7b3-eca5e239601d", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 6 + }, + { + "status": "launching", + "launchContextId": "9db397dd-d0fd-4489-b855-ce0410656102", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 7 + }, + { + "status": "launching", + "launchContextId": "a258f7b6-72bf-4a38-94db-197488506700", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 8 + }, + { + "status": "launching", + "launchContextId": "8ebc32fc-b63e-4e6a-979a-d17fcb739c3e", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 9 + }, + { + "status": "launching", + "launchContextId": "8ebc32fc-b63e-4e6a-979a-d17fcb739c3e", + "serviceUri": "http://localhost:8080/test-ehr/r4", + "id": 10 + } + ], + "count": 11 } \ No newline at end of file diff --git a/src/components/QuestionnaireForm/QuestionnaireForm.jsx b/src/components/QuestionnaireForm/QuestionnaireForm.jsx index 3c0afdb7..0e6c5f52 100644 --- a/src/components/QuestionnaireForm/QuestionnaireForm.jsx +++ b/src/components/QuestionnaireForm/QuestionnaireForm.jsx @@ -195,7 +195,7 @@ export default class QuestionnaireForm extends Component { // retrieve next sets of questions loadNextQuestions() { - const url = this.props.FILE_PATH + "Questionnaire/$next-question"; + const url = this.props.FILE_PATH + "fhir" + "/" + this.fhirVersion + "/" + "Questionnaire/$next-question"; const currentQuestionnaireResponse = window.LForms.Util.getFormFHIRData('QuestionnaireResponse', this.fhirVersion, "#formContainer");; //const mergedResponse = this.mergeResponseForSameLinkId(currentQuestionnaireResponse); From c7c57261cda272eaa090f8f0ee185eb58ce10e7c Mon Sep 17 00:00:00 2001 From: Liu Date: Fri, 17 Jun 2022 15:19:15 -0400 Subject: [PATCH 2/2] revert --- databaseData/db.json | 73 ++------------------------------------------ 1 file changed, 3 insertions(+), 70 deletions(-) diff --git a/databaseData/db.json b/databaseData/db.json index 8969b1a6..b6c7d2dc 100644 --- a/databaseData/db.json +++ b/databaseData/db.json @@ -1,72 +1,5 @@ { - "clients": [ - { - "name": "http://localhost:8080/test-ehr/r4", - "client": "app-login", - "id": 0 - } - ], - "logs": [ - { - "status": "launching", - "launchContextId": "6da58792-df58-419a-a522-647f46fee778", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 1 - }, - { - "status": "launching", - "launchContextId": "26703a29-6181-40a2-8f6f-ba004ea21da7", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 2 - }, - { - "status": "launching", - "launchContextId": "1cddf791-f540-4233-af99-8b19ac68c39b", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 3 - }, - { - "status": "launching", - "launchContextId": "ddbcc729-f4bd-4f3e-bb68-6fdbc204f080", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 4 - }, - { - "status": "launching", - "launchContextId": "bc22401a-6f87-4de4-b453-d20e8906ae61", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 5 - }, - { - "status": "launching", - "launchContextId": "d13b390d-2221-496a-a7b3-eca5e239601d", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 6 - }, - { - "status": "launching", - "launchContextId": "9db397dd-d0fd-4489-b855-ce0410656102", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 7 - }, - { - "status": "launching", - "launchContextId": "a258f7b6-72bf-4a38-94db-197488506700", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 8 - }, - { - "status": "launching", - "launchContextId": "8ebc32fc-b63e-4e6a-979a-d17fcb739c3e", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 9 - }, - { - "status": "launching", - "launchContextId": "8ebc32fc-b63e-4e6a-979a-d17fcb739c3e", - "serviceUri": "http://localhost:8080/test-ehr/r4", - "id": 10 - } - ], - "count": 11 + "clients": [], + "logs": [], + "count": 0 } \ No newline at end of file