←Select platform

GenerateMetadataJson Method

Summary

Stores JSON metadata for all DICOM Datasets stored in the database.

Syntax
C#
public void GenerateMetadataJson( 
   DicomDataSetSaveJsonFlags flags, 
   MetadataScope scope 
) 

Parameters

flags

Flags that affect how binary data and other information is saved in the JSON output file.

scope

An enumeration that specifies if the count is for existing, missing, or all JSON 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 JSON metadata
  • Stores the metadata in the MetadataJson database table

The scope parameter determines if metadata is generated for a DICOM instance.

  1. If scope is MetadataScope.All then JSON metadata is generated for all instances in the Instance table.

  2. If scope is MetadataScope.Existing then JSON metadata is generated only for existing metadata instances in the MetadataJson table.

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

This method fires these 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