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

    Function MessagesApiFp

    • MessagesApi - functional programming interface

      Parameters

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

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

          Parameters

          • messageId: number
          • Optionaloptions: RawAxiosRequestConfig

            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: RawAxiosRequestConfig

            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 | null
          • Optionalsince: string | null
          • Optionaluntil: string | null
          • Optionalstatus: string[] | null
          • Optionalchannel: string[] | null
          • Optionalni: string[] | null
          • Optionalpage: number

            Page number

          • Optionalsize: number

            Page size

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

            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: RawAxiosRequestConfig

            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: RawAxiosRequestConfig

            Override http request option.

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