Create Lab Test
POST/api/v1/lab-tests
Lab Test Creation Modes
Create a new Lab Test. The system supports three creation modes based on provided data:
Submitted Test Creation:
- Provide all required test result fields: sampleReceiptDate, reportIssueDate, reportNumber, testProperties, and overallResult
- Creates a lab test with "submitted" status
- All provided data is saved
New Test Creation:
- Omit test result fields but provide all required fields specified in the Lab Test Form
- Creates a lab test with "new" status
- The following data is discarded: sampleReceiptDate, reportIssueDate, reportNumber, originalReportNumber, revisionNumber, testProperties, overallResult, testPackages, and testReport type attachments
- Non-report attachments are preserved
Draft Test Creation:
- Omit test result fields AND one or more required fields from the Lab Test Form
- Creates a lab test with "draft" status
- The following data is discarded: sampleReceiptDate, reportIssueDate, reportNumber, originalReportNumber, revisionNumber, testProperties, overallResult, testPackages, and testReport type attachments
- Non-report attachments are preserved
Request​
Responses​
- 201
- 400
- 401
Lab Test Created Successfully
Bad Request
Unauthorized