dicom-curate 0.40.5 → 0.40.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/applyMappingsWorker.d.ts +1 -1
- package/dist/types/collectMappings.d.ts +1 -1
- package/dist/types/composeSpecs.d.ts +1 -1
- package/dist/types/config/dicom/cid7050.d.ts +1 -1
- package/dist/types/config/dicom/dcmOrganizeStamp.d.ts +1 -1
- package/dist/types/config/dicom/ps315EElements.d.ts +1 -1
- package/dist/types/config/sample2PassCurationSpecification.d.ts +1 -1
- package/dist/types/config/sampleBatchCurationSpecification.d.ts +1 -1
- package/dist/types/config/sampleCompositeSpecification.d.ts +2 -2
- package/dist/types/config/sampleSummaryCurationSpecification.d.ts +1 -1
- package/dist/types/curateDict.d.ts +2 -2
- package/dist/types/curateOne.d.ts +1 -1
- package/dist/types/defaultSpec.d.ts +1 -1
- package/dist/types/deidentifyPS315E.d.ts +1 -1
- package/dist/types/getParser.d.ts +2 -2
- package/dist/types/hash.d.ts +1 -1
- package/dist/types/httpHeaders.d.ts +1 -1
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.umd.d.ts +1 -1
- package/dist/types/mappingWorkerPool.d.ts +1 -1
- package/dist/types/scanDirectoryWorker.d.ts +1 -1
- package/dist/types/serializeMappingOptions.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TFileInfo, THashMethod, TOutputTarget, TSerializedMappingOptions } from './types';
|
|
1
|
+
import type { TFileInfo, THashMethod, TOutputTarget, TSerializedMappingOptions } from './types.js';
|
|
2
2
|
export type MappingRequest = {
|
|
3
3
|
request: 'apply';
|
|
4
4
|
fileInfo: TFileInfo;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TDicomData, TNaturalData } from 'dcmjs';
|
|
2
|
-
import type { TMappingOptions, TMapResults } from './types';
|
|
2
|
+
import type { TMappingOptions, TMapResults } from './types.js';
|
|
3
3
|
export default function collectMappings(inputFilePath: string, dicomData: TDicomData, mappingOptions: TMappingOptions): [TNaturalData, TMapResults];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HostProps, TCurationSpecification, TPs315Options } from '
|
|
1
|
+
import type { HostProps, TCurationSpecification, TPs315Options } from './types.js';
|
|
2
2
|
type Ctx = Record<string, unknown>;
|
|
3
3
|
export type SpecPart<T extends HostProps = HostProps, C extends Ctx = Ctx> = (ctxIn: C) => {
|
|
4
4
|
ctx?: C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TPs315Options } from '../../types';
|
|
1
|
+
import type { TPs315Options } from '../../types.js';
|
|
2
2
|
export declare const supportedCid7050: Record<Exclude<keyof TPs315Options, 'retainLongitudinalTemporalInformationOptions' | 'cleanDescriptorsExceptions'> | 'retainLongitudinalTemporalInformationFullDatesOptions' | 'retainLongitudinalTemporalInformationModifiedDatesOptions' | 'basicApplicationConfidentialityProfile', {
|
|
3
3
|
value: string;
|
|
4
4
|
meaning: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TPs315EElement } from '../../types';
|
|
1
|
+
import type { TPs315EElement } from '../../types.js';
|
|
2
2
|
export declare const ps315EElements: TPs315EElement[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TCurationSpecification } from '../types';
|
|
1
|
+
import type { TCurationSpecification } from '../types.js';
|
|
2
2
|
export declare function sample2PassCurationSpecification(): TCurationSpecification;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TCurationSpecification } from '../types';
|
|
1
|
+
import type { TCurationSpecification } from '../types.js';
|
|
2
2
|
export declare function sampleBatchCurationSpecification(): TCurationSpecification;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SpecPart } from '../composeSpecs';
|
|
2
|
-
import type { TParser } from '../types';
|
|
1
|
+
import type { SpecPart } from '../composeSpecs.js';
|
|
2
|
+
import type { TParser } from '../types.js';
|
|
3
3
|
type THostProps = {
|
|
4
4
|
protocolNumber: string;
|
|
5
5
|
activityProviderName: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TCurationSpecification } from '../types';
|
|
1
|
+
import type { TCurationSpecification } from '../types.js';
|
|
2
2
|
export declare function sampleSummaryCurationSpecification(): TCurationSpecification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TDicomData } from 'dcmjs';
|
|
2
2
|
import * as dcmjs from 'dcmjs';
|
|
3
|
-
import type { TMappingOptions } from './types';
|
|
3
|
+
import type { TMappingOptions } from './types.js';
|
|
4
4
|
export default function curateDict(inputFilePath: string, dicomData: TDicomData, mappingOptions: TMappingOptions): {
|
|
5
5
|
dicomData: dcmjs.data.DicomDict;
|
|
6
|
-
mapResults: import("./types").TMapResults;
|
|
6
|
+
mapResults: import("./types.js").TMapResults;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TFileInfo, THashMethod, TMappingOptions, TMapResults, TOutputTarget } from './types';
|
|
1
|
+
import type { TFileInfo, THashMethod, TMappingOptions, TMapResults, TOutputTarget } from './types.js';
|
|
2
2
|
export type TCurateOneArgs = {
|
|
3
3
|
fileInfo: TFileInfo;
|
|
4
4
|
outputTarget: TOutputTarget;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TCurationSpecification } from './types';
|
|
1
|
+
import type { TCurationSpecification } from './types.js';
|
|
2
2
|
export declare const defaultSpec: TCurationSpecification;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TNaturalData } from 'dcmjs';
|
|
2
|
-
import type { Iso8601Duration, TMapResults, TPs315Options } from './types';
|
|
2
|
+
import type { Iso8601Duration, TMapResults, TPs315Options } from './types.js';
|
|
3
3
|
export declare function protectUid(uid: string, retainUIDsOption: string): string;
|
|
4
4
|
export default function deidentifyPS315E({ naturalData, dicomPS315EOptions, dateOffset, mapResults, originalDicomDict, }: {
|
|
5
5
|
naturalData: TNaturalData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TNaturalData } from 'dcmjs';
|
|
2
|
-
import { type TColumnMappings } from './csvMapping';
|
|
3
|
-
import type { TCurationSpecification, TParser } from './types';
|
|
2
|
+
import { type TColumnMappings } from './csvMapping.js';
|
|
3
|
+
import type { TCurationSpecification, TParser } from './types.js';
|
|
4
4
|
export declare const FILEBASENAME: symbol;
|
|
5
5
|
export declare const FILENAME: symbol;
|
|
6
6
|
export default function getParser(inputPathPattern: string, inputFilePath: string, naturalData: TNaturalData, dicomPS315EOptions: TCurationSpecification['dicomPS315EOptions'], columnMappings?: TColumnMappings, additionalData?: TCurationSpecification['additionalData']): TParser;
|
package/dist/types/hash.d.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Extracted from index.ts to avoid circular dependencies between
|
|
5
5
|
* index.ts and mappingWorkerPool.ts.
|
|
6
6
|
*/
|
|
7
|
-
import type { TFileInfo, TOutputTarget } from './types';
|
|
7
|
+
import type { TFileInfo, TOutputTarget } from './types.js';
|
|
8
8
|
export declare function getHttpInputHeaders(fileInfo: TFileInfo): Promise<TFileInfo>;
|
|
9
9
|
export declare function getHttpOutputHeaders(outputTarget: TOutputTarget | undefined): Promise<TOutputTarget | undefined>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { extractColumnMappings } from './csvMapping';
|
|
2
|
-
import { curateOne } from './curateOne';
|
|
3
|
-
import { type ProgressCallback } from './mappingWorkerPool';
|
|
4
|
-
import type { OrganizeOptions, TProgressMessageDone } from './types';
|
|
5
|
-
export type { SpecPart } from './composeSpecs';
|
|
6
|
-
export { composeSpecs } from './composeSpecs';
|
|
7
|
-
export { specVersion } from './config/specVersion';
|
|
8
|
-
export type { Row } from './csvMapping';
|
|
9
|
-
export { csvTextToRows } from './csvMapping';
|
|
10
|
-
export { TCurateOneArgs } from './curateOne';
|
|
11
|
-
export { hash, hashStream } from './hash';
|
|
12
|
-
export type { ProgressCallback } from './mappingWorkerPool';
|
|
13
|
-
export type { OrganizeOptions, TCurationSpecification, TCustomUploader, TMapResults, TProgressMessage, TPs315Options, } from './types';
|
|
1
|
+
import { extractColumnMappings } from './csvMapping.js';
|
|
2
|
+
import { curateOne } from './curateOne.js';
|
|
3
|
+
import { type ProgressCallback } from './mappingWorkerPool.js';
|
|
4
|
+
import type { OrganizeOptions, TProgressMessageDone } from './types.js';
|
|
5
|
+
export type { SpecPart } from './composeSpecs.js';
|
|
6
|
+
export { composeSpecs } from './composeSpecs.js';
|
|
7
|
+
export { specVersion } from './config/specVersion.js';
|
|
8
|
+
export type { Row } from './csvMapping.js';
|
|
9
|
+
export { csvTextToRows } from './csvMapping.js';
|
|
10
|
+
export { TCurateOneArgs } from './curateOne.js';
|
|
11
|
+
export { hash, hashStream } from './hash.js';
|
|
12
|
+
export type { ProgressCallback } from './mappingWorkerPool.js';
|
|
13
|
+
export type { OrganizeOptions, TCurationSpecification, TCustomUploader, TMapResults, TProgressMessage, TPs315Options, } from './types.js';
|
|
14
14
|
declare function curateMany(organizeOptions: OrganizeOptions, onProgress?: ProgressCallback): Promise<TProgressMessageDone>;
|
|
15
|
-
export * from './types';
|
|
15
|
+
export * from './types.js';
|
|
16
16
|
export { curateMany, curateOne, extractColumnMappings };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Handles worker creation, crash recovery, replacement spawning, dispatch, and
|
|
6
6
|
* the stall watchdog. Extracted from index.ts for maintainability.
|
|
7
7
|
*/
|
|
8
|
-
import type { TCustomUploader, TFileInfo, TFileInfoIndex, THashMethod, TMappingOptions, TOutputTarget, TProgressMessage } from './types';
|
|
8
|
+
import type { TCustomUploader, TFileInfo, TFileInfoIndex, THashMethod, TMappingOptions, TOutputTarget, TProgressMessage } from './types.js';
|
|
9
9
|
export type TMappingWorkerOptions = TMappingOptions & {
|
|
10
10
|
outputTarget?: TOutputTarget;
|
|
11
11
|
hashMethod?: THashMethod;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TMappingOptions, TSerializedMappingOptions } from './types';
|
|
1
|
+
import type { TMappingOptions, TSerializedMappingOptions } from './types.js';
|
|
2
2
|
export declare function serializeMappingOptions(mappingOptions: TMappingOptions): TSerializedMappingOptions;
|
|
3
3
|
export declare function deserializeMappingOptions(serializedMappingOptions: TSerializedMappingOptions): TMappingOptions;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TNaturalData } from 'dcmjs';
|
|
2
|
-
import type { SpecPart } from './composeSpecs';
|
|
3
|
-
import type { Row, TColumnMappings, TMappedValues } from './csvMapping';
|
|
2
|
+
import type { SpecPart } from './composeSpecs.js';
|
|
3
|
+
import type { Row, TColumnMappings, TMappedValues } from './csvMapping.js';
|
|
4
4
|
export type Iso8601Duration = string;
|
|
5
5
|
export type TPs315Options = {
|
|
6
6
|
cleanDescriptorsOption: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dicom-curate",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/clintools/dicom-curate"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"clean": "rm -rf dist",
|
|
46
46
|
"build": "pnpm generate:sampleSpec && pnpm build:esm && pnpm build:types && rollup -c",
|
|
47
47
|
"build:esm": "node esbuild.config.js",
|
|
48
|
-
"build:types": "tsc --emitDeclarationOnly --outDir dist/types -p tsconfig.build.json",
|
|
48
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist/types -p tsconfig.build.json && tsx scripts/fixDtsExtensions.ts",
|
|
49
49
|
"watch": "node esbuild.config.js --watch",
|
|
50
50
|
"pretest": "pnpm build:esm",
|
|
51
51
|
"test": "vitest run --pool=forks --project unit",
|