Skip to content

Commit

Permalink
#18 Removed the check for parameters in the FhirController, it should…
Browse files Browse the repository at this point in the history
… be possible to search directly on a Resource
  • Loading branch information
verzada committed Dec 21, 2018
1 parent c5c1459 commit 4115dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<CapabilityStatement xmlns="http://hl7.org/fhir">
<?xml version="1.0" encoding="utf-8"?>
<CapabilityStatement xmlns="http://hl7.org/fhir">
<rest>
<mode value="server"/>
<resource>
Expand Down
1 change: 0 additions & 1 deletion src/FhirStarter.Flare.STU3/Controllers/FhirController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public HttpResponseMessage Read(string type)
{
var service = _handler.FindServiceFromList(_fhirServices, _fhirMockupServices, type);
var parameters = Request.GetSearchParams();
if (!(parameters.Parameters.Count > 0)) return new HttpResponseMessage(HttpStatusCode.ExpectationFailed);
var results = service.Read(parameters);
return SendResponse(results);
}
Expand Down

0 comments on commit 4115dd7

Please sign in to comment.