Skip to content

Commit

Permalink
Change negative populate test fhirpath expression to malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rl committed Feb 5, 2024
1 parent f0c1b1f commit 52bf6d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sdc/test_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ async def test_fhirpath_failure_populate(aidbox_client, safe_db):
"linkId": "patientName",
"initialExpression": {
"language": "text/fhirpath",
"expression": "%Patient.name.given[0] & ' ' & %Patient.name.family",
"expression": "%Patient.name.given.toQuantity()",
},
}
],
Expand All @@ -544,12 +544,12 @@ async def test_fhirpath_failure_populate(aidbox_client, safe_db):
{
"severity": "fatal",
"code": "invalid",
"diagnostics": 'Error: "%Patient.name.given[0] & \' \' & %Patient.name.family" - can only concatenate list (not "str") to list',
"diagnostics": 'Error: Could not convert to quantity: input collection contains multiple items',
}
],
"text": {
"status": "generated",
"div": 'Error: "%Patient.name.given[0] & \' \' & %Patient.name.family" - can only concatenate list (not "str") to list',
"div": 'Error: Could not convert to quantity: input collection contains multiple items',
},
}
return
Expand Down

0 comments on commit 52bf6d9

Please sign in to comment.