2 pass validation

PH - enhancements - feedback from PH project and JG
This commit is contained in:
Joshua Hare 2025-08-01 11:00:48 +10:00
parent d38e29160c
commit 8e7a272ee7
16 changed files with 2307 additions and 129 deletions

View File

@ -16,7 +16,7 @@ services:
- FLASK_APP=app.py
- FLASK_ENV=development
- NODE_PATH=/usr/lib/node_modules
- APP_MODE=lite
- APP_MODE=standalone
- APP_BASE_URL=http://localhost:5000
- HAPI_FHIR_URL=http://localhost:8080/fhir
- HAPI_FHIR_URL=http://localhost:8080/fhir
command: supervisord -c /etc/supervisord.conf

View File

@ -0,0 +1,42 @@
{
"package_name": "example.fhir.ph.core.r4",
"version": "0.1.0",
"dependency_mode": "recursive",
"imported_dependencies": [
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
},
{
"name": "hl7.terminology.r4",
"version": "6.4.0"
},
{
"name": "hl7.fhir.uv.extensions.r4",
"version": "5.2.0"
},
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
},
{
"name": "hl7.fhir.uv.extensions.r4",
"version": "5.2.0"
},
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
},
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
},
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
}
],
"complies_with_profiles": [],
"imposed_profiles": [],
"timestamp": "2025-08-01T00:48:13.000931+00:00"
}

View File

@ -5,5 +5,5 @@
"imported_dependencies": [],
"complies_with_profiles": [],
"imposed_profiles": [],
"timestamp": "2025-05-04T12:29:16.477868+00:00"
"timestamp": "2025-08-01T00:48:12.995792+00:00"
}

View File

@ -10,5 +10,5 @@
],
"complies_with_profiles": [],
"imposed_profiles": [],
"timestamp": "2025-05-04T12:29:17.363719+00:00"
"timestamp": "2025-08-01T00:48:12.196313+00:00"
}

View File

@ -0,0 +1,22 @@
{
"package_name": "hl7.terminology.r4",
"version": "6.4.0",
"dependency_mode": "recursive",
"imported_dependencies": [
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
},
{
"name": "hl7.fhir.uv.extensions.r4",
"version": "5.2.0"
},
{
"name": "hl7.fhir.r4.core",
"version": "4.0.1"
}
],
"complies_with_profiles": [],
"imposed_profiles": [],
"timestamp": "2025-08-01T00:48:11.281867+00:00"
}

Binary file not shown.

View File

@ -0,0 +1,740 @@
2025-08-01 00:44:39,706 - __main__ - INFO - --- File logging initialized to /app/instance/fhirflare_debug.log (Level: DEBUG) ---
2025-08-01 00:44:39,707 - __main__ - INFO - Application running in mode: standalone
2025-08-01 00:44:39,708 - __main__ - DEBUG - Instance path configuration: /app/instance
2025-08-01 00:44:39,709 - __main__ - DEBUG - Database URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,710 - __main__ - DEBUG - Packages path: /app/instance/fhir_packages
2025-08-01 00:44:39,724 - __main__ - DEBUG - Flask instance folder path: /app/instance
2025-08-01 00:44:39,731 - __main__ - DEBUG - Directories created/verified: Instance: /app/instance, Packages: /app/instance/fhir_packages
2025-08-01 00:44:39,759 - __main__ - DEBUG - Attempting to create database tables for URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,797 - __main__ - INFO - Database tables created/verified successfully.
2025-08-01 00:44:39,804 - __main__ - DEBUG - Instance path configuration: /app/instance
2025-08-01 00:44:39,806 - __main__ - DEBUG - Database URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,807 - __main__ - DEBUG - Packages path: /app/instance/fhir_packages
2025-08-01 00:44:39,808 - __main__ - DEBUG - Flask instance folder path: /app/instance
2025-08-01 00:44:39,811 - __main__ - DEBUG - Directories created/verified: Instance: /app/instance, Packages: /app/instance/fhir_packages
2025-08-01 00:44:39,812 - __main__ - DEBUG - Attempting to create database tables for URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,822 - __main__ - INFO - Database tables created successfully (if they didn't exist).
2025-08-01 00:44:39,825 - werkzeug - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://172.18.0.2:5000
2025-08-01 00:44:39,826 - werkzeug - INFO - Press CTRL+C to quit
2025-08-01 00:45:00,413 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET / HTTP/1.1" 200 -
2025-08-01 00:45:00,466 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/FHIRFLARE.png HTTP/1.1" 200 -
2025-08-01 00:45:00,481 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:45:00,493 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:45:00,539 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:45:01,469 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:01] "GET /static/favicon.ico HTTP/1.1" 200 -
2025-08-01 00:45:06,325 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:45:06,344 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:45:06,348 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:45:06,349 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:18,005 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:47:18,023 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:18,026 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:18,030 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:18,034 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:47:27,948 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:47:27,969 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:27,970 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:27,972 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:43,826 - services - INFO - Starting manual import for /tmp/tmpo2f3s9g5/example.fhir.ph.core.r4-0.1.0.tgz (mode=recursive, resolve_deps=True)
2025-08-01 00:47:43,827 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:43,831 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:43,841 - services - DEBUG - Parsed '/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4-0.1.0.tgz' -> name='/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:43,842 - services - INFO - Manually processing package: example.fhir.ph.core.r4-0.1.0.tgz (/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4#0.1.0)
2025-08-01 00:47:43,843 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:43,844 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:43,845 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:43,848 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:43,850 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:43,852 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:43,853 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:44,379 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:44,388 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:44,389 - services - INFO - Processing dependency hl7.terminology.r4#6.4.0
2025-08-01 00:47:44,390 - services - INFO - Starting manual import for hl7.terminology.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:44,391 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:44,393 - services - INFO - Attempting manual download of hl7.terminology.r4#6.4.0
2025-08-01 00:47:44,398 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): packages.fhir.org:443
2025-08-01 00:47:46,170 - urllib3.connectionpool - DEBUG - https://packages.fhir.org:443 "GET /hl7.terminology.r4/6.4.0 HTTP/1.1" 200 5053901
2025-08-01 00:47:49,116 - services - INFO - Manually downloaded hl7.terminology.r4#6.4.0 to /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz
2025-08-01 00:47:49,118 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz' -> name='/app/instance/fhir.packages/hl7.terminology.r4', version='6.4.0'
2025-08-01 00:47:49,119 - services - INFO - Manually processing package: hl7.terminology.r4-6.4.0.tgz (/app/instance/fhir.packages/hl7.terminology.r4#6.4.0)
2025-08-01 00:47:49,132 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,133 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,133 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,135 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,136 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,138 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,138 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:49,396 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,401 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:49,401 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:49,402 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,402 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,403 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:49,404 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:49,406 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:49,406 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:49,461 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,462 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,462 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,464 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,465 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,466 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,466 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:49,731 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,735 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:49,736 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,740 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:49,740 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,741 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,741 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,743 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,745 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,746 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,747 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,011 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,014 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,015 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,018 - services - INFO - Saved metadata for hl7.terminology.r4#6.4.0 at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.metadata.json
2025-08-01 00:47:50,019 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,019 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,019 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,020 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,021 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:50,022 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:50,023 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:50,079 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,080 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,081 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,082 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,083 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,083 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,084 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,353 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,357 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,358 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,364 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:50,364 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,365 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,365 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,366 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,367 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,368 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,369 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,631 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,634 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,634 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,635 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,636 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,637 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,638 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:50,639 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:50,639 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:50,694 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,695 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,695 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,697 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,697 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,698 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,699 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,986 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,989 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,990 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,993 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:50,994 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,994 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,995 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,997 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,998 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,999 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,000 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,247 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,250 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,251 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,252 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:51,252 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,253 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,254 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:51,255 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,255 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,509 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,512 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,513 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,513 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:51,514 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,515 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,516 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:51,518 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,518 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,779 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,782 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,783 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,790 - services - INFO - Saved metadata for example.fhir.ph.core.r4#0.1.0 at /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.metadata.json
2025-08-01 00:47:51,792 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:51] "POST /manual-import-ig HTTP/1.1" 302 -
2025-08-01 00:47:51,808 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:47:51,811 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:51,819 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:47:51,846 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:47:51,863 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:52,313 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:52,375 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:47:52,384 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:47:52,387 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:47:52,391 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:47:52,627 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:47:52,920 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:47:53,250 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:47:53,250 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:47:53,251 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:47:53,269 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:47:53,299 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:53,301 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:53,304 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:47:53,307 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:55,256 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:47:55,270 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:55,272 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:55,275 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:09,986 - services - INFO - Starting manual import for /tmp/tmpa5kg6gav/example.fhir.ph.core.r4-0.1.0.tgz (mode=recursive, resolve_deps=True)
2025-08-01 00:48:09,987 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:09,989 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:09,995 - services - DEBUG - Parsed '/tmp/tmpa5kg6gav/example.fhir.ph.core.r4-0.1.0.tgz' -> name='/tmp/tmpa5kg6gav/example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:09,996 - services - INFO - Manually processing package: example.fhir.ph.core.r4-0.1.0.tgz (/tmp/tmpa5kg6gav/example.fhir.ph.core.r4#0.1.0)
2025-08-01 00:48:09,997 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:09,997 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:09,997 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:09,998 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,000 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,002 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,003 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,319 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,323 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:10,324 - services - INFO - Processing dependency hl7.terminology.r4#6.4.0
2025-08-01 00:48:10,324 - services - INFO - Starting manual import for hl7.terminology.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,324 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,325 - services - INFO - Attempting manual download of hl7.terminology.r4#6.4.0
2025-08-01 00:48:10,326 - services - INFO - Manual package hl7.terminology.r4#6.4.0 already exists at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz
2025-08-01 00:48:10,327 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz' -> name='/app/instance/fhir.packages/hl7.terminology.r4', version='6.4.0'
2025-08-01 00:48:10,328 - services - INFO - Manually processing package: hl7.terminology.r4-6.4.0.tgz (/app/instance/fhir.packages/hl7.terminology.r4#6.4.0)
2025-08-01 00:48:10,330 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,330 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,331 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,332 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,334 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,336 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,336 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,586 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,590 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:10,590 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:10,591 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,591 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,593 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:10,594 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:10,595 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:10,596 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:10,655 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,655 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,656 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,657 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,659 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,660 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,661 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,997 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,004 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,005 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,008 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:11,009 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,010 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,011 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,012 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,014 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,016 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,016 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,275 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,279 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,280 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,283 - services - INFO - Saved metadata for hl7.terminology.r4#6.4.0 at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.metadata.json
2025-08-01 00:48:11,284 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,285 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,285 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,287 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,288 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:11,289 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:11,289 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:11,344 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,345 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,345 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,346 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,347 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,348 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,349 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,601 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,605 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,605 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,609 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:11,610 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,610 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,611 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,613 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,614 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,615 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,616 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,867 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,871 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,871 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,872 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,872 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,874 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,875 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:11,876 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:11,877 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:11,932 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,932 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,933 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,935 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,936 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,937 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,937 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,191 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,194 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,194 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,198 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:12,199 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,200 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,201 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,202 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,203 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,205 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,205 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,451 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,456 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,456 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,457 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,457 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,458 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,459 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,460 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,461 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,720 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,723 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,724 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,724 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,725 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,726 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,727 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,728 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,728 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,994 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,997 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,998 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:13,003 - services - INFO - Saved metadata for example.fhir.ph.core.r4#0.1.0 at /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.metadata.json
2025-08-01 00:48:13,004 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:13] "POST /manual-import-ig HTTP/1.1" 302 -
2025-08-01 00:48:13,014 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:48:13,016 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:13,023 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:48:13,047 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:48:13,064 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:13,486 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:13,543 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:48:13,551 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:48:13,554 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:48:13,558 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:48:13,743 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:48:13,974 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:48:14,164 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:48:14,165 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:48:14,166 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:48:14,169 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:48:14,185 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:48:14,187 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:14,188 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:48:14,189 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:48:19,052 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:48:19,067 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:48:19,068 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:48:19,069 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:19,071 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:50:33,336 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:50:33,337 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:50:33,337 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:50:33,339 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:50:34,754 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:50:34,995 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:50:34,997 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:50:34] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:50:35,010 - services - DEBUG - Received validate-sample request
2025-08-01 00:50:35,011 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=13970
2025-08-01 00:50:35,012 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,014 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,017 - services - DEBUG - Validating Bundle against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:50:35,017 - services - DEBUG - Validating bundle against example.fhir.ph.core.r4#0.1.0, include_dependencies=True
2025-08-01 00:50:35,018 - services - DEBUG - Found 14 local references in the bundle.
2025-08-01 00:50:35,019 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,021 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient
2025-08-01 00:50:35,022 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,027 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,028 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient'
2025-08-01 00:50:35,039 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,040 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' at path: package/StructureDefinition-ph-core-patient.json
2025-08-01 00:50:35,042 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-patient.json
2025-08-01 00:50:35,043 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:50:35,046 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:50:35,048 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:50:35,050 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:50:35,052 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:50:35,054 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:50:35,055 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,057 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,059 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter
2025-08-01 00:50:35,060 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,065 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,066 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter'
2025-08-01 00:50:35,071 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,073 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' at path: package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:50:35,074 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:50:35,075 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:50:35,077 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:50:35,078 - services - DEBUG - Navigating FHIR path: Encounter.status, extension_url=None
2025-08-01 00:50:35,079 - services - DEBUG - Navigating FHIR path: Encounter.class, extension_url=None
2025-08-01 00:50:35,081 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,082 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,083 - services - DEBUG - No profile in resource, using base type as identifier: Condition
2025-08-01 00:50:35,084 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,088 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,090 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,106 - services - INFO - SD matching identifier 'Condition' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,108 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:50:35,112 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:50:35,113 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:50:35,116 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:50:35,117 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,182 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-Condition.json
2025-08-01 00:50:35,184 - services - DEBUG - Found SD at package/StructureDefinition-Condition.json
2025-08-01 00:50:35,185 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:50:35,186 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:50:35,187 - services - DEBUG - Navigating FHIR path: Condition.subject, extension_url=None
2025-08-01 00:50:35,188 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,190 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,192 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication
2025-08-01 00:50:35,192 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,196 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,197 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication'
2025-08-01 00:50:35,204 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,206 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' at path: package/StructureDefinition-ph-core-medication.json
2025-08-01 00:50:35,207 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-medication.json
2025-08-01 00:50:35,207 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:50:35,209 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:50:35,210 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,211 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,213 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation
2025-08-01 00:50:35,214 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,217 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,218 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation'
2025-08-01 00:50:35,224 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,225 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' at path: package/StructureDefinition-ph-core-observation.json
2025-08-01 00:50:35,226 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-observation.json
2025-08-01 00:50:35,227 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:50:35,228 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:50:35,229 - services - DEBUG - Navigating FHIR path: Observation.status, extension_url=None
2025-08-01 00:50:35,230 - services - DEBUG - Navigating FHIR path: Observation.code, extension_url=None
2025-08-01 00:50:35,231 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,232 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,233 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:50:35,234 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,237 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,238 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,250 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,252 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:50:35,255 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:50:35,256 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:50:35,259 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:50:35,259 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,710 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:50:35,711 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:50:35,712 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:50:35,713 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:50:35,713 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:50:35,714 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,715 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,716 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner
2025-08-01 00:50:35,716 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,719 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,719 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner'
2025-08-01 00:50:35,727 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,728 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' at path: package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:50:35,729 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:50:35,729 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:50:35,730 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:50:35,731 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,731 - services - DEBUG - Bundle validation result: valid=True, errors=0, warnings=0, resources=7
2025-08-01 00:50:35,732 - services - INFO - Validation result for Bundle against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,732 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:50:35] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:51:28,784 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:51:28,825 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:51:28,828 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:51:28,839 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:51:39,832 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:51:39,838 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:51:39,851 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:51:39,892 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:51:39,918 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:51:40,732 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:51:40,837 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:51:40,855 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:51:40,860 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:51:40,868 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:51:41,223 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:51:41,669 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:51:42,069 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:51:42,070 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:51:42,071 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:51:42,075 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:51:42,100 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:51:42,103 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:51:42,108 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:51:42,108 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:54:20,189 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:54:20,209 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:54:20,212 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:54:20,216 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:54:20,218 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:54:39,350 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:54:39,351 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:54:39,353 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:54:39,356 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:54:39,413 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:54:39,611 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:54:39,613 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:39] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:54:39,639 - services - DEBUG - Received validate-sample request
2025-08-01 00:54:39,641 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=13970
2025-08-01 00:54:39,643 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,647 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,650 - services - DEBUG - Validating Bundle against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:54:39,652 - services - DEBUG - Validating bundle against example.fhir.ph.core.r4#0.1.0, include_dependencies=True
2025-08-01 00:54:39,653 - services - DEBUG - Found 14 local references in the bundle.
2025-08-01 00:54:39,655 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,659 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient
2025-08-01 00:54:39,660 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,668 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,670 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient'
2025-08-01 00:54:39,688 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,689 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' at path: package/StructureDefinition-ph-core-patient.json
2025-08-01 00:54:39,692 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-patient.json
2025-08-01 00:54:39,693 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:54:39,695 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:54:39,697 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:54:39,700 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:54:39,702 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:54:39,705 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:54:39,708 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,710 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,714 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter
2025-08-01 00:54:39,715 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,724 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,725 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter'
2025-08-01 00:54:39,734 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,736 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' at path: package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:54:39,739 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:54:39,740 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:54:39,742 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:54:39,744 - services - DEBUG - Navigating FHIR path: Encounter.status, extension_url=None
2025-08-01 00:54:39,746 - services - DEBUG - Navigating FHIR path: Encounter.class, extension_url=None
2025-08-01 00:54:39,747 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,749 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,753 - services - DEBUG - No profile in resource, using base type as identifier: Condition
2025-08-01 00:54:39,755 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,764 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,766 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:39,791 - services - INFO - SD matching identifier 'Condition' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,794 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:54:39,799 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:54:39,803 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:54:39,808 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:54:39,810 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:39,902 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-Condition.json
2025-08-01 00:54:39,904 - services - DEBUG - Found SD at package/StructureDefinition-Condition.json
2025-08-01 00:54:39,905 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:54:39,907 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:54:39,908 - services - DEBUG - Navigating FHIR path: Condition.subject, extension_url=None
2025-08-01 00:54:39,910 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,911 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,914 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication
2025-08-01 00:54:39,915 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,923 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,924 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication'
2025-08-01 00:54:39,934 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,936 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' at path: package/StructureDefinition-ph-core-medication.json
2025-08-01 00:54:39,938 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-medication.json
2025-08-01 00:54:39,939 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:54:39,940 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:54:39,942 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,943 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,945 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation
2025-08-01 00:54:39,946 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,952 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,953 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation'
2025-08-01 00:54:39,964 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,966 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' at path: package/StructureDefinition-ph-core-observation.json
2025-08-01 00:54:39,968 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-observation.json
2025-08-01 00:54:39,969 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:54:39,970 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:54:39,971 - services - DEBUG - Navigating FHIR path: Observation.status, extension_url=None
2025-08-01 00:54:39,973 - services - DEBUG - Navigating FHIR path: Observation.code, extension_url=None
2025-08-01 00:54:39,975 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,976 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,980 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:54:39,981 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,988 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,990 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:40,015 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:40,017 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:54:40,022 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:54:40,024 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:54:40,028 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:54:40,029 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:41,057 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:54:41,059 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:54:41,060 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:54:41,061 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:54:41,063 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:54:41,065 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,066 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:41,070 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner
2025-08-01 00:54:41,071 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:41,077 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:41,078 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner'
2025-08-01 00:54:41,096 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:41,098 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' at path: package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:54:41,100 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:54:41,101 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:54:41,103 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:54:41,105 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,106 - services - DEBUG - Bundle validation result: valid=True, errors=0, warnings=0, resources=7
2025-08-01 00:54:41,107 - services - INFO - Validation result for Bundle against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,109 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:41] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:55:46,274 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:55:46,275 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:55:46,276 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:55:46,278 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:55:46,303 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:55:46,409 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:55:46,411 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:55:46] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:55:46,425 - services - DEBUG - Received validate-sample request
2025-08-01 00:55:46,427 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:55:46,428 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:55:46,431 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,434 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:55:46,435 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:55:46,438 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:55:46,439 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,445 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,446 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:55:46,468 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,470 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:55:46,475 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:55:46,477 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:55:46,481 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:55:46,482 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:55:47,472 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:55:47,474 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:55:47,474 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:55:47,476 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:55:47,477 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:55:47,479 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:55:47,480 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:55:47,481 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:55:47] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:01,610 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:01,611 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:01,612 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:01,614 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:01,634 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:01,712 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:01,714 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:01] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:01,726 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:01,727 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:01,728 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:01,731 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,733 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:01,735 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:01,738 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:01,739 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,743 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,744 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:01,759 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,761 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:01,764 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:01,766 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:01,770 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:01,771 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:02,425 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:02,427 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:02,428 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:02,430 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:02,431 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:02,433 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:02,434 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:02,435 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:02] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:14,054 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:14,055 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:14,056 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:14,057 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:14,070 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:14,147 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:14,149 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:14] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:14,157 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:14,158 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:14,160 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:14,163 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,166 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:14,166 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:14,170 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:14,172 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,177 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,178 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:14,193 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,195 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:14,197 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:14,198 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:14,201 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:14,202 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:14,875 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:14,877 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:14,878 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:14,879 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:14,881 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:14,883 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:14,884 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:14,885 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:14] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:18,236 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:18,237 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:18,238 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:18,239 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:18,257 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:18,348 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:18,350 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:18] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:18,364 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:18,366 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:18,366 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:18,369 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,373 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:18,374 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:18,377 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:18,378 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,383 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,384 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:18,401 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,403 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:18,406 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:18,408 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:18,412 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:18,413 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:19,183 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:19,184 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:19,185 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:19,186 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:19,187 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:19,189 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:19,190 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:19,191 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:19] "POST /api/validate-sample HTTP/1.1" 200 -

