ei-metadata.json

The ei-metadata.json file can be used to update metadata for a clinical dataset data item after being processed by a custom transformation block.

File structure

interface TransformBlockMetadataFile {
    version: 1;
    action: 'replace' | 'add' | 'replace-checks';
    metadata: { [ k: string ]: string };
}

File example

{
    'version': 1,
    'action': 'add',
    'metadata': {
        'now': 1734721115539
    }
}

Action definitions

add: the new metadata key-value pairs will be added to the existing metadata.

replace: the existing metadata will be deleted and the new metadata key-value pairs will be added.

replace-checks: the existing metadata keys that begin with ei_check will be deleted and the new metadata key-value pairs will be added.

Last updated