Create Lab Test
POST/api/v1/lab-tests
Create a new Lab Test. The system supports two creation modes:
Submitted Test Creation:
- Provide all required fields: sampleReceiptDate, reportIssueDate, reportNumber, originalReportNumber, revisionNumber (non-zero), testProperties, testPropertyResults, and overallResult
- Creates a lab test with "submitted" status
- All provided data is saved
Draft Test Creation:
- Omit any of the required fields above
- Creates a lab test with "draft" status
- The following data is discarded: sampleReceiptDate, reportIssueDate, reportNumber, originalReportNumber, revisionNumber, testProperties, testPropertyResults, overallResult, testPackages, and testReport type attachments
- Non-report attachments (others) are preserved
- Response includes a message indicating which fields were discarded
Request​
Responses​
- 201
- 400
- 401
Lab Test Created Successfully
Bad Request
Unauthorized