Large numbers of DocumentEntry objects

This section describes how to use queries to limit the number of DocumentEntry objects returned.

Registry queries executed without any filters retrieve all document entries of a patient.

You must ensure to design client document consumer actor to query with filter conditions or parameters. However, using a filter may still result in large document entries and hence, Oracle recommends that you use the following queries instead of one large query retrieving all DocumentEntry metadata.

Execute large query with returnType=”ObjectRef”, which returns all document entries Object References or Universally Unique Identifier (UUID)s. This query executes faster compared to one with returnType=”LeafClass”, which returns all metadata (XML structure).

Subsequent queries can use limited number of UUIDs to query document entries metadata depending on the page size.

For example:
  • Executing the FindDocuments query type with returnType=”ObjectRef” returns a large number of ObjectRefs (UUIDs).
  • Executing subsequent GetDocuments query type with returnType=”LeafClass” with a limited number of UUIDs from the list returns document entries metadata (XML structure) to be processed and displayed on one page.