From 4115dd71049672c60b00b1e562d5f82666a73d4c Mon Sep 17 00:00:00 2001 From: verzada Date: Fri, 21 Dec 2018 23:19:26 +0100 Subject: [PATCH] #18 Removed the check for parameters in the FhirController, it should be possible to search directly on a Resource --- .../Resources/ExampleServiceRest.xml | 3 ++- src/FhirStarter.Flare.STU3/Controllers/FhirController.cs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FHIRStarter.Inferno.Template/Resources/ExampleServiceRest.xml b/src/FHIRStarter.Inferno.Template/Resources/ExampleServiceRest.xml index 63e6457..c98bffd 100644 --- a/src/FHIRStarter.Inferno.Template/Resources/ExampleServiceRest.xml +++ b/src/FHIRStarter.Inferno.Template/Resources/ExampleServiceRest.xml @@ -1,4 +1,5 @@ - + + diff --git a/src/FhirStarter.Flare.STU3/Controllers/FhirController.cs b/src/FhirStarter.Flare.STU3/Controllers/FhirController.cs index 1411d60..afa259b 100644 --- a/src/FhirStarter.Flare.STU3/Controllers/FhirController.cs +++ b/src/FhirStarter.Flare.STU3/Controllers/FhirController.cs @@ -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); }