Imports FHIR R4 CodeSystem, ValueSet, and ConceptMap resources into a local terminology store. The source may be a JSON file, a directory of JSON files, or a FHIR NPM package (.tgz).

pathling_import_fhir_terminology(
  pc,
  source,
  storage_path,
  verify_package = TRUE,
  package_registry = NULL
)

Arguments

pc

The PathlingContext object.

source

The path to a JSON file, a directory of JSON files, or a FHIR NPM package, on any filesystem accessible through the Hadoop FileSystem API.

storage_path

The terminology store location, created if absent.

verify_package

Whether a FHIR NPM package is checked against the checksum its registry publishes. Defaults to TRUE.

package_registry

The base URL of the registry consulted for the checksum. When NULL, the default registry (https://packages.fhir.org) is used. Defaults to NULL.

Value

The PathlingContext object, invisibly.

Details

When the source is a package, its checksum is compared with the one its registry publishes before anything is written, and the import fails if the two differ. Turning verification off imports without consulting a registry, which is also how an import runs offline; the store then records the verification as skipped.

See also

Other terminology import functions: pathling_import_snomed()