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

    Function MasterRecordsApiFp

    • MasterRecordsApi - functional programming interface

      Parameters

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

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

          Parameters

          • recordId: number
          • Optionaloptions: RawAxiosRequestConfig

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

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

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

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

          Parameters

          • recordId: number
          • Optionaloptions: RawAxiosRequestConfig

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

            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 | null
          • Optionaloptions: RawAxiosRequestConfig

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

            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[] | null
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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