platipy.dicom.communication package#
Submodules#
platipy.dicom.communication.connector module#
- class platipy.dicom.communication.connector.DicomConnector(host='127.0.0.1', port=0, ae_title='', output_directory='/tmp/tmpz93_3rsf')#
Bases:
object
- do_find(dataset, query_model='1.2.840.10008.5.1.4.1.2.1.1')#
- download_series(series_instance_uid, recieved_callback=None, query_model='1.2.840.10008.5.1.4.1.2.1.3')#
- get_series_for_study(study_instance_uid, modality)#
- get_studies_for_patient(patient_id)#
- listen(recieved_callback, ae_title='PYNETDICOM')#
- move_series(seriesInstanceUID, move_aet='PYNETDICOM', query_model='1.2.840.10008.5.1.4.1.2.1.2')#
- on_association_accepted(event)#
- on_association_released(event)#
- on_c_echo(event)#
Respond to a C-ECHO service request.
- Parameters:
context (namedtuple) – The presentation context that the verification request was sent under.
info (dict) – Information about the association and verification request.
- Returns:
status – The status returned to the peer AE in the C-ECHO response. Must be a valid C-ECHO status value for the applicable Service Class as either an
int
or aDataset
object containing (at a minimum) a (0000,0900) Status element.- Return type:
int or pydicom.dataset.Dataset
- on_c_store(event)#
- send_dcm(dcm_file)#
send_dcm accepts the location of a single dcm file to send over the connector or a list of dcm files to send in one association.
- verify()#