Rtplan utils
rtplan_utils
#
Functions:
Name | Description |
---|---|
rtplan_reference_uids |
Get the ReferencedSOPInstanceUIDs from an RTPLAN file |
RTPLANRefStructSOP
#
Bases: str
Represents a SOPInstanceUID
pointing to a RTSTRUCT
referenced by a RTPLAN
file
extracted via ReferencedStructureSetSequence.ReferencedSOPInstanceUID
rtplan_reference_uids
#
rtplan_reference_uids(
rtplan: pydicom.dataset.Dataset,
) -> (
imgtools.dicom.dicom_metadata.modality_utils.rtplan_utils.RTPLANRefStructSOP
)
Get the ReferencedSOPInstanceUIDs from an RTPLAN file
We assume RTPLAN only references a RTSTRUCT
file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
pydicom.dataset.Dataset
|
The RTPLAN file to extract the reference UIDs from
Must be a |
required |
Example
match rtplan_reference_uids(rtplan): ... case RTPLANRefStructSOP(uid): ... print(f"SOPInstanceUID: {uid=}")