본문 바로가기
다물칸 주소복사
조회 수 224 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
구분 팁&트릭
출처 내가작성

해당 라이브러리 라이선스: MS-PL

GIT : https://github.com/hdesouky/fo-dicom

Forum : https://groups.google.com/forum/#!forum/fo-dicom


우선 이녀석을 프로젝트에 임포트하는 방법


GIT를 이용하거나 NUGet을 이용하여 Import합니다. 


새로운 프로젝트 또는 사용할 프로젝트에서 Nuget을 실행하여


1. NLog (3.2.0.0)을 프로젝트에 추가합니다. (Fellow Oak에서 기본사용중이라 NLog가 없으면 설치가 안됩니다.)

2. DICOM으로 검색하면 맨위에 Fellow Oak가 있습니다. 그거 추가합니다. 


새 클래스를 추가합니다. 


    class DICOMtoPACS
    {
        public static void SendToPACS(string DICOMFile, string SourceAET, string TargetIP, int TargetPort, string TargetAET)
        {
            var m_pDicomFile = DicomFile.Open(DICOMFile);
 
            DicomClient pClient = new DicomClient();
            pClient.NegotiateAsyncOps();
            pClient.AddRequest(new DicomCStoreRequest(m_pDicomFile, DicomPriority.Medium));         //m_pDicomFile is a valid DicomFile instance
            pClient.Send(TargetIP, TargetPort, false, SourceAET, TargetAET);
        }
    }

사용방법


        private void simpleButton2_Click(object sender, EventArgs e)
        {
            DICOMtoPACS.SendToPACS(@"D:\dicomfile.dcm", "Source_AETITLE", "192.168.19.216", 104, "TargetPACS_AETITLE");
        }