{"action":"created","issue":{"url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/653","repository_url":"https://api.github.com/repos/fo-dicom/fo-dicom","labels_url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/653/comments","events_url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/653/events","html_url":"https://github.com/fo-dicom/fo-dicom/issues/653","id":295835595,"number":653,"title":"Creating new Dicom file","user":{"login":"murunwas","id":8838943,"avatar_url":"https://avatars3.githubusercontent.com/u/8838943?v=4","gravatar_id":"","url":"https://api.github.com/users/murunwas","html_url":"https://github.com/murunwas","followers_url":"https://api.github.com/users/murunwas/followers","following_url":"https://api.github.com/users/murunwas/following{/other_user}","gists_url":"https://api.github.com/users/murunwas/gists{/gist_id}","starred_url":"https://api.github.com/users/murunwas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murunwas/subscriptions","organizations_url":"https://api.github.com/users/murunwas/orgs","repos_url":"https://api.github.com/users/murunwas/repos","events_url":"https://api.github.com/users/murunwas/events{/privacy}","received_events_url":"https://api.github.com/users/murunwas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T11:12:45Z","updated_at":"2018-02-09T13:36:24Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\nHow do I create a new Dicom file from the raw data?\r\n![image](https://user-images.githubusercontent.com/8838943/36025164-bd1f43ee-0d9a-11e8-9d14-5485ceee708f.png)\r\n\r\nbut I'm getting error: Tag: (0002,0010) not found in dataset\r\n\r\n\r\n### Actual behavior\r\n\r\n\r\n### Steps to reproduce the behavior\r\n\r\n\r\n### fo-dicom version and OS/platform\r\n"},"comment":{"url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/comments/364435336","html_url":"https://github.com/fo-dicom/fo-dicom/issues/653#issuecomment-364435336","issue_url":"https://api.github.com/repos/fo-dicom/fo-dicom/issues/653","id":364435336,"user":{"login":"gofal","id":6769246,"avatar_url":"https://avatars3.githubusercontent.com/u/6769246?v=4","gravatar_id":"","url":"https://api.github.com/users/gofal","html_url":"https://github.com/gofal","followers_url":"https://api.github.com/users/gofal/followers","following_url":"https://api.github.com/users/gofal/following{/other_user}","gists_url":"https://api.github.com/users/gofal/gists{/gist_id}","starred_url":"https://api.github.com/users/gofal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gofal/subscriptions","organizations_url":"https://api.github.com/users/gofal/orgs","repos_url":"https://api.github.com/users/gofal/repos","events_url":"https://api.github.com/users/gofal/events{/privacy}","received_events_url":"https://api.github.com/users/gofal/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T13:36:24Z","updated_at":"2018-02-09T13:36:24Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nin wiki there is a link to a working example of how to create a dicom file: https://gist.github.com/mdubey82/4030263\r\nthere are few things to notice from your example:\r\n\r\n- the transfersyntax is not valid. Dicom has some defined UIDs and you cannot take any number. So use the enum DicomTransferSyntax for a valid value\r\n\r\n- I would recommend first to create a DicomDataset and then create a instance of DicomFile with the DicomDataset as parameter in constructor. this is because the DicomFile also has some properties and it configures itself from the DicomDataset\r\n\r\n- Dicom defines quite some mandatory DicomTags to be a valid Dicom file and you are missing some. The example you can find in the link given above shows you these type 1 attributes like SOPClassUID, SOPInstanceUID and so on."}}
{"actor":{"display_login":"gofal"}}