DiagnosticReport

The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. https://hl7.org/fhir/R4/diagnosticreport.html

This endpoint implements the US Core DiagnosticReport Profile for Report. The following USCDI data elements are retrievable from this endpoint:

Clinical Notes:
- Imaging Narrative
- Laboratory Report Narrative
- Pathology Report Narrative
- Procedure Note

Laboratory:
- Tests
- Values/Results

get
/DiagnosticReport/{id}

DiagnosticReport read

Read a DiagnosticReport resource

Path Parameters

id required
string
The unique identifier for the DiagnosticReport

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The identifier of the Diagnostic Report.

text
json

Text summary of the Diagnostic Report, for human interpretation.

Click to view child attributes
status

All reports returned from this endpoint will show a status of generated.

div

Limited xhtml content that contains the human readable text of the Diagnostic Report.

identifier
array[json]

Business identifier for report.

Click to view child attributes
id
string

The identifier of the Diagnostic Report.

status
enum [ final | entered-in-error ]

Status of the Diagnostic Report see https://hl7.org/fhir/R4/valueset-diagnostic-report-status.html. Currently Canvas only supports two types of statuses.

category
array[json]

Service category https://hl7.org/fhir/R4/valueset-diagnostic-service-sections.html. Use this attribute to help distinguish the type of report in Canvas.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/v2-0074
  • http://loinc.org
code
string

The code of the category.

Value Options Supported:
  • LAB
  • LP29684-5
  • LP7839-6
  • LP29708-2
display
string

The display name of the coding.

Value Options Supported:
  • Laboratory
  • Radiology
  • Cardiology
  • Pathology
code
json

Name/Code for this diagnostic report.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

code
string

The code of the category.

display
string

The display name of the coding.

text
string

Plain text representation of the Lab or Imaging Report.

subject
json

The subject of the report.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

encounter
json

Health care event when test ordered or reviewed.

Lab and Imaging Reports in Canvas will have an Encounter associated with the payload if there has been a Lab Results Review, Imaging Report Review, or a POC Lab Test command committed in a note on the patient’s chart.

Click to view child attributes
reference
string

The reference string of the Encounter in the format of "Encounter/912542cf-3bfb-4609-99f6-26ce94feb70d".

id
string

Unique identifier of the Encounter.

effectiveDateTime
datetime | date

Clinically relevant date/time for report.

issued
datetime

DateTime this version was made.

performer
array[json]

Responsible Diagnostic Service. In Canvas this will be the Practitioner who is assigned to the Report.

Click to view child attributes
reference
string

The reference string of the practitioner in the format of "Practitioner/4150cd20de8a470aa570a852859ac87e".

type
string

Type the reference refers to (e.g. “Practitioner”).

result
array[json]

Observations associated with the Diagnostic Report.

Click to view child attributes
reference
string

The reference string of the observation in the format of "Observation/dcc3239b-ffc9-4d02-9cb6-a486bb9d406e".

type
string

Type the reference refers to (e.g. “Observation”).

presentedForm
array[json]

Entire report as issued. There is also a DocumentReference resource specifically for this Report PDF being created.

Note: There is a temporary extension that will contain the presigned URL for the Attachment; this will be provided while we migrate to static URLs that will require bearer authentication to retrieve attachment files. Use this extension for backward-compatible URLs until the migration is completed.

Click to view child attributes
url
string

Uri where the data can be found.

extension
json

Extension for backward-compatible URLs

Responses

200 OK
Request was successful.

Errors

401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.

Query Parameters

_id
string

A Canvas-issued unique identifier for a specific diagnostic report.

category
string

The DiagnosticReport category. Filters by the code and/or system under category.coding attribute. You can search by just the code value or you can search by the system and code in the format system|code.

Search Values Supported:
  • http://terminology.hl7.org/CodeSystem/v2-0074
  • http://loinc.org
code
string

The DiagnosticReport code. Filters by the code and/or system under code.coding attribute. You can search by just the code value or you can search by the system and code in the format system|code.

date
date

Filter by effectiveDateTime. See Date Filtering for more information.

patient
string

The patient reference associated to the Diagnostic Report in the format Patient/a39cafb9d1b445be95a2e2548e12a787.

Response Payload Attributes

resourceType
string

The FHIR Resource name.

type
string

This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .

total
integer

The number of resources that match the search parameter.

link
array[json]

Attributes relevant to pagination, see our Pagination page for more detail.

Click to view child attributes
relation
enum [self|first|next|last]

The relation of the page search

url

The search url for the specific relation

entry
array[json]

The results bundle that lists out each object returned in the search

