clqms-be/public/paths/reports.yaml

35 lines
1.0 KiB
YAML
Raw Normal View History

/api/report/{orderID}:
get:
tags: [Report]
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'