-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added Status and $Status operation to CapabilityStatement #3381
Conversation
…this exception Hl7.Fhir.ElementModel.StructuralTypeException: 'Type checking the data: Choice element 'value' is not suffixed with a type. (at CapabilityStatement.rest[0].resource[0].searchParam[0].extension[0].value[0])'
…stats for search param.
…n the capability statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍒
Do you think you can add a test to make sure it's called correctly?
src/Microsoft.Health.Fhir.Core/Features/Conformance/CapabilityStatementBuilder.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Shared.Api/Controllers/OperationDefinitionController.cs
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Core/Data/OperationDefinition/search-parameter-status.json
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Shared.Core.UnitTests/Features/Conformance/ConformanceBuilderTests.cs
Show resolved
Hide resolved
@@ -65,6 +65,8 @@ internal static class RouteNames | |||
|
|||
internal const string PurgeHistoryDefinition = "PurgeHistoryDefinition"; | |||
|
|||
internal const string SearchParameterStatusOperationDefinition = "SearchParameterStatusOperationDefinition"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Low priority: You can replace the static string with nameof(SearchParameterStatusOperationDefinition).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add that as a fix in another PR.
var task = Task.Run(() => builder.PopulateDefaultResourceInteractions() | ||
.SyncSearchParametersAsync(CancellationToken.None)); | ||
task.Wait(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using: https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.runsynchronously?view=net-7.0 here?
Description
Updated capability statement to display search parameter status in the documentation field. $status operation is also displayed only when feature flag is enabled.
I used the documentation field because the firely sdk doesn't allow extending on the search param component or any component that relates to the search parameter.
Related issues
Addresses [issue AB#10442].
Testing
Ran through running the metadata endpoint with the different configuration options.
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)