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

Update feedback structure for overrideReason #139

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

dennispatterson
Copy link
Collaborator

When an override reason is chosen on a card dismissal, updating the structure sent to reflect changes in the spec: https://cds-hooks.org/specification/current/#overridereason

Verified by running locally and observing the following sent to a CDS Service:

{
   "feedback":[
      {
         "card":"3665d2ff-4dde-47de-85d2-03b56deca418",
         "outcome":"overridden",
         "outcomeTimestamp":"2020-08-25T21:18:16.375Z",
         "overrideReason":{
            "reason":{
               "code":"patient-requested-brand",
               "system":"http://terminology.cds-hooks.org/CodeSystem/OverrideReasons"
            }
         }
      }
   ]
}

@dennispatterson dennispatterson merged commit 0530df4 into master Aug 28, 2020
@dennispatterson dennispatterson deleted the overridden_feedback_1_1 branch August 28, 2020 14:44
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