meta package

Submodules

meta.app module

meta.app.create_zfp_url(accession_number)[source]
meta.app.to_date(date_as_int)[source]

meta.config module

All configuration options can be accessed from here.

class meta.config.DcmtkConfig(dcmtk_bin, dcmin)

Bases: tuple

property dcmin

Alias for field number 1

property dcmtk_bin

Alias for field number 0

class meta.config.PacsConfig(ae_title, ae_called, peer_address, peer_port, incoming_port)

Bases: tuple

property ae_called

Alias for field number 1

property ae_title

Alias for field number 0

property incoming_port

Alias for field number 4

property peer_address

Alias for field number 2

property peer_port

Alias for field number 3

meta.config.dcmtk_config(config)[source]

Returns the dcmtk configuration.

meta.config.pacs_config(config)[source]

Returns the pacs configuration parameters.

meta.convert module

meta.convert.convert(df)[source]

Convert the query all dataframe to a download json structure

meta.default_config module

Default configuration This can be overwritten with a instance folder on the parent level with a configuration. The configuration file needs to be named ‘config.cfg’.

meta.paging module

meta.paging.calc(results: int, current: int, limit=100) → List[Tuple[int, int, bool, bool, bool]][source]

Zero based paging. PAGING_LINKS is the number of pages links to be shown. Because results can be easily more than e.g. 50 pages, then only number of PAGING_LINKS are rendered.

meta.query module

meta.query.query_body(args, limit=100)[source]
meta.query.query_indexed_dates(base_query)[source]

meta.query_all module

meta.query_all.query_all(search_params: werkzeug.datastructures.MultiDict, solr_url: str)[source]

meta.query_param module

meta.query_param.delete_query_parameter(url, param_name)[source]

Given a URL, removes the query parameter and returns the modified URL.

>>> delete_query_parameter('http://example.com?foo=bar', 'foo')
'http://example.com'
meta.query_param.set_query_parameter(url, param_name, param_value)[source]

Given a URL, set or replace a query parameter and return the modified URL.

>>> set_query_parameter('http://example.com?foo=bar', 'foo', 'stuff')
'http://example.com?foo=stuff'

meta.solr module

meta.solr.solr_terms_url(config)[source]

Returns the solr base url. Core name and host are taking from configuration which needs to be passed in. Can be a simple dictionary.

meta.solr.solr_url(config)[source]

Returns the solr url. Core name and host are taking from configuration which needs to be passed in. Can be a simple dictionary.

meta.statistics module

meta.statistics.calculate(df)[source]
meta.statistics.mapping(input)[source]

meta.terms module

meta.terms.get_terms_data(config)[source]

meta.views module

meta.views.download()[source]

Ajax post to download series of images.

meta.views.download_all()[source]
meta.views.download_or_transfer(url, data)[source]
meta.views.export()[source]
meta.views.export_anon()[source]
meta.views.get_statistics()[source]
meta.views.get_statistics_per_month(date)[source]
meta.views.get_statistics_per_year(year)[source]
meta.views.main()[source]

Renders the initial page.

meta.views.month_statistics()[source]
meta.views.search()[source]

Renders the search results.

meta.views.statistics()[source]
meta.views.statistics_data()[source]
meta.views.terms()[source]

Renders a page about term information. Only internal use.

meta.views.transfer()[source]

Ajax post to transfer series of images to <target> PACS node.

meta.views.transfer_all()[source]

Ajax post to transfer series of images to <target> PACS node.

Module contents