-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(type): add types for
MwlItemModel
- Loading branch information
1 parent
2e4795a
commit 7ab1e0b
Showing
2 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import type { BaseDicomJson } from "@models/DICOM/dicom-json-model"; | ||
import type { GeneralDicomJson } from "../dicom"; | ||
|
||
export type MwlItemStatus = | ||
| "SCHEDULED" | ||
| "ARRIVED" | ||
| "READY" | ||
| "STARTED" | ||
| "DEPARTED" | ||
| "CANCELED" | ||
| "DISCONTINUED" | ||
| "COMPLETED"; | ||
|
||
export interface MwlItemModelConstructor { | ||
new (): MwlItemModel; | ||
public static getDimseResultCursor(query: any, keys: any): Promise<any>; | ||
public static getDicomJson( | ||
queryOptions: DicomJsonQueryOptions | ||
): Promise<GeneralDicomJson[]>; | ||
/** | ||
* | ||
* @param query the query structure example { "00100010.Value": "foo" } or { "00100010.Value.00100010.Value": "bar" } | ||
*/ | ||
public static getCount(query: any): Promise<number>; | ||
public static createWithGeneralDicomJson( | ||
generalDicomJson: GeneralDicomJson | ||
): Promise<MwlItemModel>; | ||
public static updateOneWithGeneralDicomJson( | ||
mwlItem: MwlItemModel, | ||
generalDicomJson: GeneralDicomJson | ||
): Promise<MwlItemModel>; | ||
/** | ||
* | ||
* @param query the query structure example { "00100010.Value": "foo" } or { "00100010.Value.00100010.Value": "bar" } | ||
* @param status | ||
*/ | ||
public static updateStatusByQuery(query: any, status: MwlItemStatus); | ||
public static deleteByStudyInstanceUIDAndSpsID( | ||
studyUID: string, | ||
spsID: string | ||
): Promise<number>; | ||
public static findOneByStudyInstanceUIDAndSpsID( | ||
studyUID: string, | ||
spsID: string | ||
): Promise<MwlItemModel>; | ||
/** | ||
* | ||
* @param query the query structure example { "00100010.Value": "foo" } or { "00100010.Value.00100010.Value": "bar" } | ||
*/ | ||
public static findMwlItems(query: any): Promise<MwlItemModel[]>; | ||
} | ||
|
||
export interface MwlItemModel { | ||
toGeneralDicomJson(): Promise<GeneralDicomJson>; | ||
toDicomJson(): Promise<BaseDicomJson>; | ||
getAttributes(): Promise<any>; | ||
updateStatus(status: MwlItemStatus): Promise<void>; | ||
} |