Skip to content

Commit

Permalink
Use system and code instead of display
Browse files Browse the repository at this point in the history
  • Loading branch information
Wambere committed Aug 23, 2024
1 parent 47c19e0 commit aa07769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importer/importer/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def get_product_accountability_period(product_id: str) -> int:
product_characteristics = json_product["characteristic"]
for character in product_characteristics:
if (
character["code"]["coding"][0]["display"]
== "Accountability period (in months)"
character["code"]["coding"][0]["system"] == "http://smartregister.org/codes"
and character["code"]["coding"][0]["code"] == "67869606"
):
accountability_period = character["valueQuantity"]["value"]
return accountability_period
Expand Down

0 comments on commit aa07769

Please sign in to comment.