create

fun create(context: Context, inMemory: Boolean = false, downloadedNpmDir: File? = context.dataDir, packageServer: String? = DEFAULT_PACKAGE_SERVER): KnowledgeManager

Creates a KnowledgeManager instance.

Parameters

context

the application context

inMemory

whether the knowledge manager instance is in-memory or backed by a Room database

downloadedNpmDir

the directory to store downloaded NPM packages

packageServer

the package server to download FHIR NPM packages from. Defaulted to https://packages.fhir.org/packages/.