{"action":"created","issue":{"url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/1","repository_url":"https://api.github.com/repos/pydicom/pynetdicom3","labels_url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/1/comments","events_url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/1/events","html_url":"https://github.com/pydicom/pynetdicom3/issues/1","id":199255641,"number":1,"title":"REQ: Download a DICOM from a Remote PACS","user":{"login":"barchard","id":17622,"avatar_url":"https://avatars1.githubusercontent.com/u/17622?v=4","gravatar_id":"","url":"https://api.github.com/users/barchard","html_url":"https://github.com/barchard","followers_url":"https://api.github.com/users/barchard/followers","following_url":"https://api.github.com/users/barchard/following{/other_user}","gists_url":"https://api.github.com/users/barchard/gists{/gist_id}","starred_url":"https://api.github.com/users/barchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barchard/subscriptions","organizations_url":"https://api.github.com/users/barchard/orgs","repos_url":"https://api.github.com/users/barchard/repos","events_url":"https://api.github.com/users/barchard/events{/privacy}","received_events_url":"https://api.github.com/users/barchard/received_events","type":"User","site_admin":false},"labels":[{"id":527984789,"url":"https://api.github.com/repos/pydicom/pynetdicom3/labels/documentation","name":"documentation","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-06T18:19:43Z","updated_at":"2018-05-23T10:40:40Z","closed_at":"2018-05-18T02:50:23Z","author_association":"NONE","body":"These are some great examples and tutorials. Do you have one for downloading a DICOM from a remote PACS? Thanks"},"comment":{"url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/comments/391302429","html_url":"https://github.com/pydicom/pynetdicom3/issues/1#issuecomment-391302429","issue_url":"https://api.github.com/repos/pydicom/pynetdicom3/issues/1","id":391302429,"user":{"login":"ManojSolanki","id":2775627,"avatar_url":"https://avatars3.githubusercontent.com/u/2775627?v=4","gravatar_id":"","url":"https://api.github.com/users/ManojSolanki","html_url":"https://github.com/ManojSolanki","followers_url":"https://api.github.com/users/ManojSolanki/followers","following_url":"https://api.github.com/users/ManojSolanki/following{/other_user}","gists_url":"https://api.github.com/users/ManojSolanki/gists{/gist_id}","starred_url":"https://api.github.com/users/ManojSolanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManojSolanki/subscriptions","organizations_url":"https://api.github.com/users/ManojSolanki/orgs","repos_url":"https://api.github.com/users/ManojSolanki/repos","events_url":"https://api.github.com/users/ManojSolanki/events{/privacy}","received_events_url":"https://api.github.com/users/ManojSolanki/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T10:40:40Z","updated_at":"2018-05-23T10:40:40Z","author_association":"NONE","body":"Hi @scaramallion \r\n\r\nAccording to your instructions, I continue to downloading DICOM from PACS but still not able to get what is the correct Presentation Context for ‘dataset’. I tried all UID’s from following URL:\r\n\r\nhttp://dicom.nema.org/medical/dicom/2014c/output/chtml/part02/sect_F.4.2.2.4.html\r\n\r\nHere is my code:\r\nct_storage_uid = UID('1.2.840.10008.1.1')\r\nae = AE(scu_sop_class=[ct_storage_uid])\r\n\r\nI also used the different combination of “query_model”:\r\n\r\nif assoc.is_established:\r\n    print('Association accepted by the peer')\r\n\r\n    # Creat a new DICOM dataset with the attributes to match against\r\n    #   In this case match any patient's name at the PATIENT query\r\n    #   level. See PS3.4 Annex C.6 for the complete list of possible\r\n    #   attributes and query levels.\r\n    dataset = Dataset()\r\n    dataset.PatientID = '*'\r\n    dataset.QueryRetrieveLevel = \"PATIENT\"\r\n\r\n    # Send a DIMSE C-FIND request to the peer\r\n    #   query_model is the Query/Retrieve Information Model to use\r\n    #   and is one of 'W', 'P', 'S', 'O'\r\n    #       'W' - Modality Worklist (1.2.840.10008.5.1.4.31)\r\n    #       'P' - Patient Root (1.2.840.10008.5.1.4.1.2.1.1)\r\n    #       'S' - Study Root (1.2.840.10008.5.1.4.1.2.2.1)\r\n    #       'O' - Patient/Study Only (1.2.840.10008.5.1.4.1.2.3.1)\r\n    responses = assoc.send_c_find(dataset, query_model='O')\r\n\r\nI am using “ORTHANC” server, please find the logs for the same:\r\n![screen shot 2018-05-23 at 3 59 31 pm](https://user-images.githubusercontent.com/2775627/40419668-a5b68186-5ea3-11e8-8f90-cbada1f27370.png)\r\n,\r\n\r\nWhich UID I should use for the connections, I can share sample DICOM file as well if it requires knowing the UID. \r\n\r\nPlease help."}}
{"actor":{"display_login":"ManojSolanki"}}