diff --git a/models/mongodb/models/workitems.model.js b/models/mongodb/models/workitems.model.js index c378c85..c9bd7ae 100644 --- a/models/mongodb/models/workitems.model.js +++ b/models/mongodb/models/workitems.model.js @@ -141,9 +141,7 @@ for (let tag in tagsNeedStore.Patient) { } /** - * - * @param {import("@root/utils/typeDef/dicom").DicomJsonQueryOptions} queryOptions - * @returns + * @type { import("@root/utils/typeDef/models/workitemsModel").WorkItemModelConstructor["getDicomJson"] } */ workItemSchema.statics.getDicomJson = async function (queryOptions) { let workItemFields = getWorkItemFields(); diff --git a/utils/typeDef/models/workitemsModel.d.ts b/utils/typeDef/models/workitemsModel.d.ts index 6bd912a..d54a1b2 100644 --- a/utils/typeDef/models/workitemsModel.d.ts +++ b/utils/typeDef/models/workitemsModel.d.ts @@ -1,5 +1,5 @@ import type { BaseDicomJson } from "@models/DICOM/dicom-json-model"; -import type { GeneralDicomJson } from "../dicom"; +import type { DicomJsonQueryOptions, GeneralDicomJson } from "../dicom"; import type { SUBSCRIPTION_STATE } from "@models/DICOM/ups"; export interface WorkItemModelConstructor { @@ -14,6 +14,7 @@ export interface WorkItemModelConstructor { * @param upsInstanceUID */ public static getCountWithQueryAndUpsInstanceUID(query: any, upsInstanceUID: string): Promise; + public static getDicomJson(queryOptions: DicomJsonQueryOptions): Promise } export interface WorkItemModel {