Interface IFhirPath

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends IBase>
      List<T>
      evaluate​(IBase theInput, String thePath, Class<T> theReturnType)
      Apply the given FhirPath expression against the given input and return all results in a list
      <T extends IBase>
      Optional<T>
      evaluateFirst​(IBase theInput, String thePath, Class<T> theReturnType)
      Apply the given FhirPath expression against the given input and return the first match (if any)
      void parse​(String theExpression)
      Parses the expression and throws an exception if it can not parse correctly
    • Method Detail

      • evaluate

        <T extends IBaseList<T> evaluate​(IBase theInput,
                                           String thePath,
                                           Class<T> theReturnType)
        Apply the given FhirPath expression against the given input and return all results in a list
        Parameters:
        theInput - The input object (generally a resource or datatype)
        thePath - The fluent path expression
        theReturnType - The type to return (in order to avoid casting)
      • evaluateFirst

        <T extends IBaseOptional<T> evaluateFirst​(IBase theInput,
                                                    String thePath,
                                                    Class<T> theReturnType)
        Apply the given FhirPath expression against the given input and return the first match (if any)
        Parameters:
        theInput - The input object (generally a resource or datatype)
        thePath - The fluent path expression
        theReturnType - The type to return (in order to avoid casting)
      • parse

        void parse​(String theExpression)
            throws Exception
        Parses the expression and throws an exception if it can not parse correctly
        Throws:
        Exception