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

issue #3390 - whole-system interactions honor resources config #3473

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

lmsurpre
Copy link
Member

@lmsurpre lmsurpre commented Mar 15, 2022

  • Introduce the ResourceTypeName enum in fhir-core and ResourcesConfigAdapter in fhir-config
  • Use ResourcesConfigAdapter from whole-system search, whole-system history, $everything, and $export

I also started on #3319 - system-search now supports multiple instances of the _type parameter

Also a small fix for #3091

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

@lmsurpre lmsurpre force-pushed the issue-3390 branch 2 times, most recently from 63d1d19 to c142954 Compare March 16, 2022 17:23
@lmsurpre lmsurpre marked this pull request as ready for review March 16, 2022 21:02
* Introduce the ResourceTypeName enum in fhir-core and ResourcesConfigAdapter in fhir-config
* Use ResourcesConfigAdapter from whole-system search, whole-system history, $everything, and $export

I also started on #3319 - system-search now supports multiple instances of the `_type` parameter

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
@lmsurpre lmsurpre force-pushed the issue-3390 branch 4 times, most recently from 1144101 to 6e5c77f Compare March 17, 2022 16:45
For Group/$export, this changeset restores a line I had accidentally deleted
which sets the Group.id for Group export.

For Patient/$everything, now that we're properly reading the fhir-server-config,
we need to adjust the tenant1 configuration so that all resource types
that actually get used are in the config so that we can set `open` to false.

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
@lmsurpre lmsurpre changed the title issue #3390 - whole-system interactions use config issue #3390 - whole-system interactions honor resources config Mar 17, 2022
@lmsurpre lmsurpre force-pushed the issue-3390 branch 4 times, most recently from 10acf91 to 0ea1c63 Compare March 17, 2022 20:50
twice

Now that the Patient resource is in its own compartment, we don't need
to add that resource to the result set separately any more.

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Copy link
Contributor

@tbieste tbieste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

import com.ibm.fhir.core.ResourceTypeName;

/**
* An abstraction for the ibm-fhir-server fhirServer/resources property group
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indicate that we should create a new instance of this for each request (at least). otherwise the property lookups won't be dynamic when retrieved through here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants