{% extends "base.html" %} {% from "_form_helpers.html" import render_field %} {# Assuming you have this helper #} {% block content %}
FHIRFLARE IG Toolkit

{{ title }}

Upload FHIR test data (JSON, XML, or ZIP containing JSON/XML) to a target server. The tool will attempt to parse resources, determine dependencies based on references, and upload them in the correct order. Optionally validate resources before uploading.

Upload Configuration

{# --- Display WTForms validation errors --- #} {% if form.errors %}

Please correct the following errors:

    {% for field, errors in form.errors.items() %}
  • {{ form[field].label.text }}: {{ errors|join(', ') }}
  • {% endfor %}
{% endif %} {# --- End Error Display --- #}
{# Use POST, JS will handle submission #} {{ form.csrf_token }} {# Render CSRF token #} {{ render_field(form.fhir_server_url, class="form-control form-control-lg") }} {# Authentication Row #}
{{ render_field(form.auth_type, class="form-select") }}
{# File Input #} {{ render_field(form.test_data_file, class="form-control") }} Select one or more .json, .xml files, or a single .zip file containing them. {# --- Validation Options --- #}
{# Render BooleanField using the macro #} {{ render_field(form.validate_before_upload) }} It is suggested to not validate against more than 500 files
{# --- END Validation Options --- #} {# Upload Mode/Error Handling/Conditional Row #}
{{ render_field(form.upload_mode, class="form-select") }}
{# --- Conditional Upload Checkbox --- #}
{# Use flex alignment #} {{ render_field(form.use_conditional_uploads) }}
{# --- END --- #}
{{ render_field(form.error_handling, class="form-select") }}
{# Results Area #}

Processing Log & Results

{# Live Console for Streaming Output #}
Processing output will appear here...
{# Final Summary Report Area #}
{# Final summary message appears here #}
{# End Col #}
{# End Row #}
{# End Container #} {% endblock %} {% block scripts %} {{ super() }} {# Include scripts from base.html #} {% endblock %}