Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support upcoming FHIRDate changes in fhirclient #5

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cumulus_fhir_support/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""FHIR support code for the Cumulus project"""

__version__ = "1.2.0"
__version__ = "1.2.1"

from .json import list_multiline_json_in_dir, read_multiline_json, read_multiline_json_from_dir
from .schemas import pyarrow_schema_from_rows
2 changes: 1 addition & 1 deletion cumulus_fhir_support/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@ def _basic_fhir_to_pyarrow_type(pytype: type) -> pyarrow.DataType:
return pyarrow.string()
elif pytype is bool:
return pyarrow.bool_()
elif pytype is fhirdate.FHIRDate:
elif issubclass(pytype, fhirdate.FHIRDate):
return pyarrow.string() # just leave it as a string, like it appears in the JSON
raise ValueError(f"Unexpected type: {pytype}")
Loading