Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support $reindex operation supports resourceLogicalId on Type and Instance #2503

Closed
prb112 opened this issue Jun 14, 2021 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@prb112
Copy link
Contributor

prb112 commented Jun 14, 2021

Is your feature request related to a problem? Please describe.
The $reindex operation supports resourceLogicalId.

|resourceLogicalId|string|The ResourceType or the ResourceType/Logical id for targetted reindexing|

POST [base]/$reindex would reindex resources of any type
POST [base]/Patient/$reindex would reindex Patient resources
POST [base]/Patient/123/$reindex would reindex just Patient/123

It'd be nice to support reindex on the specific Resource and Type.

Describe the solution you'd like
Update the Reindex Operation to support the Input Parameter.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Acceptance Criteria

  1. GIVEN [a precondition]
    AND [another precondition]
    WHEN [test step]
    AND [test step]
    THEN [verification step]
    AND [verification step]

Additional context
Add any other context or screenshots about the feature request here.

@prb112 prb112 added the enhancement New feature or request label Jun 14, 2021
@prb112 prb112 self-assigned this Jun 14, 2021
@prb112 prb112 added this to the Sprint 2021-08 milestone Jun 14, 2021
@tbieste
Copy link
Contributor

tbieste commented Jun 21, 2021

Verified:

  • POST [base]/$reindex would reindex resources of any type Success
  • POST [base]/Patient/$reindex would reindex Patient resources Success
  • POST [base]/Patient/123/$reindex would reindex just Patient/123 Success
  • Using both Type/Instance and theresourceLogicalId parameter results in the following error: resourceLogicalId already specified using call to Operation on Type or Instance` Success
  • Specifying resourceLogicalId with ResourceType of Resource or DomainResource results in the following error: ResourceType is not valid Success
  • Specifying [base]/Resource/$reindex or [base]/DomainResource/$reindex results in the following error: ResourceType is not valid Results in no error, but for consistency, probably should

tbieste added a commit that referenced this issue Jun 21, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste added a commit that referenced this issue Jun 22, 2021
Issue #2503 - Check resource type on $reindex operation
@tbieste
Copy link
Contributor

tbieste commented Jun 22, 2021

Verified:

  • Specifying [base]/Resource/$reindex or [base]/DomainResource/$reindex results in the following error:Resource Type 'Resource' is not valid

@tbieste tbieste closed this as completed Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants