FHIR Chat · CompositeParam · hapi

Stream: hapi

Topic: CompositeParam


view this post on Zulip Michael Calderero (Nov 15 2018 at 08:13):

Hi,

Sequence in STU3 and MolecularSequence in R4 have composite search parameters with 3 components (i.e. Sequence.coordinate in STU3, MolecularSequence.referenceseqid-coordinate and MolecularSequence.chromosome-coordinate in R4).

However it seems HAPI's CompositeParam is only able to support up to two components due to the following piece of code

            List<String> parts = ParameterUtil.splitParameterString(theValue, '$', false);
            if (parts.size() > 2) {
                throw new InvalidRequestException("Invalid value for composite parameter (only one '$' is valid for this parameter, others must be escaped). Value was: " + theValue);
            }

Is there a plan to update CompositeParam to handle >= 2 number of components?


Last updated: Apr 12 2022 at 19:14 UTC