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

Profile Extensions Not Being Validated #4695

Open
edwinnswift opened this issue Oct 23, 2024 · 2 comments
Open

Profile Extensions Not Being Validated #4695

edwinnswift opened this issue Oct 23, 2024 · 2 comments
Labels
Question Issue is a question? Review Tag for PM/Dev Review

Comments

@edwinnswift
Copy link

I have a profile on Practitioner that includes extension definitions as follows

Image

The profile structure definition has been uploaded to the server, as well as each extension structure definition. I also have a slice on identifier as illustrated above. If I try to create the Practitioner resource without the required identifier I get the expected operation outcome. However, if I make one of the extensions mandatory, I do not get the same result. Furthermore, if I attempt to create the extension with a type other than what is defined (e.g. valueString vs valueReference) I do not receive a negative outcome.

Clearly the profile is defined correctly since the identifier is being validated. Am I missing something with the extensions?

@edwinnswift edwinnswift added the Question Issue is a question? label Oct 23, 2024
@EXPEkesheth EXPEkesheth added the Review Tag for PM/Dev Review label Nov 4, 2024
@EXPEkesheth
Copy link
Collaborator

@edwinnswift, could you please provide steps to reproduce the issue? We would also like to understand how you are using the $validate operation. For more information on the validation operation, please see the documentation link.

@edwinnswift
Copy link
Author

edwinnswift commented Nov 5, 2024

Thanks for the follow up @EXPEkesheth , I actually got this working. One of the extensions tied to the profile had a url change after the extension was applied to the profile. I updated the profile with the proper definition and it started validating. I would have expected an outcome that the structure definition could not be found, but did not get one.

As for how I am using $validate, I am passing the x-ms-profile-validation header on create and update. Seems to be working as expected now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Issue is a question? Review Tag for PM/Dev Review
Projects
None yet
Development

No branches or pull requests

2 participants