←Select platform

GenerateMetadata Method

Summary

Creates and stores JSON and/or XML metadata for All metadata, Existing metadata only, or Missing metadata only.

Syntax
C#
public void GenerateMetadata( 
   MetadataOptions options, 
   MetadataScope scope 
) 

Parameters

options

Options that determine the type of metadata saved (XML and/or JSON).

scope

An enumeration that specifies if the count is for existing, missing, or all metadata records.

Remarks

This method iterates through all instances stored in the Instance database table and takes the following actions:

  • Loads the instance into a DicomDataSet
  • Converts the DICOM elements from the DicomDataSet to XML and/or JSON metadata
  • Stores the metadata in the corresponding metadata database table (MetadataXml or MetadataJson)

The scope parameter determines if metadata is generated for a DICOM instance, as follows:

  1. If scope is MetadataScope.All, then XML and/or JSON metadata is generated for all instances in the Instance table.

  2. If scope is MetadataScope.Existing, then XML and/or JSON metadata is generated only for existing metadata instances in the corresponding metadata table.

  3. If scope is MetadataScope.Missing, then XML and/or JSON metadata is generated only for instances in the Instance table that do not have corresponding XML and/or JSON metadata.

This method fires the following events:

Example

For an example, refer to IStorageDataAccessAgent4.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Storage.DataAccessLayer Assembly