2026-02-16 14:20:52 +07:00
|
|
|
OrderTest:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
2026-03-03 13:51:27 +07:00
|
|
|
InternalOID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Internal order ID
|
2026-02-16 14:20:52 +07:00
|
|
|
OrderID:
|
|
|
|
|
type: string
|
2026-03-03 13:51:27 +07:00
|
|
|
description: Order ID (e.g., 0025030300001)
|
|
|
|
|
PlacerID:
|
|
|
|
|
type: string
|
|
|
|
|
nullable: true
|
|
|
|
|
InternalPID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Patient internal ID
|
|
|
|
|
SiteID:
|
|
|
|
|
type: integer
|
|
|
|
|
PVADTID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Visit ADT ID
|
|
|
|
|
ReqApp:
|
|
|
|
|
type: string
|
|
|
|
|
nullable: true
|
|
|
|
|
Priority:
|
|
|
|
|
type: string
|
|
|
|
|
enum: [R, S, U]
|
|
|
|
|
description: |
|
|
|
|
|
R: Routine
|
|
|
|
|
S: Stat
|
|
|
|
|
U: Urgent
|
|
|
|
|
PriorityLabel:
|
|
|
|
|
type: string
|
|
|
|
|
description: Priority display text
|
|
|
|
|
TrnDate:
|
2026-02-16 14:20:52 +07:00
|
|
|
type: string
|
2026-03-03 13:51:27 +07:00
|
|
|
format: date-time
|
|
|
|
|
description: Transaction/Order date
|
|
|
|
|
EffDate:
|
2026-02-16 14:20:52 +07:00
|
|
|
type: string
|
2026-03-03 13:51:27 +07:00
|
|
|
format: date-time
|
|
|
|
|
description: Effective date
|
|
|
|
|
CreateDate:
|
2026-02-16 14:20:52 +07:00
|
|
|
type: string
|
|
|
|
|
format: date-time
|
|
|
|
|
OrderStatus:
|
|
|
|
|
type: string
|
|
|
|
|
enum: [ORD, SCH, ANA, VER, REV, REP]
|
|
|
|
|
description: |
|
|
|
|
|
ORD: Ordered
|
|
|
|
|
SCH: Scheduled
|
|
|
|
|
ANA: Analysis
|
|
|
|
|
VER: Verified
|
|
|
|
|
REV: Reviewed
|
|
|
|
|
REP: Reported
|
|
|
|
|
OrderStatusLabel:
|
|
|
|
|
type: string
|
|
|
|
|
description: Order status display text
|
2026-03-03 13:51:27 +07:00
|
|
|
Specimens:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
$ref: '#/OrderSpecimen'
|
|
|
|
|
description: Associated specimens for this order
|
|
|
|
|
Tests:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
$ref: '#/OrderTestItem'
|
|
|
|
|
description: Test results (patres) for this order
|
|
|
|
|
|
|
|
|
|
OrderSpecimen:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
InternalSID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Internal specimen ID
|
|
|
|
|
SID:
|
2026-02-16 14:20:52 +07:00
|
|
|
type: string
|
2026-03-03 13:51:27 +07:00
|
|
|
description: Specimen ID (e.g., 0025030300001-S01)
|
2026-02-16 14:20:52 +07:00
|
|
|
SiteID:
|
|
|
|
|
type: integer
|
2026-03-03 13:51:27 +07:00
|
|
|
OrderID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Reference to internal order ID
|
|
|
|
|
ConDefID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Container Definition ID
|
|
|
|
|
nullable: true
|
|
|
|
|
ConCode:
|
|
|
|
|
type: string
|
|
|
|
|
description: Container code
|
|
|
|
|
nullable: true
|
|
|
|
|
ConName:
|
|
|
|
|
type: string
|
|
|
|
|
description: Container name
|
|
|
|
|
nullable: true
|
|
|
|
|
Qty:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Quantity
|
|
|
|
|
Unit:
|
|
|
|
|
type: string
|
|
|
|
|
description: Unit of measurement
|
|
|
|
|
Status:
|
|
|
|
|
type: string
|
|
|
|
|
enum: [PENDING, COLLECTED, RECEIVED, PREPARED, REJECTED]
|
|
|
|
|
description: Current specimen status
|
|
|
|
|
GenerateBy:
|
|
|
|
|
type: string
|
|
|
|
|
description: Source that generated this specimen
|
|
|
|
|
CreateDate:
|
|
|
|
|
type: string
|
|
|
|
|
format: date-time
|
|
|
|
|
|
|
|
|
|
OrderTestItem:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
ResultID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Unique result ID
|
|
|
|
|
OrderID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Reference to internal order ID
|
|
|
|
|
InternalSID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Reference to specimen
|
|
|
|
|
nullable: true
|
|
|
|
|
TestSiteID:
|
|
|
|
|
type: integer
|
|
|
|
|
description: Test definition site ID
|
|
|
|
|
TestSiteCode:
|
|
|
|
|
type: string
|
|
|
|
|
description: Test code
|
|
|
|
|
TestSiteName:
|
2026-02-16 14:20:52 +07:00
|
|
|
type: string
|
2026-03-03 13:51:27 +07:00
|
|
|
description: Test name
|
|
|
|
|
nullable: true
|
|
|
|
|
SID:
|
|
|
|
|
type: string
|
|
|
|
|
description: Order ID reference
|
|
|
|
|
SampleID:
|
|
|
|
|
type: string
|
|
|
|
|
description: Sample ID (same as OrderID)
|
|
|
|
|
Result:
|
|
|
|
|
type: string
|
|
|
|
|
description: Test result value
|
|
|
|
|
nullable: true
|
|
|
|
|
ResultDateTime:
|
|
|
|
|
type: string
|
|
|
|
|
format: date-time
|
|
|
|
|
description: Result timestamp
|
|
|
|
|
CreateDate:
|
|
|
|
|
type: string
|
|
|
|
|
format: date-time
|
2026-02-16 14:20:52 +07:00
|
|
|
|
|
|
|
|
OrderItem:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
id:
|
|
|
|
|
type: integer
|
|
|
|
|
OrderID:
|
|
|
|
|
type: string
|
|
|
|
|
TestID:
|
|
|
|
|
type: integer
|
|
|
|
|
SpecimenID:
|
|
|
|
|
type: string
|
|
|
|
|
Status:
|
|
|
|
|
type: string
|