FHIR Chat · Custom Operation using HTTP GET in R4 · hapi

Stream: hapi

Topic: Custom Operation using HTTP GET in R4


view this post on Zulip Jake O'Donnell (Oct 16 2019 at 18:46):

I am trying to implement an Operation that can be used with an HTTP GET request.

The Operation Documentation for GET handling indicates that

the HTTP GET form is only supported if the operation has only primitive parameters (no complex parameters or resource parameters)

At the same time, when I try to declare any OperationParameter as an object that implements IPrimitiveDatatype (like DecimalDt and StringDt), it throws a ConfigurationException.

It seems as though all of the primitive OperationParameter type options I can find also implement IDatatype (which results in the ConfigurationException in R4). If none of my conclusions leading to this point are flawed, then my ultimate question is what primitive OperationParameter options are available in R4?

Thank you for your help!

view this post on Zulip Jake O'Donnell (Oct 17 2019 at 13:07):

I found the primitive choices for OperationParameter that are available in R4. You can use the classes that extend PrimitiveType (so in my case, DecimalType and StringType do the trick)


Last updated: Apr 12 2022 at 19:14 UTC