Skip to content

Commit

Permalink
Remove unused find_patient_id_of_study method
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Mar 31, 2024
1 parent 365c652 commit df2c490
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions adit/core/utils/dicom_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ def abort(self) -> None:
self.dimse_connector.abort_connection()
self.dicom_web_connector.abort()

def find_patient_id_of_study_uid(self, study_uid: str) -> str | None:
query = QueryDataset.create(StudyInstanceUID=study_uid, QueryRetrieveLevel="STUDY")
result: ResultDataset | None = None
if self.server.study_root_find_support:
result = next(self.dimse_connector.send_c_find(query), None)
elif self.server.dicomweb_qido_support:
result = next(iter(self.dicom_web_connector.send_qido_rs(query)), None)

if result and "PatientID" in result:
return result.PatientID

return None

def find_patients(
self,
query: QueryDataset,
Expand Down

0 comments on commit df2c490

Please sign in to comment.