@Test public void testYearMonthParser() throws FHIRSearchException { TemporalAccessor acc = DateTimeHandler.parse("2019-10"); assertNotNull(acc); assertTrue(acc.isSupported(ChronoField.YEAR)); assertEquals(acc.getLong(ChronoField.YEAR), 2019); assertTrue(acc.isSupported(ChronoField.MONTH_OF_YEAR)); assertEquals(acc.getLong(ChronoField.MONTH_OF_YEAR), 10); assertFalse(acc.isSupported(ChronoField.DAY_OF_MONTH)); assertFalse(acc.isSupported(ChronoField.HOUR_OF_DAY)); assertFalse(acc.isSupported(ChronoField.MINUTE_OF_HOUR)); assertFalse(acc.isSupported(ChronoField.SECOND_OF_MINUTE)); assertFalse(acc.isSupported(ChronoField.MILLI_OF_SECOND)); assertFalse(acc.isSupported(ChronoField.MICRO_OF_SECOND)); assertFalse(acc.isSupported(ChronoField.NANO_OF_SECOND)); }
public static void parse(Prefix prefix, QueryParameterValue parameterValue, String v) throws FHIRSearchException { TemporalAccessor value = parse(v); parameterValue.setValueDateLowerBound(generateLowerBound(prefix, value, v)); parameterValue.setValueDateUpperBound(generateUpperBound(prefix, value, v)); }
DateTimeHandler { public static void parse(Prefix prefix, QueryParameterValue parameterValue, String v) throws FHIRSearchException { TemporalAccessor value = parse(v); parameterValue.setValueDateLowerBound(generateLowerBound(prefix, value, v)); parameterValue.setValueDateUpperBound(generateUpperBound(prefix, value, v)); } }
DateTimeHandler { public static void parse(Prefix prefix, QueryParameterValue parameterValue, String v) throws FHIRSearchException { TemporalAccessor value = parse(v); parameterValue.setValueDateLowerBound(generateLowerBound(prefix, value, v)); parameterValue.setValueDateUpperBound(generateUpperBound(prefix, value, v)); }  }
DateTimeHandler { public static void parse(Prefix prefix, QueryParameterValue parameterValue, String v) throws FHIRSearchException { TemporalAccessor value = parse(v); parameterValue.setValueDateLowerBound(generateLowerBound(prefix, value, v)); parameterValue.setValueDateUpperBound(generateUpperBound(prefix, value, v)); }  static Timestamp generateTimestamp(Instant inst); static Instant generateLowerBoundApproximation(Instant now, Instant cur); static Instant generateLowerBound(Prefix prefix, TemporalAccessor value, String originalString); static Instant generateValue(TemporalAccessor value, String originalString); static Instant generateValue(TemporalAccessor value); static Instant generateUpperBound(DateTime value); static Instant generateUpperBound(Date value); static Instant generateUpperBound(Prefix prefix, TemporalAccessor value, String originalString); static Instant generateUpperBoundApproximation(Instant now, Instant cur); static String serialize(TemporalAccessor value); static void parse(Prefix prefix, QueryParameterValue parameterValue, String v); static TemporalAccessor parse(String value); static TemporalAccessor parseQuiet(String value); }
DateTimeHandler { public static void parse(Prefix prefix, QueryParameterValue parameterValue, String v) throws FHIRSearchException { TemporalAccessor value = parse(v); parameterValue.setValueDateLowerBound(generateLowerBound(prefix, value, v)); parameterValue.setValueDateUpperBound(generateUpperBound(prefix, value, v)); }  static Timestamp generateTimestamp(Instant inst); static Instant generateLowerBoundApproximation(Instant now, Instant cur); static Instant generateLowerBound(Prefix prefix, TemporalAccessor value, String originalString); static Instant generateValue(TemporalAccessor value, String originalString); static Instant generateValue(TemporalAccessor value); static Instant generateUpperBound(DateTime value); static Instant generateUpperBound(Date value); static Instant generateUpperBound(Prefix prefix, TemporalAccessor value, String originalString); static Instant generateUpperBoundApproximation(Instant now, Instant cur); static String serialize(TemporalAccessor value); static void parse(Prefix prefix, QueryParameterValue parameterValue, String v); static TemporalAccessor parse(String value); static TemporalAccessor parseQuiet(String value);  }