# Profile - DiagnosticReport - STARS Implementation Guide v0.5.1

* [**Table of Contents**](toc.md)
* **Profile - DiagnosticReport**

## Profile - DiagnosticReport

### Overview

Within FHIR receiving results from a testing laboratory is known as a DiagnosticReport. Changes have been made to the standard R5 DiagnosticReport Profile to better accomodate our individual situation and testing arrangements. You can view the details regarding the customised profile here [CsiroStarsDiagnosticReportProfile](StructureDefinition-csiro-stars-diagnosticreport.md).

### DiagnosticReport CSV Model

List of fields that exist in a DiagnosticReport CSV file.
### Field List for CSV model

Below is the field list as specified for the CSV file format. All **required** fields must be present within each row of the file.

#### Required Fields

| | | |
| :--- | :--- | :--- |
| messageheader_event | Message type: Must be "ServiceRequest" for sending specimen | ValueSet:[MessageTypeValueSet](ValueSet-message-type-value-set.md) |
| messageheader_receiver | receiver node | node username |
| messageheader_sender | sender node | node username or senders username |
| messageheader_author_identifier |   | stars username |
| messageheader_author_fullname |   | Free-text |
| messageheader_author_email |   | Free-text |
| diagnosticreport_identifier |   | Free-text |
| diagnosticreport_requisition | Which submissions or job requisitions the report relates to. | Free-text |
| diagnosticreport_status |   | ValueSet: [] |
| diagnosticreport_issued |   | DateTime |
| diagnosticreport_resultsinterpreter_fullname |   | Free-text |
| observation_analysis_identifier |   | ValueSet:[AnalysisValueSet](ValueSet-analysis-value-set.md) |
| observation_sender_identifier | Senders sample reference. ie the lab that performed the testing. | Free-text |
| observation_status |   | ValueSet: [] |
| observation_code |   | ValueSet: [] |

#### Optional Fields

| | | |
| :--- | :--- | :--- |
| messageheader_id | Message Identifier: UUID | Free-text (UUID) |
| diagnosticreport_media_title | Filename of the attached report. | Free-text |
| diagnosticreport_media_docstatus | Status of the attached report. | ValueSet:[CompositionStatus](http://hl7.org/fhir/ValueSet/composition-status) |
| diagnosticreport_conclusion |   | Free-text |
| observation_receiver_identifier | Receivers sample reference. ie the lab that submitted the samples for testing. | Free-text |
| observation_issued | Timestamp when the test was authorised | DateTime |
| observation_effective | Timestamp when the test was completed | DateTime |
| observation_dataabsentreason | "Reason for the test not being complted. "Insufficient sample size received to complete the test" | Free-text |
| observation_interpretation |   | ValueSet: [] |
| observation_note |   | Free-text |
| observation_value | Result value. Either string or decimal | Free-text |
| observation_valuequantity_unit | Display name of the unit's code. eg "Cycle Threshold". If value is decimal then unit may be specified | ValueSet:[UcumValueSet](https://build.fhir.org/valueset-ucum-units.html) |
| observation_valuequantity_comparator | If value is decimal then comparator may be specified | ValueSet:[ComparatorValueSet](http://hl7.org/fhir/R5/valueset-quantity-comparator.html) |

### Mapping DiagnosticReport from Legacy ResultSend

| | |
| :--- | :--- |
| messageheader_id | MESSAGE.STARS_ID |
| messageheader_event | MESSAGE.MESSAGE_TYPE |
| messageheader_receiver | MESSAGE.DEST_NODE |
| messageheader_sender | MESSAGE.SOURCE_NODE |
| messageheader_author_identifier | MESSAGE.USER_ID |
| messageheader_author_fullname | (new) |
| messageheader_author_email | MESSAGE.EMAIL |
| diagnosticreport_identifier |   |
| diagnosticreport_requisition | JOB.CUST_JOB_REF |
| diagnosticreport_status |   |
| diagnosticreport_issued | MESSAGE.DATE_SENT |
| diagnosticreport_resultsinterpreter_fullname | JOB.REPORTED_BY |
| diagnosticreport_media_title | OBJECT.FILE_NAME |
| diagnosticreport_media_docstatus | (new) |
| diagnosticreport_conclusion | JOB.SUMMARY |
| observation_analysis_identifier | RESULT.TEST_ORDER_NUMBER |
| observation_sender_identifier | SAMPLE.TESTING_JOB_SAMP_REF |
| observation_receiver_identifier | SAMPLE.CUST_JOB_SAMP_REF |
| observation_status | (new) |
| observation_issued | (new) |
| observation_code | RESULT.TEST_REF |
| observation_effective | TEST.DATE_TESTED |
| observation_dataabsentreason | (new) |
| observation_interpretation | (new) |
| observation_note | TEST.TEST_SUMMARY |
| observation_value | RESULT.VALUE |
| observation_valuequantity_unit | (new) |
| observation_valuequantity_comparator | (new) |

### DiagnosticReport Basic Model (Intermediary Format)

This data structure is used internally as an intermediary format when converting between CSV and FHIR messages and may help to understand the structure of the complete FHIR Profiles. See the [Artifact Profile List](artifacts.md#structures-resource-profiles) for more detailed information.

DiagnosticReport basic model used to convert between CSV and FHIR.