View File

@ -1,6 +1,6 @@
#FileLock
#Sun May 04 12:29:20 UTC 2025
server=172.18.0.2\:34351
hostName=1913c9e2ec9b
#Fri Aug 01 00:44:59 UTC 2025
server=172.18.0.2\:44371
hostName=fd26f32c4551
method=file
id=1969b45b76c42f20115290bfabb203a60dc75365e9d
id=1986316d3912ca2c5021ee56e639ff5ae831929a5f0

2
logs/flask.log Normal file
View File

@ -0,0 +1,2 @@
* Serving Flask app 'app'
* Debug mode: off

741
logs/flask_err.log Normal file
View File

@ -0,0 +1,741 @@
fhir.resources library failed to import. XML parsing will be basic and dependency analysis for XML may be incomplete. Error: No module named 'fhir.resources.fhirtypesvalidators'
2025-08-01 00:44:39,706 - __main__ - INFO - --- File logging initialized to /app/instance/fhirflare_debug.log (Level: DEBUG) ---
2025-08-01 00:44:39,707 - __main__ - INFO - Application running in mode: standalone
2025-08-01 00:44:39,708 - __main__ - DEBUG - Instance path configuration: /app/instance
2025-08-01 00:44:39,709 - __main__ - DEBUG - Database URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,710 - __main__ - DEBUG - Packages path: /app/instance/fhir_packages
2025-08-01 00:44:39,724 - __main__ - DEBUG - Flask instance folder path: /app/instance
2025-08-01 00:44:39,731 - __main__ - DEBUG - Directories created/verified: Instance: /app/instance, Packages: /app/instance/fhir_packages
2025-08-01 00:44:39,759 - __main__ - DEBUG - Attempting to create database tables for URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,797 - __main__ - INFO - Database tables created/verified successfully.
2025-08-01 00:44:39,804 - __main__ - DEBUG - Instance path configuration: /app/instance
2025-08-01 00:44:39,806 - __main__ - DEBUG - Database URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,807 - __main__ - DEBUG - Packages path: /app/instance/fhir_packages
2025-08-01 00:44:39,808 - __main__ - DEBUG - Flask instance folder path: /app/instance
2025-08-01 00:44:39,811 - __main__ - DEBUG - Directories created/verified: Instance: /app/instance, Packages: /app/instance/fhir_packages
2025-08-01 00:44:39,812 - __main__ - DEBUG - Attempting to create database tables for URI: sqlite:////app/instance/fhir_ig.db
2025-08-01 00:44:39,822 - __main__ - INFO - Database tables created successfully (if they didn't exist).
2025-08-01 00:44:39,825 - werkzeug - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://172.18.0.2:5000
2025-08-01 00:44:39,826 - werkzeug - INFO - Press CTRL+C to quit
2025-08-01 00:45:00,413 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET / HTTP/1.1" 200 -
2025-08-01 00:45:00,466 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/FHIRFLARE.png HTTP/1.1" 200 -
2025-08-01 00:45:00,481 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:45:00,493 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:45:00,539 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:00] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:45:01,469 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:01] "GET /static/favicon.ico HTTP/1.1" 200 -
2025-08-01 00:45:06,325 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:45:06,344 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:45:06,348 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:45:06,349 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:45:06] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:18,005 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:47:18,023 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:18,026 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:18,030 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:18,034 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:18] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:47:27,948 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:47:27,969 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:27,970 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:27,972 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:27] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:43,826 - services - INFO - Starting manual import for /tmp/tmpo2f3s9g5/example.fhir.ph.core.r4-0.1.0.tgz (mode=recursive, resolve_deps=True)
2025-08-01 00:47:43,827 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:43,831 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:43,841 - services - DEBUG - Parsed '/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4-0.1.0.tgz' -> name='/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:43,842 - services - INFO - Manually processing package: example.fhir.ph.core.r4-0.1.0.tgz (/tmp/tmpo2f3s9g5/example.fhir.ph.core.r4#0.1.0)
2025-08-01 00:47:43,843 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:43,844 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:43,845 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:43,848 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:43,850 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:43,852 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:43,853 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:44,379 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:44,388 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:44,389 - services - INFO - Processing dependency hl7.terminology.r4#6.4.0
2025-08-01 00:47:44,390 - services - INFO - Starting manual import for hl7.terminology.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:44,391 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:44,393 - services - INFO - Attempting manual download of hl7.terminology.r4#6.4.0
2025-08-01 00:47:44,398 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): packages.fhir.org:443
2025-08-01 00:47:46,170 - urllib3.connectionpool - DEBUG - https://packages.fhir.org:443 "GET /hl7.terminology.r4/6.4.0 HTTP/1.1" 200 5053901
2025-08-01 00:47:49,116 - services - INFO - Manually downloaded hl7.terminology.r4#6.4.0 to /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz
2025-08-01 00:47:49,118 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz' -> name='/app/instance/fhir.packages/hl7.terminology.r4', version='6.4.0'
2025-08-01 00:47:49,119 - services - INFO - Manually processing package: hl7.terminology.r4-6.4.0.tgz (/app/instance/fhir.packages/hl7.terminology.r4#6.4.0)
2025-08-01 00:47:49,132 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,133 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,133 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,135 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,136 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,138 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,138 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:49,396 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,401 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:49,401 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:49,402 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,402 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,403 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:49,404 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:49,406 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:49,406 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:49,461 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,462 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,462 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,464 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,465 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,466 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,466 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:49,731 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,735 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:49,736 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,740 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:49,740 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,741 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:49,741 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:49,743 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:49,745 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:49,746 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:49,747 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,011 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,014 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,015 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,018 - services - INFO - Saved metadata for hl7.terminology.r4#6.4.0 at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.metadata.json
2025-08-01 00:47:50,019 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,019 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,019 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,020 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,021 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:50,022 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:50,023 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:50,079 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,080 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,081 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,082 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,083 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,083 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,084 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,353 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,357 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,358 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,364 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:50,364 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,365 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,365 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,366 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,367 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,368 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,369 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,631 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,634 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,634 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,635 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,636 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,637 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:47:50,638 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:47:50,639 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:50,639 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:47:50,694 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,695 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,695 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,697 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,697 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,698 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:50,699 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:50,986 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,989 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:50,990 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,993 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:47:50,994 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,994 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:50,995 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:50,997 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:50,998 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:50,999 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,000 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,247 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,250 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,251 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,252 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:51,252 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,253 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,254 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:51,255 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,255 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,509 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,512 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,513 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,513 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:47:51,514 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,515 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:47:51,516 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:47:51,518 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:51,518 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:47:51,779 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,782 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:47:51,783 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:47:51,790 - services - INFO - Saved metadata for example.fhir.ph.core.r4#0.1.0 at /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.metadata.json
2025-08-01 00:47:51,792 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:51] "POST /manual-import-ig HTTP/1.1" 302 -
2025-08-01 00:47:51,808 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:47:51,811 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:47:51,819 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:47:51,846 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:47:51,863 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:47:52,313 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:47:52,375 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:47:52,384 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:47:52,387 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:47:52,391 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:47:52,627 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:47:52,920 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:47:53,250 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:47:53,250 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:47:53,251 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:47:53,269 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:47:53,299 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:53,301 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:53,304 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:47:53,307 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:53] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:47:55,256 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:47:55,270 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:47:55,272 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:47:55,275 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:47:55] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:09,986 - services - INFO - Starting manual import for /tmp/tmpa5kg6gav/example.fhir.ph.core.r4-0.1.0.tgz (mode=recursive, resolve_deps=True)
2025-08-01 00:48:09,987 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:09,989 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:09,995 - services - DEBUG - Parsed '/tmp/tmpa5kg6gav/example.fhir.ph.core.r4-0.1.0.tgz' -> name='/tmp/tmpa5kg6gav/example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:09,996 - services - INFO - Manually processing package: example.fhir.ph.core.r4-0.1.0.tgz (/tmp/tmpa5kg6gav/example.fhir.ph.core.r4#0.1.0)
2025-08-01 00:48:09,997 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:09,997 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:09,997 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:09,998 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,000 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,002 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,003 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,319 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,323 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:10,324 - services - INFO - Processing dependency hl7.terminology.r4#6.4.0
2025-08-01 00:48:10,324 - services - INFO - Starting manual import for hl7.terminology.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,324 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,325 - services - INFO - Attempting manual download of hl7.terminology.r4#6.4.0
2025-08-01 00:48:10,326 - services - INFO - Manual package hl7.terminology.r4#6.4.0 already exists at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz
2025-08-01 00:48:10,327 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.terminology.r4-6.4.0.tgz' -> name='/app/instance/fhir.packages/hl7.terminology.r4', version='6.4.0'
2025-08-01 00:48:10,328 - services - INFO - Manually processing package: hl7.terminology.r4-6.4.0.tgz (/app/instance/fhir.packages/hl7.terminology.r4#6.4.0)
2025-08-01 00:48:10,330 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,330 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,331 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,332 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,334 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,336 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,336 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,586 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,590 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:10,590 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:10,591 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,591 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,593 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:10,594 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:10,595 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:10,596 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:10,655 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,655 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:10,656 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:10,657 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:10,659 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:10,660 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:10,661 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:10,997 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,004 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,005 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,008 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:11,009 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,010 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,011 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,012 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,014 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,016 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,016 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,275 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,279 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,280 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,283 - services - INFO - Saved metadata for hl7.terminology.r4#6.4.0 at /app/instance/fhir_packages/hl7.terminology.r4-6.4.0.metadata.json
2025-08-01 00:48:11,284 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,285 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,285 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,287 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,288 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:11,289 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:11,289 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:11,344 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,345 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,345 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,346 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,347 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,348 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,349 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,601 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,605 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,605 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,609 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:11,610 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,610 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,611 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,613 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,614 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,615 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,616 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:11,867 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,871 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:11,871 - services - INFO - Processing dependency hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,872 - services - INFO - Starting manual import for hl7.fhir.uv.extensions.r4 (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,872 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,874 - services - INFO - Attempting manual download of hl7.fhir.uv.extensions.r4#5.2.0
2025-08-01 00:48:11,875 - services - INFO - Manual package hl7.fhir.uv.extensions.r4#5.2.0 already exists at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz
2025-08-01 00:48:11,876 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:11,877 - services - INFO - Manually processing package: hl7.fhir.uv.extensions.r4-5.2.0.tgz (/app/instance/fhir.packages/hl7.fhir.uv.extensions.r4#5.2.0)
2025-08-01 00:48:11,932 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,932 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:11,933 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:11,935 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:11,936 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:11,937 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:11,937 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,191 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,194 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,194 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,198 - services - INFO - Saved metadata for hl7.fhir.uv.extensions.r4#5.2.0 at /app/instance/fhir_packages/hl7.fhir.uv.extensions.r4-5.2.0.metadata.json
2025-08-01 00:48:12,199 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,200 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,201 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,202 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,203 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,205 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,205 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,451 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,456 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,456 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,457 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,457 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,458 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,459 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,460 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,461 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,720 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,723 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,724 - services - INFO - Processing dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,724 - services - INFO - Starting manual import for hl7.fhir.r4.core (mode=recursive, resolve_deps=True)
2025-08-01 00:48:12,725 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,726 - services - INFO - Attempting manual download of hl7.fhir.r4.core#4.0.1
2025-08-01 00:48:12,727 - services - INFO - Manual package hl7.fhir.r4.core#4.0.1 already exists at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:48:12,728 - services - DEBUG - Parsed '/app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.tgz' -> name='/app/instance/fhir.packages/hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:12,728 - services - INFO - Manually processing package: hl7.fhir.r4.core-4.0.1.tgz (/app/instance/fhir.packages/hl7.fhir.r4.core#4.0.1)
2025-08-01 00:48:12,994 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:12,997 - services - INFO - Saved metadata for hl7.fhir.r4.core#4.0.1 at /app/instance/fhir_packages/hl7.fhir.r4.core-4.0.1.metadata.json
2025-08-01 00:48:12,998 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:48:13,003 - services - INFO - Saved metadata for example.fhir.ph.core.r4#0.1.0 at /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.metadata.json
2025-08-01 00:48:13,004 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:13] "POST /manual-import-ig HTTP/1.1" 302 -
2025-08-01 00:48:13,014 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:48:13,016 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:48:13,023 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:48:13,047 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:48:13,064 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:48:13,486 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:48:13,543 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:48:13,551 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:48:13,554 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:48:13,558 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:48:13,743 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:48:13,974 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:48:14,164 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:48:14,165 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:48:14,166 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:48:14,169 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:48:14,185 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:48:14,187 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:14,188 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:48:14,189 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:14] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:48:19,052 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:48:19,067 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:48:19,068 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:48:19,069 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:48:19,071 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:48:19] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:50:33,336 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:50:33,337 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:50:33,337 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:50:33,339 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:50:34,754 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:50:34,995 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:50:34,997 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:50:34] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:50:35,010 - services - DEBUG - Received validate-sample request
2025-08-01 00:50:35,011 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=13970
2025-08-01 00:50:35,012 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,014 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,017 - services - DEBUG - Validating Bundle against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:50:35,017 - services - DEBUG - Validating bundle against example.fhir.ph.core.r4#0.1.0, include_dependencies=True
2025-08-01 00:50:35,018 - services - DEBUG - Found 14 local references in the bundle.
2025-08-01 00:50:35,019 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,021 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient
2025-08-01 00:50:35,022 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,027 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,028 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient'
2025-08-01 00:50:35,039 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,040 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' at path: package/StructureDefinition-ph-core-patient.json
2025-08-01 00:50:35,042 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-patient.json
2025-08-01 00:50:35,043 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:50:35,046 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:50:35,048 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:50:35,050 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:50:35,052 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:50:35,054 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:50:35,055 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,057 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,059 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter
2025-08-01 00:50:35,060 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,065 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,066 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter'
2025-08-01 00:50:35,071 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,073 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' at path: package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:50:35,074 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:50:35,075 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:50:35,077 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:50:35,078 - services - DEBUG - Navigating FHIR path: Encounter.status, extension_url=None
2025-08-01 00:50:35,079 - services - DEBUG - Navigating FHIR path: Encounter.class, extension_url=None
2025-08-01 00:50:35,081 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,082 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,083 - services - DEBUG - No profile in resource, using base type as identifier: Condition
2025-08-01 00:50:35,084 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,088 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,090 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,106 - services - INFO - SD matching identifier 'Condition' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,108 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:50:35,112 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:50:35,113 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:50:35,116 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:50:35,117 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,182 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-Condition.json
2025-08-01 00:50:35,184 - services - DEBUG - Found SD at package/StructureDefinition-Condition.json
2025-08-01 00:50:35,185 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:50:35,186 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:50:35,187 - services - DEBUG - Navigating FHIR path: Condition.subject, extension_url=None
2025-08-01 00:50:35,188 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,190 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,192 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication
2025-08-01 00:50:35,192 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,196 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,197 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication'
2025-08-01 00:50:35,204 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,206 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' at path: package/StructureDefinition-ph-core-medication.json
2025-08-01 00:50:35,207 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-medication.json
2025-08-01 00:50:35,207 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:50:35,209 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:50:35,210 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,211 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,213 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation
2025-08-01 00:50:35,214 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,217 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,218 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation'
2025-08-01 00:50:35,224 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,225 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' at path: package/StructureDefinition-ph-core-observation.json
2025-08-01 00:50:35,226 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-observation.json
2025-08-01 00:50:35,227 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:50:35,228 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:50:35,229 - services - DEBUG - Navigating FHIR path: Observation.status, extension_url=None
2025-08-01 00:50:35,230 - services - DEBUG - Navigating FHIR path: Observation.code, extension_url=None
2025-08-01 00:50:35,231 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,232 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,233 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:50:35,234 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,237 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,238 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,250 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,252 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:50:35,255 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:50:35,256 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:50:35,259 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:50:35,259 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:50:35,710 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:50:35,711 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:50:35,712 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:50:35,713 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:50:35,713 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:50:35,714 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,715 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:50:35,716 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner
2025-08-01 00:50:35,716 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,719 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:50:35,719 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner'
2025-08-01 00:50:35,727 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:50:35,728 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' at path: package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:50:35,729 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:50:35,729 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:50:35,730 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:50:35,731 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,731 - services - DEBUG - Bundle validation result: valid=True, errors=0, warnings=0, resources=7
2025-08-01 00:50:35,732 - services - INFO - Validation result for Bundle against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:50:35,732 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:50:35] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:51:28,784 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /manual-import-ig HTTP/1.1" 200 -
2025-08-01 00:51:28,825 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:51:28,828 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:51:28,839 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:28] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:51:39,832 - __main__ - DEBUG - Scanning packages directory: /app/instance/fhir_packages
2025-08-01 00:51:39,838 - services - DEBUG - Parsed 'example.fhir.ph.core.r4-0.1.0.tgz' -> name='example.fhir.ph.core.r4', version='0.1.0'
2025-08-01 00:51:39,851 - services - DEBUG - Parsed 'hl7.fhir.au.base-5.1.0-preview.tgz' -> name='hl7.fhir.au.base', version='5.1.0-preview'
2025-08-01 00:51:39,892 - services - DEBUG - Parsed 'hl7.fhir.au.core-1.1.0-preview.tgz' -> name='hl7.fhir.au.core', version='1.1.0-preview'
2025-08-01 00:51:39,918 - services - DEBUG - Parsed 'hl7.fhir.r4.core-4.0.1.tgz' -> name='hl7.fhir.r4.core', version='4.0.1'
2025-08-01 00:51:40,732 - services - DEBUG - Parsed 'hl7.fhir.uv.extensions.r4-5.2.0.tgz' -> name='hl7.fhir.uv.extensions.r4', version='5.2.0'
2025-08-01 00:51:40,837 - services - DEBUG - Parsed 'hl7.fhir.uv.ipa-1.0.0.tgz' -> name='hl7.fhir.uv.ipa', version='1.0.0'
2025-08-01 00:51:40,855 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.0.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.0.0'
2025-08-01 00:51:40,860 - services - DEBUG - Parsed 'hl7.fhir.uv.smart-app-launch-2.1.0.tgz' -> name='hl7.fhir.uv.smart-app-launch', version='2.1.0'
2025-08-01 00:51:40,868 - services - DEBUG - Parsed 'hl7.terminology.r4-5.0.0.tgz' -> name='hl7.terminology.r4', version='5.0.0'
2025-08-01 00:51:41,223 - services - DEBUG - Parsed 'hl7.terminology.r4-6.2.0.tgz' -> name='hl7.terminology.r4', version='6.2.0'
2025-08-01 00:51:41,669 - services - DEBUG - Parsed 'hl7.terminology.r4-6.4.0.tgz' -> name='hl7.terminology.r4', version='6.4.0'
2025-08-01 00:51:42,069 - __main__ - DEBUG - Found packages: 11
2025-08-01 00:51:42,070 - __main__ - DEBUG - Errors during package listing: []
2025-08-01 00:51:42,071 - __main__ - DEBUG - Duplicate groups: {'hl7.fhir.uv.smart-app-launch': ['2.0.0', '2.1.0'], 'hl7.terminology.r4': ['5.0.0', '6.2.0', '6.4.0']}
2025-08-01 00:51:42,075 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /view-igs HTTP/1.1" 200 -
2025-08-01 00:51:42,100 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:51:42,103 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:51:42,108 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:51:42,108 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:51:42] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:54:20,189 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /validate-sample HTTP/1.1" 200 -
2025-08-01 00:54:20,209 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/css/fire-animation.css HTTP/1.1" 304 -
2025-08-01 00:54:20,212 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/css/animation.css HTTP/1.1" 304 -
2025-08-01 00:54:20,216 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/js/htmx.min.js HTTP/1.1" 304 -
2025-08-01 00:54:20,218 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:20] "GET /static/FHIRFLARE.png HTTP/1.1" 304 -
2025-08-01 00:54:39,350 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:54:39,351 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:54:39,353 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:54:39,356 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:54:39,413 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:54:39,611 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:54:39,613 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:39] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:54:39,639 - services - DEBUG - Received validate-sample request
2025-08-01 00:54:39,641 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=13970
2025-08-01 00:54:39,643 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,647 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,650 - services - DEBUG - Validating Bundle against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:54:39,652 - services - DEBUG - Validating bundle against example.fhir.ph.core.r4#0.1.0, include_dependencies=True
2025-08-01 00:54:39,653 - services - DEBUG - Found 14 local references in the bundle.
2025-08-01 00:54:39,655 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,659 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient
2025-08-01 00:54:39,660 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,668 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,670 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient'
2025-08-01 00:54:39,688 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,689 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient' at path: package/StructureDefinition-ph-core-patient.json
2025-08-01 00:54:39,692 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-patient.json
2025-08-01 00:54:39,693 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:54:39,695 - services - DEBUG - Navigating FHIR path: Patient, extension_url=None
2025-08-01 00:54:39,697 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:54:39,700 - services - DEBUG - Navigating FHIR path: Patient.extension, extension_url=None
2025-08-01 00:54:39,702 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:54:39,705 - services - DEBUG - Navigating FHIR path: Patient.identifier, extension_url=None
2025-08-01 00:54:39,708 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,710 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,714 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter
2025-08-01 00:54:39,715 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,724 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,725 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter'
2025-08-01 00:54:39,734 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,736 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter' at path: package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:54:39,739 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-encounter.json
2025-08-01 00:54:39,740 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:54:39,742 - services - DEBUG - Navigating FHIR path: Encounter, extension_url=None
2025-08-01 00:54:39,744 - services - DEBUG - Navigating FHIR path: Encounter.status, extension_url=None
2025-08-01 00:54:39,746 - services - DEBUG - Navigating FHIR path: Encounter.class, extension_url=None
2025-08-01 00:54:39,747 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,749 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,753 - services - DEBUG - No profile in resource, using base type as identifier: Condition
2025-08-01 00:54:39,755 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,764 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,766 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:39,791 - services - INFO - SD matching identifier 'Condition' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,794 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:54:39,799 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:54:39,803 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:54:39,808 - services - DEBUG - Searching for SD matching 'Condition' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:54:39,810 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:39,902 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-Condition.json
2025-08-01 00:54:39,904 - services - DEBUG - Found SD at package/StructureDefinition-Condition.json
2025-08-01 00:54:39,905 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:54:39,907 - services - DEBUG - Navigating FHIR path: Condition, extension_url=None
2025-08-01 00:54:39,908 - services - DEBUG - Navigating FHIR path: Condition.subject, extension_url=None
2025-08-01 00:54:39,910 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,911 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,914 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication
2025-08-01 00:54:39,915 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,923 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,924 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication'
2025-08-01 00:54:39,934 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,936 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication' at path: package/StructureDefinition-ph-core-medication.json
2025-08-01 00:54:39,938 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-medication.json
2025-08-01 00:54:39,939 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:54:39,940 - services - DEBUG - Navigating FHIR path: Medication, extension_url=None
2025-08-01 00:54:39,942 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,943 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,945 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation
2025-08-01 00:54:39,946 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,952 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,953 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation'
2025-08-01 00:54:39,964 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:39,966 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation' at path: package/StructureDefinition-ph-core-observation.json
2025-08-01 00:54:39,968 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-observation.json
2025-08-01 00:54:39,969 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:54:39,970 - services - DEBUG - Navigating FHIR path: Observation, extension_url=None
2025-08-01 00:54:39,971 - services - DEBUG - Navigating FHIR path: Observation.status, extension_url=None
2025-08-01 00:54:39,973 - services - DEBUG - Navigating FHIR path: Observation.code, extension_url=None
2025-08-01 00:54:39,975 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:39,976 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:39,980 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:54:39,981 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,988 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:39,990 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:40,015 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:40,017 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:54:40,022 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:54:40,024 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:54:40,028 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:54:40,029 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:54:41,057 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:54:41,059 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:54:41,060 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:54:41,061 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:54:41,063 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:54:41,065 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,066 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:54:41,070 - services - DEBUG - Using provided profile: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner. Cleaned to: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner
2025-08-01 00:54:41,071 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:41,077 - services - DEBUG - Searching for SD matching 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' with profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:54:41,078 - services - DEBUG - Cleaned profile URL for search: 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner'
2025-08-01 00:54:41,096 - services - DEBUG - Removing narrative text from resource: StructureDefinition
2025-08-01 00:54:41,098 - services - INFO - Found definitive SD matching profile 'urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner' at path: package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:54:41,100 - services - DEBUG - Found SD at package/StructureDefinition-ph-core-practitioner.json
2025-08-01 00:54:41,101 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:54:41,103 - services - DEBUG - Navigating FHIR path: Practitioner, extension_url=None
2025-08-01 00:54:41,105 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,106 - services - DEBUG - Bundle validation result: valid=True, errors=0, warnings=0, resources=7
2025-08-01 00:54:41,107 - services - INFO - Validation result for Bundle against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:54:41,109 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:54:41] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:55:46,274 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:55:46,275 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:55:46,276 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:55:46,278 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:55:46,303 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:55:46,409 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:55:46,411 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:55:46] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:55:46,425 - services - DEBUG - Received validate-sample request
2025-08-01 00:55:46,427 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:55:46,428 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:55:46,431 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,434 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:55:46,435 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:55:46,438 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:55:46,439 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,445 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,446 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:55:46,468 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:55:46,470 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:55:46,475 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:55:46,477 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:55:46,481 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:55:46,482 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:55:47,472 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:55:47,474 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:55:47,474 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:55:47,476 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:55:47,477 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:55:47,479 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:55:47,480 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:55:47,481 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:55:47] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:01,610 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:01,611 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:01,612 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:01,614 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:01,634 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:01,712 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:01,714 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:01] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:01,726 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:01,727 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:01,728 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:01,731 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,733 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:01,735 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:01,738 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:01,739 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,743 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,744 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:01,759 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:01,761 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:01,764 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:01,766 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:01,770 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:01,771 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:02,425 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:02,427 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:02,428 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:02,430 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:02,431 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:02,433 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:02,434 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:02,435 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:02] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:14,054 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:14,055 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:14,056 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:14,057 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:14,070 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:14,147 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:14,149 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:14] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:14,157 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:14,158 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:14,160 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:14,163 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,166 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:14,166 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:14,170 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:14,172 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,177 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,178 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:14,193 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:14,195 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:14,197 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:14,198 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:14,201 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:14,202 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:14,875 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:14,877 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:14,878 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:14,879 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:14,881 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:14,883 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:14,884 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:14,885 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:14] "POST /api/validate-sample HTTP/1.1" 200 -
2025-08-01 00:56:18,236 - __main__ - DEBUG - Proxy received request for path: '/fhir/metadata', cleaned subpath: 'metadata'
2025-08-01 00:56:18,237 - __main__ - DEBUG - No target header found, proxying to default local HAPI: http://localhost:8080/fhir
2025-08-01 00:56:18,238 - __main__ - INFO - Proxying request: GET http://localhost:8080/fhir/metadata
2025-08-01 00:56:18,239 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:8080
2025-08-01 00:56:18,257 - urllib3.connectionpool - DEBUG - http://localhost:8080 "GET /fhir/metadata HTTP/1.1" 200 None
2025-08-01 00:56:18,348 - __main__ - INFO - Target server 'http://localhost:8080/fhir' responded with status: 200
2025-08-01 00:56:18,350 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:18] "GET /fhir/metadata HTTP/1.1" 200 -
2025-08-01 00:56:18,364 - services - DEBUG - Received validate-sample request
2025-08-01 00:56:18,366 - services - DEBUG - Request params: package_name=example.fhir.ph.core.r4, version=0.1.0, sample_data_length=713
2025-08-01 00:56:18,366 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:18,369 - services - DEBUG - Checking package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,373 - services - DEBUG - Validating AllergyIntolerance against example.fhir.ph.core.r4#0.1.0
2025-08-01 00:56:18,374 - services - DEBUG - Using FHIR_PACKAGES_DIR from current_app config: /app/instance/fhir_packages
2025-08-01 00:56:18,377 - services - DEBUG - No profile in resource, using base type as identifier: AllergyIntolerance
2025-08-01 00:56:18,378 - services - DEBUG - Checking for package file: /app/instance/fhir_packages/example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,383 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,384 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:18,401 - services - INFO - SD matching identifier 'AllergyIntolerance' or profile 'None' not found within archive example.fhir.ph.core.r4-0.1.0.tgz
2025-08-01 00:56:18,403 - services - DEBUG - SD not found in example.fhir.ph.core.r4#0.1.0. Checking dependencies.
2025-08-01 00:56:18,406 - services - DEBUG - Found dependencies: {'hl7.fhir.r4.core': '4.0.1', 'hl7.terminology.r4': '6.4.0', 'hl7.fhir.uv.extensions.r4': '5.2.0'}
2025-08-01 00:56:18,408 - services - DEBUG - Searching SD in dependency hl7.fhir.r4.core#4.0.1
2025-08-01 00:56:18,412 - services - DEBUG - Searching for SD matching 'AllergyIntolerance' with profile 'None' in hl7.fhir.r4.core-4.0.1.tgz
2025-08-01 00:56:18,413 - services - DEBUG - Cleaned profile URL for search: 'None'
2025-08-01 00:56:19,183 - services - INFO - Found SD in dependency hl7.fhir.r4.core#4.0.1 at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:19,184 - services - DEBUG - Found SD at package/StructureDefinition-AllergyIntolerance.json
2025-08-01 00:56:19,185 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:19,186 - services - DEBUG - Navigating FHIR path: AllergyIntolerance, extension_url=None
2025-08-01 00:56:19,187 - services - DEBUG - Navigating FHIR path: AllergyIntolerance.patient, extension_url=None
2025-08-01 00:56:19,189 - services - DEBUG - Validation result: valid=True, errors=0, warnings=0
2025-08-01 00:56:19,190 - services - INFO - Validation result for AllergyIntolerance against example.fhir.ph.core.r4#0.1.0: valid=True, errors=0, warnings=0
2025-08-01 00:56:19,191 - werkzeug - INFO - 172.18.0.1 - - [01/Aug/2025 00:56:19] "POST /api/validate-sample HTTP/1.1" 200 -

