Skip to content

Omit retired resource types in whole-system interactions #3137

@lmsurpre

Description

@lmsurpre

Is your feature request related to a problem? Please describe.
FHIR R4B removes a number of resource types.
Per #2065 our plan is to omit those from the REST API, but leave them in the DB (so an R4 server could still come along to use those).

Where that gets a bit complicated is in the whole-system interactions (search, history, reindex, etc).

Describe the solution you'd like
Omit the resource types that have been removed in R4B from the results of both whole-system search and whole-system history.

Describe alternatives you've considered
Continue to return these resource types from whole-system search and/or history.

Acceptance Criteria

  1. GIVEN an R4 database with some retired resource type content (e.g. EffectEvidenceSynthesis)
    AND the deployment is updated to R4B
    WHEN a client sends a whole-system search query that would return that resource in R4 (e.g. GET [base]/)
    THEN the search-response bundle does NOT contain the resource

  2. GIVEN an R4 database with some retired resource type content (e.g. EffectEvidenceSynthesis)
    AND the deployment is updated to R4B
    WHEN a client sends a whole-system history request that would return that resource in R4 (e.g. GET [base]/_history)
    THEN the history-response bundle does NOT contain the resource

  3. GIVEN an R4 database with some retired resource type content (e.g. EffectEvidenceSynthesis)
    AND the deployment is updated to R4B
    WHEN a client sends a $reindex request that would process that resource in R4 (e.g. POST [base]/$reindex)
    THEN the reindex request succeeds and the retired resource instances are skipped / not reindexed

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions