Skip to content

Commit

Permalink
use lower case for system
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Sep 12, 2023
1 parent 6c7cc58 commit 9f9e7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions disease/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _add_merged_meta(self, response: Dict) -> Dict:

for src in sources:
try:
src_name = PREFIX_LOOKUP[src.lower()]
src_name = PREFIX_LOOKUP[src]
except KeyError:
# not an imported source
continue
Expand Down Expand Up @@ -339,7 +339,7 @@ def _add_disease(
mappings.append(
core_models.Mapping(
coding=core_models.Coding(
code=core_models.Code(code), system=system
code=core_models.Code(code), system=system.lower()
),
relation=core_models.Relation.RELATED_MATCH,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def neuroblastoma():
"relation": "relatedMatch",
},
{
"coding": {"code": "769", "system": "DOID"},
"coding": {"code": "769", "system": "doid"},
"relation": "relatedMatch",
},
{
Expand Down

0 comments on commit 9f9e7b0

Please sign in to comment.