# Update a progress note Updates an existing progress note Endpoint: PUT /v1/progress-notes/{id} Version: 1.0.0 Security: bearerAuth ## Path parameters: - `id` (integer, required) Progress note unique identifier ## Request fields (application/json): - `name` (string) Name or title of the progress note Example: "Follow-up Visit - Jane Doe" - `transcription` (string) Transcribed content of the audio recording Example: "Patient reports improvement in symptoms since last visit." - `analysis` (string) AI-generated analysis of the transcription Example: "Patient presents with improved symptoms. Continue current treatment plan." ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier for the progress note Example: 123 - `name` (string, required) Name or title of the progress note Example: "Follow-up Visit - Jane Doe" - `transcription` (string) Transcribed content of the audio recording Example: "Patient reports improvement in symptoms since last visit..." - `analysis` (string) AI-generated analysis of the transcription Example: "Patient's condition has improved with current treatment regimen..." - `template` (object) - `template.id` (integer) Template ID used for this note Example: 5 - `template.name` (string) Name of the template Example: "Standard Follow-up" - `template.description` (string) Description of the template Example: "Standard template for routine follow-up visits" - `patient` (object) Associated patient information - `patient.id` (integer, required) Unique identifier for the patient Example: 789 - `patient.uuid` (string, required) UUID for the patient Example: "550e8400-e29b-41d4-a716-446655440000" - `patient.first_name` (string, required) Patient's first name Example: "Jane" - `patient.middle_name` (string,null) Patient's middle name Example: "Marie" - `patient.last_name` (string, required) Patient's last name Example: "Doe" - `patient.gender` (string,null) Patient's gender (when demographics are loaded) Example: "female" - `patient.date_of_birth` (string, required) Patient's date of birth Example: "1985-03-15" - `patient.notes` (string,null) Clinical notes about the patient Example: "Patient has a history of anxiety. Prefers afternoon appointments." - `patient.latest_medications` (array) List of current medications (when loaded) Example: ["Sertraline 50mg","Lorazepam 0.5mg PRN"] - `patient.user` (object) User who created the patient (when loaded) - `patient.user.id` (integer, required) Unique identifier for the user Example: 12345 - `patient.user.name` (string, required) Full name of the user Example: "Dr. Sarah Johnson" - `patient.user.email` (string, required) Email address of the user Example: "sarah.johnson@nextvisit.ai" - `patient.user.created_at` (string, required) Timestamp when the user was created Example: "2023-03-15T09:12:34Z" - `patient.user.updated_at` (string, required) Timestamp when the user was last updated Example: "2023-05-22T14:07:53Z" - `patient.timeline` (array) Patient timeline events (when loaded) - `patient.encounters` (array) Recent encounters/progress notes (when loaded) - `patient.meta` (object,null) Additional metadata - `patient.created_at` (string, required) When the patient was created Example: "2024-01-15T10:30:00Z" - `patient.updated_at` (string, required) When the patient was last updated Example: "2024-06-20T14:45:00Z" - `audio` (object) - `audio.duration` (number) Duration of the audio in seconds Example: 480 - `audio.bitrate` (integer) Bitrate of the audio file Example: 128000 - `audio.size` (integer) Size of the audio file in bytes Example: 7680000 - `audio.uploaded_at` (string) When the audio was uploaded Example: "2023-04-10T15:30:00Z" - `audio.expires_at` (string) When the audio file will expire Example: "2023-05-10T15:30:00Z" - `audio.file_url` (string) Temporary URL to access the audio file Example: "https://storage.nextvisit.app/encounters/abc123.mp3?token=xyz" - `has` (object) - `has.content` (boolean) Whether analysis has been completed Example: true - `has.transcription` (boolean) Whether transcription has been completed Example: true - `has.signed` (boolean) Whether the note has been reviewed and signed - `team_id` (integer, required) ID of the team this note belongs to Example: 5 - `user_id` (integer, required) ID of the user who created this note Example: 42 - `user` (object) Information about the user who created the note - `transcription_started_at` (string) When transcription process started Example: "2023-04-10T15:35:00Z" - `transcription_completed_at` (string) When transcription was completed Example: "2023-04-10T15:40:00Z" - `analysis_started_at` (string) When analysis process started Example: "2023-04-10T15:40:00Z" - `analysis_completed_at` (string) When analysis was completed Example: "2023-04-10T15:45:00Z" - `error_state` (string,null) Any error state during processing - `created_at` (string, required) When the progress note was created Example: "2023-04-10T15:30:00Z" - `updated_at` (string, required) When the progress note was last updated Example: "2023-04-10T15:45:00Z" ## Response 401 fields (application/json): - `message` (string, required) Error message Example: "Validation failed" - `errors` (object) Detailed validation errors by field Example: {"email":["The email must be a valid email address","The email has already been taken"],"password":["The password must be at least 8 characters"],"template_name":["This field is required"]} ## Response 404 fields (application/json): - `message` (string, required) Error message Example: "Validation failed" - `errors` (object) Detailed validation errors by field Example: {"email":["The email must be a valid email address","The email has already been taken"],"password":["The password must be at least 8 characters"],"template_name":["This field is required"]} ## Response 422 fields (application/json): - `message` (string, required) Error message Example: "Validation failed" - `errors` (object) Detailed validation errors by field Example: {"email":["The email must be a valid email address","The email has already been taken"],"password":["The password must be at least 8 characters"],"template_name":["This field is required"]} ## Response 403 fields