compliance_check_html

Functions

generate_html_report(check_result, template_path)

Generate an HTML report of DICOM header comparison, highlighting mismatches.

load_template(template_path)

Load an HTML template from the template.html file

compliance_check_html.generate_html_report(check_result, template_path)[source]

Generate an HTML report of DICOM header comparison, highlighting mismatches.

Parameters:
  • check_result (CheckResult) – Output from the check_header function, containing the comparison results.

  • template_path (str)

Returns:

HTML string with results formatted using a Jinja2 template.

Return type:

str

compliance_check_html.load_template(template_path)[source]

Load an HTML template from the template.html file

Parameters:

template_path (str) – Path to the HTML template file.

Returns:

A Jinja2 Template object.

Return type:

Template