Pymedtermino Sqlite Database Not Found
Solution 1:
After installing PyMedTermino if you try the following code there will be no error:
from pymedtermino import *
It is clearly mentioned in the documentation that "For SNOMED CT and ICD10, the data are not included (because they are not freely redistributable) but they can be downloaded for free in XML format, for research / academic purpose"
In order to use SNOMED or ICD you have to download SNOMED CT data. Please see the following link for download and installation procedure.
https://pythonhosted.org/PyMedTermino/tuto_en.html
https://pythonhosted.org/PyMedTermino/tuto_en.html#installation
Solution 2:
You have to set the global parameter using
pymedtermino.DATA_DIR = <path to the SQLite3 files>
Solution 3:
There are two issues with setup.py
script in pymedtermino resolving them solves the problem.
- To set the directory path of data directories one has to directly hard code in setup.py. Using
export DATA_DIR="<path>"
doesn't help. - In ICD10_DIR the code by default looks for a file with the name 'icd102010en.xml' which has got changed to 'icd102016en.xml' in the recent version
Post a Comment for "Pymedtermino Sqlite Database Not Found"