# DiagnosticReport

Source: https://www.flexpa.com/docs/fhir/diagnostic-report
Description: DiagnosticReport is a clinical FHIR Resource that represents the results of a diagnostic test ordered by or performed by a provider.

GET `https://api.flexpa.com/fhir/DiagnosticReport`

* [DiagnosticReport](https://www.hl7.org/fhir/DiagnosticReport.html) is a base FHIR Resource ( [JSON example](https://www.hl7.org/fhir/DiagnosticReport-example.json))
* Commonly available via:
  * [US Core DiagnosticReport Profile for Laboratory Results Reporting](https://build.fhir.org/ig/HL7/US-Core/StructureDefinition-us-core-diagnosticreport-lab.html)
  * [US Core DiagnosticReport Profile for Report and Note Exchange](https://build.fhir.org/ig/HL7/US-Core/StructureDefinition-us-core-diagnosticreport-note.html)

**DiagnosticReport** is a clinical FHIR Resource that represents the results of a diagnostic test ordered by or performed by a provider. This resource is most commonly used to represent laboratory results, but can be used for a wider variety of diagnostic tests, such as radiology interpretations.

DiagnosticReport is commonly used with [Observation](https://www.flexpa.com/docs/fhir/observation) to represent the results of a diagnostic test.

While some payers may make this information available, many do not have this data unless it is submitted to the payer by providers for quality measures or other provider/payer data exchange programs, as it is not included with or derived from core claims generation.

## Search parameters
The full list of search parameters can be found [here](http://hl7.org/FHIR/diagnosticreport.html#search). Some of the most important are:

**Parameters**

- `patient` (string):
The ID of the patient that the diagnostic report was created for. We recommend using this search parameter along with the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters)

- `category` (string):
The category of the diagnostic report.

- `date` (string):
The date range over which the report is issued.

## Sample request

**Note:**
While some servers may support a resource-level search without any parameters, not all do. We recommend using the format below with the patient ID via the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters) as a search parameter.

This is a sample request using `curl`

```shell
ACCESS_TOKEN=patient-access-token

curl "https://api.flexpa.com/fhir/DiagnosticReport?patient=$PATIENT_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

## Sample response

This is a sample response from Anthem (CareEvolution) using Flexpa API in [test mode](https://www.flexpa.com/docs/test-mode#health-insurers)
