@@ -18,113 +18,4 @@ def is_valid_simple_snomed(simple_snomed: str) -> bool:
1818 )
1919 except :
2020 return False
21-
22- # ---------------------------------------------------------------------------------------------------------
23- # main conversion lookup
24-
25-
26- class LookUpData :
27- # data settings
28- allData = {
29- "368208006" : "Left upper arm structure" ,
30- "279549004" : "Nasal cavity structure" ,
31- "74262004" : "Oral cavity structure" ,
32- "368209003" : "Right upper arm structure" ,
33- "723979003" : "Structure of left buttock" ,
34- "61396006" : "Structure of left thigh" ,
35- "723980000" : "Structure of right buttock" ,
36- "11207009" : "Structure of right thigh" ,
37- "420254004" : "Body cavity" ,
38- "54471007" : "Buccal" ,
39- "372449004" : "Dental" ,
40- "372450004" : "Endocervical" ,
41- "372451000" : "Endosinusial" ,
42- "372452007" : "Endotracheopulmonary" ,
43- "404820008" : "Epidural" ,
44- "18246711000001107" : "Epilesional" ,
45- "372453002" : "Extraamniotic" ,
46- "372454008" : "Gastroenteral" ,
47- "127490009" : "Gastrostomy route" ,
48- "372457001" : "Gingival" ,
49- "9191401000001100" : "Haemodiafiltration" ,
50- "18682911000001103" : "Haemodialysis" ,
51- "10334211000001103" : "Haemofiltration" ,
52- "718329006" : "Infiltration" ,
53- "18679011000001101" : "Inhalation" ,
54- "34777511000001106" : "Intestinal use" ,
55- "372458006" : "Intraamniotic" ,
56- "58100008" : "Intraarterial" ,
57- "12130007" : "Intraarticular" ,
58- "372459003" : "Intrabursal" ,
59- "418821007" : "Intracameral use" ,
60- "372460008" : "Intracardiac" ,
61- "372461007" : "Intracavernous" ,
62- "420719007" : "Intracerebroventricular" ,
63- "19537211000001108" : "Intracervical route" ,
64- "372463005" : "Intracoronary" ,
65- "372464004" : "Intradermal" ,
66- "372465003" : "Intradiscal" ,
67- "448077001" : "Intraepidermal" ,
68- "38233211000001106" : "Intraglandular" ,
69- "372466002" : "Intralesional" ,
70- "372467006" : "Intralymphatic" ,
71- "78421000" : "Intramuscular" ,
72- "255559005" : "Intramuscular" ,
73- "372468001" : "Intraocular" ,
74- "417255000" : "Intraosseous" ,
75- "38239002" : "Intraperitoneal" ,
76- "372469009" : "Intrapleural" ,
77- "372470005" : "Intrasternal" ,
78- "418586008" : "Intratendinous route" ,
79- "72607000" : "Intrathecal" ,
80- "447122006" : "Intratumoral" ,
81- "62226000" : "Intrauterine" ,
82- "47625008" : "Intravenous" ,
83- "420287000" : "Intraventricular cardiac" ,
84- "372471009" : "Intravesical" ,
85- "418401004" : "Intravitreal" ,
86- "21856811000001103" : "Iontophoresis" ,
87- "127491008" : "Jejunostomy route" ,
88- "9907001000001103" : "Line lock" ,
89- "46713006" : "Nasal" ,
90- "127492001" : "Nasogastric route" ,
91- "418730005" : "Nasojejunal route" ,
92- "54485002" : "Ophthalmic route" ,
93- "26643006" : "Oral" ,
94- "372473007" : "Oromucosal" ,
95- "10547007" : "Otic" ,
96- "225691000001105" : "PEG tube route" ,
97- "9191501000001101" : "Percutaneous" ,
98- "372474001" : "Periarticular" ,
99- "39338211000001108" : "Peribulbar ocular" ,
100- "3323001000001107" : "Pericardial route" ,
101- "372475000" : "Perineural" ,
102- "11478901000001102" : "Periosseous" ,
103- "419762003" : "Peritendinous route" ,
104- "39337511000001107" : "Peritumoral" ,
105- "37161004" : "Rectal" ,
106- "11564311000001109" : "Regional perfusion" ,
107- "418321004" : "Retrobulbar route" ,
108- "3594011000001102" : "Route of administration not applicable" ,
109- "372476004" : "Subconjunctival" ,
110- "34206005" : "Subcutaneous" ,
111- "37839007" : "Sublingual" ,
112- "419874009" : "Submucosal" ,
113- "11564211000001101" : "Submucosal rectal" ,
114- "33770711000001104" : "Subretinal" ,
115- "6064005" : "Topical" ,
116- "45890007" : "Transdermal" ,
117- "11479001000001107" : "Translingual" ,
118- "404815008" : "Transmucosal" ,
119- "90028008" : "Urethral" ,
120- "16857009" : "Vaginal" ,
121- }
122-
123- # Look up the term for the code
124- def findLookUp (self , fieldValue ):
125- try :
126- lookUpValue = self .allData [fieldValue ]
127- except :
128- lookUpValue = ""
129- return lookUpValue
130-
21+
0 commit comments