diff --git a/Dockerfile b/Dockerfile index 799d031..1386da8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN pip install --no-cache-dir -r requirements.txt COPY app.py . COPY services.py . COPY templates/ templates/ +COPY static/ static/ # Ensure /tmp is writable as a fallback RUN mkdir -p /tmp && chmod 777 /tmp diff --git a/Dump/base.html.txt b/Dump/base.html.txt new file mode 100644 index 0000000..cdad0d0 --- /dev/null +++ b/Dump/base.html.txt @@ -0,0 +1,91 @@ + + +
+ + + + + ++ This is the starting point for our modular Patient Administration System. + We will build upon this core framework by adding modules through the control panel. +
+Simple tool for importing and viewing FHIR Implementation Guides.
- - - - - ''') + return render_template('index.html', site_name='FHIRFLARE IG Toolkit', now=datetime.now()) @app.route('/import-ig', methods=['GET', 'POST']) def import_ig(): @@ -101,47 +82,7 @@ def import_ig(): return redirect(url_for('view_igs')) except Exception as e: flash(f"Error downloading IG: {str(e)}", "error") - return render_template_string(''' - - - - -+ This is the starting Point for your Journey through the IG's +
+ +Risk: Duplicate Dependency with Different Versions
Package Name | Version | Actions | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ pkg.name }}
{% if is_duplicate %}
- Duplicate
+ Duplicate
{% endif %}
|
{{ pkg.version }} | @@ -58,12 +55,12 @@ {% else %} {% endif %} @@ -76,10 +73,13 @@||||||||||||||||||
{{ processed_ig.package_name }} |
+
+ {{ processed_ig.package_name }}
+ |
{{ processed_ig.version }} | {% set types_info = processed_ig.resource_types_info %} @@ -121,7 +123,7 @@ View | @@ -134,10 +136,12 @@
Package Name | Version | Actions |
---|---|---|
+ {{ pkg.name }}
+ {% if is_duplicate %}
+ Duplicate
+ {% endif %}
+ |
+ {{ pkg.version }} | +
+
+ {% if is_processed %}
+ Processed
+ {% else %}
+
+ {% endif %}
+
+
+ |
+
Duplicates detected: + {% for name, versions in duplicate_groups.items() %} + {% if versions|length > 1 %} + {% set group_color = group_colors[name] if name in group_colors else 'bg-warning' %} + {{ name }} ({{ versions|join(', ') }}) + {% endif %} + {% endfor %} +
+ {% else %} +No duplicates detected.
+ {% endif %} + {% else %} +No downloaded FHIR packages found.
+ {% endif %} +MS = Contains Must Support Elements
+Package Name | Version | Resource Types | Actions |
---|---|---|---|
+ {{ processed_ig.package_name }}
+ |
+ {{ processed_ig.version }} | +
+ {% set types_info = processed_ig.resource_types_info %}
+ {% if types_info %}
+ {% for type_info in types_info %}
+ {% if type_info.must_support %}
+ {{ type_info.name }}
+ {% else %}
+ {{ type_info.name }}
+ {% endif %}
+ {% endfor %}
+ {% else %}N/A{% endif %}
+ |
+
+
+ View
+
+
+ |
+
No packages recorded as processed yet.
+ {% endif %} ++ View details of the processed FHIR Implementation Guide. +
+ +No profiles defined.
{% endif %} {% if base_list %}No base resource types referenced.
{% endif %} {% else %}No resource type information extracted or stored.
@@ -132,255 +146,293 @@ {% else %}Resource Types Info: {{ processed_ig.resource_types_info | tojson | safe }}+
Examples: {{ processed_ig.examples | tojson | safe }}+
{{ processed_ig.package_name }}
MS = Contains Must Support Elements
+ {% if profile_list %} +No resource type information extracted or stored.
+ {% endif %} +