You have Python. You've installed the requests library. You have docker on your machine.
- Launch the ICD-11 docker container
docker run -p 80:80 --env "acceptLicense=true" --env "saveAnalytics=true" --env "includeIp=false" whoicd/icd11_sw_1904_mms_en
- Download the script
wget https://gist.githubusercontent.com/pigeonflight/2282bfde697dbd81999e22fba64317ad/raw/33a589e1847669f8e40ff72314520f37975e901c/icd11-code-interpreter.py
- Try the script with a sample code cluster
python icd11-code-interpreter.py "ND56.2&XA7R53&XA2T04"
You should see output similar to this:
[{'code': 'ND56.2', 'description': 'Fracture of unspecified body region'}, {'code': 'XA7R53', 'description': 'Bones of the upper extremity'}, {'code': 'XA2T04', 'description': 'Bones of the lower extremity'}]
Try generating other code clusters using the ICD-11 online coding tool
The plan is to rework this script to integrate with the Tryton platform.