> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connectivehealth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DiagnosticReport

> The FHIR DiagnosticReport resource as produced by Connective Health

[FHIR R4 DiagnosticReport](https://www.hl7.org/fhir/R4/diagnosticreport.html) ·
[US Core DiagnosticReport (Report and Note)](https://hl7.org/fhir/us/core/STU9/StructureDefinition-us-core-diagnosticreport-note.html)

<Info>
  This resource is produced for the [Patient Everything](/fhir/patient-everything-bundle) and
  [Patient Summary](/fhir/patient-summary-bundle) bundles, where it represents imaging and other non-laboratory
  diagnostic results. Laboratory results are published as standalone
  [Observation](/fhir/resources/observation#usage-1-laboratory-results) resources instead. It is not produced for
  [Bulk Medication History](/fhir/bulk-medication-history-bundle).
</Info>

# Stable ID

The `id` is derived from the patient, the report date, the report text, the panel code, the diagnostic type, the
result value, the unit, and the reference range (low, high, and text).

# Fields

| Field               | Cardinality | Notes                                                                                                                                                                                                                                                  |
| ------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `meta.profile`      | 1..1        | Always set to the US Core DiagnosticReport (Report and Note) profile URL.                                                                                                                                                                              |
| `status`            | 1..1        | Always `final`.                                                                                                                                                                                                                                        |
| `subject`           | 1..1        | Reference to the [Patient](/fhir/resources/patient).                                                                                                                                                                                                   |
| `code`              | 1..1        | A single coding for what was performed, taken from the source's panel code.                                                                                                                                                                            |
| `category`          | 0..1        | A [LOINC](http://loinc.org) diagnostic service section derived from the source diagnostic type -- see [Categories](#categories).                                                                                                                       |
| `effectiveDateTime` | 1..1        | The report date.                                                                                                                                                                                                                                       |
| `result`            | 0..\*       | References to the report's findings, published as [Observation](/fhir/resources/observation#usage-3-diagnostic-report-findings) resources **contained** inside this report. Empty when the source carries neither a discrete value nor narrative text. |
| `performer`         | 0..1        | Contained [PractitionerRole](/fhir/resources/practitioner-role) built from the report's provider and facility. Omitted when neither is known.                                                                                                          |

<Note>
  `issued`, `conclusion`, `presentedForm`, `encounter`, and `imagingStudy` are not populated. The narrative report
  text is published as the `valueString` of a contained `Observation` rather than as `conclusion` or
  `presentedForm`.
</Note>

<Warning>
  Reports with no diagnostic type are **excluded** from both bundles, since the type is what determines
  `category`.
</Warning>

# Categories

`category` is resolved from the source diagnostic type to a LOINC diagnostic service section code:

| Category                                       | LOINC code   |
| ---------------------------------------------- | ------------ |
| Cardiac procedures                             | `LP200320-2` |
| Cardiac ultrasound                             | `LP29672-0`  |
| Cytology                                       | `LP7789-3`   |
| Dental                                         | `LP31759-1`  |
| Gastroenterology                               | `LP29710-8`  |
| General EKG                                    | `LP7793-5`   |
| Neurology                                      | `LP201883-8` |
| Ophthalmology and Optometry                    | `LP7797-6`   |
| Pathology                                      | `LP7839-6`   |
| Radiology                                      | `LP29684-5`  |
| Respiratory measures and Ventilator management | `LP7840-4`   |
| Ultrasound                                     | `LP7853-7`   |

If a diagnostic type cannot be matched to one of these categories, the report is still published but `category` is
omitted.
