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

Added Status and $Status operation to CapabilityStatement #3381

Merged
merged 12 commits into from
Jul 10, 2023

Conversation

PTaladay
Copy link
Collaborator

@PTaladay PTaladay commented Jul 6, 2023

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

  • Update the title of the PR to be succinct and less than 65 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, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

…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])'
@PTaladay PTaladay added Enhancement Enhancement on existing functionality. 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 Jul 6, 2023
@PTaladay PTaladay added this to the S118 milestone Jul 6, 2023
@PTaladay PTaladay requested a review from a team as a code owner July 6, 2023 00:02
Copy link
Contributor

@abiisnn abiisnn left a 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?

@@ -65,6 +65,8 @@ internal static class RouteNames

internal const string PurgeHistoryDefinition = "PurgeHistoryDefinition";

internal const string SearchParameterStatusOperationDefinition = "SearchParameterStatusOperationDefinition";
Copy link
Contributor

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).

Copy link
Collaborator Author

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.

@PTaladay PTaladay merged commit a0bd70f into main Jul 10, 2023
@PTaladay PTaladay deleted the personal/patalada/104442 branch July 10, 2023 21:42
Comment on lines +671 to +673
var task = Task.Run(() => builder.PopulateDefaultResourceInteractions()
.SyncSearchParametersAsync(CancellationToken.None));
task.Wait();
Copy link
Member

Choose a reason for hiding this comment

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

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 Enhancement Enhancement on existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants