←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#
VB
C++
public void GenerateMetadata( 
   MetadataOptions options, 
   MetadataScope scope 
) 
Public Sub GenerateMetadata( 
   ByVal options As MetadataOptions, 
   ByVal scope As MetadataScope 
) 
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.

  • Loads the instance into a DicomDataSet
  • Converts the DICOM elements from 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.

  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 these events:

Example

For an example, refer to IStorageDataAccessAgent4.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Storage.DataAccessLayer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.