itkwasm_dicom.structured_report_to_html
ΒΆ
Module ContentsΒΆ
FunctionsΒΆ
Render DICOM SR file and data set to HTML/XHTML |
APIΒΆ
- itkwasm_dicom.structured_report_to_html.structured_report_to_html(dicom_file: os.PathLike, read_file_only: bool = False, read_dataset: bool = False, read_xfer_auto: bool = False, read_xfer_detect: bool = False, read_xfer_little: bool = False, read_xfer_big: bool = False, read_xfer_implicit: bool = False, processing_details: bool = False, unknown_relationship: bool = False, invalid_item_value: bool = False, ignore_constraints: bool = False, ignore_item_errors: bool = False, skip_invalid_items: bool = False, disable_vr_checker: bool = False, charset_require: bool = False, charset_assume: str = '', charset_check_all: bool = False, convert_to_utf8: bool = False, url_prefix: str = '', html_32: bool = False, html_40: bool = False, xhtml_11: bool = False, add_document_type: bool = False, css_reference: Optional[str] = None, css_file: Optional[os.PathLike] = None, expand_inline: bool = False, never_expand_inline: bool = False, always_expand_inline: bool = False, render_full_data: bool = False, section_title_inline: bool = False, document_type_title: bool = False, patient_info_title: bool = False, no_document_header: bool = False, render_inline_codes: bool = False, concept_name_codes: bool = False, numeric_unit_codes: bool = False, code_value_unit: bool = False, code_meaning_unit: bool = False, render_all_codes: bool = False, code_details_tooltip: bool = False) str ΒΆ
Render DICOM SR file and data set to HTML/XHTML
- Parameters:
dicom_file (os.PathLike) β Input DICOM file
read_file_only (bool) β read file format only
read_dataset (bool) β read data set without file meta information
read_xfer_auto (bool) β use TS recognition (default)
read_xfer_detect (bool) β ignore TS specified in the file meta header
read_xfer_little (bool) β read with explicit VR little endian TS
read_xfer_big (bool) β read with explicit VR big endian TS
read_xfer_implicit (bool) β read with implicit VR little endian TS
processing_details (bool) β show currently processed content item
unknown_relationship (bool) β accept unknown/missing relationship type
invalid_item_value (bool) β accept invalid content item value (e.g. violation of VR or VM definition)
ignore_constraints (bool) β ignore relationship content constraints
ignore_item_errors (bool) β do not abort on content item errors, just warn (e.g. missing value type specific attributes)
skip_invalid_items (bool) β skip invalid content items (incl. sub-tree)
disable_vr_checker (bool) β disable check for VR-conformant string values
charset_require (bool) β require declaration of ext. charset (default)
charset_assume (str) β [c]harset: string, assume charset c if no extended charset declared
charset_check_all (bool) β check all data elements with string values (default: only PN, LO, LT, SH, ST, UC and UT)
convert_to_utf8 (bool) β convert all element values that are affected by Specific Character Set (0008,0005) to UTF-8
url_prefix (str) β URL: string. Append specificed URL prefix to hyperlinks of referenced composite objects in the document.
html_32 (bool) β use only HTML version 3.2 compatible features
html_40 (bool) β allow all HTML version 4.01 features (default)
xhtml_11 (bool) β comply with XHTML version 1.1 specification
add_document_type (bool) β add reference to SGML document type definition
css_reference (str) β URL: string. Add reference to specified CSS to document
css_file (os.PathLike) β [f]ilename: string. Embed content of specified CSS into document
expand_inline (bool) β expand short content items inline (default)
never_expand_inline (bool) β never expand content items inline
always_expand_inline (bool) β always expand content items inline
render_full_data (bool) β render full data of content items
section_title_inline (bool) β render section titles inline, not separately
document_type_title (bool) β use document type as document title (default)
patient_info_title (bool) β use patient information as document title
no_document_header (bool) β do not render general document information
render_inline_codes (bool) β render codes in continuous text blocks
concept_name_codes (bool) β render code of concept names
numeric_unit_codes (bool) β render code of numeric measurement units
code_value_unit (bool) β use code value as measurement unit (default)
code_meaning_unit (bool) β use code meaning as measurement unit
render_all_codes (bool) β render all codes (implies +Ci, +Cn and +Cu)
code_details_tooltip (bool) β render code details as a tooltip (implies +Cc)
- Returns:
Output text file
- Return type: