title: HL7 FHIR routing with advanced search and modifiers in .Net
body: <p>I'm currently trying to wrap my head around routing with FHIR search.</p>
  
  <p>In the paragraph 2.1.1.48 String in the webpage <a href="https://www.hl7.org/fhir/search.html" rel="nofollow">https://www.hl7.org/fhir/search.html</a>, there's a section about how you can use modifiers to return results that includes or matches the supplied parameter value.</p>
  
  <p>Ex:</p>
  
  <pre><code>[base]/Patient?name=eve
  [base]/Patient?name:contains=eve    
  [base]/Patient?name:exact=Eve
  </code></pre>
  
  <p>I've never seen such URLs with these custom modifiers "?name:exact/contains" being accepted in f.ex. a web api service out of the box. </p>
  
  <p>As far as I can see, it is not allowed to write something in the lines of </p>
  
  <pre><code>[Route("{type}/name:contains/{name}")] 
  public HttpResponseMessage GetContainsName(string name){
  
  //do something 
  }
  
  [Route("{type}/name:exact/{name}")]
  public HttpResponseMessage GetExactName(string name) {
  //do something else
  }
  </code></pre>