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

    Function MasterRecordsApiFp

    • MasterRecordsApi - functional programming interface

      Parameters

      Returns {
          getMasterRecord(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MasterRecordSchema>,
          >;
          getMasterRecordLatestMessage(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MinimalMessageSchema>,
          >;
          getMasterRecordLinkrecords(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<LinkRecordSchema[]>,
          >;
          getMasterRecordMessages(
              recordId: number,
              facility?: string,
              since?: string,
              until?: string,
              status?: string[],
              channel?: string[],
              sortBy?: MessageEnum,
              orderBy?: OrderBy,
              page?: number,
              size?: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PageMessageSchema>,
          >;
          getMasterRecordPatientrecords(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PatientRecordSummarySchema[]>,
          >;
          getMasterRecordPersons(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<PersonSchema[]>,
          >;
          getMasterRecordRelated(
              recordId: number,
              excludeSelf?: boolean,
              nationalidType?: string,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MasterRecordSchema[]>,
          >;
          getMasterRecordStatistics(
              recordId: number,
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<MasterRecordStatisticsSchema>,
          >;
          getMasterRecordWorkitems(
              recordId: number,
              status?: number[],
              options?: AxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<WorkItemSchema[]>,
          >;
      }

      • getMasterRecord: function
        • Retreive a particular master record from the EMPI

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordLatestMessage: function
        • Retreive a minimal representation of the latest file received for the patient, if received within the last year.

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordLinkrecords: function
        • Retreive a list of link records related to a particular master record

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordMessages: function
        • Retreive a list of errors related to a particular master record. By default returns message created within the last 365 days.

          Parameters

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

            Override http request option.

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

      • getMasterRecordPatientrecords: function
        • Retreive a list of patient records related to a particular master record.

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordPersons: function
        • Retreive a list of person records related to a particular master record.

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordRelated: function
        • Retreive a list of other master records related to a particular master record

          Parameters

          • recordId: number
          • OptionalexcludeSelf: boolean
          • OptionalnationalidType: string
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordStatistics: function
        • Retreive a particular master record from the EMPI

          Parameters

          • recordId: number
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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

      • getMasterRecordWorkitems: function
        • Retreive a list of work items related to a particular master record.

          Parameters

          • recordId: number
          • Optionalstatus: number[]
          • Optionaloptions: AxiosRequestConfig

            Override http request option.

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