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

Fix history with PATCH in STU3 #2177

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

Ivanidzo4ka
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka commented Aug 20, 2021

Description

In STU3 PATCH doesn't exist in BundleVerb which leads to null ref because request is empty.
So substitute it to PUT.

Related issues

Addresses https://microsofthealth.visualstudio.com/Health/_workitems/edit/84461/

Testing

Manually and updated unit tests.

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
  • Tag the PR with Azure API for FHIR if this will release to the managed service
  • Review squash-merge requirements

Semver Change (docs)

Patch

@Ivanidzo4ka Ivanidzo4ka requested a review from a team as a code owner August 20, 2021 01:18
@Ivanidzo4ka Ivanidzo4ka added this to the S69 milestone Aug 20, 2021
@Ivanidzo4ka Ivanidzo4ka added Bug Bug bug bug. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs labels Aug 20, 2021
@CaitlinV39 CaitlinV39 modified the milestones: S69, S70 Aug 23, 2021
resource.FullUrlElement = new FhirUri(_urlResolver.ResolveResourceWrapperUrl(r.Resource, true));
resource.Request = new Bundle.RequestComponent
if (hasVerb)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we throw an error if hasVerb is false, or will be it caught in the switch case below every time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switch statement wouldn't throw exception because it's out parameter and it must be filled with something and for enums it's probably first thing in enum, which is Http.Get.

I'm reluctant to throw, since I'm not sure in which cases we don't have method, so I'll just put creation of response and request under if statement.

@Ivanidzo4ka
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ivanidzo4ka Ivanidzo4ka merged commit 78477e2 into microsoft:main Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Bug Bug bug bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants