From 70b13bf828fe5a25d6a2d92c02d3a1de8f70a3d6 Mon Sep 17 00:00:00 2001 From: Matt Garber Date: Fri, 12 Jul 2024 08:14:04 -0400 Subject: [PATCH 1/2] Address dependabot errors from demo server --- flask_app.py | 4 +++- requirements_flask_app.txt | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/flask_app.py b/flask_app.py index 6c06218e6..a9815830c 100644 --- a/flask_app.py +++ b/flask_app.py @@ -10,7 +10,9 @@ # app setup smart_defaults = { 'app_id': 'my_web_app', - 'api_base': 'https://sb-fhir-stu3.smarthealthit.org/smartstu3/data', + # TODO: CapabilityStatement.rest.resource.search.param needs to provide + # a required value type - config issue on our end for now + 'api_base': 'https://r4.smarthealthit.org/', 'redirect_uri': 'http://localhost:8000/fhir-app/', } diff --git a/requirements_flask_app.txt b/requirements_flask_app.txt index 008204a8f..91c6a41fc 100644 --- a/requirements_flask_app.txt +++ b/requirements_flask_app.txt @@ -1,8 +1,8 @@ -Beaker==1.10.0 -Flask==0.10.1 -Jinja2==2.11.3 -MarkupSafe==0.23 -Werkzeug==0.14.1 -isodate==0.5.1 -itsdangerous==0.24 -requests==2.7.0 +Beaker>=1.13.0 +Flask>=2.3.2 +Jinja2>=3.1.2 +MarkupSafe>=2.1.1 +Werkzeug>=2.3.3 +isodate>=0.6.1 +itsdangerous>=2.1.2 +requests>=2.22.0 From fbbd02998cba294d589ec4a10ef828ee2000b63c Mon Sep 17 00:00:00 2001 From: Matt Garber Date: Tue, 16 Jul 2024 11:26:56 -0400 Subject: [PATCH 2/2] clarified state of r4.smarthealthit.org --- flask_app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flask_app.py b/flask_app.py index a9815830c..d8bf54e81 100644 --- a/flask_app.py +++ b/flask_app.py @@ -10,8 +10,12 @@ # app setup smart_defaults = { 'app_id': 'my_web_app', - # TODO: CapabilityStatement.rest.resource.search.param needs to provide - # a required value type - config issue on our end for now + # The CapabilityStatement being returned from the new test server, + # r4.smarthealthit.org, is currently missing a required field in the + # description of one of the search params. So you may see a + # 'Non-optional property "type"' error message when running this with + # the default config. We'll remove this message once that has been + # fixed and tested. 'api_base': 'https://r4.smarthealthit.org/', 'redirect_uri': 'http://localhost:8000/fhir-app/', }