Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def group_by_entity(raw):
|
|
162 |
#LOINC
|
163 |
g11 = g1['LOINC_NUM'].to_string().replace(","," ").replace("\n"," ")
|
164 |
g12 = g1['COMPONENT'].to_string().replace(","," ").replace("\n"," ")
|
165 |
-
s1 = ("LOINC," + myEntityGroup + "," + eterm + ",
|
166 |
if g11 != 'Series([] )': SaveResult(s1, outputFile)
|
167 |
|
168 |
#LOINC Panels
|
@@ -170,13 +170,13 @@ def group_by_entity(raw):
|
|
170 |
g22 = g2['LoincName'].to_string().replace(","," ").replace("\n"," ")
|
171 |
g23 = g2['ParentLoinc'].to_string().replace(","," ").replace("\n"," ")
|
172 |
g24 = g2['ParentName'].to_string().replace(","," ").replace("\n"," ")
|
173 |
-
s2 = ("LOINC Panel," + myEntityGroup + "," + eterm + ",
|
174 |
if g21 != 'Series([] )': SaveResult(s2, outputFile)
|
175 |
|
176 |
#SNOMED
|
177 |
g31 = g3['conceptId'].to_string().replace(","," ").replace("\n"," ").replace("\l"," ").replace("\r"," ")
|
178 |
g32 = g3['term'].to_string().replace(","," ").replace("\n"," ").replace("\l"," ").replace("\r"," ")
|
179 |
-
s3 = ("SNOMED Concept," + myEntityGroup + "," + eterm + ",
|
180 |
if g31 != 'Series([] )': SaveResult(s3, outputFile)
|
181 |
|
182 |
#OMS
|
@@ -185,13 +185,13 @@ def group_by_entity(raw):
|
|
185 |
g43 = g4['SNOMED CT'].to_string().replace(","," ").replace("\n"," ")
|
186 |
g44 = g4['PR'].to_string().replace(","," ").replace("\n"," ")
|
187 |
g45 = g4['S&S'].to_string().replace(","," ").replace("\n"," ")
|
188 |
-
s4 = ("OMS," + myEntityGroup + "," + eterm + ",
|
189 |
if g41 != 'Series([] )': SaveResult(s4, outputFile)
|
190 |
|
191 |
#ICD10
|
192 |
g51 = g5['Code'].to_string().replace(","," ").replace("\n"," ")
|
193 |
g52 = g5['Description'].to_string().replace(","," ").replace("\n"," ")
|
194 |
-
s5 = ("ICD10," + myEntityGroup + "," + eterm + ",
|
195 |
if g51 != 'Series([] )': SaveResult(s5, outputFile)
|
196 |
|
197 |
except ValueError as err:
|
|
|
162 |
#LOINC
|
163 |
g11 = g1['LOINC_NUM'].to_string().replace(","," ").replace("\n"," ")
|
164 |
g12 = g1['COMPONENT'].to_string().replace(","," ").replace("\n"," ")
|
165 |
+
s1 = ("LOINC," + myEntityGroup + "," + eterm + ", and LOINC questions of ," + g12 + "," + g11 + ", Label,Value, Label,Value, Label,Value ")
|
166 |
if g11 != 'Series([] )': SaveResult(s1, outputFile)
|
167 |
|
168 |
#LOINC Panels
|
|
|
170 |
g22 = g2['LoincName'].to_string().replace(","," ").replace("\n"," ")
|
171 |
g23 = g2['ParentLoinc'].to_string().replace(","," ").replace("\n"," ")
|
172 |
g24 = g2['ParentName'].to_string().replace(","," ").replace("\n"," ")
|
173 |
+
s2 = ("LOINC Panel," + myEntityGroup + "," + eterm + ", and LOINC name of ," + g22 + "," + g21 + ", and Parent codes of ," + g23 + ", with Parent names of ," + g24 + ", Label,Value ")
|
174 |
if g21 != 'Series([] )': SaveResult(s2, outputFile)
|
175 |
|
176 |
#SNOMED
|
177 |
g31 = g3['conceptId'].to_string().replace(","," ").replace("\n"," ").replace("\l"," ").replace("\r"," ")
|
178 |
g32 = g3['term'].to_string().replace(","," ").replace("\n"," ").replace("\l"," ").replace("\r"," ")
|
179 |
+
s3 = ("SNOMED Concept," + myEntityGroup + "," + eterm + ", and SNOMED terms of ," + g32 + "," + g31 + ", Label,Value, Label,Value, Label,Value ")
|
180 |
if g31 != 'Series([] )': SaveResult(s3, outputFile)
|
181 |
|
182 |
#OMS
|
|
|
185 |
g43 = g4['SNOMED CT'].to_string().replace(","," ").replace("\n"," ")
|
186 |
g44 = g4['PR'].to_string().replace(","," ").replace("\n"," ")
|
187 |
g45 = g4['S&S'].to_string().replace(","," ").replace("\n"," ")
|
188 |
+
s4 = ("OMS," + myEntityGroup + "," + eterm + ", and SNOMED concepts of ," + g42 + "," + g41 + ", and SNOMED codes of ," + g43 + ", and OMS problem of ," + g44 + ", and OMS Sign Symptom of ," + g45)
|
189 |
if g41 != 'Series([] )': SaveResult(s4, outputFile)
|
190 |
|
191 |
#ICD10
|
192 |
g51 = g5['Code'].to_string().replace(","," ").replace("\n"," ")
|
193 |
g52 = g5['Description'].to_string().replace(","," ").replace("\n"," ")
|
194 |
+
s5 = ("ICD10," + myEntityGroup + "," + eterm + ", and descriptions of ," + g52 + "," + g51 + ", Label,Value, Label,Value, Label,Value ")
|
195 |
if g51 != 'Series([] )': SaveResult(s5, outputFile)
|
196 |
|
197 |
except ValueError as err:
|