fhirpathpy 2.2.1__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/PKG-INFO +1 -1
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/__init__.py +2 -3
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/util.py +3 -1
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/LICENSE.md +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/README.md +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/evaluators/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/aggregate.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/collections.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/combining.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/constants.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/datetime.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/equality.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/existence.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/filtering.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/logic.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/math.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/misc.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/navigation.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/strings.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/subsetting.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/invocations/types.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/engine/nodes.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/dstu2/choiceTypePaths.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/dstu2/path2Type.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/dstu2/pathsDefinedElsewhere.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/dstu2/type2Parent.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r4/choiceTypePaths.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r4/path2Type.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r4/pathsDefinedElsewhere.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r4/type2Parent.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r5/choiceTypePaths.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r5/path2Type.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r5/pathsDefinedElsewhere.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/r5/type2Parent.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/stu3/choiceTypePaths.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/stu3/path2Type.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/stu3/pathsDefinedElsewhere.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/models/stu3/type2Parent.json +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/ASTPathListener.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/FHIRPath.g4 +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/README.md +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPath.interp +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPath.tokens +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPathLexer.interp +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPathLexer.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPathLexer.tokens +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPathListener.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/FHIRPathParser.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/parser/generated/__init__.py +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/fhirpathpy/py.typed +0 -0
- {fhirpathpy-2.2.1 → fhirpathpy-2.2.3}/pyproject.toml +0 -0
|
@@ -10,7 +10,7 @@ from fhirpathpy.engine.util import arraify, get_data, process_user_invocation_ta
|
|
|
10
10
|
from fhirpathpy.parser import parse
|
|
11
11
|
|
|
12
12
|
__title__ = "fhirpathpy"
|
|
13
|
-
__version__ = "2.2.
|
|
13
|
+
__version__ = "2.2.3"
|
|
14
14
|
__author__ = "beda.software"
|
|
15
15
|
__license__ = "MIT"
|
|
16
16
|
__copyright__ = "Copyright 2026 beda.software"
|
|
@@ -84,8 +84,7 @@ def apply_parsed_path(resource, parsedPath, context=None, model=None, options=No
|
|
|
84
84
|
return res
|
|
85
85
|
|
|
86
86
|
if isinstance(data, dict) and not isinstance(data, FP_Type):
|
|
87
|
-
for key, value in data.items()
|
|
88
|
-
data[key] = visit(value)
|
|
87
|
+
return {key: visit(value) for key, value in data.items()}
|
|
89
88
|
|
|
90
89
|
return data
|
|
91
90
|
|
|
@@ -60,7 +60,9 @@ def is_nullable(x):
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
def is_true(x):
|
|
63
|
-
|
|
63
|
+
# Use == not is: mid-pipeline values are often ResourceNode wrappers; __eq__
|
|
64
|
+
# compares .data, while `is True` does not (see fhirpathpy 2.2.1 regression).
|
|
65
|
+
return x == True or isinstance(x, list) and len(x) == 1 and x[0] == True # noqa: E712
|
|
64
66
|
|
|
65
67
|
|
|
66
68
|
def arraify(x, instead_none=None):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|