patientImagingCRD

class PDCP.patientImagingCRD(codesconfig=None)

Bases: PDCP.patientImagingCRDP

This is the class used to collect the patients data where the CT & the RTSTRUCT & RTDOSE are only required. With no plans required, all the RTDOSES in the study will be linked to the CT, which is not always the right approach.

Methods Summary

verify_study(df, notes[, modality])

Within this function, the links between different modalities are identified to find connections.

Methods Documentation

verify_study(df, notes, modality='CT')

Within this function, the links between different modalities are identified to find connections. It is expected that each CT will have associated RTSTRUCTS which will also have associated RTPLAN (SOPinstanceUID), which will also have links to the RTDOSES. By finding these links, we try to remove any unused RTDOSES, RTSTRUCTS, CTs

To do that, the CT SeriesInstanceUID links to the RTSTRUCT through the tag: ReferencedFrameOfReferenceSequence – > SeriesInstanceUID The RTSTRUCT SOPInstanceUID links to RTPLAN instances through the tag: ReferencedStructureSetSequence –> ReferencedSOPInstanceUID The RTDOSE SOPInstanceUID links to the RTPLAN instances through the tag: ReferencedRTPlanSequence –>

By that, it is assumed that the modalities, files used in treatment will be all connected.

Any study with no connections will be discarded. Any study with multiple connections will be discarded

Parameters
  • df (Pandas dataframe) – a dataframe with the patient imaging records

  • notes (list) – a list that contians the notes, and is used to append new notes while verifying the patient files.

Returns

  • list_of_values (list of dicts) – A list of dictionaries that contain the details of associations between studies objects.

  • notes (list) – list of notes appended while verifying the patient’s imaging files.