Download scripts/search_vbac.py from gitmodelmujtaba/medical-guidelines-kg: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/gitmodelmujtaba/medical-guidelines-kg/resolve/main/scripts/search_vbac.py
- Command line
-
hf download hf://spaces/gitmodelmujtaba/medical-guidelines-kg/scripts/search_vbac.py
-
curl -L -o search_vbac.py https://huggingface.co/spaces/gitmodelmujtaba/medical-guidelines-kg/resolve/main/scripts/search_vbac.py
507 Bytes
| import csv | |
| with open('vocabularies/CONCEPT.csv', 'r', encoding='utf-8') as f: | |
| for row in csv.DictReader(f, delimiter='\t'): | |
| if row.get('vocabulary_id') == 'SNOMED': | |
| name = row.get('concept_name', '').lower() | |
| if 'trial of lab' in name or 'vbac' in name or 'vaginal birth after' in name: | |
| print(f"SCTID: {row['concept_code']} | Std: {row['standard_concept']} | Inv: {row['invalid_reason']} | Class: {row['concept_class_id']} | Name: {row['concept_name']}") | |