Skip to content

Commit

Permalink
Readd fhirpath as optional import
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliabaldini committed Nov 23, 2023
1 parent adb68ef commit 08fe690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fhir_pyrate/pirate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from types import TracebackType
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Type, Union

import fhirpathpy
import pandas as pd
import requests
from dateutil.parser import parse
Expand All @@ -23,6 +22,10 @@
from fhir_pyrate import Ahoy
from fhir_pyrate.util import FHIRObj, string_from_column
from fhir_pyrate.util.bundle_processing_templates import flatten_data, parse_fhir_path
from fhir_pyrate.util.imports import optional_import

# Note to people from the future. This actually should be an optional import to avoid that, if people want to use another version of antlr, this creates crazy errors that the version does not match. In such cases, it is not possible to use fhirpathpy, but the processing functions can still be used.
fhirpathpy, _ = optional_import(module="fhirpathpy")

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 08fe690

Please sign in to comment.