Skip to content

Process of Adding New Search Parameters? #516

Answered by kennethmyhra
KMCGit asked this question in Q&A
Discussion options

You must be logged in to vote

In Spark you can do this in code in the ConfigureServices() of your Startup.cs file. Use the extension method AddCustomSearchParameters:

public static void AddCustomSearchParameters(this IServiceCollection services, IEnumerable<ModelInfo.SearchParamDefinition> searchParameters)

There is a simpler example using Spark's NuGet packages here: https://github.com/incendilabs/spark-example. You can add the services.AddCustomSearchParameters(...) statement below the AddFhir() statement here: https://github.com/incendilabs/spark-example/blob/2a7c9edc2bfbd74dd65ebe7b5ec5c80a5f3cf127/Start…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kennethmyhra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants