Class PathAndRef

java.lang.Object
ca.uhn.fhir.jpa.searchparam.extractor.PathAndRef

public class PathAndRef extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathAndRef(String theSearchParamName, String thePath, org.hl7.fhir.instance.model.api.IBaseReference theRef, boolean theCanonical)
    Constructor for a reference
    PathAndRef(String theSearchParamName, String thePath, org.hl7.fhir.instance.model.api.IBaseResource theResource)
    Constructor for a resource (this is expected to be rare, only really covering cases like the path Bundle.entry.resource)
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.hl7.fhir.instance.model.api.IBaseReference
    If this is populated, getResource() will be null, and vice versa.
    org.hl7.fhir.instance.model.api.IBaseResource
    Note that this will generally be null, it is only used for cases like indexing Bundle.entry.resource.
     
    boolean
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PathAndRef

      public PathAndRef(String theSearchParamName, String thePath, org.hl7.fhir.instance.model.api.IBaseReference theRef, boolean theCanonical)
      Constructor for a reference
    • PathAndRef

      public PathAndRef(String theSearchParamName, String thePath, org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Constructor for a resource (this is expected to be rare, only really covering cases like the path Bundle.entry.resource)
  • Method Details

    • getResource

      public org.hl7.fhir.instance.model.api.IBaseResource getResource()
      Note that this will generally be null, it is only used for cases like indexing Bundle.entry.resource. If this is populated, getRef() will be null and vice versa.
      Since:
      6.6.0
    • isCanonical

      public boolean isCanonical()
    • getSearchParamName

    • getPath

      public String getPath()
    • getRef

      public org.hl7.fhir.instance.model.api.IBaseReference getRef()
      If this is populated, getResource() will be null, and vice versa.
    • toString

      public String toString()
      Overrides:
      toString in class Object