clqms-be/public/paths/reports.yaml
OpenCode Bot 9946978487 chore: refresh CLQMS backend baseline
Re-synced controllers, configs, libraries, seeds, and docs with the latest API expectations and response helpers.
2026-04-08 16:07:19 +07:00

35 lines
1.0 KiB
YAML
Executable File

/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'