XDS框架基本事务及其Soap消息实例

xds.a框架的基本事务有以下几种:Provide and Register transaction,Register transaction,Patient Identity Feed transactin,Query Registry transaction,

Retrieve Document Transaction,Response message 

下面是一些基本事务对应的Soap信息
XDS Register Document Set transaction

 This transaction must move registry metadata from the Repository actor to the Registry actor. There are no document attachments since the documents have already been deposited in the Repository by this time. This transaction just moves a single element, the bundle of registry metadata.

Since there is only one item of payload, the SOAP with Attachments format is not used. Instead the simpler SOAP format is used. Below is an example of this format. It contains an HTTP header and a HTTP Body.

HTTP Header - note the following header fields:

  • SOAPAction is required
  • Content-Type must be as shown

HTTP Body - note the following points:

  • It is entirely XML
  • The outer-most layers of XML are SOAP
  • Next is the registry SubmitObjectsRequest
  • Within the SubmitObjectsRequest is the registry metadata
  • Notice the namespace definitions on SubmitObjectsRequest.

View Code
 1 POST /ebxmlrr/registry/soap HTTP/1.1
2 Accept: */*
3 Accept-Language: en-us
4 Referer: http://sst138.ncsl.nist.gov/web/soap/soap-diag-client.htm
5 Content-Type: text/xml; charset=utf-8
6 SOAPAction: ""
7 Accept-Encoding: gzip, deflate
8 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
9 Host: gunshot.ncsl.nist.gov:8080
10 Connection: Keep-Alive
11 Cache-Control: no-cache
12 Content-Length: 851
13
14 <?xml version="1.0" ?>
15 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
16 <SOAP-ENV:Header/>
17 <SOAP-ENV:Body>
18 <rs:SubmitObjectsRequest
19 xmlns:rs="urn:oasis:names:tc:ebxml-regrep:registry:xsd:2.1"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xmlns="urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.1"
22 xmlns:rim="urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.1">
23
24 <!-- registry metadata as defined by XDS goes here -->
25
26 </rs:SubmitObjectsRequest>
27 </SOAP-ENV:Body>
28 </SOAP-ENV:Envelope>

XDS Provide and Registry Document Set transaction

This transaction is used to move documents and metadata from the Document Source actor and the Document Repository actor. Since more than one element of data must be encoded, a coding scheme must be employed that is capable of wrapping multiple elements. That coding scheme is SOAP with attachments.

HTTP Header - note the following header fields:

  • SOAPAction is required
  • Content-Type has a new part, the boundary sting
  • Within Content-Type is the boundary string to be used as a delimiter between the "parts". This string is typically generated randomly by toolkits that generate this format.
  • The final use of this delimeter has an extra "--". This is critical for some parsers.

HTTP Body - note the following points:

  • The body has multiple parts separated by the boundary string
  • Each part has a Content-Type header and optionally a Content-ID header
  • The Content-ID header is an "ID" for this piece of content within the message. The "ID" is always surrounded by angle brackets "< >".
  • The first part is always the metadata. See XDS Registry Document Set transaction above for details.
  • An ExtrinsicObject in the metadata representing and XDSDocumentEntry can have a id attribute with this "ID" value. This links the ExtrinsicObject in metadata to real document content in the message.
  • In the example below, the ExtrinsicObject XML element has an id attribute with the value "doc_1". This is interpreted as a "pointer" to the message part with Content-Id equal to <doc_1>.
  • A submission can contain any number of documents
View Code
 1 POST /ebxmlrr/registry/soap HTTP/1.1
2 Content-Type: multipart/related; type="text/xml"; boundary=---------------------------7d4285f14803b8
3 SOAPAction: ""
4 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
5 Host: gunshot.ncsl.nist.gov:8080
6 Accept: */*
7 Connection: Keep-Alive
8 Cache-Control: no-cache
9 Content-Length: 1318
10
11 -----------------------------7d4285f14803b8
12 Content-Type: text/xml
13
14 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
15 <SOAP-ENV:Header/>
16 <SOAP-ENV:Body>
17 <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:registry:xsd:2.1">
18 <LeafRegistryObjectList>
19 <ExtrinsicObject id="doc_1" mimeType="text/xml"/>
20 </LeafRegistryObjectList>
21 </SubmitObjectsRequest>
22 </SOAP-ENV:Body>
23 </SOAP-ENV:Envelope>
24 -----------------------------7d4285f14803b8
25 Content-Type: text/xml
26 Content-Id: <doc_1>
27
28 <books>
29 <book isbn="0345374827"><title>The Great Shark Hunt</title>
30 <author>Hunter S. Thompson</author></book>
31 <book><title>Life with Father</title><author>Clarence Day</author></book>
32 </books>
33
34 -----------------------------7d4285f14803b8--

Using MIME Multipart/Related as a document format

The MIME Multipart/Related format is used as a document format within XDS-I. 


View Code
 1 Content-Type: Multipart/Related; boundary=example-2
2
3 --example-2
4 Content-Type: text/plain
5
6 Text related to the PDF below is inserted here.
7 --example-2
8 Content-Type: application/pdf
9 Content-Transfer-Encoding: BASE64
10
11 BASE64 encoded PDF goes here
12 --example-2--


The first line is a Content-Type header which must have as its first value the string "Multipart/Related" and an additional part must document the boundary string to be used. The blank lines (technically \r\n) are used to indicate "end of header". One of the parts must be of type text/plain and the other must be "application/pdf" and the contents of this part must be the BASE64 encoded contents of the relevant PDF.




   

转载于:https://www.cnblogs.com/ITEagle/archive/2012/03/16/2400592.html

下载全部会议资料,请点击标签 tag “DICOM国际会议暨研讨会” DICOM国际会议暨研讨会:在 XDS-I 框架内,结合 JPIP和 WADO,以实现高效率的符合标准化规范的 EHR 图像流 模态所输出的大容量的医疗图像,产生了数据的有效输送和查阅的问题。 在带宽受到限制的情况下,这个问题变得尤为突出。 XDS-I是IHE XDS协议关于共享医疗文件的成像扩展。 它将一个DICOM关键图像标注(或关键图像选择,KOS)用作一个文件储存库(Document Repository)中的一个被储存的对象。 KOS文件中包含有指向相关图像的信息,随后可以通过使用WADO和JPIP进行访问。WADO被定义在DICOM标准的第18部分中。 它描述了一个协议,用于对DICOM对象进行网络访问。 JPEG 2000标准的第9部分定义了JPIP,JPEG 2000互动协议。 JPIP于2004年十月被批准为一个国际标准,并通过《106号补充》(于2006年1月最终完成)被并入DICOM之中。 本讲将介绍一个标本框架和构架,用于组合XDS-I、WADO和JPIP,以便提供一个符合标准的、EHR图像的流传输解决方案。 该构架提供了一个解决方案,以便在数据提供者和消费者之间实现有效的图像访问。 由于该构架符合开放的标准,因此确保了其在不均匀环境中的互用性。 该构架尤其适用于低带宽连接用户对医疗图像数据进行远程访问、以及大型数据集的浏览。 我们同样将用软件示范该构架。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值