6
logs/supervisord.log Normal file
View File

@ -0,0 +1,6 @@
2025-08-01 00:44:37,751 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2025-08-01 00:44:37,755 INFO supervisord started with pid 1
2025-08-01 00:44:38,762 INFO spawned: 'flask' with pid 8
2025-08-01 00:44:38,767 INFO spawned: 'tomcat' with pid 9
2025-08-01 00:44:49,750 INFO success: flask entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2025-08-01 00:45:08,829 INFO success: tomcat entered RUNNING state, process has stayed up for > than 30 seconds (startsecs)

1
logs/supervisord.pid Normal file
View File

@ -0,0 +1 @@
1

184
logs/tomcat.log Normal file
View File

@ -0,0 +1,184 @@
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.11)
2025-08-01T00:44:50.113Z INFO 9 --- [ main] ca.uhn.fhir.jpa.starter.Application : Starting Application using Java 17.0.15 with PID 9 (/usr/local/tomcat/webapps/ROOT/WEB-INF/classes started by root in /usr/local/tomcat)
2025-08-01T00:44:50.117Z INFO 9 --- [ main] ca.uhn.fhir.jpa.starter.Application : No active profile set, falling back to 1 default profile: "default"
2025-08-01T00:44:51.730Z INFO 9 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-08-01T00:44:52.051Z INFO 9 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 305 ms. Found 53 JPA repository interfaces.
2025-08-01T00:44:54.276Z WARN 9 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'ca.uhn.fhir.jpa.config.BeanPostProcessorConfig' of type [ca.uhn.fhir.jpa.config.BeanPostProcessorConfig$$SpringCGLIB$$0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2025-08-01T00:44:54.434Z INFO 9 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4281 ms
2025-08-01T00:44:54.614Z INFO 9 --- [ main] ca.uhn.fhir.util.VersionUtil : HAPI FHIR version 8.2.0 - Rev 8a44e1058f
2025-08-01T00:44:54.623Z INFO 9 --- [ main] ca.uhn.fhir.context.FhirContext : Creating new FHIR context for FHIR version [R4]
2025-08-01T00:44:54.682Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to allow contains searches
2025-08-01T00:44:54.682Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to deny multiple deletes
2025-08-01T00:44:54.682Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to deny external references
2025-08-01T00:44:54.683Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to enable DAO scheduling
2025-08-01T00:44:54.683Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to disable delete expunges
2025-08-01T00:44:54.683Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to enable expunges
2025-08-01T00:44:54.683Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to allow overriding default search params
2025-08-01T00:44:54.684Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to disable auto-creating placeholder references
2025-08-01T00:44:54.684Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to auto-version references at paths []
2025-08-01T00:44:54.684Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to enable value set pre-expansion
2025-08-01T00:44:54.685Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to enable value set pre-expansion task
2025-08-01T00:44:54.685Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured for pre-expand value set default count of 1000
2025-08-01T00:44:54.685Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured for pre-expand value set max count of 1000
2025-08-01T00:44:54.685Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured for maximum expansion size of 1000
2025-08-01T00:44:54.717Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to have a maximum fetch size of 'unlimited'
2025-08-01T00:44:54.717Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to cache search results for 60000 milliseconds
2025-08-01T00:44:54.717Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Server configured to use 'ALPHANUMERIC' Client ID Strategy
2025-08-01T00:44:54.758Z INFO 9 --- [ main] c.u.f.j.s.common.FhirServerConfigCommon : Partitioning is not enabled on this server
2025-08-01T00:44:54.852Z INFO 9 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: HAPI_PU]
2025-08-01T00:44:54.986Z INFO 9 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.4.Final
2025-08-01T00:44:55.001Z INFO 9 --- [ main] .f.j.l.FilteringSqlLoggerImplContributor : Adding service: SqlStatementFilteringLogger
2025-08-01T00:44:55.060Z INFO 9 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2025-08-01T00:44:55.247Z INFO 9 --- [ main] o.h.e.boot.internal.EnversServiceImpl : Envers integration enabled? : true
2025-08-01T00:44:55.586Z INFO 9 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-08-01T00:44:55.628Z INFO 9 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2025-08-01T00:44:59.687Z INFO 9 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn1: url=jdbc:h2:file:/app/h2-data/fhir user=SA
2025-08-01T00:44:59.691Z INFO 9 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2025-08-01T00:44:59.756Z INFO 9 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info:
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
Database driver: undefined/unknown
Database version: 2.3.232
Autocommit mode: undefined/unknown
Isolation level: undefined/unknown
Minimum pool size: undefined/unknown
Maximum pool size: undefined/unknown
2025-08-01T00:45:01.900Z INFO 9 --- [ main] b.i.HibernateSearchPreIntegrationService : HSEARCH000034: Hibernate Search version 7.2.1.Final
2025-08-01T00:45:02.062Z INFO 9 --- [ main] o.h.e.c.i.m.AuditMetadataGenerator : Adding properties for entity: ca.uhn.fhir.jpa.entity.MdmLink
2025-08-01T00:45:04.735Z INFO 9 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2025-08-01T00:45:06.640Z INFO 9 --- [ main] irLocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'HAPI_PU'
2025-08-01T00:45:07.684Z INFO 9 --- [ main] .u.f.c.s.DefaultProfileValidationSupport : Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-resources.xml
2025-08-01T00:45:07.705Z INFO 9 --- [ main] ca.uhn.fhir.util.XmlUtil : FHIR XML procesing will use StAX implementation 'Woodstox' version '6.4.0'
2025-08-01T00:45:08.736Z INFO 9 --- [ main] .u.f.c.s.DefaultProfileValidationSupport : Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-types.xml
2025-08-01T00:45:08.828Z INFO 9 --- [ main] .u.f.c.s.DefaultProfileValidationSupport : Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-others.xml
2025-08-01T00:45:09.260Z INFO 9 --- [ main] .u.f.c.s.DefaultProfileValidationSupport : Loading structure definitions from classpath: /org/hl7/fhir/r4/model/extension/extension-definitions.xml
2025-08-01T00:45:10.281Z INFO 9 --- [ main] o.s.d.j.r.query.QueryEnhancerFactory : Hibernate is in classpath; If applicable, HQL parser will be used.
2025-08-01T00:45:14.625Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Creating Local Scheduler
2025-08-01T00:45:14.674Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
2025-08-01T00:45:14.693Z INFO 9 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2025-08-01T00:45:14.693Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created.
2025-08-01T00:45:14.694Z INFO 9 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized.
2025-08-01T00:45:14.695Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'hapi-fhir-jpa-scheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 4 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2025-08-01T00:45:14.695Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'hapi-fhir-jpa-scheduler' initialized from an externally provided properties instance.
2025-08-01T00:45:14.695Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2
2025-08-01T00:45:14.696Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: ca.uhn.fhir.jpa.sched.AutowiringSpringBeanJobFactory@f7fb17c
2025-08-01T00:45:14.696Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED paused.
2025-08-01T00:45:14.696Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Creating Clustered Scheduler
2025-08-01T00:45:14.697Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created.
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized.
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'hapi-fhir-jpa-scheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 4 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'hapi-fhir-jpa-scheduler' initialized from an externally provided properties instance.
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: ca.uhn.fhir.jpa.sched.AutowiringSpringBeanJobFactory@f7fb17c
2025-08-01T00:45:14.699Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED paused.
2025-08-01T00:45:15.168Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.169Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 1ms
2025-08-01T00:45:15.177Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.178Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 1ms
2025-08-01T00:45:15.179Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.179Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 0ms
2025-08-01T00:45:15.180Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.180Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 0ms
2025-08-01T00:45:15.181Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.181Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 0ms
2025-08-01T00:45:15.182Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618
2025-08-01T00:45:15.182Z INFO 9 --- [ main] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@4d737618 succeeded in 0ms
2025-08-01T00:45:15.255Z INFO 9 --- [ main] ca.uhn.fhir.context.FhirContext : Creating new FHIR context for FHIR version [R4]
2025-08-01T00:45:15.531Z INFO 9 --- [ main] c.u.f.j.starter.common.StarterJpaConfig : CORS is enabled on this server
2025-08-01T00:45:15.533Z INFO 9 --- [ main] c.u.f.j.starter.common.StarterJpaConfig : CORS allows the following origins: *
2025-08-01T00:45:15.562Z INFO 9 --- [ main] ca.uhn.fhir.context.FhirContext : Creating new FHIR context for FHIR version [R5]
2025-08-01T00:45:20.832Z INFO 9 --- [ main] ca.uhn.fhir.context.FhirContext : Creating new FHIR context for FHIR version [R4]
2025-08-01T00:45:21.725Z WARN 9 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2025-08-01T00:45:22.254Z INFO 9 --- [ main] .s.i.SubscriptionSubmitInterceptorLoader : Subscriptions are disabled on this server. Subscriptions will not be activated and incoming resources will not be matched against subscriptions.
2025-08-01T00:45:22.925Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor
2025-08-01T00:45:22.930Z INFO 9 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created.
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized.
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2
2025-08-01T00:45:22.931Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@48e64e95
2025-08-01T00:45:22.968Z INFO 9 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2025-08-01T00:45:23.183Z INFO 9 --- [ main] o.s.s.quartz.SchedulerFactoryBean : Starting Quartz Scheduler now
2025-08-01T00:45:23.183Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED started.
2025-08-01T00:45:23.189Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: BULK_IMPORT_PULL / 1
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: BULK_IMPORT_PULL / 2
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: REINDEX / 1
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: REINDEX / 2
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: DELETE_EXPUNGE / 1
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: BULK_EXPORT / 1
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: BULK_EXPORT / 2
2025-08-01T00:45:23.191Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: termCodeSystemVersionDeleteJob / 1
2025-08-01T00:45:23.192Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: termCodeSystemDeleteJob / 1
2025-08-01T00:45:23.192Z INFO 9 --- [ main] ca.uhn.fhir.log.batch_troubleshooting : Registering Batch2 Job Definition: bulkImportJob / 1
2025-08-01T00:45:23.194Z INFO 9 --- [ main] .j.s.m.m.s.MatchingQueueSubscriberLoader : Subscription Matching Subscriber subscribed to Matching Channel ca.uhn.fhir.jpa.subscription.channel.subscription.BroadcastingSubscribableChannelWrapper with name subscription-matching
2025-08-01T00:45:24.054Z INFO 9 --- [ main] c.u.f.j.s.registry.JpaSearchParamCache : Have 0 unique search params
2025-08-01T00:45:24.148Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling 15 jobs in application
2025-08-01T00:45:24.150Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.term.TermDeferredStorageSvcImpl$Job with interval 5000ms
2025-08-01T00:45:24.156Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.cache.ResourceChangeListenerCacheRefresherImpl with interval 00:00:10.000
2025-08-01T00:45:24.158Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl with interval 00:00:10.000
2025-08-01T00:45:24.159Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.bulk.export.svc.BulkDataExportJobSchedulingHelperImpl$PurgeExpiredFilesJob with interval 01:00:00
2025-08-01T00:45:24.161Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.bulk.imprt.svc.BulkDataImportSvcImpl$ActivationJob with interval 00:00:10.000
2025-08-01T00:45:24.162Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.search.warm.CacheWarmingSvcImpl with interval 00:00:10.000
2025-08-01T00:45:24.163Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.term.TermReadSvcImpl with interval 00:10:00
2025-08-01T00:45:24.165Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.term.TermReindexingSvcImpl with interval 00:01:00.000
2025-08-01T00:45:24.166Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.search.SearchUrlJobMaintenanceSvcImpl$SearchUrlMaintenanceJob with interval 00:10:00
2025-08-01T00:45:24.166Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.search.StaleSearchDeletingSvcImpl with interval 00:01:00.000
2025-08-01T00:45:24.167Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.util.ResourceCountCache with interval 00:10:00
2025-08-01T00:45:24.168Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling local job ca.uhn.fhir.jpa.subscription.triggering.SubscriptionTriggeringSvcImpl with interval 5000ms
2025-08-01T00:45:24.168Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.jpa.subscription.async.AsyncResourceModifiedProcessingSchedulerSvc with interval 5000ms
2025-08-01T00:45:24.168Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.batch2.coordinator.ReductionStepExecutorServiceImpl$ReductionStepExecutorScheduledJob with interval 00:00:10.000
2025-08-01T00:45:24.169Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Scheduling clustered job ca.uhn.fhir.batch2.maintenance.JobMaintenanceServiceImpl$JobMaintenanceScheduledJob with interval 00:01:00.000
2025-08-01T00:45:24.169Z INFO 9 --- [ main] c.u.f.j.sched.BaseSchedulerServiceImpl : Starting task schedulers for context application
2025-08-01T00:45:24.169Z INFO 9 --- [ main] c.uhn.fhir.jpa.sched.BaseHapiScheduler : Starting scheduler hapi-fhir-jpa-scheduler-local
2025-08-01T00:45:24.169Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED started.
2025-08-01T00:45:24.169Z INFO 9 --- [ main] c.uhn.fhir.jpa.sched.BaseHapiScheduler : Starting scheduler hapi-fhir-jpa-scheduler-clustered
2025-08-01T00:45:24.170Z INFO 9 --- [ main] org.quartz.core.QuartzScheduler : Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED started.
2025-08-01T00:45:24.194Z INFO 9 --- [ main] ca.uhn.fhir.jpa.starter.Application : Started Application in 34.72 seconds (process running for 45.415)
2025-08-01T00:45:24.208Z INFO 9 --- [ler-clustered-2] .s.BulkDataExportJobSchedulingHelperImpl : Finished bulk export job deletion with nothing to do
2025-08-01T00:45:24.260Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : Initializing HAPI FHIR restful server running in R4 mode
2025-08-01T00:45:24.261Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : Added 147 resource provider(s). Total 147
2025-08-01T00:45:24.710Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : Added 5 plain provider(s). Total 5
2025-08-01T00:45:24.717Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : Removing RESTful methods for: class ca.uhn.fhir.jpa.provider.JpaCapabilityStatementProvider
2025-08-01T00:45:24.718Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : OperationDefinition binding of ca.uhn.fhir.rest.server.method.ReadMethodBinding@2091d0e3 was removed
2025-08-01T00:45:24.719Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : OperationDefinition binding of ca.uhn.fhir.rest.server.method.ReadMethodBinding@5221dfd5 was removed
2025-08-01T00:45:24.762Z INFO 9 --- [ main] ca.uhn.fhir.rest.server.RestfulServer : A FHIR has been lit on this server
2025-08-01T00:50:33.549Z INFO 9 --- [nio-8080-exec-1] c.u.f.log.terminology_troubleshooting : Performing initial retrieval for non-expiring cache: org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@3e87800e
2025-08-01T00:50:33.963Z INFO 9 --- [nio-8080-exec-1] c.u.f.log.terminology_troubleshooting : Initial retrieval for non-expiring cache org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain$FetchAllKey@3e87800e succeeded in 414ms
2025-08-01T00:50:35.020Z INFO 9 --- [nio-8080-exec-1] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]
2025-08-01T00:54:39.611Z INFO 9 --- [nio-8080-exec-2] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]
2025-08-01T00:55:46.409Z INFO 9 --- [nio-8080-exec-4] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]
2025-08-01T00:56:01.712Z INFO 9 --- [nio-8080-exec-6] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]
2025-08-01T00:56:14.147Z INFO 9 --- [nio-8080-exec-8] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]
2025-08-01T00:56:18.348Z INFO 9 --- [io-8080-exec-10] fhirtest.access : Path[/fhir] Source[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[] Operation[metadata ] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0] Params[] ResponseEncoding[]

