FHIR Chat · Declaring extended operation with Parameter that has parts · hapi

Stream: hapi

Topic: Declaring extended operation with Parameter that has parts


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

I have a Parameters object that has a parameter with parts and I am unsure how to declare this in HAPI code.
eg. <Parameters><parameter><name value="operationData"/><part><name value="id"/><valueIdentifier>xxx</valueIdentifier></part><part><name value="version"/><valueString value="1"/><part>...</part></parameter></Parameters>

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

We don't yet have a way of declaring parts using annotations unfortunately. I've always struggled with how that API would work so we've never built one..

You can definitely still build this kind of operation though, you just need to declare a method param for the whole Parameters resource, e.g.

@ResourceParam Parameters theParams


Last updated: Apr 12 2022 at 19:14 UTC