# Create diagnostic result Creates a new Diagnostic Result record. Diagnostic Result resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/diagnostic-result Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `animalId` (string, required) Animal (patient) identifier. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string) Related consultation identifier. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string) Owner/client contact identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `diagnosticRequestId` (string, required) Identifier of the originating diagnostic request/order. Example: "123e4567-e89b-12d3-a456-426614174000" - `diagnosticResultId` (string, required) Canonical identifier for the diagnostic result. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object) Vendor- or practice-specific extensions. - `externalLink` (string) External URL to full report or lab portal, if available. - `isActive` (boolean, required) Whether this diagnostic result is active/valid. - `items` (array) Individual diagnostic result items (e.g., analytes, findings). - `items.class` (string) Classification of the diagnostic item (e.g., lab, imaging). - `items.code` (object) Coded representation of the diagnostic item. - `items.code.code` (string, required) Code value - `items.code.system` (string, required) Code system URI - `items.code.display` (string) Human-readable display - `items.createdAt` (string) Timestamp when this diagnostic item was created. Example: "2025-01-01T00:00:00.000Z" - `items.diagnosticDefinitionId` (string) Reference to the diagnostic definition/catalog entry. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.diagnosticItemId` (string, required) Canonical identifier for this diagnostic item within the request. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.isActive` (boolean) Whether this diagnostic item is currently active. - `items.name` (string) Human-readable name of the diagnostic item. - `items.productId` (string) Linked billable product, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.updatedAt` (string) Timestamp when this diagnostic item was last updated. Example: "2025-01-01T00:00:00.000Z" - `outcome` (string) High-level outcome or summary of the diagnostic result. - `ownershipId` (string) Owning organization or practice identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `referenceNumber` (string) External or human-readable reference number for this result. - `resultedAt` (string) Date and time when the diagnostic result was finalized or recorded. Example: "2025-01-01T00:00:00.000Z" - `specifics` (string) Free-text notes or specifics about the diagnostic result. - `supplierId` (string) External laboratory or supplier identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `vetId` (string) Veterinarian responsible for the diagnostic result. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 201 fields (application/json): - `animalId` (string, required) Animal (patient) identifier. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string, required) Related consultation identifier. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string, required) Owner/client contact identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the diagnostic result was created. Example: "2025-01-01T00:00:00.000Z" - `diagnosticRequestId` (string, required) Identifier of the originating diagnostic request/order. Example: "123e4567-e89b-12d3-a456-426614174000" - `diagnosticResultId` (string, required) Canonical identifier for the diagnostic result. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object, required) Vendor- or practice-specific extensions. - `externalLink` (string, required) External URL to full report or lab portal, if available. - `isActive` (boolean, required) Whether this diagnostic result is active/valid. - `items` (array, required) Individual diagnostic result items (e.g., analytes, findings). - `items.class` (string) Classification of the diagnostic item (e.g., lab, imaging). - `items.code` (object) Coded representation of the diagnostic item. - `items.code.code` (string, required) Code value - `items.code.system` (string, required) Code system URI - `items.code.display` (string) Human-readable display - `items.createdAt` (string) Timestamp when this diagnostic item was created. Example: "2025-01-01T00:00:00.000Z" - `items.diagnosticDefinitionId` (string) Reference to the diagnostic definition/catalog entry. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.diagnosticItemId` (string, required) Canonical identifier for this diagnostic item within the request. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.isActive` (boolean) Whether this diagnostic item is currently active. - `items.name` (string) Human-readable name of the diagnostic item. - `items.productId` (string) Linked billable product, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `items.updatedAt` (string) Timestamp when this diagnostic item was last updated. Example: "2025-01-01T00:00:00.000Z" - `outcome` (string, required) High-level outcome or summary of the diagnostic result. - `ownershipId` (string, required) Owning organization or practice identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `referenceNumber` (string, required) External or human-readable reference number for this result. - `resultedAt` (string, required) Date and time when the diagnostic result was finalized or recorded. Example: "2025-01-01T00:00:00.000Z" - `specifics` (string, required) Free-text notes or specifics about the diagnostic result. - `supplierId` (string, required) External laboratory or supplier identifier, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `updatedAt` (string, required) Timestamp when the diagnostic result was last modified. Example: "2025-01-01T00:00:00.000Z" - `vetId` (string, required) Veterinarian responsible for the diagnostic result. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 400 fields ## Response 401 fields ## Response 409 fields