mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-11-05 13:35:15 +00:00
Add website and website build
This commit is contained in:
parent
777dddbcaf
commit
2af2fd9b11
57
.github/workflows/jekyll.yml
vendored
Normal file
57
.github/workflows/jekyll.yml
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
name: Build and Deploy Jekyll site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.0'
|
||||||
|
bundler-cache: true
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
bundle install
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
run: bundle exec jekyll build
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v1
|
||||||
|
with:
|
||||||
|
path: ./website/_site
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
|
||||||
|
|
||||||
|
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
||||||
|
permissions:
|
||||||
|
pages: write # to deploy to Pages
|
||||||
|
id-token: write # to verify the deployment originates from an appropriate source
|
||||||
|
|
||||||
|
# Deploy to the github-pages environment
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
||||||
1
website/.gitignore
vendored
Normal file
1
website/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/_site/
|
||||||
309
website/Gemfile.lock
Normal file
309
website/Gemfile.lock
Normal file
@ -0,0 +1,309 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
activesupport (8.0.2)
|
||||||
|
base64
|
||||||
|
benchmark (>= 0.3)
|
||||||
|
bigdecimal
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||||
|
connection_pool (>= 2.2.5)
|
||||||
|
drb
|
||||||
|
i18n (>= 1.6, < 2)
|
||||||
|
logger (>= 1.4.2)
|
||||||
|
minitest (>= 5.1)
|
||||||
|
securerandom (>= 0.3)
|
||||||
|
tzinfo (~> 2.0, >= 2.0.5)
|
||||||
|
uri (>= 0.13.1)
|
||||||
|
addressable (2.8.7)
|
||||||
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
|
base64 (0.2.0)
|
||||||
|
benchmark (0.4.1)
|
||||||
|
bigdecimal (3.2.2)
|
||||||
|
coffee-script (2.4.1)
|
||||||
|
coffee-script-source
|
||||||
|
execjs
|
||||||
|
coffee-script-source (1.12.2)
|
||||||
|
colorator (1.1.0)
|
||||||
|
commonmarker (0.23.11)
|
||||||
|
concurrent-ruby (1.3.5)
|
||||||
|
connection_pool (2.5.3)
|
||||||
|
dnsruby (1.72.4)
|
||||||
|
base64 (~> 0.2.0)
|
||||||
|
logger (~> 1.6.5)
|
||||||
|
simpleidn (~> 0.2.1)
|
||||||
|
drb (2.2.3)
|
||||||
|
em-websocket (0.5.3)
|
||||||
|
eventmachine (>= 0.12.9)
|
||||||
|
http_parser.rb (~> 0)
|
||||||
|
ethon (0.16.0)
|
||||||
|
ffi (>= 1.15.0)
|
||||||
|
eventmachine (1.2.7)
|
||||||
|
execjs (2.10.0)
|
||||||
|
faraday (2.13.4)
|
||||||
|
faraday-net_http (>= 2.0, < 3.5)
|
||||||
|
json
|
||||||
|
logger
|
||||||
|
faraday-net_http (3.4.1)
|
||||||
|
net-http (>= 0.5.0)
|
||||||
|
ffi (1.17.2-aarch64-linux-gnu)
|
||||||
|
ffi (1.17.2-aarch64-linux-musl)
|
||||||
|
ffi (1.17.2-arm-linux-gnu)
|
||||||
|
ffi (1.17.2-arm-linux-musl)
|
||||||
|
ffi (1.17.2-arm64-darwin)
|
||||||
|
ffi (1.17.2-x86_64-darwin)
|
||||||
|
ffi (1.17.2-x86_64-linux-gnu)
|
||||||
|
ffi (1.17.2-x86_64-linux-musl)
|
||||||
|
forwardable-extended (2.6.0)
|
||||||
|
gemoji (4.1.0)
|
||||||
|
github-pages (231)
|
||||||
|
github-pages-health-check (= 1.18.2)
|
||||||
|
jekyll (= 3.9.5)
|
||||||
|
jekyll-avatar (= 0.8.0)
|
||||||
|
jekyll-coffeescript (= 1.2.2)
|
||||||
|
jekyll-commonmark-ghpages (= 0.4.0)
|
||||||
|
jekyll-default-layout (= 0.1.5)
|
||||||
|
jekyll-feed (= 0.17.0)
|
||||||
|
jekyll-gist (= 1.5.0)
|
||||||
|
jekyll-github-metadata (= 2.16.1)
|
||||||
|
jekyll-include-cache (= 0.2.1)
|
||||||
|
jekyll-mentions (= 1.6.0)
|
||||||
|
jekyll-optional-front-matter (= 0.3.2)
|
||||||
|
jekyll-paginate (= 1.1.0)
|
||||||
|
jekyll-readme-index (= 0.3.0)
|
||||||
|
jekyll-redirect-from (= 0.16.0)
|
||||||
|
jekyll-relative-links (= 0.6.1)
|
||||||
|
jekyll-remote-theme (= 0.4.3)
|
||||||
|
jekyll-sass-converter (= 1.5.2)
|
||||||
|
jekyll-seo-tag (= 2.8.0)
|
||||||
|
jekyll-sitemap (= 1.4.0)
|
||||||
|
jekyll-swiss (= 1.0.0)
|
||||||
|
jekyll-theme-architect (= 0.2.0)
|
||||||
|
jekyll-theme-cayman (= 0.2.0)
|
||||||
|
jekyll-theme-dinky (= 0.2.0)
|
||||||
|
jekyll-theme-hacker (= 0.2.0)
|
||||||
|
jekyll-theme-leap-day (= 0.2.0)
|
||||||
|
jekyll-theme-merlot (= 0.2.0)
|
||||||
|
jekyll-theme-midnight (= 0.2.0)
|
||||||
|
jekyll-theme-minimal (= 0.2.0)
|
||||||
|
jekyll-theme-modernist (= 0.2.0)
|
||||||
|
jekyll-theme-primer (= 0.6.0)
|
||||||
|
jekyll-theme-slate (= 0.2.0)
|
||||||
|
jekyll-theme-tactile (= 0.2.0)
|
||||||
|
jekyll-theme-time-machine (= 0.2.0)
|
||||||
|
jekyll-titles-from-headings (= 0.5.3)
|
||||||
|
jemoji (= 0.13.0)
|
||||||
|
kramdown (= 2.4.0)
|
||||||
|
kramdown-parser-gfm (= 1.1.0)
|
||||||
|
liquid (= 4.0.4)
|
||||||
|
mercenary (~> 0.3)
|
||||||
|
minima (= 2.5.1)
|
||||||
|
nokogiri (>= 1.13.6, < 2.0)
|
||||||
|
rouge (= 3.30.0)
|
||||||
|
terminal-table (~> 1.4)
|
||||||
|
github-pages-health-check (1.18.2)
|
||||||
|
addressable (~> 2.3)
|
||||||
|
dnsruby (~> 1.60)
|
||||||
|
octokit (>= 4, < 8)
|
||||||
|
public_suffix (>= 3.0, < 6.0)
|
||||||
|
typhoeus (~> 1.3)
|
||||||
|
html-pipeline (2.14.3)
|
||||||
|
activesupport (>= 2)
|
||||||
|
nokogiri (>= 1.4)
|
||||||
|
http_parser.rb (0.8.0)
|
||||||
|
i18n (1.14.7)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
jekyll (3.9.5)
|
||||||
|
addressable (~> 2.4)
|
||||||
|
colorator (~> 1.0)
|
||||||
|
em-websocket (~> 0.5)
|
||||||
|
i18n (>= 0.7, < 2)
|
||||||
|
jekyll-sass-converter (~> 1.0)
|
||||||
|
jekyll-watch (~> 2.0)
|
||||||
|
kramdown (>= 1.17, < 3)
|
||||||
|
liquid (~> 4.0)
|
||||||
|
mercenary (~> 0.3.3)
|
||||||
|
pathutil (~> 0.9)
|
||||||
|
rouge (>= 1.7, < 4)
|
||||||
|
safe_yaml (~> 1.0)
|
||||||
|
jekyll-avatar (0.8.0)
|
||||||
|
jekyll (>= 3.0, < 5.0)
|
||||||
|
jekyll-coffeescript (1.2.2)
|
||||||
|
coffee-script (~> 2.2)
|
||||||
|
coffee-script-source (~> 1.12)
|
||||||
|
jekyll-commonmark (1.4.0)
|
||||||
|
commonmarker (~> 0.22)
|
||||||
|
jekyll-commonmark-ghpages (0.4.0)
|
||||||
|
commonmarker (~> 0.23.7)
|
||||||
|
jekyll (~> 3.9.0)
|
||||||
|
jekyll-commonmark (~> 1.4.0)
|
||||||
|
rouge (>= 2.0, < 5.0)
|
||||||
|
jekyll-default-layout (0.1.5)
|
||||||
|
jekyll (>= 3.0, < 5.0)
|
||||||
|
jekyll-feed (0.17.0)
|
||||||
|
jekyll (>= 3.7, < 5.0)
|
||||||
|
jekyll-gist (1.5.0)
|
||||||
|
octokit (~> 4.2)
|
||||||
|
jekyll-github-metadata (2.16.1)
|
||||||
|
jekyll (>= 3.4, < 5.0)
|
||||||
|
octokit (>= 4, < 7, != 4.4.0)
|
||||||
|
jekyll-include-cache (0.2.1)
|
||||||
|
jekyll (>= 3.7, < 5.0)
|
||||||
|
jekyll-mentions (1.6.0)
|
||||||
|
html-pipeline (~> 2.3)
|
||||||
|
jekyll (>= 3.7, < 5.0)
|
||||||
|
jekyll-optional-front-matter (0.3.2)
|
||||||
|
jekyll (>= 3.0, < 5.0)
|
||||||
|
jekyll-paginate (1.1.0)
|
||||||
|
jekyll-readme-index (0.3.0)
|
||||||
|
jekyll (>= 3.0, < 5.0)
|
||||||
|
jekyll-redirect-from (0.16.0)
|
||||||
|
jekyll (>= 3.3, < 5.0)
|
||||||
|
jekyll-relative-links (0.6.1)
|
||||||
|
jekyll (>= 3.3, < 5.0)
|
||||||
|
jekyll-remote-theme (0.4.3)
|
||||||
|
addressable (~> 2.0)
|
||||||
|
jekyll (>= 3.5, < 5.0)
|
||||||
|
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
|
||||||
|
rubyzip (>= 1.3.0, < 3.0)
|
||||||
|
jekyll-sass-converter (1.5.2)
|
||||||
|
sass (~> 3.4)
|
||||||
|
jekyll-seo-tag (2.8.0)
|
||||||
|
jekyll (>= 3.8, < 5.0)
|
||||||
|
jekyll-sitemap (1.4.0)
|
||||||
|
jekyll (>= 3.7, < 5.0)
|
||||||
|
jekyll-swiss (1.0.0)
|
||||||
|
jekyll-theme-architect (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-cayman (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-dinky (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-hacker (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-leap-day (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-merlot (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-midnight (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-minimal (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-modernist (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-primer (0.6.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-github-metadata (~> 2.9)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-slate (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-tactile (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-theme-time-machine (0.2.0)
|
||||||
|
jekyll (> 3.5, < 5.0)
|
||||||
|
jekyll-seo-tag (~> 2.0)
|
||||||
|
jekyll-titles-from-headings (0.5.3)
|
||||||
|
jekyll (>= 3.3, < 5.0)
|
||||||
|
jekyll-watch (2.2.1)
|
||||||
|
listen (~> 3.0)
|
||||||
|
jemoji (0.13.0)
|
||||||
|
gemoji (>= 3, < 5)
|
||||||
|
html-pipeline (~> 2.2)
|
||||||
|
jekyll (>= 3.0, < 5.0)
|
||||||
|
json (2.13.2)
|
||||||
|
kramdown (2.4.0)
|
||||||
|
rexml
|
||||||
|
kramdown-parser-gfm (1.1.0)
|
||||||
|
kramdown (~> 2.0)
|
||||||
|
liquid (4.0.4)
|
||||||
|
listen (3.9.0)
|
||||||
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
logger (1.6.6)
|
||||||
|
mercenary (0.3.6)
|
||||||
|
minima (2.5.1)
|
||||||
|
jekyll (>= 3.5, < 5.0)
|
||||||
|
jekyll-feed (~> 0.9)
|
||||||
|
jekyll-seo-tag (~> 2.1)
|
||||||
|
minitest (5.25.5)
|
||||||
|
net-http (0.6.0)
|
||||||
|
uri
|
||||||
|
nokogiri (1.18.9-aarch64-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-aarch64-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-arm-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-arm-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-arm64-darwin)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-x86_64-darwin)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-x86_64-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.18.9-x86_64-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
octokit (4.25.1)
|
||||||
|
faraday (>= 1, < 3)
|
||||||
|
sawyer (~> 0.9)
|
||||||
|
pathutil (0.16.2)
|
||||||
|
forwardable-extended (~> 2.6)
|
||||||
|
public_suffix (5.1.1)
|
||||||
|
racc (1.8.1)
|
||||||
|
rb-fsevent (0.11.2)
|
||||||
|
rb-inotify (0.11.1)
|
||||||
|
ffi (~> 1.0)
|
||||||
|
rexml (3.4.1)
|
||||||
|
rouge (3.30.0)
|
||||||
|
rubyzip (2.4.1)
|
||||||
|
safe_yaml (1.0.5)
|
||||||
|
sass (3.7.4)
|
||||||
|
sass-listen (~> 4.0.0)
|
||||||
|
sass-listen (4.0.0)
|
||||||
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
sawyer (0.9.2)
|
||||||
|
addressable (>= 2.3.5)
|
||||||
|
faraday (>= 0.17.3, < 3)
|
||||||
|
securerandom (0.4.1)
|
||||||
|
simpleidn (0.2.3)
|
||||||
|
terminal-table (1.8.0)
|
||||||
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
|
typhoeus (1.4.1)
|
||||||
|
ethon (>= 0.9.0)
|
||||||
|
tzinfo (2.0.6)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
unicode-display_width (1.8.0)
|
||||||
|
uri (1.0.3)
|
||||||
|
webrick (1.9.1)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
aarch64-linux-gnu
|
||||||
|
aarch64-linux-musl
|
||||||
|
arm-linux-gnu
|
||||||
|
arm-linux-musl
|
||||||
|
arm64-darwin
|
||||||
|
x86_64-darwin
|
||||||
|
x86_64-linux-gnu
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
github-pages
|
||||||
|
jekyll (~> 3.9.3)
|
||||||
|
jekyll-remote-theme
|
||||||
|
jekyll-seo-tag
|
||||||
|
webrick (~> 1.7)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.7.1
|
||||||
726
website/README.md
Normal file
726
website/README.md
Normal file
@ -0,0 +1,726 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
# FHIRFLARE IG Toolkit
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
The FHIRFLARE IG Toolkit is a Flask-based web application designed to streamline the management, processing, validation, and deployment of FHIR Implementation Guides (IGs) and test data. It offers a user-friendly interface for importing IG packages, extracting metadata, validating FHIR resources or bundles, pushing IGs to FHIR servers, converting FHIR resources to FHIR Shorthand (FSH), uploading complex test data sets with dependency management, and retrieving/splitting FHIR bundles. The toolkit includes live consoles for real-time feedback, making it an essential tool for FHIR developers and implementers.
|
||||||
|
|
||||||
|
The application can run in two modes:
|
||||||
|
|
||||||
|
* **Standalone:** Includes a Dockerized Flask frontend, SQLite database, and an embedded HAPI FHIR server for local validation and interaction.
|
||||||
|
* **Lite:** Includes only the Dockerized Flask frontend and SQLite database, excluding the local HAPI FHIR server. Requires connection to external FHIR servers for certain features.
|
||||||
|
|
||||||
|
## Installation Modes (Lite vs. Standalone)
|
||||||
|
|
||||||
|
This toolkit offers two primary installation modes to suit different needs:
|
||||||
|
|
||||||
|
* **Standalone Version:**
|
||||||
|
* Includes the full FHIRFLARE Toolkit application **and** an embedded HAPI FHIR server running locally within the Docker environment.
|
||||||
|
* Allows for local FHIR resource validation using HAPI FHIR's capabilities.
|
||||||
|
* Enables the "Use Local HAPI" option in the FHIR API Explorer and FHIR UI Operations pages, proxying requests to the internal HAPI server (`http://localhost:8080/fhir`).
|
||||||
|
* Requires Git and Maven during the initial build process (via the `.bat` script or manual steps) to prepare the HAPI FHIR server.
|
||||||
|
* Ideal for users who want a self-contained environment for development and testing or who don't have readily available external FHIR servers.
|
||||||
|
|
||||||
|
* **Lite Version:**
|
||||||
|
* Includes the FHIRFLARE Toolkit application **without** the embedded HAPI FHIR server.
|
||||||
|
* Requires users to provide URLs for external FHIR servers when using features like the FHIR API Explorer and FHIR UI Operations pages. The "Use Local HAPI" option will be disabled in the UI.
|
||||||
|
* Resource validation relies solely on local checks against downloaded StructureDefinitions, which may be less comprehensive than HAPI FHIR's validation (e.g., for terminology bindings or complex invariants).
|
||||||
|
* **Does not require Git or Maven** for setup if using the `.bat` script or running the pre-built Docker image.
|
||||||
|
* Ideal for users who primarily want to use the IG management, processing, and FSH conversion features, or who will always connect to existing external FHIR servers.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* **Import IGs:** Download FHIR IG packages and dependencies from a package registry, supporting flexible version formats (e.g., `1.2.3`, `1.1.0-preview`, `current`) and dependency pulling modes (Recursive, Patch Canonical, Tree Shaking).
|
||||||
|
* **Enhanced Package Search and Import:**
|
||||||
|
* Interactive page (`/search-and-import`) to search for FHIR IG packages from configured registries.
|
||||||
|
* Displays package details, version history, dependencies, and dependents.
|
||||||
|
* Utilizes a local database cache (`CachedPackage`) for faster subsequent searches.
|
||||||
|
* Background task to refresh the package cache from registries (`/api/refresh-cache-task`).
|
||||||
|
* Direct import from search results.
|
||||||
|
* **Manage IGs:** View, process, unload, or delete downloaded IGs, with duplicate detection and resolution.
|
||||||
|
* **Process IGs:** Extract resource types, profiles, must-support elements, examples, and profile relationships (`structuredefinition-compliesWithProfile` and `structuredefinition-imposeProfile`).
|
||||||
|
* **Validate FHIR Resources/Bundles:** Validate single FHIR resources or bundles against selected IGs, with detailed error and warning reports (alpha feature). *Note: Lite version uses local SD checks only.*
|
||||||
|
* **Push IGs:** Upload IG resources (and optionally dependencies) to a target FHIR server. Features include:
|
||||||
|
* Real-time console output.
|
||||||
|
* Authentication support (Bearer Token).
|
||||||
|
* Filtering by resource type or specific files to skip.
|
||||||
|
* Semantic comparison to skip uploading identical resources (override with **Force Upload** option).
|
||||||
|
* Correct handling of canonical resources (searching by URL/version before deciding POST/PUT).
|
||||||
|
* Dry run mode for simulation.
|
||||||
|
* Verbose logging option.
|
||||||
|
* **Upload Test Data:** Upload complex sets of test data (individual JSON/XML files or ZIP archives) to a target FHIR server. Features include:
|
||||||
|
* Robust parsing of JSON and XML (using `fhir.resources` library when available).
|
||||||
|
* Automatic dependency analysis based on resource references within the uploaded set.
|
||||||
|
* Topological sorting to ensure resources are uploaded in the correct order.
|
||||||
|
* Cycle detection in dependencies.
|
||||||
|
* Choice of individual resource uploads or a single transaction bundle.
|
||||||
|
* **Optional Pre-Upload Validation:** Validate resources against a selected profile package before uploading.
|
||||||
|
* **Optional Conditional Uploads (Individual Mode):** Check resource existence (GET) and use conditional `If-Match` headers for updates (PUT) or create resources (PUT/POST). Falls back to simple PUT if unchecked.
|
||||||
|
* Configurable error handling (stop on first error or continue).
|
||||||
|
* Authentication support (Bearer Token).
|
||||||
|
* Streaming progress log via the UI.
|
||||||
|
* Handles large numbers of files using a custom form parser.
|
||||||
|
* **Profile Relationships:** Display and validate `compliesWithProfile` and `imposeProfile` extensions in the UI (configurable).
|
||||||
|
* **FSH Converter:** Convert FHIR JSON/XML resources to FHIR Shorthand (FSH) using GoFSH, with advanced options (Package context, Output styles, Log levels, FHIR versions, Fishing Trip, Dependencies, Indentation, Meta Profile handling, Alias File, No Alias). Includes a waiting spinner.
|
||||||
|
* **Retrieve and Split Bundles:**
|
||||||
|
* Retrieve specified resource types as bundles from a FHIR server.
|
||||||
|
* Optionally fetch referenced resources, either individually or as full bundles for each referenced type.
|
||||||
|
* Split uploaded ZIP files containing bundles into individual resource JSON files.
|
||||||
|
* Download retrieved/split resources as a ZIP archive.
|
||||||
|
* Streaming progress log via the UI for retrieval operations.
|
||||||
|
* **FHIR Interaction UIs:** Explore FHIR server capabilities and interact with resources using the "FHIR API Explorer" (simple GET/POST/PUT/DELETE) and "FHIR UI Operations" (Swagger-like interface based on CapabilityStatement). *Note: Lite version requires custom server URLs.*
|
||||||
|
* **HAPI FHIR Configuration (Standalone Mode):**
|
||||||
|
* A dedicated page (`/config-hapi`) to view and edit the `application.yaml` configuration for the embedded HAPI FHIR server.
|
||||||
|
* Allows modification of HAPI FHIR properties directly from the UI.
|
||||||
|
* Option to restart the HAPI FHIR server (Tomcat) to apply changes.
|
||||||
|
* **API Support:** RESTful API endpoints for importing, pushing, retrieving metadata, validating, uploading test data, and retrieving/splitting bundles.
|
||||||
|
* **Live Console:** Real-time logs for push, validation, upload test data, FSH conversion, and bundle retrieval operations.
|
||||||
|
* **Configurable Behavior:** Control validation modes, display options via `app.config`.
|
||||||
|
* **Theming:** Supports light and dark modes.
|
||||||
|
|
||||||
|
## Technology Stack
|
||||||
|
|
||||||
|
* Python 3.12+, Flask 2.3.3, Flask-SQLAlchemy 3.0.5, Flask-WTF 1.2.1
|
||||||
|
* Jinja2, Bootstrap 5.3.3, JavaScript (ES6), Lottie-Web 5.12.2
|
||||||
|
* SQLite
|
||||||
|
* Docker, Docker Compose, Supervisor
|
||||||
|
* Node.js 18+ (for GoFSH/SUSHI), GoFSH, SUSHI
|
||||||
|
* HAPI FHIR (Standalone version only)
|
||||||
|
* Requests 2.31.0, Tarfile, Logging, Werkzeug
|
||||||
|
* fhir.resources (optional, for robust XML parsing)
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
* **Docker:** Required for containerized deployment (both versions).
|
||||||
|
* **Git & Maven:** Required **only** for building the **Standalone** version from source using the `.bat` script or manual steps. Not required for the Lite version build or for running pre-built Docker Hub images.
|
||||||
|
* **Windows:** Required if using the `.bat` scripts.
|
||||||
|
|
||||||
|
## Setup Instructions
|
||||||
|
|
||||||
|
### Running Pre-built Images (General Users)
|
||||||
|
|
||||||
|
This is the easiest way to get started without needing Git or Maven. Choose the version you need:
|
||||||
|
|
||||||
|
**Lite Version (No local HAPI FHIR):**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Pull the latest Lite image
|
||||||
|
docker pull ghcr.io/sudo-jhare/fhirflare-ig-toolkit-lite:latest
|
||||||
|
|
||||||
|
# Run the Lite version (maps port 5000 for the UI)
|
||||||
|
# You'll need to create local directories for persistent data first:
|
||||||
|
# mkdir instance logs static static/uploads instance/hapi-h2-data
|
||||||
|
docker run -d \
|
||||||
|
-p 5000:5000 \
|
||||||
|
-v ./instance:/app/instance \
|
||||||
|
-v ./static/uploads:/app/static/uploads \
|
||||||
|
-v ./instance/hapi-h2-data:/app/h2-data \
|
||||||
|
-v ./logs:/app/logs \
|
||||||
|
--name fhirflare-lite \
|
||||||
|
ghcr.io/sudo-jhare/fhirflare-ig-toolkit-lite:latest
|
||||||
|
Standalone Version (Includes local HAPI FHIR):
|
||||||
|
```
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Pull the latest Standalone image
|
||||||
|
docker pull ghcr.io/sudo-jhare/fhirflare-ig-toolkit-standalone:latest
|
||||||
|
|
||||||
|
# Run the Standalone version (maps ports 5000 and 8080)
|
||||||
|
# You'll need to create local directories for persistent data first:
|
||||||
|
# mkdir instance logs static static/uploads instance/hapi-h2-data
|
||||||
|
docker run -d \
|
||||||
|
-p 5000:5000 \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v ./instance:/app/instance \
|
||||||
|
-v ./static/uploads:/app/static/uploads \
|
||||||
|
-v ./instance/hapi-h2-data:/app/h2-data \
|
||||||
|
-v ./logs:/app/logs \
|
||||||
|
--name fhirflare-standalone \
|
||||||
|
ghcr.io/sudo-jhare/fhirflare-ig-toolkit-standalone:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
Building from Source (Developers)
|
||||||
|
Using Windows .bat Scripts (Standalone Version Only):
|
||||||
|
|
||||||
|
First Time Setup:
|
||||||
|
|
||||||
|
Run Build and Run for first time.bat:
|
||||||
|
|
||||||
|
Code snippet
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd "<project folder>"
|
||||||
|
git clone [https://github.com/hapifhir/hapi-fhir-jpaserver-starter.git](https://github.com/hapifhir/hapi-fhir-jpaserver-starter.git) hapi-fhir-jpaserver
|
||||||
|
copy .\\hapi-fhir-Setup\\target\\classes\\application.yaml .\\hapi-fhir-jpaserver\\target\\classes\\application.yaml
|
||||||
|
mvn clean package -DskipTests=true -Pboot
|
||||||
|
docker-compose build --no-cache
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
This clones the HAPI FHIR server, copies configuration, builds the project, and starts the containers.
|
||||||
|
|
||||||
|
Subsequent Runs:
|
||||||
|
|
||||||
|
Run Run.bat:
|
||||||
|
|
||||||
|
Code snippet
|
||||||
|
```bash
|
||||||
|
cd "<project folder>"
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
This starts the Flask app (port 5000) and HAPI FHIR server (port 8080).
|
||||||
|
|
||||||
|
Access the Application:
|
||||||
|
|
||||||
|
* Flask UI: http://localhost:5000
|
||||||
|
* HAPI FHIR server: http://localhost:8080
|
||||||
|
* Manual Setup (Linux/MacOS/Windows):
|
||||||
|
|
||||||
|
Preparation (Standalone Version Only):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd <project folder>
|
||||||
|
git clone [https://github.com/hapifhir/hapi-fhir-jpaserver-starter.git](https://github.com/hapifhir/hapi-fhir-jpaserver-starter.git) hapi-fhir-jpaserver
|
||||||
|
cp ./hapi-fhir-Setup/target/classes/application.yaml ./hapi-fhir-jpaserver/target/classes/application.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
Build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build HAPI FHIR (Standalone Version Only)
|
||||||
|
mvn clean package -DskipTests=true -Pboot
|
||||||
|
|
||||||
|
# Build Docker Image (Specify APP_MODE=lite in docker-compose.yml for Lite version)
|
||||||
|
docker-compose build --no-cache
|
||||||
|
```
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
Access the Application:
|
||||||
|
```
|
||||||
|
|
||||||
|
* Flask UI: http://localhost:5000
|
||||||
|
* HAPI FHIR server (Standalone only): http://localhost:8080
|
||||||
|
* Local Development (Without Docker):
|
||||||
|
|
||||||
|
Clone the Repository:
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone [https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git](https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git)
|
||||||
|
cd FHIRFLARE-IG-Toolkit
|
||||||
|
```
|
||||||
|
|
||||||
|
Install Dependencies:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -m venv venv
|
||||||
|
source venv/bin/activate # On Windows: venv\Scripts\activate
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Install Node.js, GoFSH, and SUSHI (for FSH Converter):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Example for Debian/Ubuntu
|
||||||
|
curl -fsSL [https://deb.nodesource.com/setup_18.x](https://deb.nodesource.com/setup_18.x) | sudo bash -
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
# Install globally
|
||||||
|
npm install -g gofsh fsh-sushi
|
||||||
|
Set Environment Variables:
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export FLASK_SECRET_KEY='your-secure-secret-key'
|
||||||
|
export API_KEY='your-api-key'
|
||||||
|
# Optional: Set APP_MODE to 'lite' if desired
|
||||||
|
# export APP_MODE='lite'
|
||||||
|
```
|
||||||
|
|
||||||
|
Initialize Directories:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p instance static/uploads logs
|
||||||
|
# Ensure write permissions if needed
|
||||||
|
# chmod -R 777 instance static/uploads logs
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the Application:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export FLASK_APP=app.py
|
||||||
|
flask run
|
||||||
|
```
|
||||||
|
Access at http://localhost:5000.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
Import an IG
|
||||||
|
### Search, View Details, and Import Packages
|
||||||
|
Navigate to **Search and Import Packages** (`/search-and-import`).
|
||||||
|
1. The page will load a list of available FHIR Implementation Guide packages from a local cache or by fetching from configured registries.
|
||||||
|
* A loading animation and progress messages are shown if fetching from registries.
|
||||||
|
* The timestamp of the last cache update is displayed.
|
||||||
|
2. Use the search bar to filter packages by name or author.
|
||||||
|
3. Packages are paginated for easier Browse.
|
||||||
|
4. For each package, you can:
|
||||||
|
* View its latest official and absolute versions.
|
||||||
|
* Click on the package name to navigate to a **detailed view** (`/package-details/<name>`) showing:
|
||||||
|
* Comprehensive metadata (author, FHIR version, canonical URL, description).
|
||||||
|
* A full list of available versions with publication dates.
|
||||||
|
* Declared dependencies.
|
||||||
|
* Other packages that depend on it (dependents).
|
||||||
|
* Version history (logs).
|
||||||
|
* Directly import a specific version using the "Import" button on the search page or the details page.
|
||||||
|
5. **Cache Management:**
|
||||||
|
* A "Clear & Refresh Cache" button is available to trigger a background task (`/api/refresh-cache-task`) that clears the local database and in-memory cache and fetches the latest package information from all configured registries. Progress is shown via a live log.
|
||||||
|
|
||||||
|
* Enter a package name (e.g., hl7.fhir.au.core) and version (e.g., 1.1.0-preview).
|
||||||
|
* Choose a dependency mode:
|
||||||
|
* Current Recursive: Import all dependencies listed in package.json recursively.
|
||||||
|
* Patch Canonical Versions: Import only canonical FHIR packages (e.g., hl7.fhir.r4.core).
|
||||||
|
* Tree Shaking: Import only dependencies containing resources actually used by the main package.
|
||||||
|
* Click Import to download the package and dependencies.
|
||||||
|
|
||||||
|
Manage IGs
|
||||||
|
Go to Manage FHIR Packages (/view-igs) to view downloaded and processed IGs.
|
||||||
|
|
||||||
|
Actions:
|
||||||
|
* Process: Extract metadata (resource types, profiles, must-support elements, examples).
|
||||||
|
* Unload: Remove processed IG data from the database.
|
||||||
|
* Delete: Remove package files from the filesystem.
|
||||||
|
|
||||||
|
Duplicates are highlighted for resolution.
|
||||||
|
|
||||||
|
View Processed IGs
|
||||||
|
|
||||||
|
After processing, view IG details (/view-ig/<id>), including:
|
||||||
|
|
||||||
|
* Resource types and profiles.
|
||||||
|
* Must-support elements and examples.
|
||||||
|
* Profile relationships (compliesWithProfile, imposeProfile) if enabled (DISPLAY_PROFILE_RELATIONSHIPS).
|
||||||
|
|
||||||
|
Interactive StructureDefinition viewer (Differential, Snapshot, Must Support, Key Elements, Constraints, Terminology, Search Params).
|
||||||
|
* Validate FHIR Resources/Bundles
|
||||||
|
* Navigate to Validate FHIR Sample (/validate-sample).
|
||||||
|
|
||||||
|
Select a package (e.g., hl7.fhir.au.core#1.1.0-preview).
|
||||||
|
|
||||||
|
* Choose Single Resource or Bundle mode.
|
||||||
|
* Paste or upload FHIR JSON/XML (e.g., a Patient resource).
|
||||||
|
* Submit to view validation errors/warnings. Note: Alpha feature; report issues to GitHub (remove PHI).
|
||||||
|
* Push IGs to a FHIR Server
|
||||||
|
* Go to Push IGs (/push-igs).
|
||||||
|
|
||||||
|
Select a downloaded package.
|
||||||
|
|
||||||
|
* Enter the Target FHIR Server URL.
|
||||||
|
* Configure Authentication (None, Bearer Token).
|
||||||
|
* Choose options: Include Dependencies, Force Upload (skips comparison check), Dry Run, Verbose Log.
|
||||||
|
* Optionally filter by Resource Types (comma-separated) or Skip Specific Files (paths within package, comma/newline separated).
|
||||||
|
* Click Push to FHIR Server to upload resources. Canonical resources are checked before upload. Identical resources are skipped unless Force Upload is checked.
|
||||||
|
* Monitor progress in the live console.
|
||||||
|
* Upload Test Data
|
||||||
|
* Navigate to Upload Test Data (/upload-test-data).
|
||||||
|
* Enter the Target FHIR Server URL.
|
||||||
|
* Configure Authentication (None, Bearer Token).
|
||||||
|
* Select one or more .json, .xml files, or a single .zip file containing test resources.
|
||||||
|
* Optionally check Validate Resources Before Upload? and select a Validation Profile Package.
|
||||||
|
* Choose Upload Mode:
|
||||||
|
* Individual Resources: Uploads each resource one by one in dependency order.
|
||||||
|
* Transaction Bundle: Uploads all resources in a single transaction.
|
||||||
|
* Optionally check Use Conditional Upload (Individual Mode Only)? to use If-Match headers for updates.
|
||||||
|
* Choose Error Handling:
|
||||||
|
* Stop on First Error: Halts the process if any validation or upload fails.
|
||||||
|
* Continue on Error: Reports errors but attempts to process/upload remaining resources.
|
||||||
|
* Click Upload and Process. The tool parses files, optionally validates, analyzes dependencies, topologically sorts resources, and uploads them according to selected options.
|
||||||
|
* Monitor progress in the streaming log output.
|
||||||
|
|
||||||
|
Convert FHIR to FSH
|
||||||
|
* Navigate to FSH Converter (/fsh-converter).
|
||||||
|
|
||||||
|
Optionally select a package for context (e.g., hl7.fhir.au.core#1.1.0-preview).
|
||||||
|
Choose input mode:
|
||||||
|
Upload File: Upload a FHIR JSON/XML file.
|
||||||
|
Paste Text: Paste FHIR JSON/XML content.
|
||||||
|
Configure options:
|
||||||
|
Output Style: file-per-definition, group-by-fsh-type, group-by-profile, single-file.
|
||||||
|
Log Level: error, warn, info, debug.
|
||||||
|
FHIR Version: R4, R4B, R5, or auto-detect.
|
||||||
|
Fishing Trip: Enable round-trip validation with SUSHI, generating a comparison report.
|
||||||
|
Dependencies: Specify additional packages (e.g., hl7.fhir.us.core@6.1.0, one per line).
|
||||||
|
Indent Rules: Enable context path indentation for readable FSH.
|
||||||
|
Meta Profile: Choose only-one, first, or none for meta.profile handling.
|
||||||
|
Alias File: Upload an FSH file with aliases (e.g., $MyAlias = http://example.org).
|
||||||
|
No Alias: Disable automatic alias generation.
|
||||||
|
Click Convert to FSH to generate and display FSH output, with a waiting spinner (light/dark theme) during processing.
|
||||||
|
If Fishing Trip is enabled, view the comparison report via the "Click here for SUSHI Validation" badge button.
|
||||||
|
Download the result as a .fsh file.
|
||||||
|
Retrieve and Split Bundles
|
||||||
|
Navigate to Retrieve/Split Data (/retrieve-split-data).
|
||||||
|
|
||||||
|
Retrieve Bundles from Server:
|
||||||
|
|
||||||
|
* Enter the FHIR Server URL (defaults to the proxy if empty).
|
||||||
|
* Select one or more Resource Types to retrieve (e.g., Patient, Observation).
|
||||||
|
* Optionally check Fetch Referenced Resources.
|
||||||
|
* If checked, further optionally check Fetch Full Reference Bundles to retrieve entire bundles for each referenced type (e.g., all Patients if a Patient is referenced) instead of individual resources by ID.
|
||||||
|
* Click Retrieve Bundles.
|
||||||
|
* Monitor progress in the streaming log. A ZIP file containing the retrieved bundles/resources will be prepared for download.
|
||||||
|
|
||||||
|
Split Uploaded Bundles:
|
||||||
|
|
||||||
|
* Upload a ZIP file containing FHIR bundles (JSON format).
|
||||||
|
* Click Split Bundles.
|
||||||
|
* A ZIP file containing individual resources extracted from the bundles will be prepared for download.
|
||||||
|
* Explore FHIR Operations
|
||||||
|
* Navigate to FHIR UI Operations (/fhir-ui-operations).
|
||||||
|
|
||||||
|
Toggle between local HAPI (/fhir) or a custom FHIR server.
|
||||||
|
|
||||||
|
* Click Fetch Metadata to load the server’s CapabilityStatement.
|
||||||
|
* Select a resource type (e.g., Patient, Observation) or System to view operations:
|
||||||
|
* System operations: GET /metadata, POST /, GET /_history, GET/POST /$diff, POST /$reindex, POST /$expunge, etc.
|
||||||
|
* Resource operations: GET Patient/:id, POST Observation/_search, etc.
|
||||||
|
* Use Try it out to input parameters or request bodies, then Execute to view results in JSON, XML, or narrative formats.
|
||||||
|
|
||||||
|
### Configure Embedded HAPI FHIR Server (Standalone Mode)
|
||||||
|
For users running the **Standalone version**, which includes an embedded HAPI FHIR server.
|
||||||
|
1. Navigate to **Configure HAPI FHIR** (`/config-hapi`).
|
||||||
|
2. The page displays the content of the HAPI FHIR server's `application.yaml` file.
|
||||||
|
3. You can edit the configuration directly in the text area.
|
||||||
|
* *Caution: Incorrect modifications can break the HAPI FHIR server.*
|
||||||
|
4. Click **Save Configuration** to apply your changes to the `application.yaml` file.
|
||||||
|
5. Click **Restart Tomcat** to restart the HAPI FHIR server and load the new configuration. The restart process may take a few moments.
|
||||||
|
|
||||||
|
API Usage
|
||||||
|
Import IG
|
||||||
|
Bash
|
||||||
|
|
||||||
|
curl -X POST http://localhost:5000/api/import-ig \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-d '{"package_name": "hl7.fhir.au.core", "version": "1.1.0-preview", "dependency_mode": "recursive"}'
|
||||||
|
Returns complies_with_profiles, imposed_profiles, and duplicate_packages_present info.
|
||||||
|
|
||||||
|
### Refresh Package Cache (Background Task)
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/refresh-cache-task \
|
||||||
|
-H "X-API-Key: your-api-key"
|
||||||
|
```
|
||||||
|
|
||||||
|
Push IG
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/push-ig \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Accept: application/x-ndjson" \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-d '{
|
||||||
|
"package_name": "hl7.fhir.au.core",
|
||||||
|
"version": "1.1.0-preview",
|
||||||
|
"fhir_server_url": "http://localhost:8080/fhir",
|
||||||
|
"include_dependencies": true,
|
||||||
|
"force_upload": false,
|
||||||
|
"dry_run": false,
|
||||||
|
"verbose": false,
|
||||||
|
"auth_type": "none"
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns a streaming NDJSON response with progress and final summary.
|
||||||
|
|
||||||
|
Upload Test Data
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/upload-test-data \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-H "Accept: application/x-ndjson" \
|
||||||
|
-F "fhir_server_url=http://your-fhir-server/fhir" \
|
||||||
|
-F "auth_type=bearerToken" \
|
||||||
|
-F "auth_token=YOUR_TOKEN" \
|
||||||
|
-F "upload_mode=individual" \
|
||||||
|
-F "error_handling=continue" \
|
||||||
|
-F "validate_before_upload=true" \
|
||||||
|
-F "validation_package_id=hl7.fhir.r4.core#4.0.1" \
|
||||||
|
-F "use_conditional_uploads=true" \
|
||||||
|
-F "test_data_files=@/path/to/your/patient.json" \
|
||||||
|
-F "test_data_files=@/path/to/your/observations.zip"
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns a streaming NDJSON response with progress and final summary. Uses multipart/form-data for file uploads.
|
||||||
|
|
||||||
|
Retrieve Bundles
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/retrieve-bundles \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-H "Accept: application/x-ndjson" \
|
||||||
|
-F "fhir_server_url=http://your-fhir-server/fhir" \
|
||||||
|
-F "resources=Patient" \
|
||||||
|
-F "resources=Observation" \
|
||||||
|
-F "validate_references=true" \
|
||||||
|
-F "fetch_reference_bundles=false"
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns a streaming NDJSON response with progress. The X-Zip-Path header in the final response part will contain the path to download the ZIP archive (e.g., /tmp/retrieved_bundles_datetime.zip).
|
||||||
|
|
||||||
|
Split Bundles
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/split-bundles \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-H "Accept: application/x-ndjson" \
|
||||||
|
-F "split_bundle_zip_path=@/path/to/your/bundles.zip"
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns a streaming NDJSON response. The X-Zip-Path header in the final response part will contain the path to download the ZIP archive of split resources.
|
||||||
|
|
||||||
|
Validate Resource/Bundle
|
||||||
|
Not yet exposed via API; use the UI at /validate-sample.
|
||||||
|
|
||||||
|
Configuration Options
|
||||||
|
Located in app.py:
|
||||||
|
|
||||||
|
* VALIDATE_IMPOSED_PROFILES: (Default: True) Validates resources against imposed profiles during push.
|
||||||
|
* DISPLAY_PROFILE_RELATIONSHIPS: (Default: True) Shows compliesWithProfile and imposeProfile in the UI.
|
||||||
|
* FHIR_PACKAGES_DIR: (Default: /app/instance/fhir_packages) Stores .tgz packages and metadata.
|
||||||
|
* UPLOAD_FOLDER: (Default: /app/static/uploads) Stores GoFSH output files and FSH comparison reports.
|
||||||
|
* SECRET_KEY: Required for CSRF protection and sessions. Set via environment variable or directly.
|
||||||
|
* API_KEY: Required for API authentication. Set via environment variable or directly.
|
||||||
|
* MAX_CONTENT_LENGTH: (Default: Flask default) Max size for HTTP request body (e.g., 16 * 1024 * 1024 for 16MB). Important for large uploads.
|
||||||
|
* MAX_FORM_PARTS: (Default: Werkzeug default, often 1000) Default max number of form parts. Overridden for /api/upload-test-data by CustomFormDataParser.
|
||||||
|
|
||||||
|
### Get HAPI FHIR Configuration (Standalone Mode)
|
||||||
|
```bash
|
||||||
|
curl -X GET http://localhost:5000/api/config \
|
||||||
|
-H "X-API-Key: your-api-key"
|
||||||
|
```
|
||||||
|
Save HAPI FHIR Configuration:
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/config \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-API-Key: your-api-key" \
|
||||||
|
-d '{"your_yaml_key": "your_value", ...}' # Send the full YAML content as JSON
|
||||||
|
```
|
||||||
|
Restart HAPI FHIR Server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:5000/api/restart-tomcat \
|
||||||
|
-H "X-API-Key: your-api-key"
|
||||||
|
```
|
||||||
|
|
||||||
|
Testing
|
||||||
|
The project includes a test suite covering UI, API, database, file operations, and security.
|
||||||
|
|
||||||
|
Test Prerequisites:
|
||||||
|
|
||||||
|
pytest: For running tests.
|
||||||
|
pytest-mock: For mocking dependencies. Install: pip install pytest pytest-mock
|
||||||
|
Running Tests:
|
||||||
|
|
||||||
|
Bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd <project folder>
|
||||||
|
pytest tests/test_app.py -v
|
||||||
|
```
|
||||||
|
Test Coverage:
|
||||||
|
|
||||||
|
* UI Pages: Homepage, Import IG, Manage IGs, Push IGs, Validate Sample, View Processed IG, FSH Converter, Upload Test Data, Retrieve/Split Data.
|
||||||
|
* API Endpoints: POST /api/import-ig, POST /api/push-ig, GET /get-structure, GET /get-example, POST /api/upload-test-data, POST /api/retrieve-bundles, POST /api/split-bundles.
|
||||||
|
* Database: IG processing, unloading, viewing.
|
||||||
|
* File Operations: Package processing, deletion, FSH output, ZIP handling.
|
||||||
|
* Security: CSRF protection, flash messages, secret key.
|
||||||
|
* FSH Converter: Form submission, file/text input, GoFSH execution, Fishing Trip comparison.
|
||||||
|
* Upload Test Data: Parsing, dependency graph, sorting, upload modes, validation, conditional uploads.
|
||||||
|
|
||||||
|
Development Notes
|
||||||
|
|
||||||
|
Background
|
||||||
|
|
||||||
|
The toolkit addresses the need for a comprehensive FHIR IG management tool, with recent enhancements for resource validation, FSH conversion with advanced GoFSH features, flexible versioning, improved IG pushing, dependency-aware test data uploading, and bundle retrieval/splitting, making it a versatile platform for FHIR developers.
|
||||||
|
|
||||||
|
Technical Decisions
|
||||||
|
|
||||||
|
* Flask: Lightweight and flexible for web development.
|
||||||
|
* SQLite: Simple for development; consider PostgreSQL for production.
|
||||||
|
* Bootstrap 5.3.3: Responsive UI with custom styling.
|
||||||
|
* Lottie-Web: Renders themed animations for FSH conversion waiting spinner.
|
||||||
|
* GoFSH/SUSHI: Integrated via Node.js for advanced FSH conversion and round-trip validation.
|
||||||
|
* Docker: Ensures consistent deployment with Flask and HAPI FHIR.
|
||||||
|
* Flexible Versioning: Supports non-standard IG versions (e.g., -preview, -ballot).
|
||||||
|
* Live Console/Streaming: Real-time feedback for complex operations (Push, Upload Test Data, FSH, Retrieve Bundles).
|
||||||
|
* Validation: Alpha feature with ongoing FHIRPath improvements.
|
||||||
|
* Dependency Management: Uses topological sort for Upload Test Data feature.
|
||||||
|
* Form Parsing: Uses custom Werkzeug parser for Upload Test Data to handle large numbers of files.
|
||||||
|
|
||||||
|
Recent Updates
|
||||||
|
|
||||||
|
* Enhanced package search page with caching, detailed views (dependencies, dependents, version history), and background cache refresh.
|
||||||
|
* Upload Test Data Enhancements (April 2025):
|
||||||
|
* Added optional Pre-Upload Validation against selected IG profiles.
|
||||||
|
* Added optional Conditional Uploads (GET + POST/PUT w/ If-Match) for individual mode.
|
||||||
|
* Implemented robust XML parsing using fhir.resources library (when available).
|
||||||
|
* Fixed 413 Request Entity Too Large errors for large file counts using a custom Werkzeug FormDataParser.
|
||||||
|
* Path: templates/upload_test_data.html, app.py, services.py, forms.py.
|
||||||
|
* Push IG Enhancements (April 2025):
|
||||||
|
* Added semantic comparison to skip uploading identical resources.
|
||||||
|
* Added "Force Upload" option to bypass comparison.
|
||||||
|
* Improved handling of canonical resources (search before PUT/POST).
|
||||||
|
* Added filtering by specific files to skip during push.
|
||||||
|
* More detailed summary report in stream response.
|
||||||
|
* Path: templates/cp_push_igs.html, app.py, services.py.
|
||||||
|
* Waiting Spinner for FSH Converter (April 2025):
|
||||||
|
* Added a themed (light/dark) Lottie animation spinner during FSH execution.
|
||||||
|
* Path: templates/fsh_converter.html, static/animations/, static/js/lottie-web.min.js.
|
||||||
|
* Advanced FSH Converter (April 2025):
|
||||||
|
* Added support for GoFSH advanced options: --fshing-trip, --dependency, --indent, --meta-profile, --alias-file, --no-alias.
|
||||||
|
* Displays Fishing Trip comparison reports.
|
||||||
|
* Path: templates/fsh_converter.html, app.py, services.py, forms.py.
|
||||||
|
* (New) Retrieve and Split Data (May 2025):
|
||||||
|
* Added UI and API for retrieving bundles from a FHIR server by resource type.
|
||||||
|
* Added options to fetch referenced resources (individually or as full type bundles).
|
||||||
|
* Added functionality to split uploaded ZIP files of bundles into individual resources.
|
||||||
|
* Streaming log for retrieval and ZIP download for results.
|
||||||
|
* Paths: templates/retrieve_split_data.html, app.py, services.py, forms.py.
|
||||||
|
* Known Issues and Workarounds
|
||||||
|
* Favicon 404: Clear browser cache or verify /app/static/favicon.ico.
|
||||||
|
* CSRF Errors: Set FLASK_SECRET_KEY and ensure {{ form.hidden_tag() }} in forms.
|
||||||
|
* Import Fails: Check package name/version and connectivity.
|
||||||
|
* Validation Accuracy: Alpha feature; report issues to GitHub (remove PHI).
|
||||||
|
* Package Parsing: Non-standard .tgz filenames may parse incorrectly. Fallback uses name-only parsing.
|
||||||
|
* Permissions: Ensure instance/ and static/uploads/ are writable.
|
||||||
|
* GoFSH/SUSHI Errors: Check ./logs/flask_err.log for ERROR:services:GoFSH failed. Ensure valid FHIR inputs and SUSHI installation.
|
||||||
|
* Upload Test Data XML Parsing: Relies on fhir.resources library for full validation; basic parsing used as fallback. Complex XML structures might not be fully analyzed for dependencies with basic parsing. Prefer JSON for reliable dependency analysis.
|
||||||
|
* 413 Request Entity Too Large: Primarily handled by CustomFormDataParser for /api/upload-test-data. Check the parser's max_form_parts limit if still occurring. MAX_CONTENT_LENGTH in app.py controls overall size. Reverse proxy limits (client_max_body_size in Nginx) might also apply.
|
||||||
|
|
||||||
|
|
||||||
|
Future Improvements
|
||||||
|
|
||||||
|
* Upload Test Data: Improve XML parsing further (direct XML->fhir.resource object if possible), add visual progress bar, add upload order preview, implement transaction bundle size splitting, add 'Clear Target Server' option (with confirmation).
|
||||||
|
* Validation: Enhance FHIRPath for complex constraints; add API endpoint.
|
||||||
|
* Sorting: Sort IG versions in /view-igs (e.g., ascending).
|
||||||
|
* Duplicate Resolution: Options to keep latest version or merge resources.
|
||||||
|
* Production Database: Support PostgreSQL.
|
||||||
|
* Error Reporting: Detailed validation error paths in the UI.
|
||||||
|
* FSH Enhancements: Add API endpoint for FSH conversion; support inline instance construction.
|
||||||
|
* FHIR Operations: Add complex parameter support (e.g., /$diff with left/right).
|
||||||
|
* Retrieve/Split Data: Add option to filter resources during retrieval (e.g., by date, specific IDs).
|
||||||
|
|
||||||
|
Completed Items
|
||||||
|
|
||||||
|
* Testing suite with basic coverage.
|
||||||
|
* API endpoints for POST /api/import-ig and POST /api/push-ig.
|
||||||
|
* Flexible versioning (-preview, -ballot).
|
||||||
|
* CSRF fixes for forms.
|
||||||
|
* Resource validation UI (alpha).
|
||||||
|
* FSH Converter with advanced GoFSH features and waiting spinner.
|
||||||
|
* Push IG enhancements (force upload, semantic comparison, canonical handling, skip files).
|
||||||
|
* Upload Test Data feature with dependency sorting, multiple upload modes, pre-upload validation, conditional uploads, robust XML parsing, and fix for large file counts.
|
||||||
|
* Retrieve and Split Data functionality with reference fetching and ZIP download.
|
||||||
|
* Far-Distant Improvements
|
||||||
|
* Cache Service: Use Redis for IG metadata caching.
|
||||||
|
* Database Optimization: Composite index on ProcessedIg.package_name and ProcessedIg.version.
|
||||||
|
|
||||||
|
|
||||||
|
Directory Structure
|
||||||
|
```bash
|
||||||
|
FHIRFLARE-IG-Toolkit/
|
||||||
|
├── app.py # Main Flask application
|
||||||
|
├── Build and Run for first time.bat # Windows script for first-time Docker setup
|
||||||
|
├── docker-compose.yml # Docker Compose configuration
|
||||||
|
├── Dockerfile # Docker configuration
|
||||||
|
├── forms.py # Form definitions
|
||||||
|
├── LICENSE.md # Apache 2.0 License
|
||||||
|
├── README.md # Project documentation
|
||||||
|
├── requirements.txt # Python dependencies
|
||||||
|
├── Run.bat # Windows script for running Docker
|
||||||
|
├── services.py # Logic for IG import, processing, validation, pushing, FSH conversion, test data upload, retrieve/split
|
||||||
|
├── supervisord.conf # Supervisor configuration
|
||||||
|
├── hapi-fhir-Setup/
|
||||||
|
│ ├── README.md # HAPI FHIR setup instructions
|
||||||
|
│ └── target/
|
||||||
|
│ └── classes/
|
||||||
|
│ └── application.yaml # HAPI FHIR configuration
|
||||||
|
├── instance/
|
||||||
|
│ ├── fhir_ig.db # SQLite database
|
||||||
|
│ ├── fhir_ig.db.old # Database backup
|
||||||
|
│ └── fhir_packages/ # Stored IG packages and metadata
|
||||||
|
│ ├── ... (example packages) ...
|
||||||
|
├── logs/
|
||||||
|
│ ├── flask.log # Flask application logs
|
||||||
|
│ ├── flask_err.log # Flask error logs
|
||||||
|
│ ├── supervisord.log # Supervisor logs
|
||||||
|
│ ├── supervisord.pid # Supervisor PID file
|
||||||
|
│ ├── tomcat.log # Tomcat logs for HAPI FHIR
|
||||||
|
│ └── tomcat_err.log # Tomcat error logs
|
||||||
|
├── static/
|
||||||
|
│ ├── animations/
|
||||||
|
│ │ ├── loading-dark.json # Dark theme spinner animation
|
||||||
|
│ │ └── loading-light.json # Light theme spinner animation
|
||||||
|
│ ├── favicon.ico # Application favicon
|
||||||
|
│ ├── FHIRFLARE.png # Application logo
|
||||||
|
│ ├── js/
|
||||||
|
│ │ └── lottie-web.min.js # Lottie library for spinner
|
||||||
|
│ └── uploads/
|
||||||
|
│ ├── output.fsh # Generated FSH output (temp location)
|
||||||
|
│ └── fsh_output/ # GoFSH output directory
|
||||||
|
│ ├── ... (example GoFSH output) ...
|
||||||
|
├── templates/
|
||||||
|
│ ├── base.html # Base template
|
||||||
|
│ ├── cp_downloaded_igs.html # UI for managing IGs
|
||||||
|
│ ├── cp_push_igs.html # UI for pushing IGs
|
||||||
|
│ ├── cp_view_processed_ig.html # UI for viewing processed IGs
|
||||||
|
│ ├── fhir_ui.html # UI for FHIR API explorer
|
||||||
|
│ ├── fhir_ui_operations.html # UI for FHIR server operations
|
||||||
|
│ ├── fsh_converter.html # UI for FSH conversion
|
||||||
|
│ ├── import_ig.html # UI for importing IGs
|
||||||
|
│ ├── index.html # Homepage
|
||||||
|
│ ├── retrieve_split_data.html # UI for Retrieve and Split Data
|
||||||
|
│ ├── upload_test_data.html # UI for Uploading Test Data
|
||||||
|
│ ├── validate_sample.html # UI for validating resources/bundles
|
||||||
|
│ ├── config_hapi.html # UI for HAPI FHIR Configuration
|
||||||
|
│ └── _form_helpers.html # Form helper macros
|
||||||
|
├── tests/
|
||||||
|
│ └── test_app.py # Test suite
|
||||||
|
└── hapi-fhir-jpaserver/ # HAPI FHIR server resources (if Standalone)
|
||||||
|
```
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
|
||||||
|
1. Fork the repository.
|
||||||
|
1. Create a feature branch (git checkout -b feature/your-feature).
|
||||||
|
1. Commit changes (git commit -m "Add your feature").
|
||||||
|
1. Push to your branch (git push origin feature/your-feature).
|
||||||
|
1. Open a Pull Request.
|
||||||
|
1. Ensure code follows PEP 8 and includes tests in tests/test_app.py.
|
||||||
|
|
||||||
|
Troubleshooting
|
||||||
|
|
||||||
|
* Favicon 404: Clear browser cache or verify /app/static/favicon.ico: docker exec -it <container_name> curl http://localhost:5000/static/favicon.ico
|
||||||
|
* CSRF Errors: Set FLASK_SECRET_KEY and ensure {{ form.hidden_tag() }} in forms.
|
||||||
|
* Import Fails: Check package name/version and connectivity.
|
||||||
|
* Validation Accuracy: Alpha feature; report issues to GitHub (remove PHI).
|
||||||
|
* Package Parsing: Non-standard .tgz filenames may parse incorrectly. Fallback uses name-only parsing.
|
||||||
|
* Permissions: Ensure instance/ and static/uploads/ are writable: chmod -R 777 instance static/uploads logs
|
||||||
|
* GoFSH/SUSHI Errors: Check ./logs/flask_err.log for ERROR:services:GoFSH failed. Ensure valid FHIR inputs and SUSHI installation: docker exec -it <container_name> sushi --version
|
||||||
|
* 413 Request Entity Too Large: Increase MAX_CONTENT_LENGTH and MAX_FORM_PARTS in app.py. If using a reverse proxy (e.g., Nginx), increase its client_max_body_size setting as well. Ensure the application/container is fully restarted/rebuilt.
|
||||||
|
|
||||||
|
License
|
||||||
|
|
||||||
|
Licensed under the Apache 2.0 License. See LICENSE.md for details.
|
||||||
@ -8,5 +8,8 @@ plugins:
|
|||||||
show_downloads: true
|
show_downloads: true
|
||||||
google_analytics:
|
google_analytics:
|
||||||
|
|
||||||
|
markdown: kramdown
|
||||||
|
highlighter: rouge
|
||||||
|
|
||||||
github:
|
github:
|
||||||
repository_url: https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit
|
repository_url: https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit
|
||||||
BIN
website/static/FHIRFLARE.png
Normal file
BIN
website/static/FHIRFLARE.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 706 KiB |
BIN
website/static/FHIRFLARE.png.old
Normal file
BIN
website/static/FHIRFLARE.png.old
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
1
website/static/animations/import-fire.json
Normal file
1
website/static/animations/import-fire.json
Normal file
File diff suppressed because one or more lines are too long
1
website/static/animations/loading-dark.json
Normal file
1
website/static/animations/loading-dark.json
Normal file
File diff suppressed because one or more lines are too long
49070
website/static/animations/loading-light.json
Normal file
49070
website/static/animations/loading-light.json
Normal file
File diff suppressed because it is too large
Load Diff
390
website/static/css/animation.css
Normal file
390
website/static/css/animation.css
Normal file
@ -0,0 +1,390 @@
|
|||||||
|
body {
|
||||||
|
width: 100%;
|
||||||
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Apply overflow and height constraints only for fire animation page
|
||||||
|
body.fire-animation-page {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
/* Fire animation overlay */
|
||||||
|
.fire-on {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(#1d4456, #112630);
|
||||||
|
opacity: 1;
|
||||||
|
z-index: 1;
|
||||||
|
transition: all 1200ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-center {
|
||||||
|
position: relative;
|
||||||
|
width: 300px; /* Reduced size for landing page */
|
||||||
|
height: 300px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 8px solid rgba(0,0,0,.2);
|
||||||
|
border-radius: 50%;
|
||||||
|
z-index: 5;
|
||||||
|
background-color: #1d4456;
|
||||||
|
box-shadow: 0 0 50px 5px rgba(255,148,0,.1);
|
||||||
|
transition: all 500ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wood and star using local images */
|
||||||
|
.wood {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 21;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 12%;
|
||||||
|
width: 80px;
|
||||||
|
margin-left: -40px;
|
||||||
|
height: 30px;
|
||||||
|
background-image: url('{{ url_for('static', filename='img/wood.png') }}');
|
||||||
|
background-size: 80px 30px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.star {
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
top: 138px;
|
||||||
|
left: 18px;
|
||||||
|
background-image: url('{{ url_for('static', filename='img/star.png') }}');
|
||||||
|
background-size: 11px 11px;
|
||||||
|
width: 11px;
|
||||||
|
height: 11px;
|
||||||
|
opacity: 0.4;
|
||||||
|
animation: starShine 3.5s linear infinite;
|
||||||
|
transition: all 1200ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wood-circle {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 20;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 11%;
|
||||||
|
width: 100px;
|
||||||
|
margin-left: -50px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 100%;
|
||||||
|
background-color: #0a171d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circle {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 6;
|
||||||
|
right: -225px;
|
||||||
|
bottom: -337px;
|
||||||
|
width: 562px;
|
||||||
|
height: 525px;
|
||||||
|
border-radius: 100%;
|
||||||
|
background-color: #112630;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Moon */
|
||||||
|
.moon {
|
||||||
|
position: absolute;
|
||||||
|
top: 37px;
|
||||||
|
left: 86px;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background-color: #b2b7bc;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: inset -15px 1.5px 0 0px #c0c3c9, 0 0 7px 3px rgba(228,228,222,.4);
|
||||||
|
z-index: 1;
|
||||||
|
animation: brilla-moon 4s alternate infinite;
|
||||||
|
transition: all 2000ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moon div:nth-child(1) {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 10%;
|
||||||
|
width: 12%;
|
||||||
|
height: 12%;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid #adaca2;
|
||||||
|
box-shadow: inset 1.5px -0.75px 0 0px #85868b;
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moon div:nth-child(2) {
|
||||||
|
position: absolute;
|
||||||
|
top: 20%;
|
||||||
|
left: 38%;
|
||||||
|
width: 16%;
|
||||||
|
height: 16%;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid #adaca2;
|
||||||
|
box-shadow: inset 1.5px -0.75px 0 0px #85868b;
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moon div:nth-child(3) {
|
||||||
|
position: absolute;
|
||||||
|
top: 60%;
|
||||||
|
left: 45%;
|
||||||
|
width: 20%;
|
||||||
|
height: 20%;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid #adaca2;
|
||||||
|
box-shadow: inset 1.5px -0.75px 0 0px #85868b;
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes brilla-moon {
|
||||||
|
0% { box-shadow: inset -15px 1.5px 0 0px #c0c3c9, 0 0 7px 3px rgba(228,228,222,.4); }
|
||||||
|
50% { box-shadow: inset -15px 1.5px 0 0px #c0c3c9, 0 0 11px 6px rgba(228,228,222,.4); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Shooting stars */
|
||||||
|
.shooting-star {
|
||||||
|
z-index: 2;
|
||||||
|
width: 1px;
|
||||||
|
height: 37px;
|
||||||
|
border-bottom-left-radius: 50%;
|
||||||
|
border-bottom-right-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -52px;
|
||||||
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
|
||||||
|
animation: animShootingStar 6s linear infinite;
|
||||||
|
transition: all 2000ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes animShootingStar {
|
||||||
|
from { transform: translateY(0px) translateX(0px) rotate(-45deg); opacity: 1; height: 3px; }
|
||||||
|
to { transform: translateY(960px) translateX(960px) rotate(-45deg); opacity: 1; height: 600px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.shooting-star-2 {
|
||||||
|
z-index: 2;
|
||||||
|
width: 1px;
|
||||||
|
height: 37px;
|
||||||
|
border-bottom-left-radius: 50%;
|
||||||
|
border-bottom-right-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 150px;
|
||||||
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
|
||||||
|
animation: animShootingStar-2 9s linear infinite;
|
||||||
|
transition: all 2000ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes animShootingStar-2 {
|
||||||
|
from { transform: translateY(0px) translateX(0px) rotate(-45deg); opacity: 1; height: 3px; }
|
||||||
|
to { transform: translateY(1440px) translateX(1440px) rotate(-45deg); opacity: 1; height: 600px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Stars */
|
||||||
|
.star.snd { top: 75px; left: 232px; animation-delay: 1s; }
|
||||||
|
.star.trd { top: 97px; left: 75px; animation-delay: 1.4s; }
|
||||||
|
.star.fth { top: 15px; left: 150px; animation-delay: 1.8s; }
|
||||||
|
.star.fith { top: 63px; left: 165px; animation-delay: 2.2s; }
|
||||||
|
|
||||||
|
@keyframes starShine {
|
||||||
|
0% { transform: scale(0.3) rotate(0deg); opacity: 0.4; }
|
||||||
|
25% { transform: scale(1) rotate(360deg); opacity: 1; }
|
||||||
|
50% { transform: scale(0.3) rotate(720deg); opacity: 0.4; }
|
||||||
|
100% { transform: scale(0.3) rotate(0deg); opacity: 0.4; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Trees */
|
||||||
|
.tree-1 {
|
||||||
|
position: relative;
|
||||||
|
top: 112px;
|
||||||
|
left: 37px;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
z-index: 8;
|
||||||
|
border-bottom: 67px solid #0a171d;
|
||||||
|
border-left: 22px solid transparent;
|
||||||
|
border-right: 22px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-1:before {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -82px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -3px;
|
||||||
|
width: 6px;
|
||||||
|
height: 22px;
|
||||||
|
z-index: 7;
|
||||||
|
content: '';
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-2 {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
left: 187px;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
z-index: 8;
|
||||||
|
border-bottom: 67px solid #0a171d;
|
||||||
|
border-left: 22px solid transparent;
|
||||||
|
border-right: 22px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-2:before {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -82px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -3px;
|
||||||
|
width: 6px;
|
||||||
|
height: 22px;
|
||||||
|
z-index: 7;
|
||||||
|
content: '';
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fire */
|
||||||
|
.fire {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 39;
|
||||||
|
width: 2px;
|
||||||
|
margin-left: -1px;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 60px;
|
||||||
|
transition: all 1200ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
bottom: -11px;
|
||||||
|
margin-left: -15px;
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
border: 22px solid #febd08; /* Main flame: yellow-orange */
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
left: -6px;
|
||||||
|
box-shadow: 0 0 7px 3px rgba(244,110,28,0.8), 0 0 15px 7px rgba(244,110,28,0.6), 0 0 22px 11px rgba(244,110,28,0.3);
|
||||||
|
transform: scale(0.45, 0.75) rotate(45deg);
|
||||||
|
animation: brilla-fire 2.5s alternate infinite;
|
||||||
|
z-index: 9;
|
||||||
|
transition: all 1200ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span:nth-child(2) {
|
||||||
|
left: -16px;
|
||||||
|
border: 22px solid #e63946; /* Outside flame: red */
|
||||||
|
box-shadow: 0 0 7px 3px rgba(230,57,70,0.8), 0 0 15px 7px rgba(230,57,70,0.6), 0 0 22px 11px rgba(230,57,70,0.3);
|
||||||
|
transform: scale(0.3, 0.55) rotate(15deg);
|
||||||
|
z-index: 8;
|
||||||
|
animation: brilla-fire-red 1.5s alternate infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span:nth-child(3) {
|
||||||
|
left: 3px;
|
||||||
|
border: 22px solid #e63946; /* Outside flame: red */
|
||||||
|
box-shadow: 0 0 7px 3px rgba(230,57,70,0.8), 0 0 15px 7px rgba(230,57,70,0.6), 0 0 22px 11px rgba(230,57,70,0.3);
|
||||||
|
transform: scale(0.3, 0.55) rotate(80deg);
|
||||||
|
z-index: 8;
|
||||||
|
animation: brilla-fire-red 2s alternate infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span:after {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
bottom: -22px;
|
||||||
|
content: '';
|
||||||
|
margin-left: -3px;
|
||||||
|
height: 22px;
|
||||||
|
width: 9px;
|
||||||
|
background-color: rgba(244,110,28,0.7);
|
||||||
|
border-radius: 80px;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
box-shadow: 0 0 15px 7px rgba(244,110,28,0.7);
|
||||||
|
left: -6px;
|
||||||
|
opacity: 0.8;
|
||||||
|
transform: rotate(-50deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span:nth-child(2):after {
|
||||||
|
background-color: rgba(230,57,70,0.7); /* Match red flame */
|
||||||
|
box-shadow: 0 0 15px 7px rgba(230,57,70,0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fire span:nth-child(3):after {
|
||||||
|
background-color: rgba(230,57,70,0.7); /* Match red flame */
|
||||||
|
box-shadow: 0 0 15px 7px rgba(230,57,70,0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes brilla-fire {
|
||||||
|
0%, 100% { box-shadow: 0 0 7px 3px rgba(244,110,28,0.8), 0 0 15px 7px rgba(244,110,28,0.6), 0 0 22px 11px rgba(244,110,28,0.3); }
|
||||||
|
50% { box-shadow: 0 0 10px 5px rgba(244,110,28,0.8), 0 0 21px 10px rgba(244,110,28,0.6), 0 0 31px 15px rgba(244,110,28,0.3); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes brilla-fire-red {
|
||||||
|
0%, 100% { box-shadow: 0 0 7px 3px rgba(230,57,70,0.8), 0 0 15px 7px rgba(230,57,70,0.6), 0 0 22px 11px rgba(230,57,70,0.3); }
|
||||||
|
50% { box-shadow: 0 0 10px 5px rgba(230,57,70,0.8), 0 0 21px 10px rgba(230,57,70,0.6), 0 0 31px 15px rgba(230,57,70,0.3); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Smoke */
|
||||||
|
.smoke {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 40;
|
||||||
|
width: 2px;
|
||||||
|
margin-left: -1px;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 79px;
|
||||||
|
opacity: 0;
|
||||||
|
transition: all 800ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.smoke span {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
bottom: -26px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -15px;
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
border: 22px solid rgba(0, 0, 0, .6);
|
||||||
|
border-radius: 16px;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
left: -6px;
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0.2, 0.2) rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes smokeLeft {
|
||||||
|
0% { transform: scale(0.2, 0.2) translate(0, 0) rotate(-45deg); }
|
||||||
|
10% { opacity: 1; transform: scale(0.2, 0.3) translate(0, -3px) rotate(-45deg); }
|
||||||
|
60% { opacity: 0.6; transform: scale(0.3, 0.5) translate(-7px, -60px) rotate(-45deg); }
|
||||||
|
100% { opacity: 0; transform: scale(0.4, 0.8) translate(-15px, -90px) rotate(-45deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes smokeRight {
|
||||||
|
0% { transform: scale(0.2, 0.2) translate(0, 0) rotate(-45deg); }
|
||||||
|
10% { opacity: 1; transform: scale(0.2, 0.3) translate(0, -3px) rotate(-45deg); }
|
||||||
|
60% { opacity: 0.6; transform: scale(0.3, 0.5) translate(7px, -60px) rotate(-45deg); }
|
||||||
|
100% { opacity: 0; transform: scale(0.4, 0.8) translate(15px, -90px) rotate(-45deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.smoke .s-0 { animation: smokeLeft 7s 0s infinite; }
|
||||||
|
.smoke .s-1 { animation: smokeRight 7s 0.7s infinite; }
|
||||||
|
.smoke .s-2 { animation: smokeLeft 7s 1.4s infinite; }
|
||||||
|
.smoke .s-3 { animation: smokeRight 7s 2.1s infinite; }
|
||||||
|
.smoke .s-4 { animation: smokeLeft 7s 2.8s infinite; }
|
||||||
|
.smoke .s-5 { animation: smokeRight 7s 3.5s infinite; }
|
||||||
|
.smoke .s-6 { animation: smokeLeft 7s 4.2s infinite; }
|
||||||
|
.smoke .s-7 { animation: smokeRight 7s 4.9s infinite; }
|
||||||
|
.smoke .s-8 { animation: smokeLeft 7s 5.6s infinite; }
|
||||||
|
.smoke .s-9 { animation: smokeRight 7s 6.3s infinite; }
|
||||||
|
|
||||||
|
/* Fire-off state (light theme) */
|
||||||
|
body:not(.fire-on) .section-center { box-shadow: 0 0 50px 5px rgba(200,200,200,.2); }
|
||||||
|
body:not(.fire-on) .smoke { opacity: 1; transition-delay: 0.8s; }
|
||||||
|
body:not(.fire-on) .fire span { bottom: -26px; transform: scale(0.15, 0.15) rotate(45deg); }
|
||||||
223
website/static/css/fire-animation.css
Normal file
223
website/static/css/fire-animation.css
Normal file
@ -0,0 +1,223 @@
|
|||||||
|
/* /app/static/css/fire-animation.css */
|
||||||
|
|
||||||
|
/* Removed html, body, stage styles */
|
||||||
|
|
||||||
|
.minifire-container { /* Add a wrapper for positioning/sizing */
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: relative;
|
||||||
|
height: 130px; /* Overall height of the animation area */
|
||||||
|
overflow: hidden; /* Hide parts extending beyond the container */
|
||||||
|
background-color: #270537; /* Optional: Add a background */
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #444;
|
||||||
|
margin-top: 0.5rem; /* Space above animation */
|
||||||
|
}
|
||||||
|
|
||||||
|
.minifire-campfire {
|
||||||
|
position: relative;
|
||||||
|
/* Base size significantly reduced (original was 600px) */
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
transform-origin: bottom center;
|
||||||
|
/* Scale down slightly more if needed, adjusted positioning based on origin */
|
||||||
|
transform: scale(0.8) translateY(15px); /* Pushes it down slightly */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Scaled Down Logs --- */
|
||||||
|
.minifire-log {
|
||||||
|
position: absolute;
|
||||||
|
width: 60px; /* 238/4 */
|
||||||
|
height: 18px; /* 70/4 */
|
||||||
|
border-radius: 8px; /* 32/4 */
|
||||||
|
background: #781e20;
|
||||||
|
overflow: hidden;
|
||||||
|
opacity: 0.99;
|
||||||
|
transform-origin: center center;
|
||||||
|
box-shadow: 0 0 1px 0.5px rgba(0,0,0,0.15); /* Scaled shadow */
|
||||||
|
}
|
||||||
|
|
||||||
|
.minifire-log:before {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 9px; /* 35/4 */
|
||||||
|
width: 2px; /* 8/4 */
|
||||||
|
height: 2px; /* 8/4 */
|
||||||
|
border-radius: 8px; /* 32/4 */
|
||||||
|
background: #b35050;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 3;
|
||||||
|
/* Scaled box-shadows */
|
||||||
|
box-shadow: 0 0 0 0.5px #781e20, /* 2.5/4 -> 0.6 -> 0.5 */
|
||||||
|
0 0 0 2.5px #b35050, /* 10.5/4 -> 2.6 -> 2.5 */
|
||||||
|
0 0 0 3.5px #781e20, /* 13/4 -> 3.25 -> 3.5 */
|
||||||
|
0 0 0 5.5px #b35050, /* 21/4 -> 5.25 -> 5.5 */
|
||||||
|
0 0 0 6px #781e20, /* 23.5/4 -> 5.9 -> 6 */
|
||||||
|
0 0 0 8px #b35050; /* 31.5/4 -> 7.9 -> 8 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.minifire-streak {
|
||||||
|
position: absolute;
|
||||||
|
height: 1px; /* Min height */
|
||||||
|
border-radius: 5px; /* 20/4 */
|
||||||
|
background: #b35050;
|
||||||
|
}
|
||||||
|
/* Scaled streaks */
|
||||||
|
.minifire-streak:nth-child(1) { top: 3px; width: 23px; } /* 10/4, 90/4 */
|
||||||
|
.minifire-streak:nth-child(2) { top: 3px; left: 25px; width: 20px; } /* 10/4, 100/4, 80/4 */
|
||||||
|
.minifire-streak:nth-child(3) { top: 3px; left: 48px; width: 8px; } /* 10/4, 190/4, 30/4 */
|
||||||
|
.minifire-streak:nth-child(4) { top: 6px; width: 33px; } /* 22/4, 132/4 */
|
||||||
|
.minifire-streak:nth-child(5) { top: 6px; left: 36px; width: 12px; } /* 22/4, 142/4, 48/4 */
|
||||||
|
.minifire-streak:nth-child(6) { top: 6px; left: 50px; width: 7px; } /* 22/4, 200/4, 28/4 */
|
||||||
|
.minifire-streak:nth-child(7) { top: 9px; left: 19px; width: 40px; } /* 34/4, 74/4, 160/4 */
|
||||||
|
.minifire-streak:nth-child(8) { top: 12px; left: 28px; width: 10px; } /* 46/4, 110/4, 40/4 */
|
||||||
|
.minifire-streak:nth-child(9) { top: 12px; left: 43px; width: 14px; } /* 46/4, 170/4, 54/4 */
|
||||||
|
.minifire-streak:nth-child(10) { top: 15px; left: 23px; width: 28px; } /* 58/4, 90/4, 110/4 */
|
||||||
|
|
||||||
|
/* Scaled Log Positions (Relative to 150px campfire) */
|
||||||
|
.minifire-log:nth-child(1) { bottom: 25px; left: 25px; transform: rotate(150deg) scaleX(0.75); z-index: 20; } /* 100/4, 100/4 */
|
||||||
|
.minifire-log:nth-child(2) { bottom: 30px; left: 35px; transform: rotate(110deg) scaleX(0.75); z-index: 10; } /* 120/4, 140/4 */
|
||||||
|
.minifire-log:nth-child(3) { bottom: 25px; left: 17px; transform: rotate(-10deg) scaleX(0.75); } /* 98/4, 68/4 */
|
||||||
|
.minifire-log:nth-child(4) { bottom: 20px; left: 55px; transform: rotate(-120deg) scaleX(0.75); z-index: 26; } /* 80/4, 220/4 */
|
||||||
|
.minifire-log:nth-child(5) { bottom: 19px; left: 53px; transform: rotate(-30deg) scaleX(0.75); z-index: 25; } /* 75/4, 210/4 */
|
||||||
|
.minifire-log:nth-child(6) { bottom: 23px; left: 70px; transform: rotate(35deg) scaleX(0.85); z-index: 30; } /* 92/4, 280/4 */
|
||||||
|
.minifire-log:nth-child(7) { bottom: 18px; left: 75px; transform: rotate(-30deg) scaleX(0.75); z-index: 20; } /* 70/4, 300/4 */
|
||||||
|
|
||||||
|
/* --- Scaled Down Sticks --- */
|
||||||
|
.minifire-stick {
|
||||||
|
position: absolute;
|
||||||
|
width: 17px; /* 68/4 */
|
||||||
|
height: 5px; /* 20/4 */
|
||||||
|
border-radius: 3px; /* 10/4 */
|
||||||
|
box-shadow: 0 0 1px 0.5px rgba(0,0,0,0.1);
|
||||||
|
background: #781e20;
|
||||||
|
transform-origin: center center;
|
||||||
|
}
|
||||||
|
.minifire-stick:before {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 100%;
|
||||||
|
left: 7px; /* 30/4 -> 7.5 */
|
||||||
|
width: 1.5px; /* 6/4 */
|
||||||
|
height: 5px; /* 20/4 */
|
||||||
|
background: #781e20;
|
||||||
|
border-radius: 3px; /* 10/4 */
|
||||||
|
transform: translateY(50%) rotate(32deg);
|
||||||
|
}
|
||||||
|
.minifire-stick:after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 5px; /* 20/4 */
|
||||||
|
height: 5px; /* 20/4 */
|
||||||
|
background: #b35050;
|
||||||
|
border-radius: 3px; /* 10/4 */
|
||||||
|
}
|
||||||
|
/* Scaled Stick Positions */
|
||||||
|
.minifire-stick:nth-child(1) { left: 40px; bottom: 41px; transform: rotate(-152deg) scaleX(0.8); z-index: 12; } /* 158/4, 164/4 */
|
||||||
|
.minifire-stick:nth-child(2) { left: 45px; bottom: 8px; transform: rotate(20deg) scaleX(0.9); } /* 180/4, 30/4 */
|
||||||
|
.minifire-stick:nth-child(3) { left: 100px; bottom: 10px; transform: rotate(170deg) scaleX(0.9); } /* 400/4, 38/4 */
|
||||||
|
.minifire-stick:nth-child(3):before { display: none; }
|
||||||
|
.minifire-stick:nth-child(4) { left: 93px; bottom: 38px; transform: rotate(80deg) scaleX(0.9); z-index: 20; } /* 370/4, 150/4 */
|
||||||
|
.minifire-stick:nth-child(4):before { display: none; }
|
||||||
|
|
||||||
|
/* --- Scaled Down Fire --- */
|
||||||
|
.minifire-fire .minifire-flame {
|
||||||
|
position: absolute;
|
||||||
|
transform-origin: bottom center;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Red Flames */
|
||||||
|
.minifire-fire__red .minifire-flame {
|
||||||
|
width: 12px; /* 48/4 */
|
||||||
|
border-radius: 12px; /* 48/4 */
|
||||||
|
background: #e20f00;
|
||||||
|
box-shadow: 0 0 20px 5px rgba(226,15,0,0.4); /* Scaled shadow */
|
||||||
|
}
|
||||||
|
/* Scaled positions/heights */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(1) { left: 35px; height: 40px; bottom: 25px; animation: minifire-fire 2s 0.15s ease-in-out infinite alternate; } /* 138/4, 160/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(2) { left: 47px; height: 60px; bottom: 25px; animation: minifire-fire 2s 0.35s ease-in-out infinite alternate; } /* 186/4, 240/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(3) { left: 59px; height: 75px; bottom: 25px; animation: minifire-fire 2s 0.1s ease-in-out infinite alternate; } /* 234/4, 300/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(4) { left: 71px; height: 90px; bottom: 25px; animation: minifire-fire 2s 0s ease-in-out infinite alternate; } /* 282/4, 360/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(5) { left: 83px; height: 78px; bottom: 25px; animation: minifire-fire 2s 0.45s ease-in-out infinite alternate; } /* 330/4, 310/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(6) { left: 95px; height: 58px; bottom: 25px; animation: minifire-fire 2s 0.3s ease-in-out infinite alternate; } /* 378/4, 232/4, 100/4 */
|
||||||
|
.minifire-fire__red .minifire-flame:nth-child(7) { left: 107px; height: 35px; bottom: 25px; animation: minifire-fire 2s 0.1s ease-in-out infinite alternate; } /* 426/4, 140/4, 100/4 */
|
||||||
|
|
||||||
|
/* Orange Flames */
|
||||||
|
.minifire-fire__orange .minifire-flame {
|
||||||
|
width: 12px; border-radius: 12px; background: #ff9c00;
|
||||||
|
box-shadow: 0 0 20px 5px rgba(255,156,0,0.4);
|
||||||
|
}
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(1) { left: 35px; height: 35px; bottom: 25px; animation: minifire-fire 2s 0.05s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(2) { left: 47px; height: 53px; bottom: 25px; animation: minifire-fire 2s 0.1s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(3) { left: 59px; height: 63px; bottom: 25px; animation: minifire-fire 2s 0.35s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(4) { left: 71px; height: 75px; bottom: 25px; animation: minifire-fire 2s 0.4s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(5) { left: 83px; height: 65px; bottom: 25px; animation: minifire-fire 2s 0.5s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(6) { left: 95px; height: 51px; bottom: 25px; animation: minifire-fire 2s 0.35s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__orange .minifire-flame:nth-child(7) { left: 107px; height: 28px; bottom: 25px; animation: minifire-fire 2s 0.1s ease-in-out infinite alternate; }
|
||||||
|
|
||||||
|
/* Yellow Flames */
|
||||||
|
.minifire-fire__yellow .minifire-flame {
|
||||||
|
width: 12px; border-radius: 12px; background: #ffeb6e;
|
||||||
|
box-shadow: 0 0 20px 5px rgba(255,235,110,0.4);
|
||||||
|
}
|
||||||
|
.minifire-fire__yellow .minifire-flame:nth-child(1) { left: 47px; height: 35px; bottom: 25px; animation: minifire-fire 2s 0.6s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__yellow .minifire-flame:nth-child(2) { left: 59px; height: 43px; bottom: 30px; animation: minifire-fire 2s 0.4s ease-in-out infinite alternate; } /* Adjusted bottom slightly */
|
||||||
|
.minifire-fire__yellow .minifire-flame:nth-child(3) { left: 71px; height: 60px; bottom: 25px; animation: minifire-fire 2s 0.38s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__yellow .minifire-flame:nth-child(4) { left: 83px; height: 50px; bottom: 25px; animation: minifire-fire 2s 0.22s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__yellow .minifire-flame:nth-child(5) { left: 95px; height: 36px; bottom: 25px; animation: minifire-fire 2s 0.18s ease-in-out infinite alternate; }
|
||||||
|
|
||||||
|
/* White Flames */
|
||||||
|
.minifire-fire__white .minifire-flame {
|
||||||
|
width: 12px; border-radius: 12px; background: #fef1d9;
|
||||||
|
box-shadow: 0 0 20px 5px rgba(254,241,217,0.4);
|
||||||
|
}
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(1) { left: 39px; width: 8px; height: 25px; bottom: 25px; animation: minifire-fire 2s 0.22s ease-in-out infinite alternate; } /* Scaled width too */
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(2) { left: 45px; width: 8px; height: 30px; bottom: 25px; animation: minifire-fire 2s 0.42s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(3) { left: 59px; height: 43px; bottom: 25px; animation: minifire-fire 2s 0.32s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(4) { left: 71px; height: 53px; bottom: 25px; animation: minifire-fire 2s 0.8s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(5) { left: 83px; height: 43px; bottom: 25px; animation: minifire-fire 2s 0.85s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(6) { left: 95px; width: 8px; height: 28px; bottom: 25px; animation: minifire-fire 2s 0.64s ease-in-out infinite alternate; }
|
||||||
|
.minifire-fire__white .minifire-flame:nth-child(7) { left: 102px; width: 8px; height: 25px; bottom: 25px; animation: minifire-fire 2s 0.32s ease-in-out infinite alternate; }
|
||||||
|
|
||||||
|
/* --- Scaled Down Sparks --- */
|
||||||
|
.minifire-spark {
|
||||||
|
position: absolute;
|
||||||
|
width: 1.5px; /* 6/4 */
|
||||||
|
height: 5px; /* 20/4 */
|
||||||
|
background: #fef1d9;
|
||||||
|
border-radius: 5px; /* 18/4 -> 4.5 */
|
||||||
|
z-index: 50;
|
||||||
|
transform-origin: bottom center;
|
||||||
|
transform: scaleY(0);
|
||||||
|
}
|
||||||
|
/* Scaled spark positions/animations */
|
||||||
|
.minifire-spark:nth-child(1) { left: 40px; bottom: 53px; animation: minifire-spark 1s 0.4s linear infinite; } /* 160/4, 212/4 */
|
||||||
|
.minifire-spark:nth-child(2) { left: 45px; bottom: 60px; animation: minifire-spark 1s 1s linear infinite; } /* 180/4, 240/4 */
|
||||||
|
.minifire-spark:nth-child(3) { left: 52px; bottom: 80px; animation: minifire-spark 1s 0.8s linear infinite; } /* 208/4, 320/4 */
|
||||||
|
.minifire-spark:nth-child(4) { left: 78px; bottom: 100px; animation: minifire-spark 1s 2s linear infinite; } /* 310/4, 400/4 */
|
||||||
|
.minifire-spark:nth-child(5) { left: 90px; bottom: 95px; animation: minifire-spark 1s 0.75s linear infinite; } /* 360/4, 380/4 */
|
||||||
|
.minifire-spark:nth-child(6) { left: 98px; bottom: 80px; animation: minifire-spark 1s 0.65s linear infinite; } /* 390/4, 320/4 */
|
||||||
|
.minifire-spark:nth-child(7) { left: 100px; bottom: 70px; animation: minifire-spark 1s 1s linear infinite; } /* 400/4, 280/4 */
|
||||||
|
.minifire-spark:nth-child(8) { left: 108px; bottom: 53px; animation: minifire-spark 1s 1.4s linear infinite; } /* 430/4, 210/4 */
|
||||||
|
|
||||||
|
/* --- Keyframes (Rename to avoid conflicts) --- */
|
||||||
|
/* Use the same keyframe logic, just rename them */
|
||||||
|
@keyframes minifire-fire {
|
||||||
|
0% { transform: scaleY(1); } 28% { transform: scaleY(0.7); } 38% { transform: scaleY(0.8); } 50% { transform: scaleY(0.6); } 70% { transform: scaleY(0.95); } 82% { transform: scaleY(0.58); } 100% { transform: scaleY(1); }
|
||||||
|
}
|
||||||
|
@keyframes minifire-spark {
|
||||||
|
0%, 35% { transform: scaleY(0) translateY(0); opacity: 0; }
|
||||||
|
50% { transform: scaleY(1) translateY(0); opacity: 1; }
|
||||||
|
/* Adjusted translateY for smaller scale */
|
||||||
|
70% { transform: scaleY(1) translateY(-3px); opacity: 1; } /* 10/4 -> 2.5 -> 3 */
|
||||||
|
75% { transform: scaleY(1) translateY(-3px); opacity: 0; }
|
||||||
|
100% { transform: scaleY(0) translateY(0); opacity: 0; }
|
||||||
|
}
|
||||||
BIN
website/static/favicon.ico
Normal file
BIN
website/static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 222 KiB |
BIN
website/static/favicon.ico.old
Normal file
BIN
website/static/favicon.ico.old
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 281 KiB |
BIN
website/static/img/star.png
Normal file
BIN
website/static/img/star.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 436 B |
BIN
website/static/img/wood.png
Normal file
BIN
website/static/img/wood.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
1
website/static/js/htmx.min.js
vendored
Normal file
1
website/static/js/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
website/static/js/lottie.min.js
vendored
Normal file
1
website/static/js/lottie.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
299
website/static/uploads/fsh_output/fshing-trip-comparison.html
Normal file
299
website/static/uploads/fsh_output/fshing-trip-comparison.html
Normal file
@ -0,0 +1,299 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>FSHing Trip Comparison</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css" />
|
||||||
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script>
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const targetElement = document.getElementById('diff');
|
||||||
|
const diff2htmlUi = new Diff2HtmlUI(targetElement);
|
||||||
|
diff2htmlUi.fileListToggle(false);
|
||||||
|
diff2htmlUi.synchronisedScroll();
|
||||||
|
diff2htmlUi.highlightCode();
|
||||||
|
const diffs = document.getElementsByClassName('d2h-file-wrapper');
|
||||||
|
for (const diff of diffs) {
|
||||||
|
diff.innerHTML = `
|
||||||
|
<details>
|
||||||
|
<summary>${diff.getElementsByClassName('d2h-file-name')[0].innerHTML}</summary>
|
||||||
|
${diff.innerHTML}
|
||||||
|
</details>`
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body style="text-align: center; font-family: 'Source Sans Pro', sans-serif">
|
||||||
|
<h1>FSHing Trip Comparison</a></h1>
|
||||||
|
|
||||||
|
<div id="diff">
|
||||||
|
<div class="d2h-file-list-wrapper d2h-light-color-scheme">
|
||||||
|
<div class="d2h-file-list-header">
|
||||||
|
<span class="d2h-file-list-title">Files changed (1)</span>
|
||||||
|
<a class="d2h-file-switch d2h-hide">hide</a>
|
||||||
|
<a class="d2h-file-switch d2h-show">show</a>
|
||||||
|
</div>
|
||||||
|
<ol class="d2h-file-list">
|
||||||
|
<li class="d2h-file-list-line">
|
||||||
|
<span class="d2h-file-name-wrapper">
|
||||||
|
<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"
|
||||||
|
viewBox="0 0 14 16" width="14">
|
||||||
|
<path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>
|
||||||
|
</svg> <a href="#d2h-898460" class="d2h-file-name">../tmp/{tmpkn9pyg0k/input.json → tmpb_q8uf73/fsh-generated/data}/fsh-index.json</a>
|
||||||
|
<span class="d2h-file-stats">
|
||||||
|
<span class="d2h-lines-added">+10</span>
|
||||||
|
<span class="d2h-lines-deleted">-0</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div><div class="d2h-wrapper d2h-light-color-scheme">
|
||||||
|
<div id="d2h-898460" class="d2h-file-wrapper" data-lang="json">
|
||||||
|
<div class="d2h-file-header">
|
||||||
|
<span class="d2h-file-name-wrapper">
|
||||||
|
<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">
|
||||||
|
<path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>
|
||||||
|
</svg> <span class="d2h-file-name">../tmp/{tmpkn9pyg0k/input.json → tmpb_q8uf73/fsh-generated/data}/fsh-index.json</span>
|
||||||
|
<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span></span>
|
||||||
|
<label class="d2h-file-collapse">
|
||||||
|
<input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">
|
||||||
|
Viewed
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="d2h-files-diff">
|
||||||
|
<div class="d2h-file-side-diff">
|
||||||
|
<div class="d2h-code-wrapper">
|
||||||
|
<table class="d2h-diff-table">
|
||||||
|
<tbody class="d2h-diff-tbody">
|
||||||
|
<tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-info"></td>
|
||||||
|
<td class="d2h-info">
|
||||||
|
<div class="d2h-code-side-line">@@ -0,0 +1,10 @@</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-code-side-emptyplaceholder d2h-cntx d2h-emptyplaceholder">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="d2h-cntx d2h-emptyplaceholder">
|
||||||
|
<div class="d2h-code-side-line d2h-code-side-emptyplaceholder">
|
||||||
|
<span class="d2h-code-line-prefix"> </span>
|
||||||
|
<span class="d2h-code-line-ctn"><br></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d2h-file-side-diff">
|
||||||
|
<div class="d2h-code-wrapper">
|
||||||
|
<table class="d2h-diff-table">
|
||||||
|
<tbody class="d2h-diff-tbody">
|
||||||
|
<tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-info"></td>
|
||||||
|
<td class="d2h-info">
|
||||||
|
<div class="d2h-code-side-line"> </div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
1
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn">[</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
2
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> {</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
3
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "outputFile": "Encounter-discharge-1.json",</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
4
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "fshName": "discharge-1",</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
5
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "fshType": "Instance",</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
6
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "fshFile": "instances/discharge-1.fsh",</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
7
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "startLine": 1,</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
8
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> "endLine": 12</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
9
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn"> }</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td class="d2h-code-side-linenumber d2h-ins">
|
||||||
|
10
|
||||||
|
</td>
|
||||||
|
<td class="d2h-ins">
|
||||||
|
<div class="d2h-code-side-line">
|
||||||
|
<span class="d2h-code-line-prefix">+</span>
|
||||||
|
<span class="d2h-code-line-ctn">]</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1
website/static/uploads/fsh_output/input/fsh/aliases.fsh
Normal file
1
website/static/uploads/fsh_output/input/fsh/aliases.fsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
Alias: $v3-ActCode = http://terminology.hl7.org/CodeSystem/v3-ActCode
|
||||||
2
website/static/uploads/fsh_output/input/fsh/index.txt
Normal file
2
website/static/uploads/fsh_output/input/fsh/index.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Name Type File
|
||||||
|
banks-mia-leanne Instance instances/banks-mia-leanne.fsh
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
Instance: aspirin
|
||||||
|
InstanceOf: AllergyIntolerance
|
||||||
|
Usage: #example
|
||||||
|
* meta.profile = "http://hl7.org.au/fhir/core/StructureDefinition/au-core-allergyintolerance"
|
||||||
|
* clinicalStatus = $allergyintolerance-clinical#active
|
||||||
|
* clinicalStatus.text = "Active"
|
||||||
|
* verificationStatus = $allergyintolerance-verification#confirmed
|
||||||
|
* verificationStatus.text = "Confirmed"
|
||||||
|
* category = #medication
|
||||||
|
* criticality = #unable-to-assess
|
||||||
|
* code = $sct#387458008
|
||||||
|
* code.text = "Aspirin allergy"
|
||||||
|
* patient = Reference(Patient/hayes-arianne)
|
||||||
|
* recordedDate = "2024-02-10"
|
||||||
|
* recorder = Reference(PractitionerRole/specialistphysicians-swanborough-erick)
|
||||||
|
* asserter = Reference(PractitionerRole/specialistphysicians-swanborough-erick)
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
Instance: banks-mia-leanne
|
||||||
|
InstanceOf: Patient
|
||||||
|
Usage: #example
|
||||||
|
* meta.profile = "http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient"
|
||||||
|
* extension[0].url = "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
|
||||||
|
* extension[=].extension.url = "value"
|
||||||
|
* extension[=].extension.valueCodeableConcept = $sct#446141000124107 "Identifies as female gender"
|
||||||
|
* extension[+].url = "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
|
||||||
|
* extension[=].extension.url = "value"
|
||||||
|
* extension[=].extension.valueCodeableConcept = $loinc#LA29519-8 "she/her/her/hers/herself"
|
||||||
|
* extension[+].url = "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
|
||||||
|
* extension[=].extension[0].url = "value"
|
||||||
|
* extension[=].extension[=].valueCodeableConcept = $sct#248152002
|
||||||
|
* extension[=].extension[=].valueCodeableConcept.text = "Female"
|
||||||
|
* extension[=].extension[+].url = "type"
|
||||||
|
* extension[=].extension[=].valueCodeableConcept = $sct#1515311000168102 "Biological sex at birth"
|
||||||
|
* identifier.extension[0].url = "http://hl7.org.au/fhir/StructureDefinition/ihi-status"
|
||||||
|
* identifier.extension[=].valueCoding = $ihi-status-1#active
|
||||||
|
* identifier.extension[+].url = "http://hl7.org.au/fhir/StructureDefinition/ihi-record-status"
|
||||||
|
* identifier.extension[=].valueCoding = $ihi-record-status-1#verified "verified"
|
||||||
|
* identifier.type = $v2-0203#NI
|
||||||
|
* identifier.type.text = "IHI"
|
||||||
|
* identifier.system = "http://ns.electronichealth.net.au/id/hi/ihi/1.0"
|
||||||
|
* identifier.value = "8003608333647261"
|
||||||
|
* name.use = #usual
|
||||||
|
* name.family = "Banks"
|
||||||
|
* name.given[0] = "Mia"
|
||||||
|
* name.given[+] = "Leanne"
|
||||||
|
* telecom[0].system = #phone
|
||||||
|
* telecom[=].value = "0270102724"
|
||||||
|
* telecom[=].use = #work
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "0491574632"
|
||||||
|
* telecom[=].use = #mobile
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "0270107520"
|
||||||
|
* telecom[=].use = #home
|
||||||
|
* telecom[+].system = #email
|
||||||
|
* telecom[=].value = "mia.banks@myownpersonaldomain.com"
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "270107520"
|
||||||
|
* telecom[=].use = #home
|
||||||
|
* gender = #female
|
||||||
|
* birthDate = "1983-08-25"
|
||||||
|
* address.line = "50 Sebastien St"
|
||||||
|
* address.city = "Minjary"
|
||||||
|
* address.state = "NSW"
|
||||||
|
* address.postalCode = "2720"
|
||||||
|
* address.country = "AU"
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
Instance: discharge-1
|
||||||
|
InstanceOf: Encounter
|
||||||
|
Usage: #example
|
||||||
|
* meta.profile = "http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter"
|
||||||
|
* status = #finished
|
||||||
|
* class = $v3-ActCode#EMER "emergency"
|
||||||
|
* subject = Reference(Patient/ronny-irvine)
|
||||||
|
* period
|
||||||
|
* start = "2023-02-20T06:15:00+10:00"
|
||||||
|
* end = "2023-02-20T18:19:00+10:00"
|
||||||
|
* location.location = Reference(Location/murrabit-hospital)
|
||||||
|
* serviceProvider = Reference(Organization/murrabit-hospital)
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
Instance: vkc
|
||||||
|
InstanceOf: Condition
|
||||||
|
Usage: #example
|
||||||
|
* meta.profile = "http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition"
|
||||||
|
* clinicalStatus = $condition-clinical#active "Active"
|
||||||
|
* category = $condition-category#encounter-diagnosis "Encounter Diagnosis"
|
||||||
|
* severity = $sct#24484000 "Severe"
|
||||||
|
* code = $sct#317349009 "Vernal keratoconjunctivitis"
|
||||||
|
* bodySite = $sct#368601006 "Entire conjunctiva of left eye"
|
||||||
|
* subject = Reference(Patient/italia-sofia)
|
||||||
|
* onsetDateTime = "2023-10-01"
|
||||||
|
* recordedDate = "2023-10-02"
|
||||||
|
* recorder = Reference(PractitionerRole/generalpractitioner-guthridge-jarred)
|
||||||
|
* asserter = Reference(PractitionerRole/generalpractitioner-guthridge-jarred)
|
||||||
|
* note.text = "Itchy and burning eye, foreign body sensation. Mucoid discharge."
|
||||||
1
website/static/uploads/fsh_output/input/input.json
Normal file
1
website/static/uploads/fsh_output/input/input.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"resourceType":"Encounter","id":"discharge-1","meta":{"profile":["http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter discharge-1</b></p><a name=\"discharge-1\"> </a><a name=\"hcdischarge-1\"> </a><a name=\"discharge-1-en-AU\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-au-core-encounter.html\">AU Core Encounter</a></p></div><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-v3-ActCode.html#v3-ActCode-EMER\">ActCode EMER</a>: emergency</p><p><b>subject</b>: <a href=\"Patient-ronny-irvine.html\">Ronny Lawrence Irvine Male, DoB: ( DVA Number:\u00a0QX827261)</a></p><p><b>period</b>: 2023-02-20 06:15:00+1000 --> 2023-02-20 18:19:00+1000</p><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Location-murrabit-hospital.html\">Location Murrabit Public Hospital</a></td></tr></table><p><b>serviceProvider</b>: <a href=\"Organization-murrabit-hospital.html\">Organization Murrabit Public Hospital</a></p></div>"},"status":"finished","class":{"system":"http://terminology.hl7.org/CodeSystem/v3-ActCode","code":"EMER","display":"emergency"},"subject":{"reference":"Patient/ronny-irvine"},"period":{"start":"2023-02-20T06:15:00+10:00","end":"2023-02-20T18:19:00+10:00"},"location":[{"location":{"reference":"Location/murrabit-hospital"}}],"serviceProvider":{"reference":"Organization/murrabit-hospital"}}
|
||||||
8
website/static/uploads/fsh_output/sushi-config.yaml
Normal file
8
website/static/uploads/fsh_output/sushi-config.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
canonical: http://example.org
|
||||||
|
fhirVersion: 4.3.0
|
||||||
|
FSHOnly: true
|
||||||
|
applyExtensionMetadataToRoot: false
|
||||||
|
id: example
|
||||||
|
name: Example
|
||||||
|
dependencies:
|
||||||
|
hl7.fhir.us.core: 6.1.0
|
||||||
55
website/static/uploads/output.fsh
Normal file
55
website/static/uploads/output.fsh
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Alias: $sct = http://snomed.info/sct
|
||||||
|
Alias: $loinc = http://loinc.org
|
||||||
|
Alias: $ihi-status-1 = https://healthterminologies.gov.au/fhir/CodeSystem/ihi-status-1
|
||||||
|
Alias: $ihi-record-status-1 = https://healthterminologies.gov.au/fhir/CodeSystem/ihi-record-status-1
|
||||||
|
Alias: $v2-0203 = http://terminology.hl7.org/CodeSystem/v2-0203
|
||||||
|
|
||||||
|
Instance: banks-mia-leanne
|
||||||
|
InstanceOf: Patient
|
||||||
|
Usage: #example
|
||||||
|
* meta.profile = "http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient"
|
||||||
|
* extension[0].url = "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
|
||||||
|
* extension[=].extension.url = "value"
|
||||||
|
* extension[=].extension.valueCodeableConcept = $sct#446141000124107 "Identifies as female gender"
|
||||||
|
* extension[+].url = "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
|
||||||
|
* extension[=].extension.url = "value"
|
||||||
|
* extension[=].extension.valueCodeableConcept = $loinc#LA29519-8 "she/her/her/hers/herself"
|
||||||
|
* extension[+].url = "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
|
||||||
|
* extension[=].extension[0].url = "value"
|
||||||
|
* extension[=].extension[=].valueCodeableConcept = $sct#248152002
|
||||||
|
* extension[=].extension[=].valueCodeableConcept.text = "Female"
|
||||||
|
* extension[=].extension[+].url = "type"
|
||||||
|
* extension[=].extension[=].valueCodeableConcept = $sct#1515311000168102 "Biological sex at birth"
|
||||||
|
* identifier.extension[0].url = "http://hl7.org.au/fhir/StructureDefinition/ihi-status"
|
||||||
|
* identifier.extension[=].valueCoding = $ihi-status-1#active
|
||||||
|
* identifier.extension[+].url = "http://hl7.org.au/fhir/StructureDefinition/ihi-record-status"
|
||||||
|
* identifier.extension[=].valueCoding = $ihi-record-status-1#verified "verified"
|
||||||
|
* identifier.type = $v2-0203#NI
|
||||||
|
* identifier.type.text = "IHI"
|
||||||
|
* identifier.system = "http://ns.electronichealth.net.au/id/hi/ihi/1.0"
|
||||||
|
* identifier.value = "8003608333647261"
|
||||||
|
* name.use = #usual
|
||||||
|
* name.family = "Banks"
|
||||||
|
* name.given[0] = "Mia"
|
||||||
|
* name.given[+] = "Leanne"
|
||||||
|
* telecom[0].system = #phone
|
||||||
|
* telecom[=].value = "0270102724"
|
||||||
|
* telecom[=].use = #work
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "0491574632"
|
||||||
|
* telecom[=].use = #mobile
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "0270107520"
|
||||||
|
* telecom[=].use = #home
|
||||||
|
* telecom[+].system = #email
|
||||||
|
* telecom[=].value = "mia.banks@myownpersonaldomain.com"
|
||||||
|
* telecom[+].system = #phone
|
||||||
|
* telecom[=].value = "270107520"
|
||||||
|
* telecom[=].use = #home
|
||||||
|
* gender = #female
|
||||||
|
* birthDate = "1983-08-25"
|
||||||
|
* address.line = "50 Sebastien St"
|
||||||
|
* address.city = "Minjary"
|
||||||
|
* address.state = "NSW"
|
||||||
|
* address.postalCode = "2720"
|
||||||
|
* address.country = "AU"
|
||||||
Loading…
x
Reference in New Issue
Block a user