You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, Medplum supports the _include search result parameter.
It also handles include iteration, iterating through references as a chain and including those in the search Bundle result.
It does not handle the wildcard in any form today:
function parseIncludeTarget(input: string): IncludeTarget {
const parts = input.split(':');
if (parts.includes('*')) {
throw new OperationOutcomeError(badRequest(`'*' is not supported as a value for search inclusion parameters`));
}
if (parts.length === 1) {
// Full wildcard, not currently supported
throw new OperationOutcomeError(
badRequest(`Invalid include value '${input}': must be of the form ResourceType:search-parameter`)
);
...
The wildcard is somewhat nice - there's a limited number of possible included resource types per each resource, defined as the search parameters of that resource that have type reference.
Supporting wildcard allows for easier retrieval of related data in one API call without the client having to look up and maintain the list of reference type search parameters.
One way to limit this feature is to only allow the wildcard when the iterate modifier is not used, to prevent large (possibly indefinite?) chains of iteration.
The text was updated successfully, but these errors were encountered:
Today, Medplum supports the
_include
search result parameter.It also handles include iteration, iterating through references as a chain and including those in the search Bundle result.
It does not handle the wildcard in any form today:
The wildcard is somewhat nice - there's a limited number of possible included resource types per each resource, defined as the search parameters of that resource that have type reference.
Supporting wildcard allows for easier retrieval of related data in one API call without the client having to look up and maintain the list of reference type search parameters.
One way to limit this feature is to only allow the wildcard when the
iterate
modifier is not used, to prevent large (possibly indefinite?) chains of iteration.The text was updated successfully, but these errors were encountered: