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

    Function MessagesApiFp

    • MessagesApi - functional programming interface

      Parameters

      Returns {
          getMessage(
              messageId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MessageSchema>,
          >;
          getMessagePatientrecords(
              messageId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PatientRecordSummarySchema[]>,
          >;
          getMessages(
              facility?: string,
              since?: string,
              until?: string,
              status?: string[],
              channel?: string[],
              ni?: string[],
              sortBy?: MessageEnum,
              orderBy?: OrderBy,
              page?: number,
              size?: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageMessageSchema>,
          >;
          getMessageSource(
              messageId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MessageSourceSchema>,
          >;
          getMessageWorkitems(
              messageId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >;
      }

      • getMessage: function
        • Retreive detailed information about a specific error message

          Parameters

          • messageId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMessagePatientrecords: function
        • Retreive patient records associated with a specific error message

          Parameters

          • messageId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMessages: function
        • Retreive a list of error messages, optionally filtered by NI, facility, or date. By default returns message created within the last 365 days.

          Parameters

          • Optionalfacility: string
          • Optionalsince: string
          • Optionaluntil: string
          • Optionalstatus: string[]
          • Optionalchannel: string[]
          • Optionalni: string[]
          • OptionalsortBy: MessageEnum
          • OptionalorderBy: OrderBy
          • Optionalpage: number
          • Optionalsize: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMessageSource: function
        • Retreive detailed information about a specific error message

          Parameters

          • messageId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMessageWorkitems: function
        • Retreive WorkItems associated with a specific error message

          Parameters

          • messageId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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