@medic/cht-datasource
    Preparing search index...

    Function getRemoteDataContext

    • Returns the data context based on a remote CHT API server. This function should not be used when offline functionality is required.

      Parameters

      • settings: SettingsService

        service providing access to the app settings

      • url: string = ''

        the URL of the remote CHT API server. If not provided, requests will be made relative to the current location.

      Returns DataContext

      the data context

      Error if the provided settings service is invalid