Click to view child attributes
resource
json

The attributes specific to the resource type, see the Attributes section below

Attributes

resourceType
string

The FHIR Resource name.

id
string

The identifier of the Diagnostic Report.

text
json

Text summary of the Diagnostic Report, for human interpretation.

Click to view child attributes
status

All reports returned from this endpoint will show a status of generated.

div

Limited xhtml content that contains the human readable text of the Diagnostic Report.

identifier
array[json]

Business identifier for report.

Click to view child attributes
id
string

The identifier of the Diagnostic Report.

status
enum [ final | entered-in-error ]

Status of the Diagnostic Report see https://hl7.org/fhir/R4/valueset-diagnostic-report-status.html. Currently Canvas only supports two types of statuses.

category
array[json]

Service category https://hl7.org/fhir/R4/valueset-diagnostic-service-sections.html. Use this attribute to help distinguish the type of report in Canvas.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/v2-0074
  • http://loinc.org
code
string

The code of the category.

Value Options Supported:
  • LAB
  • LP29684-5
  • LP7839-6
  • LP29708-2
display
string

The display name of the coding.

Value Options Supported:
  • Laboratory
  • Radiology
  • Cardiology
  • Pathology
code
json

Name/Code for this diagnostic report.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

code
string

The code of the category.

display
string

The display name of the coding.

text
string

Plain text representation of the Lab or Imaging Report.

subject
json

The subject of the report.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

encounter
json

Health care event when test ordered or reviewed.

Lab and Imaging Reports in Canvas will have an Encounter associated with the payload if there has been a Lab Results Review, Imaging Report Review, or a POC Lab Test command committed in a note on the patient’s chart.

Click to view child attributes
reference
string

The reference string of the Encounter in the format of "Encounter/912542cf-3bfb-4609-99f6-26ce94feb70d".

id
string

Unique identifier of the Encounter.

effectiveDateTime
datetime | date

Clinically relevant date/time for report.

issued
datetime

DateTime this version was made.

performer
array[json]

Responsible Diagnostic Service. In Canvas this will be the Practitioner who is assigned to the Report.

Click to view child attributes
reference
string

The reference string of the practitioner in the format of "Practitioner/4150cd20de8a470aa570a852859ac87e".

type
string

Type the reference refers to (e.g. “Practitioner”).

result
array[json]

Observations associated with the Diagnostic Report.

Click to view child attributes
reference
string

The reference string of the observation in the format of "Observation/dcc3239b-ffc9-4d02-9cb6-a486bb9d406e".

type
string

Type the reference refers to (e.g. “Observation”).

presentedForm
array[json]

Entire report as issued. There is also a DocumentReference resource specifically for this Report PDF being created.

Note: There is a temporary extension that will contain the presigned URL for the Attachment; this will be provided while we migrate to static URLs that will require bearer authentication to retrieve attachment files. Use this extension for backward-compatible URLs until the migration is completed.

Click to view child attributes
url
string

Uri where the data can be found.

extension
json

Extension for backward-compatible URLs

Responses

