# Update diagnostic Partially updates an existing Diagnostic. Only provided fields will be updated. Endpoint: PATCH /site/{siteId}/ahds/v1/diagnostic/{diagnosticId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `diagnosticId` (string, required) Diagnostic unique identifier (UUID) ## Request fields (application/json): - `animalId` (string) Animal for which the diagnostic is requested. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string) Consult/visit associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string) Owner/client contact associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `details` (string) Free-text clinical details or specifics for the diagnostic request. - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean) Whether the diagnostic request is currently active. - `items` (array) List of individual diagnostic items/tests associated with this request. - `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" - `ownershipId` (string) Ownership or account context for this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `referenceNumber` (string) External or practice-specific reference number for this diagnostic request. - `requestedAt` (string) Business timestamp associated with the diagnostic request (e.g., order time). Example: "2025-01-01T00:00:00.000Z" - `status` (string) Status of the diagnostic request. Enum: "draft", "requested", "inProgress", "completed", "cancelled", "failed", "unknown" - `supplierId` (string) Supplier or laboratory associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `vetId` (string) Veterinarian responsible for this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 200 fields (application/json): - `animalId` (string, required) Animal for which the diagnostic is requested. Example: "123e4567-e89b-12d3-a456-426614174000" - `consultId` (string, required) Consult/visit associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string, required) Owner/client contact associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the diagnostic request was created. Example: "2025-01-01T00:00:00.000Z" - `details` (string, required) Free-text clinical details or specifics for the diagnostic request. - `diagnosticId` (string, required) Canonical identifier for this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the diagnostic request is currently active. - `items` (array, required) List of individual diagnostic items/tests associated with this request. - `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" - `ownershipId` (string, required) Ownership or account context for this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `referenceNumber` (string, required) External or practice-specific reference number for this diagnostic request. - `requestedAt` (string, required) Business timestamp associated with the diagnostic request (e.g., order time). Example: "2025-01-01T00:00:00.000Z" - `status` (string, required) Status of the diagnostic request. Enum: "draft", "requested", "inProgress", "completed", "cancelled", "failed", "unknown" - `supplierId` (string, required) Supplier or laboratory associated with this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" - `updatedAt` (string, required) Timestamp when the diagnostic request was last updated. Example: "2025-01-01T00:00:00.000Z" - `vetId` (string, required) Veterinarian responsible for this diagnostic request. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 400 fields ## Response 401 fields ## Response 404 fields