Binds a resource fetching method to an object.
The object context.
The method to bind.
OptionalresourceName: string
Optional name for the resource.
Binds a resource fetching method lazily.
A function returning a Promise to the object context.
The name of the method to bind.
OptionalresourceName: string
Optional name for the resource.
Retrieves the ChRIS client instance asynchronously.
A Promise resolving to the Client instance or null.
OptionalfieldFilter: stringOptionaloptions: ListOptions | nullOptionaloptions: ListOptions | nullOptionalfields: stringConverts a resource item to a dictionary.
The item to convert.
A dictionary representation of the item.
Deletes a resource item by its ID.
The ID of the item to delete.
A Promise resolving to true on success, false otherwise.
Builds a list of items from a resource collection.
The resource collection.
An array of Items or null.
Converts a list of resource items to dictionaries.
The list of items to convert.
An array of dictionaries.
Filters resources by specific fields.
The resources and fields to filter.
Filtered data suitable for table display.
Lists all resources by automatically handling pagination.
Optionaloptions: Partial<ListOptions>
Filtering options. Limit and offset will be managed internally.
A Promise resolving to FilteredResourceData containing all matching resources, or null.
Optionaloptions: Partial<ListOptions>Optionaloptions: Partial<ListOptions>OptionalresourceMethod: (params: ListOptions) => Promise<ListResource | Resource>Lists and filters resources based on options.
Optionaloptions: Partial<ListOptions>
Filtering and listing options.
A Promise resolving to filtered resource data or null.
Base class for managing ChRIS resources.