You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are sometimes problems if a path selection attribute has the same name as an existing operation. For example, div is the integer division, but it is also used in many generated public FHIR resources.
In this case, the path text.div will yield an error.
import json
from fhirpathpy import evaluate
from pathlib import Path
with Path("tests/resources/observation-example.json").open("r") as fp:
resource = json.load(fp)
res = evaluate(resource, "Observation.text.div")
print(res)
returns
Exception: Infix invoke should have arity 2
I think that this error could be fixed by looking at whether there is a dot or not before the declaration.
Best,
Giulia
The text was updated successfully, but these errors were encountered:
Hi there,
there are sometimes problems if a path selection attribute has the same name as an existing operation. For example,
div
is the integer division, but it is also used in many generated public FHIR resources.In this case, the path
text.div
will yield an error.returns
I think that this error could be fixed by looking at whether there is a dot or not before the declaration.
Best,
Giulia
The text was updated successfully, but these errors were encountered: