Class SearchParametersTransportAdapter

  • All Implemented Interfaces:
    ParameterValueVisitorAdapter

    public class SearchParametersTransportAdapter
    extends java.lang.Object
    implements ParameterValueVisitorAdapter
    Visitor adapter implementation to build an instance of SearchParametersTransport to provide support for shipping a set of search parameter values off to a remote index service. This allows the parameters to be stored in the database in a separate transaction, and allows the inserts to be batched together, providing improved throughput.
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchParametersTransportAdapter​(java.lang.String resourceType, java.lang.String logicalId, long logicalResourceId, int versionId, java.time.Instant lastUpdated, java.lang.String requestShard, java.lang.String parameterHash)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SearchParametersTransport build()
      Build the SearchParametersTransport instance from the current state of builder
      void dateValue​(java.lang.String name, java.time.Instant valueDateStart, java.time.Instant valueDateEnd, java.lang.Integer compositeId, boolean wholeSystem)
      Process a date parameter
      void locationValue​(java.lang.String name, java.lang.Double valueLatitude, java.lang.Double valueLongitude, java.lang.Integer compositeId)
      Process a location parameter
      void numberValue​(java.lang.String name, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
      Process a number parameter
      void profileValue​(java.lang.String name, java.lang.String url, java.lang.String version, java.lang.String fragment, boolean wholeSystem)
      Process a profile parameter
      void quantityValue​(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
      Process a quantity parameter
      void referenceValue​(java.lang.String name, java.lang.String refResourceType, java.lang.String refLogicalId, java.lang.Integer refVersion, java.lang.Integer compositeId)
      Process a reference parameter
      void securityValue​(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
      Process a security parameter
      void stringValue​(java.lang.String name, java.lang.String valueString, java.lang.Integer compositeId, boolean wholeSystem, int maxBytes)
      Process a string parameter
      void tagValue​(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
      Process a tag parameter
      void tokenValue​(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.lang.Integer compositeId, boolean wholeSystem)
      Process a token parameter
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchParametersTransportAdapter

        public SearchParametersTransportAdapter​(java.lang.String resourceType,
                                                java.lang.String logicalId,
                                                long logicalResourceId,
                                                int versionId,
                                                java.time.Instant lastUpdated,
                                                java.lang.String requestShard,
                                                java.lang.String parameterHash)
                                         throws FHIRPersistenceException
        Public constructor
        Parameters:
        resourceType -
        logicalId -
        logicalResourceId -
        versionId -
        lastUpdated -
        requestShard -
        parameterHash -
        Throws:
        FHIRPersistenceException
    • Method Detail

      • build

        public SearchParametersTransport build()
        Build the SearchParametersTransport instance from the current state of builder
        Returns:
      • stringValue

        public void stringValue​(java.lang.String name,
                                java.lang.String valueString,
                                java.lang.Integer compositeId,
                                boolean wholeSystem,
                                int maxBytes)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a string parameter
        Specified by:
        stringValue in interface ParameterValueVisitorAdapter
        maxBytes - the maximum allowed size of input String in bytes
      • numberValue

        public void numberValue​(java.lang.String name,
                                java.math.BigDecimal valueNumber,
                                java.math.BigDecimal valueNumberLow,
                                java.math.BigDecimal valueNumberHigh,
                                java.lang.Integer compositeId)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a number parameter
        Specified by:
        numberValue in interface ParameterValueVisitorAdapter
      • dateValue

        public void dateValue​(java.lang.String name,
                              java.time.Instant valueDateStart,
                              java.time.Instant valueDateEnd,
                              java.lang.Integer compositeId,
                              boolean wholeSystem)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a date parameter
        Specified by:
        dateValue in interface ParameterValueVisitorAdapter
      • tokenValue

        public void tokenValue​(java.lang.String name,
                               java.lang.String valueSystem,
                               java.lang.String valueCode,
                               java.lang.Integer compositeId,
                               boolean wholeSystem)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a token parameter
        Specified by:
        tokenValue in interface ParameterValueVisitorAdapter
      • quantityValue

        public void quantityValue​(java.lang.String name,
                                  java.lang.String valueSystem,
                                  java.lang.String valueCode,
                                  java.math.BigDecimal valueNumber,
                                  java.math.BigDecimal valueNumberLow,
                                  java.math.BigDecimal valueNumberHigh,
                                  java.lang.Integer compositeId)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a quantity parameter
        Specified by:
        quantityValue in interface ParameterValueVisitorAdapter
      • referenceValue

        public void referenceValue​(java.lang.String name,
                                   java.lang.String refResourceType,
                                   java.lang.String refLogicalId,
                                   java.lang.Integer refVersion,
                                   java.lang.Integer compositeId)
        Description copied from interface: ParameterValueVisitorAdapter
        Process a reference parameter
        Specified by:
        referenceValue in interface ParameterValueVisitorAdapter