Skip to content

Commit

Permalink
docs(type): missing getDicomJson in WorkItemModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Jan 25, 2024
1 parent 48d047d commit 2e4795a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions models/mongodb/models/workitems.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion utils/typeDef/models/workitemsModel.d.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -14,6 +14,7 @@ export interface WorkItemModelConstructor {
* @param upsInstanceUID
*/
public static getCountWithQueryAndUpsInstanceUID(query: any, upsInstanceUID: string): Promise<number>;
public static getDicomJson(queryOptions: DicomJsonQueryOptions): Promise<GeneralDicomJson[]>
}

export interface WorkItemModel {
Expand Down

0 comments on commit 2e4795a

Please sign in to comment.