FHIR Chat · Proper String parameter for operations · hapi

Stream: hapi

Topic: Proper String parameter for operations


view this post on Zulip Jean Duteau (May 15 2019 at 18:22):

I have a extended operation that has a String as one of its parameters. I used StringDt but get a ConfigurationException: "Incorrect use of type StringDt as parameter type for method when context is for version R4" From the OperationParameter code, the parameter type needs to be assignable from IDatatype (IDatatype.class.isAssignableFrom(theParameterType)) and it looks like StringDt fits that bill.

view this post on Zulip James Agnew (May 16 2019 at 08:14):

The string datatype for DSTU3+ in HAPI FHIR is called StringType instead of StringDt (this is just a result of the legacy development of the library.. the class works the same)


Last updated: Apr 12 2022 at 19:14 UTC