3T logo3T Consults and Coaching

Docs › Insight & Governance

Queries

Ask your own data the question, chart the answer, and share it, without waiting on a report request.

TruthReplaces: Ad-hoc report requests to IT or a separate reporting tool

A visual query builder over PATK's database with schema drag-and-drop, server-side paging, charts and CSV / Excel export. Saved queries can be private or shared, and every run is audited.

SELECT onlywrite statements refused before they run
Every runwritten to the audit log with the SQL and user
CSV / Excelexports, with leading zeros in MRNs kept

The challenge

A director wants studies per modality for last week. A PACS analyst needs every issuer that appears on stored patients but is missing from the library. An auditor asks for a list of accessions from one site. Each question becomes a ticket, waits for someone with database access, and comes back as a one-off spreadsheet nobody can re-run.

Giving people a general database tool instead is worse: it can change data, it shows tables it should not, and nobody knows who ran what.

What it does

Write SQL with the schema beside you

Show the tables and columns with their types, and drag a name into the editor already quoted correctly.

Read-only by design

Only SELECT and WITH statements run; statements containing write keywords are refused before they reach the database.

Sensitive tables kept out

An admin-set exclusion list hides tables (login and identity tables by default) and refuses queries that name them.

Big results handled

The row count is checked against a configurable limit first, then results load page by page from the server, with search.

Charts in a few clicks

Group by, stack by and a value column turn results into a bar chart; chart totals export to Excel.

Exports that open cleanly

Export to CSV with the columns you tick; numbers with leading zeros, such as MRNs, stay intact in Excel.

Queries that stay current

CURRENT_DATE is filled in at run time, so a saved "last 7 days" query is right every time it is loaded.

Save and share

Save a query by name, private to you or public for everyone; load it later and run it in one click.

Managed centrally

User Query Management lets admins search every saved query by name or SQL text, edit and delete; users manage their own.

How it works

  1. Write. Build a SELECT in the Visual Query Builder, dragging names from the schema.
  2. Check. PATK confirms it is read-only, avoids excluded tables and stays under the row limit.
  3. Run. Results page in from the server; the run is written to the audit log.
  4. Chart and export. Group and total for a chart, or export the rows to CSV.
  5. Save. Keep it private or make it public for the team.

Use cases

Weekly volume for the imaging director

Challenge. The director asks IT every Monday for last week's studies by modality.

With PATK. An analyst saves a public "studies by modality, last 7 days" query with a bar chart; the director loads it whenever needed.

Outcome. The Monday request disappears, and every run is the same definition of "volume".

Data-quality checks for the PACS team

Challenge. Studies keep arriving with patient issuers nobody has registered, but finding them means asking for a database extract.

With PATK. A saved query lists every issuer on stored patients that the issuer library does not know, busiest first, exported to CSV for the uploader.

Outcome. A monthly check the PACS team runs themselves in a minute.

Answering an audit request

Challenge. Compliance needs the accession numbers and dates for one site's studies in a date range, and proof of who pulled the list.

With PATK. A scoped SELECT exports exactly those columns; the audit log records the SQL, the user and the time.

Outcome. The list is delivered the same day, with its provenance on record.

Trust · Truth · Transform

Trust

Write statements are refused, sensitive tables are excluded, results are capped, and every run, save and edit is audited; with facility and site enforcement on, only Global users can run raw SQL.

Truth

Look at the true data behind every page in PATK, with numbers you can chart, export and re-run on the same definition.

Transform

Report requests turn into saved, shared queries that directors and analysts run themselves, freeing IT from one-off extracts.

Value model

An example department whose ad-hoc data questions currently go to IT or the vendor.

AssumptionExample value
Ad-hoc data requests per month15
Analyst or IT time per request today2 hours (360 hours a year)
Share answered by saved or self-written queries70% (252 hours a year)
Blended analyst cost per hour$75
Paid custom reports avoided per year4 at $1,500 each
Estimated yearly value$24,900

Illustrative only: every assumption is shown so you can replace it with your own numbers. Your results will differ.

Why it stands out

  • Safer than a database client. Read-only checks, excluded tables, row limits and an audit trail, which a general SQL tool on an admin's desktop does not give you.
  • No separate reporting stack. Query, chart and export from the same browser login, with no extra server or license.
  • Reusable, not one-off. Saved public queries become the team's shared definitions instead of spreadsheets that cannot be reproduced.
  • Built for PACS data. Exports keep MRN leading zeros and saved date ranges stay current, small details that save real rework.

At a glance

PagesVisual Query Builder, User Query Management, Edit User Query (admins)
LanguagePostgreSQL SELECT and WITH (CTE) statements
SafetyWrite keywords refused, excluded tables (TablesToExclude), row limit (MaxQueryResults), audit log for every run
OutputPaged results with search, bar charts (group, stack, value), CSV export, chart totals to Excel
SharingPrivate or public saved queries; admins search, edit and delete all
AccessPage permissions per role; Global users only once facility / site access is enforced

Screenshots

More in Insight & Governance

Not a medical device. PACS Admin Toolkit is not FDA-cleared or CE-marked and is not intended for primary diagnosis. It manages imaging and reporting data and workflows around the clinical systems that do.

Other product and company names may be trademarks of their respective owners. Screenshots show sample data. Value models are illustrative estimates, not guarantees.