Custom standard search parameters

Hi,

I would like to know what the FHIR standard says about defining custom standard parameters (https://www.hl7.org/fhir/search.html#standard). Lets say I want a search parameter mystandardparameter which is a search parameter which applies to all searches on my server. Should I use and underscore ("") or just name it mystandardparameter? Without the underscore it seems not to be consistent which how the standard parameters defined by FHIR are named and also it could potentially collide with domain resource fields. On the other hand this example seems to define custom standard parameters with names stateid and count: https://www.hl7.org/fhir/http.html#paging. So which way should I go?

Best regards, Allan

We don’t make any rules about this. FHIR defines infrastructural search parameters with _ at the start to ensure that they don’t clash with resource specific search parameters. In principle, following the same pattern and prefixing your parameters with _ will just reduce the likelihood of a clash. If you use some other pattern - e.g. starting with x- - then there’ll never be a clash because we’ll never start with x-

Thank you for the prompt answer!