Stream: implementers
Topic: Finding the right CapabilityStatement.rest iteration
Corey Spears (Sep 17 2021 at 18:02):
During the Connectathon a server implementation had 2 iterations of CapabilityStatement.rest. These seemed to be used for 2 different sort of services at the same endpoint each with different security details, resources and profiles. My little client was not expecting this and the iteration it wanted was not the first, so it gave up.
OK, So I can make my client more robust, but it begs the question, how do I find the rest definition that I need? The rest element only has a mode (server|client) and a markdown description. Besides searching down into the details of each rest.resource, of which some of the differences may only be nuanced between rest element iterations, how can I find the rest definition I need?
Michele Mottini (Sep 17 2021 at 18:19):
These seemed to be used for 2 different sort of services at the same endpoint each with different security details, resources and profiles.
These makes little sense to me, servers should not do that (eg an end point has only one Patient resource, it cannot be described in two different ways)
Corey Spears (Sep 17 2021 at 18:24):
In this instance they were providing patient access API in one rest iteration and in the iteration what appears to be a group resource export operation with no security defined.
CapabilityStatement.rest has a cardinality of 0..*. My question is: When would there be more than one rest iteration and how would a client find the right one?
Michele Mottini (Sep 17 2021 at 18:39):
When would there be more than one rest iteration
Never in a CapabilityStatement returned by a server end point - does not make sense to have more than one in that case
Lloyd McKenzie (Sep 17 2021 at 18:41):
There should only be one repetition for client and one for server. We didn't have an ability to set cardinality to 0..2
Lloyd McKenzie (Sep 17 2021 at 18:42):
You could submit a change request for us to add an invariant...
Corey Spears (Sep 17 2021 at 19:29):
Submitted: https://jira.hl7.org/browse/FHIR-33955
Grahame Grieve (Sep 20 2021 at 17:50):
there is an invariant
Lloyd McKenzie (Sep 20 2021 at 18:15):
I don't see one - there's cpb-9, but that limits by resource, it doesn't restricts the overall number of rest repetitions.
Lloyd McKenzie (Sep 20 2021 at 18:15):
(@Grahame Grieve )
Grahame Grieve (Sep 20 2021 at 18:18):
odd I saw it somewhere. Maybe it was in an IG
Last updated: Apr 12 2022 at 19:14 UTC