-
Notifications
You must be signed in to change notification settings - Fork 160
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
Optionally reject references without explicit resource type #1961
Comments
There's already a |
tbieste
added a commit
that referenced
this issue
Apr 8, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 9, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 12, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 13, 2021
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
tbieste
added a commit
that referenced
this issue
Apr 14, 2021
Issue #1961 - Optionally reject references without resource type
Running with the latest FHIR server code in my local development environment, I validated the issue is fixed by testing the following:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The FHIR specification allows a reference to be specified without an explicit resource type. For example the following reference to Organization/3003 is currently accepted:
Because the IBM FHIR Server does not serve resources directly from its base, the reference
3003
should not be treated as valid. e.g.The correct way to define the reference is:
This reference is valid, because
Organization/3003
can be resolved as a local relative resource:However, ambiguous resource references like
3003
may currently exist in IBM FHIR Server deployments, so a fhir-server-config parameter is needed to switch off rejection of this form if required.This impacts FHIR search queries. The following search is requesting any patient with a reference to organization 3001:
This will match a patient if its organization reference is defined as:
and will also match a patient with an organization reference defined as:
If the search is defined as:
this will match a patient with an organization reference defined as "Organization/3001" but not one defined with just "3001". This is because the underlying query filters on the resource type of Organization which is not associated with the reference value "3001". This behavior may not be obvious, which is why rejecting resource references without an explicit resource type is a good practice.
The text was updated successfully, but these errors were encountered: