开源dicom阅片器dwv访问dcm4chee文件分析
原创
©著作权归作者所有:来自51CTO博客作者fanhenghui的原创作品,请联系作者获取转载授权,否则将追究法律责任
当点击阅片器链接的时候,会跳到如下链接
http://localhost:8080/dwv/viewers/mobile/index.html?type=manifest&input=%2Fweasis-pacs-connector%2Fmanifest%3FpatientID%3D12057
这个链接会被dwv解析成如下地址http://localhost:8080/weasis-pacs-connector/manifest?patientID=12057
然后dwv通过ajax请求获取服务器,期间或做一次跳转到如下链接http://localhost:8080/weasis-pacs-connector/RequestManifest?id=23&noGzip(至今不明白为什么跳转)
调后上面链接回返回一段xml文件(文件太长只截取部分)
<wado_query xmlns="http://www.weasis.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wadoURL="http://localhost:8080/wado" requireOnlySOPInstanceUID="false" additionnalParameters="">
<Patient PatientID="12057" PatientName="he ying hou" PatientSex="M">
<Study StudyInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.406" StudyDescription="t-12057" StudyDate="20100926" StudyTime="165320" StudyID="17896">
<Series SeriesInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.409" SeriesDescription="" SeriesNumber="1" Modality="CT">
<Instance SOPInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.410.1" InstanceNumber="1"></Instance>
</
Series>
<Series SeriesInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.411" SeriesDescription="" SeriesNumber="2" Modality="CT">
<Instance SOPInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.412.1" InstanceNumber="1"></Instance>
<Instance SOPInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.412.2" InstanceNumber="2"></Instance>
<Instance SOPInstanceUID="1.2.840.113619.2.55.3.2831193967.596.1285460208.412.3" InstanceNumber="3"></Instance>
</
Series>
</
Study>
</
Patient>
</
wado_query>
然后dwv会调用decodeManifest获取文件大wado地址如下http://localhost:8080/wado?requestType=WADO&contentType=application/dicom&&studyUID=1.2.840.113619.2.55.3.2831193967.596.1285460208.406&seriesUID=1.2.840.113619.2.55.3.2831193967.596.1285460208.409&objectUID=1.2.840.113619.2.55.3.2831193967.596.1285460208.410.1
然后dwv会依次调用以上地址通过ajax请求获取文件
最后显示出来