Overview
The OrderLabTestCommand initiates a laboratory test order with appropriate clinical context and patient information.
Command Schema
{ "commandId": "uuid", "commandType": "OrderLabTestCommand", "timestamp": "ISO 8601", "data": { "orderId": "string", "patientId": "string", "mrn": "string", "encounterId": "string", "orderingProvider": "string", "tests": [ { "loincCode": "string", "testName": "string", "priority": "STAT | URGENT | ROUTINE" } ], "diagnoses": ["ICD-10 codes"], "clinicalNotes": "string", "collectionDateTime": "ISO 8601" }}Validation Rules
- Ordering provider must be licensed
- Diagnosis required for insurance
- Patient allergies checked (contrast media)
- Duplicate test prevention (< 24 hours)