41
logs/tomcat_err.log Normal file
View File

@ -0,0 +1,41 @@
01-Aug-2025 00:44:39.175 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/10.1.43
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2025 21:30:20 UTC
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.1.43.0
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.15.167.4-microsoft-standard-WSL2
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /opt/java/openjdk
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 17.0.15+6
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Eclipse Adoptium
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
01-Aug-2025 00:44:39.178 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsun.io.useCanonCaches=false
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
01-Aug-2025 00:44:39.188 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
01-Aug-2025 00:44:39.189 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
01-Aug-2025 00:44:39.189 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
01-Aug-2025 00:44:39.189 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
01-Aug-2025 00:44:39.189 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
01-Aug-2025 00:44:39.189 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
01-Aug-2025 00:44:39.192 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [2.0.9] using APR version [1.7.2].
01-Aug-2025 00:44:39.194 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024]
01-Aug-2025 00:44:39.445 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
01-Aug-2025 00:44:39.465 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [475] milliseconds
01-Aug-2025 00:44:39.519 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
01-Aug-2025 00:44:39.519 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.43]
01-Aug-2025 00:44:39.544 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/ROOT.war]
01-Aug-2025 00:44:48.747 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Aug-2025 00:45:24.787 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ROOT.war] has finished in [45,243] ms
01-Aug-2025 00:45:24.788 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/custom]
01-Aug-2025 00:45:24.812 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/custom] has finished in [24] ms
01-Aug-2025 00:45:24.813 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/app]
01-Aug-2025 00:45:24.829 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/app] has finished in [15] ms
01-Aug-2025 00:45:24.834 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
01-Aug-2025 00:45:24.865 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [45402] milliseconds

