# Replace diagnostic code Fully replaces an existing Diagnostic Code. All fields must be provided. Endpoint: PUT /site/{siteId}/ahds/v1/diagnostic-code/{diagnosticCodeId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `diagnosticCodeId` (string, required) Diagnostic Code unique identifier (UUID) ## Request fields (application/json): - `code` (object, required) Primary diagnostic code in a standard codeable format. - `code.code` (string, required) Code value - `code.system` (string, required) Code system URI - `code.display` (string) Human-readable display - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Indicates whether this diagnostic code is currently active and usable. - `isDiscountable` (boolean, required) Indicates whether discounts may be applied to this diagnostic code. - `price` (object, required) Price information for this diagnostic code, excluding tax. - `validFromDate` (string, required) Date from which this diagnostic code is considered valid. Example: "2025-01-01" ## Response 200 fields (application/json): - `code` (object, required) Primary diagnostic code in a standard codeable format. - `code.code` (string, required) Code value - `code.system` (string, required) Code system URI - `code.display` (string) Human-readable display - `createdAt` (string, required) Timestamp when this diagnostic code record was created. Example: "2025-01-01T00:00:00.000Z" - `diagnosticCodeId` (string, required) Canonical unique identifier for this diagnostic code record. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Indicates whether this diagnostic code is currently active and usable. - `isDiscountable` (boolean, required) Indicates whether discounts may be applied to this diagnostic code. - `price` (object, required) Price information for this diagnostic code, excluding tax. - `updatedAt` (string, required) Timestamp when this diagnostic code record was last updated. Example: "2025-01-01T00:00:00.000Z" - `validFromDate` (string, required) Date from which this diagnostic code is considered valid. Example: "2025-01-01T00:00:00Z" ## Response 400 fields ## Response 401 fields ## Response 404 fields