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

CDS Hooks Endpoint: 404 Error when field is missing from CDS service request #598

Open
mickohanlon23 opened this issue Aug 31, 2022 · 1 comment
Labels
cds-hooks Cds-hooks implementation enhancement New feature or request

Comments

@mickohanlon23
Copy link

Original issue documented in https://chat.fhir.org/#narrow/stream/179159-cds-hooks.

When making a CDS Service Request to the ColorectalCancerScreeningCDS route of https://cloud.alphora.com/sandbox/r4/cds/cds-services/, a 404 Not Found error is returned if the POST request body is missing any required fields. This was tested by sending Postman requests to the endpoint, containing request bodies with:

  • A missing fhirServer field
  • Missing parts of the context field
  • An unrecognized hook in the hook field

all of which caused a 404 Error to be returned from the service. Should this be returning a response status code other than 404?

We have run into some troubles getting the Epic CDS Hooks simulator sandbox client connected to the publicly available endpoint in cqf-ruler, and we suspect this could be related to this behavior.

@c-schuler c-schuler added the enhancement New feature or request label Sep 13, 2022
@c-schuler
Copy link
Contributor

Yes, a 404 is not an appropriate response for the examples you posted. We will update the reporting with the appropriate response. Thank you @mickohanlon23!

@JPercival JPercival added cds-hooks Cds-hooks implementation 3 and removed 3 labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cds-hooks Cds-hooks implementation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants