Browse files

implementing the registery_stored_query method on DocumentRegistry

  • Loading branch information...
1 parent 745ac5b commit 1c8fca7953139d447e86d49aaadc5c01a6983e72 @eedrummer eedrummer committed Feb 23, 2009
Showing with 11 additions and 2 deletions.
  1. +11 −2 lib/xds/document_registry_service.rb
View
13 lib/xds/document_registry_service.rb
@@ -1,3 +1,4 @@
+# Provides an interface to an XDS Document Registry
class DocumentRegistry
@@ -9,8 +10,16 @@ def register_document_set_b
end
- def registery_stored_query
-
+ # Issues a stored query request to the XDS Document Registry
+ # Will return an Array of XDS::Metadata
+ # <tt>query</tt> - a Hash where the key is the parameter name and value is the value to query against
+ # call-seq:
+ # dr = DocumentRegistry.new(http://yourregistry.com/xdsb)
+ # dr.registery_stored_query({"$XDSDocumentEntryPatientId" => "'93f3f8a6d100463^^^&1.3.6.1.4.1.21367.2005.3.7&ISO'",
+ # "$XDSDocumentEntryStatus" => "('urn:oasis:names:tc:ebxml-regrep:StatusType:Approved')"})
+ def registery_stored_query(query)
+ rsqr = XDS::RegistryStoredQueryRequest.new(@service_url, query)
+ rsqr.retrieved_metadata
end

0 comments on commit 1c8fca7

Please sign in to comment.