View File

@ -1087,8 +1087,115 @@ def cache_structure(package_name, package_version, resource_type, view, structur
except Exception as e:
logger.error(f"Error caching structure: {e}", exc_info=True)
#----OLD CODE HERE
# def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include_narrative=False, raw=False):
# """Helper to find and extract StructureDefinition json from a tgz path, prioritizing profile match."""
# sd_data = None
# found_path = None
# if not tgz_path or not os.path.exists(tgz_path):
# logger.error(f"File not found in find_and_extract_sd: {tgz_path}")
# return None, None
# try:
# with tarfile.open(tgz_path, "r:gz") as tar:
# logger.debug(f"Searching for SD matching '{resource_identifier}' with profile '{profile_url}' in {os.path.basename(tgz_path)}")
# potential_matches = []
# for member in tar:
# if not (member.isfile() and member.name.startswith('package/') and member.name.lower().endswith('.json')):
# continue
# if os.path.basename(member.name).lower() in ['package.json', '.index.json', 'validation-summary.json', 'validation-oo.json']:
# continue
# fileobj = None
# try:
# fileobj = tar.extractfile(member)
# if fileobj:
# content_bytes = fileobj.read()
# content_string = content_bytes.decode('utf-8-sig')
# data = json.loads(content_string)
# if isinstance(data, dict) and data.get('resourceType') == 'StructureDefinition':
# sd_id = data.get('id')
# sd_name = data.get('name')
# sd_type = data.get('type')
# sd_url = data.get('url')
# sd_filename_base = os.path.splitext(os.path.basename(member.name))[0]
# sd_filename_lower = sd_filename_base.lower()
# resource_identifier_lower = resource_identifier.lower() if resource_identifier else None
# match_score = 0
# if profile_url and sd_url == profile_url:
# match_score = 5
# sd_data = remove_narrative(data, include_narrative)
# found_path = member.name
# logger.info(f"Found definitive SD matching profile '{profile_url}' at path: {found_path}")
# break
# elif resource_identifier_lower:
# if sd_id and resource_identifier_lower == sd_id.lower():
# match_score = 4
# elif sd_name and resource_identifier_lower == sd_name.lower():
# match_score = 4
# elif sd_filename_lower == f"structuredefinition-{resource_identifier_lower}":
# match_score = 3
# elif sd_type and resource_identifier_lower == sd_type.lower() and not re.search(r'[-.]', resource_identifier):
# match_score = 2
# elif resource_identifier_lower in sd_filename_lower:
# match_score = 1
# elif sd_url and resource_identifier_lower in sd_url.lower():
# match_score = 1
# if match_score > 0:
# potential_matches.append((match_score, remove_narrative(data, include_narrative), member.name))
# if match_score >= 3:
# sd_data = remove_narrative(data, include_narrative)
# found_path = member.name
# break
# except json.JSONDecodeError as e:
# logger.debug(f"Could not parse JSON in {member.name}, skipping: {e}")
# except UnicodeDecodeError as e:
# logger.warning(f"Could not decode UTF-8 in {member.name}, skipping: {e}")
# except tarfile.TarError as e:
# logger.warning(f"Tar error reading member {member.name}, skipping: {e}")
# except Exception as e:
# logger.warning(f"Could not read/parse potential SD {member.name}, skipping: {e}")
# finally:
# if fileobj:
# fileobj.close()
# if not sd_data and potential_matches:
# potential_matches.sort(key=lambda x: x[0], reverse=True)
# best_match = potential_matches[0]
# sd_data = best_match[1]
# found_path = best_match[2]
# logger.info(f"Selected best match for '{resource_identifier}' from potential matches (Score: {best_match[0]}): {found_path}")
# if sd_data is None:
# logger.info(f"SD matching identifier '{resource_identifier}' or profile '{profile_url}' not found within archive {os.path.basename(tgz_path)}")
# elif raw:
# # Return the full, unprocessed StructureDefinition JSON
# with tarfile.open(tgz_path, "r:gz") as tar:
# fileobj = tar.extractfile(found_path)
# content_bytes = fileobj.read()
# content_string = content_bytes.decode('utf-8-sig')
# raw_data = json.loads(content_string)
# return remove_narrative(raw_data, include_narrative), found_path
# except tarfile.ReadError as e:
# logger.error(f"Tar ReadError reading {tgz_path}: {e}")
# return None, None
# except tarfile.TarError as e:
# logger.error(f"TarError reading {tgz_path} in find_and_extract_sd: {e}")
# raise
# except FileNotFoundError:
# logger.error(f"FileNotFoundError reading {tgz_path} in find_and_extract_sd.")
# raise
# except Exception as e:
# logger.error(f"Unexpected error in find_and_extract_sd for {tgz_path}: {e}", exc_info=True)
# raise
# return sd_data, found_path
#--- OLD
# --- UPDATED: find_and_extract_sd function ---
def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include_narrative=False, raw=False):
"""Helper to find and extract StructureDefinition json from a tgz path, prioritizing profile match."""
"""
Helper to find and extract StructureDefinition json from a tgz path, prioritizing profile match.
This version includes logic to handle canonical URLs with version numbers (e.g., `|5.2.0`)
and to prioritize a direct profile URL match.
"""
sd_data = None
found_path = None
if not tgz_path or not os.path.exists(tgz_path):
@ -1098,6 +1205,11 @@ def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include
with tarfile.open(tgz_path, "r:gz") as tar:
logger.debug(f"Searching for SD matching '{resource_identifier}' with profile '{profile_url}' in {os.path.basename(tgz_path)}")
potential_matches = []
# --- Work Item 3: Sanitize profile URL to strip version ---
clean_profile_url = profile_url.split('|')[0] if profile_url else None
logger.debug(f"Cleaned profile URL for search: '{clean_profile_url}'")
for member in tar:
if not (member.isfile() and member.name.startswith('package/') and member.name.lower().endswith('.json')):
continue
@ -1119,12 +1231,15 @@ def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include
sd_filename_lower = sd_filename_base.lower()
resource_identifier_lower = resource_identifier.lower() if resource_identifier else None
match_score = 0
if profile_url and sd_url == profile_url:
# --- Prioritize exact match on the canonical URL (without version) ---
if clean_profile_url and sd_url == clean_profile_url:
match_score = 5
sd_data = remove_narrative(data, include_narrative)
found_path = member.name
logger.info(f"Found definitive SD matching profile '{profile_url}' at path: {found_path}")
logger.info(f"Found definitive SD matching profile '{clean_profile_url}' at path: {found_path}")
break
elif resource_identifier_lower:
if sd_id and resource_identifier_lower == sd_id.lower():
match_score = 4
@ -1132,6 +1247,7 @@ def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include
match_score = 4
elif sd_filename_lower == f"structuredefinition-{resource_identifier_lower}":
match_score = 3
# --- Work Item 2: Score match on resourceType for fallback logic ---
elif sd_type and resource_identifier_lower == sd_type.lower() and not re.search(r'[-.]', resource_identifier):
match_score = 2
elif resource_identifier_lower in sd_filename_lower:
@ -1164,7 +1280,6 @@ def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include
if sd_data is None:
logger.info(f"SD matching identifier '{resource_identifier}' or profile '{profile_url}' not found within archive {os.path.basename(tgz_path)}")
elif raw:
# Return the full, unprocessed StructureDefinition JSON
with tarfile.open(tgz_path, "r:gz") as tar:
fileobj = tar.extractfile(found_path)
content_bytes = fileobj.read()
@ -1185,6 +1300,8 @@ def find_and_extract_sd(tgz_path, resource_identifier, profile_url=None, include
raise
return sd_data, found_path
# --- Metadata Saving/Loading ---
def save_package_metadata(name, version, dependency_mode, dependencies, complies_with_profiles=None, imposed_profiles=None):
"""Saves dependency mode, imported dependencies, and profile relationships as metadata."""
@ -1871,8 +1988,240 @@ def _legacy_validate_resource_against_profile(package_name, version, resource, i
}
logger.debug(f"Validation result: valid={result['valid']}, errors={len(result['errors'])}, warnings={len(result['warnings'])}")
return result
# -- OLD
# def validate_resource_against_profile(package_name, version, resource, include_dependencies=True):
# result = {
# 'valid': True,
# 'errors': [],
# 'warnings': [],
# 'details': [],
# 'resource_type': resource.get('resourceType'),
# 'resource_id': resource.get('id', 'unknown'),
# 'profile': resource.get('meta', {}).get('profile', [None])[0]
# }
# # Attempt HAPI validation if a profile is specified
# if result['profile']:
# try:
# hapi_url = f"{current_app.config['HAPI_FHIR_URL'].rstrip('/')}/{resource['resourceType']}/$validate?profile={result['profile']}"
# response = requests.post(
# hapi_url,
# json=resource,
# headers={'Content-Type': 'application/fhir+json', 'Accept': 'application/fhir+json'},
# timeout=10
# )
# response.raise_for_status()
# outcome = response.json()
# if outcome.get('resourceType') == 'OperationOutcome':
# for issue in outcome.get('issue', []):
# severity = issue.get('severity')
# diagnostics = issue.get('diagnostics', issue.get('details', {}).get('text', 'No details provided'))
# detail = {
# 'issue': diagnostics,
# 'severity': severity,
# 'description': issue.get('details', {}).get('text', diagnostics)
# }
# if severity in ['error', 'fatal']:
# result['valid'] = False
# result['errors'].append(diagnostics)
# elif severity == 'warning':
# result['warnings'].append(diagnostics)
# result['details'].append(detail)
# result['summary'] = {
# 'error_count': len(result['errors']),
# 'warning_count': len(result['warnings'])
# }
# logger.debug(f"HAPI validation for {result['resource_type']}/{result['resource_id']}: valid={result['valid']}, errors={len(result['errors'])}, warnings={len(result['warnings'])}")
# return result
# else:
# logger.warning(f"HAPI returned non-OperationOutcome: {outcome.get('resourceType')}")
# except requests.RequestException as e:
# logger.error(f"HAPI validation failed for {result['resource_type']}/{result['resource_id']}: {e}")
# result['details'].append({
# 'issue': f"HAPI validation failed: {str(e)}",
# 'severity': 'warning',
# 'description': 'Falling back to local validation due to HAPI server error.'
# })
# # Fallback to local validation
# download_dir = _get_download_dir()
# if not download_dir:
# result['valid'] = False
# result['errors'].append("Could not access download directory")
# result['details'].append({
# 'issue': "Could not access download directory",
# 'severity': 'error',
# 'description': "The server could not locate the directory where FHIR packages are stored."
# })
# return result
# tgz_path = os.path.join(download_dir, construct_tgz_filename(package_name, version))
# sd_data, sd_path = find_and_extract_sd(tgz_path, resource.get('resourceType'), result['profile'])
# if not sd_data:
# result['valid'] = False
# result['errors'].append(f"No StructureDefinition found for {resource.get('resourceType')}")
# result['details'].append({
# 'issue': f"No StructureDefinition found for {resource.get('resourceType')}",
# 'severity': 'error',
# 'description': f"The package {package_name}#{version} does not contain a matching StructureDefinition."
# })
# return result
# elements = sd_data.get('snapshot', {}).get('element', [])
# for element in elements:
# path = element.get('path')
# min_val = element.get('min', 0)
# must_support = element.get('mustSupport', False)
# slicing = element.get('slicing')
# slice_name = element.get('sliceName')
# # Check required elements
# if min_val > 0:
# value = navigate_fhir_path(resource, path)
# if value is None or (isinstance(value, list) and not any(value)):
# result['valid'] = False
# result['errors'].append(f"Required element {path} missing")
# result['details'].append({
# 'issue': f"Required element {path} missing",
# 'severity': 'error',
# 'description': f"Element {path} has min={min_val} in profile {result['profile'] or 'unknown'}"
# })
# # Check must-support elements
# if must_support:
# value = navigate_fhir_path(resource, slice_name if slice_name else path)
# if value is None or (isinstance(value, list) and not any(value)):
# result['warnings'].append(f"Must Support element {path} missing or empty")
# result['details'].append({
# 'issue': f"Must Support element {path} missing or empty",
# 'severity': 'warning',
# 'description': f"Element {path} is marked as Must Support in profile {result['profile'] or 'unknown'}"
# })
# # Validate slicing
# if slicing and not slice_name: # Parent slicing element
# discriminator = slicing.get('discriminator', [])
# for d in discriminator:
# d_type = d.get('type')
# d_path = d.get('path')
# if d_type == 'value':
# sliced_elements = navigate_fhir_path(resource, path)
# if isinstance(sliced_elements, list):
# seen_values = set()
# for elem in sliced_elements:
# d_value = navigate_fhir_path(elem, d_path)
# if d_value in seen_values:
# result['valid'] = False
# result['errors'].append(f"Duplicate discriminator value {d_value} for {path}.{d_path}")
# seen_values.add(d_value)
# elif d_type == 'type':
# sliced_elements = navigate_fhir_path(resource, path)
# if isinstance(sliced_elements, list):
# for elem in sliced_elements:
# if not navigate_fhir_path(elem, d_path):
# result['valid'] = False
# result['errors'].append(f"Missing discriminator type {d_path} for {path}")
# result['summary'] = {
# 'error_count': len(result['errors']),
# 'warning_count': len(result['warnings'])
# }
# return result
# def validate_bundle_against_profile(package_name, version, bundle, include_dependencies=True):
# """Validates a FHIR Bundle against profiles in the specified package."""
# logger.debug(f"Validating bundle against {package_name}#{version}, include_dependencies={include_dependencies}")
# result = {
# 'valid': True,
# 'errors': [],
# 'warnings': [],
# 'details': [],
# 'results': {},
# 'summary': {
# 'resource_count': 0,
# 'failed_resources': 0,
# 'profiles_validated': set()
# }
# }
# if not bundle.get('resourceType') == 'Bundle':
# result['valid'] = False
# result['errors'].append("Resource is not a Bundle")
# result['details'].append({
# 'issue': "Resource is not a Bundle",
# 'severity': 'error',
# 'description': "The provided resource must have resourceType 'Bundle' to be validated as a bundle."
# })
# logger.error("Validation failed: Resource is not a Bundle")
# return result
# # Track references to validate resolvability
# references = set()
# resolved_references = set()
# for entry in bundle.get('entry', []):
# resource = entry.get('resource')
# if not resource:
# continue
# resource_type = resource.get('resourceType')
# resource_id = resource.get('id', 'unknown')
# result['summary']['resource_count'] += 1
# # Collect references
# for key, value in resource.items():
# if isinstance(value, dict) and 'reference' in value:
# references.add(value['reference'])
# elif isinstance(value, list):
# for item in value:
# if isinstance(item, dict) and 'reference' in item:
# references.add(item['reference'])
# # Validate resource
# validation_result = validate_resource_against_profile(package_name, version, resource, include_dependencies)
# result['results'][f"{resource_type}/{resource_id}"] = validation_result
# result['summary']['profiles_validated'].add(validation_result['profile'] or 'unknown')
# # Aggregate errors and warnings
# if not validation_result['valid']:
# result['valid'] = False
# result['summary']['failed_resources'] += 1
# result['errors'].extend(validation_result['errors'])
# result['warnings'].extend(validation_result['warnings'])
# result['details'].extend(validation_result['details'])
# # Mark resource as resolved if it has an ID
# if resource_id != 'unknown':
# resolved_references.add(f"{resource_type}/{resource_id}")
# # Check for unresolved references
# unresolved = references - resolved_references
# for ref in unresolved:
# warning_msg = f"Unresolved reference: {ref}"
# result['warnings'].append(warning_msg)
# result['details'].append({
# 'issue': warning_msg,
# 'severity': 'warning',
# 'description': f"The reference {ref} points to a resource not included in the bundle. Ensure the referenced resource is present or resolvable."
# })
# logger.info(f"Validation warning: Unresolved reference {ref}")
# # Finalize summary
# result['summary']['profiles_validated'] = list(result['summary']['profiles_validated'])
# result['summary']['error_count'] = len(result['errors'])
# result['summary']['warning_count'] = len(result['warnings'])
# logger.debug(f"Bundle validation result: valid={result['valid']}, errors={result['summary']['error_count']}, warnings={result['summary']['warning_count']}, resources={result['summary']['resource_count']}")
# return result
# -- OLD
# --- UPDATED: validate_resource_against_profile function ---
def validate_resource_against_profile(package_name, version, resource, include_dependencies=True):
"""
Validates a FHIR resource against a StructureDefinition in the specified package.
This version correctly handles the absence of a `meta.profile` by falling back
to the base resource definition. It also sanitizes profile URLs to avoid
version mismatch errors.
"""
result = {
'valid': True,
'errors': [],
@ -1882,51 +2231,7 @@ def validate_resource_against_profile(package_name, version, resource, include_d
'resource_id': resource.get('id', 'unknown'),
'profile': resource.get('meta', {}).get('profile', [None])[0]
}
# Attempt HAPI validation if a profile is specified
if result['profile']:
try:
hapi_url = f"{current_app.config['HAPI_FHIR_URL'].rstrip('/')}/{resource['resourceType']}/$validate?profile={result['profile']}"
response = requests.post(
hapi_url,
json=resource,
headers={'Content-Type': 'application/fhir+json', 'Accept': 'application/fhir+json'},
timeout=10
)
response.raise_for_status()
outcome = response.json()
if outcome.get('resourceType') == 'OperationOutcome':
for issue in outcome.get('issue', []):
severity = issue.get('severity')
diagnostics = issue.get('diagnostics', issue.get('details', {}).get('text', 'No details provided'))
detail = {
'issue': diagnostics,
'severity': severity,
'description': issue.get('details', {}).get('text', diagnostics)
}
if severity in ['error', 'fatal']:
result['valid'] = False
result['errors'].append(diagnostics)
elif severity == 'warning':
result['warnings'].append(diagnostics)
result['details'].append(detail)
result['summary'] = {
'error_count': len(result['errors']),
'warning_count': len(result['warnings'])
}
logger.debug(f"HAPI validation for {result['resource_type']}/{result['resource_id']}: valid={result['valid']}, errors={len(result['errors'])}, warnings={len(result['warnings'])}")
return result
else:
logger.warning(f"HAPI returned non-OperationOutcome: {outcome.get('resourceType')}")
except requests.RequestException as e:
logger.error(f"HAPI validation failed for {result['resource_type']}/{result['resource_id']}: {e}")
result['details'].append({
'issue': f"HAPI validation failed: {str(e)}",
'severity': 'warning',
'description': 'Falling back to local validation due to HAPI server error.'
})
# Fallback to local validation
download_dir = _get_download_dir()
if not download_dir:
result['valid'] = False
@ -1936,83 +2241,171 @@ def validate_resource_against_profile(package_name, version, resource, include_d
'severity': 'error',
'description': "The server could not locate the directory where FHIR packages are stored."
})
logger.error("Validation failed: Could not access download directory")
return result
# --- Work Item 3 & 2: Get profile URL or fallback to resourceType ---
profile_url = result['profile']
resource_identifier = resource.get('resourceType')
if profile_url:
# Sanitize profile URL to remove version
clean_profile_url = profile_url.split('|')[0]
logger.debug(f"Using provided profile: {profile_url}. Cleaned to: {clean_profile_url}")
resource_identifier = profile_url
else:
# No profile provided, fallback to resource type
logger.debug(f"No profile in resource, using base type as identifier: {resource_identifier}")
clean_profile_url = None
tgz_path = os.path.join(download_dir, construct_tgz_filename(package_name, version))
sd_data, sd_path = find_and_extract_sd(tgz_path, resource.get('resourceType'), result['profile'])
logger.debug(f"Checking for package file: {tgz_path}")
# Find StructureDefinition
sd_data, sd_path = find_and_extract_sd(tgz_path, resource_identifier, clean_profile_url)
if not sd_data and include_dependencies:
logger.debug(f"SD not found in {package_name}#{version}. Checking dependencies.")
try:
with tarfile.open(tgz_path, "r:gz") as tar:
package_json_member = None
for member in tar:
if member.name == 'package/package.json':
package_json_member = member
break
if package_json_member:
fileobj = tar.extractfile(package_json_member)
pkg_data = json.load(fileobj)
fileobj.close()
dependencies = pkg_data.get('dependencies', {})
logger.debug(f"Found dependencies: {dependencies}")
for dep_name, dep_version in dependencies.items():
dep_tgz = os.path.join(download_dir, construct_tgz_filename(dep_name, dep_version))
if os.path.exists(dep_tgz):
logger.debug(f"Searching SD in dependency {dep_name}#{dep_version}")
sd_data, sd_path = find_and_extract_sd(dep_tgz, resource_identifier, clean_profile_url)
if sd_data:
logger.info(f"Found SD in dependency {dep_name}#{dep_version} at {sd_path}")
break
else:
logger.warning(f"Dependency package {dep_name}#{dep_version} not found at {dep_tgz}")
else:
logger.warning(f"No package.json found in {tgz_path}")
except json.JSONDecodeError as e:
logger.error(f"Failed to parse package.json in {tgz_path}: {e}")
except tarfile.TarError as e:
logger.error(f"Failed to read {tgz_path} while checking dependencies: {e}")
except Exception as e:
logger.error(f"Unexpected error while checking dependencies in {tgz_path}: {e}")
if not sd_data:
result['valid'] = False
result['errors'].append(f"No StructureDefinition found for {resource.get('resourceType')}")
result['errors'].append(f"No StructureDefinition found for {resource_identifier} with profile {clean_profile_url or 'any'}")
result['details'].append({
'issue': f"No StructureDefinition found for {resource.get('resourceType')}",
'issue': f"No StructureDefinition found for {resource_identifier} with profile {clean_profile_url or 'any'}",
'severity': 'error',
'description': f"The package {package_name}#{version} does not contain a matching StructureDefinition."
'description': f"The package {package_name}#{version} (and dependencies, if checked) does not contain a matching StructureDefinition."
})
logger.error(f"Validation failed: No SD for {resource_identifier} in {tgz_path}")
return result
logger.debug(f"Found SD at {sd_path}")
# Validate required elements (min=1)
errors = []
warnings = set()
elements = sd_data.get('snapshot', {}).get('element', [])
for element in elements:
path = element.get('path')
min_val = element.get('min', 0)
must_support = element.get('mustSupport', False)
slicing = element.get('slicing')
slice_name = element.get('sliceName')
definition = element.get('definition', 'No definition provided in StructureDefinition.')
# Check required elements
if min_val > 0:
if min_val > 0 and not '.' in path[1 + path.find('.'):] if path.find('.') != -1 else True:
value = navigate_fhir_path(resource, path)
if value is None or (isinstance(value, list) and not any(value)):
result['valid'] = False
result['errors'].append(f"Required element {path} missing")
error_msg = f"{resource.get('resourceType')}/{resource.get('id', 'unknown')}: Required element {path} missing"
errors.append(error_msg)
result['details'].append({
'issue': f"Required element {path} missing",
'issue': error_msg,
'severity': 'error',
'description': f"Element {path} has min={min_val} in profile {result['profile'] or 'unknown'}"
'description': f"{definition} This element is mandatory (min={min_val}) per the profile {profile_url or 'unknown'}."
})
logger.info(f"Validation error: Required element {path} missing")
# Check must-support elements
if must_support:
value = navigate_fhir_path(resource, slice_name if slice_name else path)
if value is None or (isinstance(value, list) and not any(value)):
result['warnings'].append(f"Must Support element {path} missing or empty")
result['details'].append({
'issue': f"Must Support element {path} missing or empty",
'severity': 'warning',
'description': f"Element {path} is marked as Must Support in profile {result['profile'] or 'unknown'}"
})
if must_support and not '.' in path[1 + path.find('.'):] if path.find('.') != -1 else True:
if '[x]' in path:
base_path = path.replace('[x]', '')
found = False
for suffix in ['Quantity', 'CodeableConcept', 'String', 'DateTime', 'Period', 'Range']:
test_path = f"{base_path}{suffix}"
value = navigate_fhir_path(resource, test_path)
if value is not None and (not isinstance(value, list) or any(value)):
found = True
break
if not found:
warning_msg = f"{resource.get('resourceType')}/{resource.get('id', 'unknown')}: Must Support element {path} missing or empty"
warnings.add(warning_msg)
result['details'].append({
'issue': warning_msg,
'severity': 'warning',
'description': f"{definition} This element is marked as Must Support in AU Core, meaning it should be populated if the data is available (e.g., phone or email for Patient.telecom)."
})
logger.info(f"Validation warning: Must Support element {path} missing or empty")
else:
value = navigate_fhir_path(resource, path)
if value is None or (isinstance(value, list) and not any(value)):
if element.get('min', 0) == 0:
warning_msg = f"{resource.get('resourceType')}/{resource.get('id', 'unknown')}: Must Support element {path} missing or empty"
warnings.add(warning_msg)
result['details'].append({
'issue': warning_msg,
'severity': 'warning',
'description': f"{definition} This element is marked as Must Support in AU Core, meaning it should be populated if the data is available (e.g., phone or email for Patient.telecom)."
})
logger.info(f"Validation warning: Must Support element {path} missing or empty")
# Validate slicing
if slicing and not slice_name: # Parent slicing element
discriminator = slicing.get('discriminator', [])
for d in discriminator:
d_type = d.get('type')
d_path = d.get('path')
if d_type == 'value':
sliced_elements = navigate_fhir_path(resource, path)
if isinstance(sliced_elements, list):
seen_values = set()
for elem in sliced_elements:
d_value = navigate_fhir_path(elem, d_path)
if d_value in seen_values:
result['valid'] = False
result['errors'].append(f"Duplicate discriminator value {d_value} for {path}.{d_path}")
seen_values.add(d_value)
elif d_type == 'type':
sliced_elements = navigate_fhir_path(resource, path)
if isinstance(sliced_elements, list):
for elem in sliced_elements:
if not navigate_fhir_path(elem, d_path):
result['valid'] = False
result['errors'].append(f"Missing discriminator type {d_path} for {path}")
# Handle dataAbsentReason for must-support elements
if path.endswith('dataAbsentReason') and must_support:
value_x_path = path.replace('dataAbsentReason', 'value[x]')
value_found = False
for suffix in ['Quantity', 'CodeableConcept', 'String', 'DateTime', 'Period', 'Range']:
test_path = path.replace('dataAbsentReason', f'value{suffix}')
value = navigate_fhir_path(resource, test_path)
if value is not None and (not isinstance(value, list) or any(value)):
value_found = True
break
if not value_found:
value = navigate_fhir_path(resource, path)
if value is None or (isinstance(value, list) and not any(value)):
warning_msg = f"{resource.get('resourceType')}/{resource.get('id', 'unknown')}: Must Support element {path} missing or empty"
warnings.add(warning_msg)
result['details'].append({
'issue': warning_msg,
'severity': 'warning',
'description': f"{definition} This element is marked as Must Support and should be used to indicate why the associated value is absent."
})
logger.info(f"Validation warning: Must Support element {path} missing or empty")
result['errors'] = errors
result['warnings'] = list(warnings)
result['valid'] = len(errors) == 0
result['summary'] = {
'error_count': len(result['errors']),
'warning_count': len(result['warnings'])
'error_count': len(errors),
'warning_count': len(warnings)
}
logger.debug(f"Validation result: valid={result['valid']}, errors={len(result['errors'])}, warnings={len(result['warnings'])}")
return result
# --- UPDATED: validate_bundle_against_profile function ---
def validate_bundle_against_profile(package_name, version, bundle, include_dependencies=True):
"""Validates a FHIR Bundle against profiles in the specified package."""
"""
Validates a FHIR Bundle against profiles in the specified package.
This version adds a new two-pass process to correctly resolve `urn:uuid`
references within the bundle before flagging them as unresolved.
"""
logger.debug(f"Validating bundle against {package_name}#{version}, include_dependencies={include_dependencies}")
result = {
'valid': True,
@ -2037,10 +2430,21 @@ def validate_bundle_against_profile(package_name, version, bundle, include_depen
logger.error("Validation failed: Resource is not a Bundle")
return result
# Track references to validate resolvability
references = set()
resolved_references = set()
# --- Work Item 1: First pass to collect all local references ---
local_references = set()
for entry in bundle.get('entry', []):
fullUrl = entry.get('fullUrl')
resource = entry.get('resource')
if fullUrl:
local_references.add(fullUrl)
if resource and resource.get('resourceType') and resource.get('id'):
local_references.add(f"{resource['resourceType']}/{resource['id']}")
logger.debug(f"Found {len(local_references)} local references in the bundle.")
# Track references and resolved references for external check
all_references_found = set()
# Second pass for validation and reference checking
for entry in bundle.get('entry', []):
resource = entry.get('resource')
if not resource:
@ -2050,13 +2454,11 @@ def validate_bundle_against_profile(package_name, version, bundle, include_depen
result['summary']['resource_count'] += 1
# Collect references
for key, value in resource.items():
if isinstance(value, dict) and 'reference' in value:
references.add(value['reference'])
elif isinstance(value, list):
for item in value:
if isinstance(item, dict) and 'reference' in item:
references.add(item['reference'])
current_refs = []
find_references(resource, current_refs)
for ref_str in current_refs:
if isinstance(ref_str, str):
all_references_found.add(ref_str)
# Validate resource
validation_result = validate_resource_against_profile(package_name, version, resource, include_dependencies)
@ -2071,21 +2473,17 @@ def validate_bundle_against_profile(package_name, version, bundle, include_depen
result['warnings'].extend(validation_result['warnings'])
result['details'].extend(validation_result['details'])
# Mark resource as resolved if it has an ID
if resource_id != 'unknown':
resolved_references.add(f"{resource_type}/{resource_id}")
# Check for unresolved references
unresolved = references - resolved_references
for ref in unresolved:
warning_msg = f"Unresolved reference: {ref}"
result['warnings'].append(warning_msg)
result['details'].append({
'issue': warning_msg,
'severity': 'warning',
'description': f"The reference {ref} points to a resource not included in the bundle. Ensure the referenced resource is present or resolvable."
})
logger.info(f"Validation warning: Unresolved reference {ref}")
# --- Work Item 1: Check for unresolved references *after* processing all local resources ---
for ref in all_references_found:
if ref not in local_references:
warning_msg = f"Unresolved reference: {ref}"
result['warnings'].append(warning_msg)
result['details'].append({
'issue': warning_msg,
'severity': 'warning',
'description': f"The reference {ref} points to a resource not included in the bundle. Ensure the referenced resource is present or resolvable."
})
logger.info(f"Validation warning: Unresolved reference {ref}")
# Finalize summary
result['summary']['profiles_validated'] = list(result['summary']['profiles_validated'])
@ -2094,6 +2492,7 @@ def validate_bundle_against_profile(package_name, version, bundle, include_depen
logger.debug(f"Bundle validation result: valid={result['valid']}, errors={result['summary']['error_count']}, warnings={result['summary']['warning_count']}, resources={result['summary']['resource_count']}")
return result
# --- Structure Definition Retrieval ---
def get_structure_definition(package_name, version, resource_type):
"""Fetches StructureDefinition with slicing support."""