Skip to content

Redacted C-FIND Proxy Visibility ​

What it is ​

When DICOM Capacitor proxies a Query/Retrieve or Modality Worklist C-FIND, it normally logs the association and DIMSE status flow but not the shape of the query identifier. Enable the diagnostic settings below to compare the incoming query with the one sent upstream.

Redacted C-FIND logging correlates query and result summaries with upstream responses. It records DICOM tag presence, wildcard and range markers, and value lengths. DICOM tag values stay out of the log. The correlation fields include configured AE titles.

It is off by default. Capacitor generates these summaries only when enabled.

Enabling it ​

SettingTypeDefaultMeaning
redactedCFindLoggingboolfalseMaster enable.
redactedCFindLoggingExtraTagsstring listemptyExtra diagnostic tags beyond the built-in sets. Each entry is a DICOM keyword (InstitutionName) or a gggg,eeee group/element (0008,0080). Unparseable entries are ignored.

Like all Capacitor settings these are overridable via environment (CAPACITOR_REDACTED_C_FIND_LOGGING=true) or CLI (--config.redactedCFindLogging=true). Lines are written to the normal support log (capacitor_service.log), not the audit log.

What gets logged ​

Each proxied C-FIND emits correlated single-line entries, prefixed CFIND-PROXY, at these phases:

PhaseWhenAnswers
inboundas received from the caller, before any Lua/YAML transformWhat shape did the caller send?
outboundimmediately before the upstream send, after Lua/YAML (and, for worklist, the date-range merge)What shape did we actually forward?
upstream-statuseach upstream response status, including pending and terminal statusesWhat did upstream say, including Processing failure?
result-summaryonce, terminating, after response transforms/filteringHow many results, terminal status, and aggregate redacted shape
cache-hitworklist only — a fresh cache served the caller, so no upstream query happenedConfirms no upstream query occurred

Every line carries correlation fields: family (qr/worklist), phase, msgId (DIMSE message id), calling, called, upstream (resolved node AE), model (SOP class UID), and level (QR only).

Note: called is the AE title the caller addressed. When that is an alias, called shows the alias and upstream shows the resolved node AE title.

The redaction model ​

For each diagnostic tag, exactly one token is emitted:

TokenMeaning
absenttag not present
emptypresent but empty/whitespace
present(len=N)present with a concrete value, N characters
wildcard(len=N)value contains * or ?
range(len=N)a date/time-VR value containing - (e.g. 20260101-20260131)

Only the character length is ever emitted — never the value, and (by deliberate design) no hashes. Tags nested in a sequence are rendered SEQLABEL:Tag (e.g. SPS:ScheduledStationAETitle); the first sequence item is summarized and the item count annotated when > 1 (SPS[n=2]:...).

result-summary aggregates result datasets as state counts only: resultTags=[PatientID={present:3} StudyDate={absent:1 present:2}] — no values, lengths, or hashes in the aggregate.

Built-in tag sets ​

  • QR: QueryRetrieveLevel, PatientName, PatientID, PatientBirthDate, PatientSex, StudyDate, StudyTime, AccessionNumber, StudyInstanceUID, ModalitiesInStudy, StudyDescription.
  • Worklist: PatientName, PatientID, AccessionNumber, and inside ScheduledProcedureStepSequence: ScheduledProcedureStepStartDate/Time, Modality, ScheduledStationAETitle, ScheduledProcedureStepID.

Synthetic example ​

The following excerpt uses fictional AE titles. Each line belongs to the same C-FIND request. The displayed tag list is abbreviated.

text
CFIND-PROXY family=qr phase=inbound msgId=7 calling=EXAMPLE_SCU called=EXAMPLE_PROXY upstream=EXAMPLE_PACS model=1.2.840.10008.5.1.4.1.2.2.1 level=STUDY tags=[QueryRetrieveLevel=present(len=5) PatientName=wildcard(len=8) PatientID=absent StudyDate=range(len=17) ...]
CFIND-PROXY family=qr phase=outbound msgId=7 calling=EXAMPLE_SCU called=EXAMPLE_PROXY upstream=EXAMPLE_PACS model=1.2.840.10008.5.1.4.1.2.2.1 level=STUDY tags=[QueryRetrieveLevel=present(len=5) PatientName=wildcard(len=8) PatientID=absent StudyDate=range(len=17) ...]
CFIND-PROXY family=qr phase=upstream-status msgId=7 calling=EXAMPLE_SCU called=EXAMPLE_PROXY upstream=EXAMPLE_PACS model=1.2.840.10008.5.1.4.1.2.2.1 level=STUDY status="Processing failure [0x0110]" hasDataset=false
CFIND-PROXY family=qr phase=result-summary msgId=7 calling=EXAMPLE_SCU called=EXAMPLE_PROXY upstream=EXAMPLE_PACS model=1.2.840.10008.5.1.4.1.2.2.1 level=STUDY count=0 terminalStatus="Processing failure [0x0110]" resultTags=[]

Compare the inbound and outbound lines. Both show a wildcard patient name, an absent patient ID, and a study date range. The upstream status line records a processing failure without a result dataset.

Sharing logs ​

Review log excerpts before sharing them. Association fields such as calling, called, and upstream can identify a site even with DICOM tag values redacted.