Skip to content

Commit

Permalink
Merge pull request #73 from mihaitodor/fix-find-subject-tx-implicatio…
Browse files Browse the repository at this point in the history
…ns-missing-evidence-level

Fix find-subject-tx-implications bug
  • Loading branch information
rhdolin authored Sep 21, 2023
2 parents 2b4e1f1 + fc733e9 commit bf7fb87
Show file tree
Hide file tree
Showing 22 changed files with 579 additions and 28 deletions.
9 changes: 5 additions & 4 deletions app/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,11 @@ def create_tx_implication_profile_civic(implication, subject, vids):
"code": f"{ptc['code']}",
"display": f"{ptc['display']}"}]}})

resource["component"].append({"code": {"coding": [{"system": "http://loinc.org",
"code": "93044-6",
"display": "Level of evidence"}]},
"valueCodeableConcept": {"text": f"{implication['evidenceLevel']}"}})
if 'evidenceLevel' in implication:
resource["component"].append({"code": {"coding": [{"system": "http://loinc.org",
"code": "93044-6",
"display": "Level of evidence"}]},
"valueCodeableConcept": {"text": f"{implication['evidenceLevel']}"}})

for med in implication['medicationAssessed']:
resource["component"].append({"code": {"coding": [{"system": "http://loinc.org",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand All @@ -42,7 +42,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand All @@ -67,7 +67,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down Expand Up @@ -47,4 +47,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
}
]
Expand All @@ -38,7 +38,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
}
]
Expand All @@ -38,7 +38,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "denominator",
"valueQuantity": {
"value": 1112
"value": 1114
}
},
{
Expand Down
Loading

0 comments on commit bf7fb87

Please sign in to comment.