Skip to Content
go-dicom(3)
Command line

mppsscu

Reports a Modality Performed Procedure Step to a peer: N-CREATE when a procedure starts (IN PROGRESS), and N-SET when it is COMPLETED or DISCONTINUED, with the series and images it made.

When to use it

Use mppsscu to tell a RIS or a PACS what a modality did, as the modality would: to test an MPPS SCP, to close a step a device left open, or to script a modality simulator. It sends the attributes MPPS requires (PS3.4 Annex F), filled from its flags, and any others from a DICOM JSON object.

It does not query the worklist (use findscu -worklist) and it does not send images (use storescu).

dcmtk has no MPPS command-line tool; pynetdicom does it in a script with send_n_create and send_n_set.

Examples

Start a step

go-dicom mppsscu -aec MPPSSCP -patient-name 'Roe^Richard' -patient-id PID1001 -accession ACC1001 -modality MR -scheduled-step-id SPS1001 -requested-procedure-id RP1001 -description 'MR Brain' ris:11112
Requesting Association with ris:11112 (AE: MPPSSCP)
N-CREATE Success (status 0x0000)
Performed Procedure Step 2.25.32975758181220166882329432353321766319 is IN PROGRESS
End it with: mppsscu -complete 2.25.32975758181220166882329432353321766319 (or -discontinue) ris:11112

The step's SOP Instance UID is generated unless -uid gives one; keep it to end the step. -aet is the calling AE title and the Performed Station AE Title (unless -station-aet). Take the patient, accession and scheduled step values from the worklist entry.

Complete it, with what it made

go-dicom mppsscu -aec MPPSSCP -complete 2.25.32975758181220166882329432353321766319 -series 1.3.6.1.4.1.5962.1.3.4.1.20040826185059.5457 -protocol 'Brain routine' -instance 1.2.840.10008.5.1.4.1.1.4:1.3.6.1.4.1.5962.1.1.4.1.1.20040826185059.5457 ris:11112
Requesting Association with ris:11112 (AE: MPPSSCP)
N-SET Success (status 0x0000)
Performed Procedure Step 2.25.32975758181220166882329432353321766319 is COMPLETED

Each -series is an item of the Performed Series Sequence, and needs -protocol; -instance sopClassUID:sopInstanceUID names an image of the one series.

A step can be ended only once. Setting it again is refused, and the command exits 1:

N-SET Failure (status 0x0110)
Error: the SCP refused the N-SET: status 0x0110

Discontinue a step

go-dicom mppsscu -aec MPPSSCP -discontinue 1.2.826.0.1.3680043.10.511.5.1 ris:11112
Requesting Association with ris:11112 (AE: MPPSSCP)
N-SET Success (status 0x0000)
Performed Procedure Step 1.2.826.0.1.3680043.10.511.5.1 is DISCONTINUED

More attributes, and what is sent

go-dicom mppsscu -aec MPPSSCP -patient-id PID1001 -json mpps-extra.json -v ris:11112
Requesting Association with ris:11112 (AE: MPPSSCP)
Sending:
  Modality                                 OT
…
  Performed Procedure Step Status          IN PROGRESS
…
  Performed Procedure Step Description     MR Brain, extra sequence
  Performing Physician's Name              Smith^Ann
N-CREATE Success (status 0x0000)

-json names a DICOM JSON object whose attributes are added to what the flags give, replacing any with the same tag. -v prints the data set sent and any the SCP returns.

Notes

  • Without -complete or -discontinue the command creates a step. Modality defaults to OT, the Performed Procedure Step ID is made from the time, and the scheduled Study Instance UID is generated unless -study-uid gives it.
  • Exit status is 0 when the SCP answered Success, 1 on a refusal or a failed association.
  • -timeout is in seconds (default 30). The -tls… options are those of echoscu; -events records the association (Events).
  • go-dicom has no MPPS server command; the library's network.MPPSHandler is one. See CONFORMANCE.md, Service classes.

See also

Options

On this page