download_rxnorm_prescribable

download_rxnorm_prescribable(version=None, *, force=False)[source]

Ensure the given version of the RxNorm prescribable content file.

Parameters:
  • version (Optional[str]) – The version of RxNorm to ensure. If not given, is looked up with bioversions.

  • force (bool) – Should the file be re-downloaded, even if it already exists?

Return type:

Path

Returns:

The path of the file for the given version of RxNorm.

Raises:

RuntimeError – if no version is given and none can be looked up