@ukkidney/ukrdc-axios-ts
    Preparing search index...

    Function WorkItemsApiFp

    • WorkItemsApi - functional programming interface

      Parameters

      Returns {
          getWorkitem(
              workitemId: number,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemExtendedSchema>,
          >;
          getWorkitemCollection(
              workitemId: number,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >;
          getWorkitemMessages(
              workitemId: number,
              facility?: string | null,
              since?: string | null,
              until?: string | null,
              status?: string[] | null,
              page?: number,
              size?: number,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageMessageSchema>,
          >;
          getWorkitemRelated(
              workitemId: number,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >;
          getWorkitems(
              since?: string | null,
              until?: string | null,
              status?: number[] | null,
              facility?: string | null,
              page?: number,
              size?: number,
              sortBy?: WorkItemEnum | null,
              orderBy?: OrderBy | null,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageWorkItemSchema>,
          >;
          postWorkitemClose(
              workitemId: number,
              closeWorkItemRequest: CloseWorkItemRequest,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MirthMessageResponseSchema>,
          >;
          putWorkitemUpdate(
              workitemId: number,
              updateWorkItemRequest: UpdateWorkItemRequest,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MirthMessageResponseSchema>,
          >;
      }

      • getWorkitem: function
        • Retreive a particular work item from the EMPI

          Parameters

          • workitemId: number
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemExtendedSchema>,
          >

      • getWorkitemCollection: function
        • Retreive a list of other work items related to a particular work item

          Parameters

          • workitemId: number
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >

      • getWorkitemMessages: function
        • Retreive a list of other work items related to a particular work item

          Parameters

          • workitemId: number
          • Optionalfacility: string | null
          • Optionalsince: string | null
          • Optionaluntil: string | null
          • Optionalstatus: string[] | null
          • Optionalpage: number

            Page number

          • Optionalsize: number

            Page size

          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageMessageSchema>,
          >

      • getWorkitemRelated: function
        • Retreive a list of other work items related to a particular work item

          Parameters

          • workitemId: number
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >

      • getWorkitems: function
        • Retreive a list of open work items from the EMPI

          Parameters

          • Optionalsince: string | null
          • Optionaluntil: string | null
          • Optionalstatus: number[] | null
          • Optionalfacility: string | null
          • Optionalpage: number

            Page number

          • Optionalsize: number

            Page size

          • OptionalsortBy: WorkItemEnum | null
          • OptionalorderBy: OrderBy | null
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageWorkItemSchema>,
          >

      • postWorkitemClose: function
        • Update and close a particular work item

          Parameters

          • workitemId: number
          • closeWorkItemRequest: CloseWorkItemRequest
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MirthMessageResponseSchema>,
          >

      • putWorkitemUpdate: function
        • Update a particular work item in the EMPI

          Parameters

          • workitemId: number
          • updateWorkItemRequest: UpdateWorkItemRequest
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

          Returns Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MirthMessageResponseSchema>,
          >