clqms-be/public/paths/reports.yaml

34 lines
1015 B
YAML
Raw Normal View History

/api/reports/{orderID}:
get:
tags: [Reports]
summary: Generate lab report
description: Generate an HTML lab report for a specific order. Returns HTML content that can be viewed in browser or printed to PDF.
security:
- bearerAuth: []
parameters:
- name: orderID
in: path
required: true
schema:
type: integer
description: Internal Order ID
responses:
'200':
description: HTML lab report
content:
text/html:
schema:
type: string
description: HTML content of the lab report
'404':
description: Order or patient not found
content:
application/json:
schema:
$ref: '../components/schemas/common.yaml#/ErrorResponse'
'500':
description: Failed to generate report
content:
application/json:
schema:
$ref: '../components/schemas/common.yaml#/ErrorResponse'