/api/calc/{codeOrName}: post: tags: [Calculation] summary: Evaluate a configured calculation by test code or name and return the numeric result only. security: [] parameters: - name: codeOrName in: path required: true schema: type: string description: TestSiteCode or TestSiteName of the calculated test (case-insensitive). requestBody: required: true content: application/json: schema: type: object description: Key-value pairs where keys match member tests used in the formula. additionalProperties: type: number example: TBIL: 5 DBIL: 3 responses: '200': description: Returns a single key/value pair with the canonical TestSiteCode or an empty object when the calculation is incomplete or missing. content: application/json: schema: type: object examples: success: value: IBIL: 2.0 incomplete: value: {}