public async Task <IActionResult> Search() { var request = FhirRequest.Create(null, ResourceType.DocumentReference, null, Request, RequestingAsid()); var result = await _nrlsSearch.Find(request); return(Ok(result)); }
public async Task <IActionResult> Search() { var request = FhirRequest.Create(null, ResourceType.DocumentReference, null, Request, RequestingAsid()); var result = await _nrlsSearch.Find <DocumentReference>(request); if (result.ResourceType == ResourceType.OperationOutcome) { return(NotFound(result)); } return(Ok(result)); }