200 OK
Request was successful.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/DiagnosticReport/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DiagnosticReport/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "DiagnosticReport",
        "id": "9b90621b-059f-4f6e-9ef5-58171098e424",
        "status": "final",
        "category":
        [
            {
                "coding":
                [
                    {
                        "system": "http://loinc.org",
                        "code": "LP29684-5",
                        "display": "Radiology"
                    }
                ]
            }
        ],
        "code":
        {
            "coding":
            [
                {
                    "system": "http://www.ama-assn.org/go/cpt",
                    "code": "73562",
                    "display": "XRAY, knee; 3 views"
                }
            ]
        },
        "subject":
        {
            "reference": "Patient/a1197fa9e65b4a5195af15e0234f61c2",
            "type": "Patient"
        },
        "encounter":
        {
            "reference": "Encounter/6a077e6f-ead2-4af7-803d-0a203bedfb1c",
            "type": "Encounter"
        },
        "effectiveDateTime": "2023-08-22",
        "issued": "2023-08-22T21:35:01.909441+00:00",
        "performer":
        [
            {
                "reference": "Practitioner/883f7147517e444fb746cdac3860b0dc",
                "type": "Practitioner"
            }
        ],
        "presentedForm":
        [
            {
                "extension": [
                    {
                        "url": "http://schemas.canvasmedical.com/fhir/extensions/deprecated-url",
                        "valueUri": "https://canvas-client-media.s3.amazonaws.com/local/Screenshot_2024-02-21_at_15.26.42.pdf?AWSAccessKeyId=AKIAQB7SIDR7C2IYANB6&Signature=Ns%2BLQ5z5XXWH4WMOXWczuMQ7s0A%3D&Expires=1714138104"
                    }
                ],
                "url": "https://canvas-client-media.s3.amazonaws.com/instance/Imaging_Report.pdf?AWSAccessKeyId=xxxx&Signature=xxxx&Expires=1675179226"
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "not-found",
          "details": {
            "text": "Unknown DiagnosticReport resource '9b814d81-fb56-456b-a46d-c67fdaaec2ac'"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/DiagnosticReport?patient=Patient/ca52f2b76011429d8a0e4aa2b56b18bc&code=73562&date=ge2023-09-12' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DiagnosticReport?patient=Patient/ca52f2b76011429d8a0e4aa2b56b18bc&code=73562&date=ge2023-09-12"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Bundle",
        "type": "searchset",
        "total": 2,
        "link":
        [
            {
                "relation": "self",
                "url": "/DiagnosticReport?patient=Patient/ca52f2b76011429d8a0e4aa2b56b18bc&code=73562&date=ge2023-09-12&_count=10&_offset=0"
            },
            {
                "relation": "first",
                "url": "/DiagnosticReport?patient=Patient/ca52f2b76011429d8a0e4aa2b56b18bc&code=73562&date=ge2023-09-12&_count=10&_offset=0"
            },
            {
                "relation": "last",
                "url": "/DiagnosticReport?patient=Patient/ca52f2b76011429d8a0e4aa2b56b18bc&code=73562&date=ge2023-09-12&_count=10&_offset=0"
            }
        ],
        "entry":
        [
            {
                "resource":
                {
                    "resourceType": "DiagnosticReport",
                    "id": "197d1b7a-374e-4aa8-82b2-6960a62ecf7a",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                                    "code": "LAB",
                                    "display": "Laboratory"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "6690-2",
                                "display": "WBC"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "785-6",
                                "display": "MCH"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "5905-5",
                                "display": "Monocytes"
                            }
                        ],
                        "text": "Complete Blood Count (Cbc) With Differential"
                    },
                    "subject": {
                        "reference": "Patient/ca52f2b76011429d8a0e4aa2b56b18bc",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2022-04-01T07:00:00+00:00",
                    "issued": "2022-04-15T15:24:22.522951+00:00",
                    "performer": [
                        {
                            "reference": "Practitioner/4150cd20de8a470aa570a852859ac87e",
                            "type": "Practitioner"
                        }
                    ],
                    "result": [
                        {
                            "reference": "Observation/422f9f0f-151a-4488-bcad-ab4b0c3967da",
                            "type": "Observation"
                        }
                    ],
                    "presentedForm": [
                        {
                            "extension": [
                                {
                                    "url": "http://schemas.canvasmedical.com/fhir/extensions/deprecated-url",
                                    "valueUri": "https://canvas-client-media.s3.amazonaws.com/local/Screenshot_2024-02-21_at_15.26.42.pdf?AWSAccessKeyId=AKIAQB7SIDR7C2IYANB6&Signature=Ns%2BLQ5z5XXWH4WMOXWczuMQ7s0A%3D&Expires=1714138104"
                                }
                            ],
                            "url": "https://canvas-client-media.s3.amazonaws.com/instance/20220414_180403_74.pdf?AWSAccessKeyId=xxx&Signature=xxx&Expires=1708462267"
                        }
                    ]
                }
            },
            {
                "resource":
                {
                    "resourceType": "DiagnosticReport",
                    "id": "9b814d81-fb56-456b-a46d-c67fdaaec2ad",
                    "status": "final",
                    "category":
                    [
                        {
                            "coding":
                            [
                                {
                                    "system": "http://loinc.org",
                                    "code": "LP29684-5",
                                    "display": "Radiology"
                                }
                            ]
                        }
                    ],
                    "code":
                    {
                        "coding":
                        [
                            {
                                "system": "http://www.ama-assn.org/go/cpt",
                                "code": "73562",
                                "display": "XRAY, knee; 3 views"
                            }
                        ]
                    },
                    "subject":
                    {
                        "reference": "Patient/ca52f2b76011429d8a0e4aa2b56b18bc",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2023-09-15",
                    "issued": "2023-09-15T19:52:56.711871+00:00",
                    "performer":
                    [
                        {
                            "reference": "Practitioner/3640cd20de8a470aa570a852859ac87e",
                            "type": "Practitioner"
                        }
                    ]
                }
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "invalid",
          "details": {
            "text": "Bad request"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }