Surgery: Operative Log, Surgical Plan, AI Simulation

How a surgeon manages surgical cases in DocPats: the operative log, a detailed plan with PDF export, text templates, photographs and follow-up, AI simulation of the result on the patient's photograph, and photograph-based anthropometry.

Who and where

Point-based simulation without AI (nose, chin, breast) is described in /docs/simulation.

Operative log /dp/surgery

Summary at the top: total number of cases, number of procedure types, average result rating.

Working list ("outstanding items")

Above the list are counters for items requiring attention:

Clicking a counter displays the corresponding cases. If everything is in order: "No outstanding items — everything is completed and scheduled."

Views and filters

"Delete" moves the case from the log to the archive: the data are retained, but the case disappears from the lists.

New case

/dp/surgery/new or "+ New Case" in the patient's "Surgery" tab.

  1. Patient — three options:
  2. "From patient database" — search by first name, surname, or email among your patients;
  3. "Private patient" — from among your private patients;
  4. "Anonymous code" — without personal data, for example PT-2024-001; you may indicate that the patient has given written consent to the anonymous use of photographs.
  5. Procedure type (required) — the list is grouped by specialty: plastic surgery of the face and body, abdominal, cardiac, vascular, neuro-, thoracic surgery, orthopedics and traumatology, urology, gynecology, ophthalmology, ENT, oncologic surgery, transplantation, pediatric surgery, other.
  6. Date of surgery.
  7. Technical parameters (optional): anesthesia (local, sedation, general, spinal, epidural, regional), technique or approach, implant or material, size or volume, duration in minutes.
  8. Brief plan — free text. Stored encrypted. The detailed plan is completed separately.

Case page /dp/surgery/:id

Section navigation on the left; status and publication state at the top.

Publishing a case

The "Publish" button makes the case public (the "Portfolio" label in the log). A case cannot be published without the patient's consent marked. In a public case, only photographs labeled "After" become visible. "Unpublish" returns the case to private status.

Detailed surgical plan and PDF

The plan form is organized by sections, with a "Sections completed: N of M" counter at the top.

Sections common to all procedures:

Dedicated examination and planning sections exist for rhinoplasty, breast augmentation and reduction, blepharoplasty, liposuction, abdominoplasty, facelift, otoplasty, chin implant, and lip augmentation. For all other procedures, the general "Other" form is used.

Buttons in the bottom bar: "Save" and "Download PDF" — the surgical plan file is downloaded to your computer.

Text templates

Beneath the text fields of the plan, follow-up entry, new case, and AI simulation request, there is a template panel:

Standard templates are available in Russian, English, Azerbaijani, Turkish, and Arabic.

AI simulation of the result on a photograph

The neural network redraws the patient's photograph to show how they may look after surgery. This is an illustration for discussion, not a prediction: the same request yields a different image each time.

How to run it

  1. In the case, upload a photograph labeled "Before" (or "After," "Intraoperative") and specify the view: frontal, profile, three-quarter, other. The view can be changed later.
  2. In the "AI Simulation" section, select the source photograph.
  3. Select the area to modify and check the predefined adjustments — for each, the intensity "Slight," "Noticeable," or "Pronounced." Adjustments that are not visible in this view are hidden (for example, a dorsal hump in a frontal photograph).
  4. If desired, add a free-text request in any language, for example "raise the nasal tip and remove the under-eye bags." Predefined adjustments and the free-text request complement each other.
  5. Check the box acknowledging that the simulation does not guarantee the result.
  6. Click "Generate." One variant takes about a minute; you may leave the page — the result will appear in the history.

If a step is still missing, the text under the button states what to do, and the link leads to the relevant place.

Points to consider

Simulation history

For each generation, the following are displayed: your request, who is in the photograph, and what was sent to the model. A variant can be selected (the "✓ Selected" label), enlarged, downloaded, or deleted.

Quota and payment

Photograph-based anthropometry

Precise facial measurements from photographs with calibration in millimeters, with version history and before/after comparison. The address is /doctor/anthropometry/cases; there is no separate menu item, so open it by URL.

  1. Case — "New case": patient, procedure (rhinoplasty, mammoplasty, facelift, blepharoplasty, liposuction, otoplasty, other), complaints, notes, patient consent. Statuses: consultation, scheduled, operated, follow-up, closed, canceled.
  2. Session — "New session": preoperative, at 1 week, 1, 3, 6 months, 1 year, follow-up, simulation, other.
  3. Photos — JPEG, PNG, WebP, HEIC, up to 50 MB; a view for each (frontal, profiles, 3/4, superior, inferior, body projections, posterior).
  4. Calibration — two points at a known distance: a 50 or 100 mm ruler, interpupillary distance (63 mm), a bank card (85.6 mm), or a custom value.
  5. Landmarking — currently the "Rhinoplasty (profile)" set is available: glabella, nasion, rhinion, supratip, nasal tip, subnasale, alar crease, upper lip. Measurements are calculated automatically: nasofrontal and nasolabial angles, nasal length, tip projection, Goode ratio. If landmarks are missing, the measurement is shown as skipped.
  6. Versions — landmarking can be "Locked"; unlocking and deleting a case require a reason (at least 10 characters). All actions are recorded in the audit log.
  7. Comparison — a table of measurements between sessions (for example, preoperative and at 6 months).

A case can be archived and restored from the archive; deletion erases all sessions, photographs, and measurements.

Confidentiality

Frequently asked questions

Where do I find Surgery? It is not in the menu. There is no separate menu item. Open "Clinic" → "My Patients" → patient → "Surgery" tab, or go to /dp/surgery.

Can I create a case without patient data? Yes, select "Anonymous code." For a quick AI preview, the /dp/simulation/ai page creates an anonymous case automatically.

How many AI simulations are included in the plan? Doctor Pro — 100, Doctor Super — 200 per 30 days, trial period — 25. AI is not available on the free plan. You can purchase 25 more for $39 or 100 for $129.

Why was no quota charged for a failed simulation? Only successful ones are charged. An error or "the model changed almost nothing" does not consume the quota.

Why did the AI not change the nose in a frontal photograph? A dorsal hump and the profile are visible only from the side. Upload a profile photograph and set the view to "Profile."

Can I obtain the surgical plan as a PDF? Yes: "Complete plan →" within the case, then "Download PDF."

How do I publish a case to the portfolio? Mark the patient's consent and click "Publish." Only "After" photographs will become visible.

Is a deleted case gone for good? No, it moves to the archive: the data are retained, but the case is not visible in the lists.

Can standard templates be used without editing? Yes, but the set has not yet been reviewed by a surgeon and contains no dosages — read the text before inserting and, if necessary, make the template your own.

How does anthropometry differ from simulation? Anthropometry measures what is actually in the photograph, in millimeters, after calibration. Simulation shows how the result may look.

Does the patient see the AI simulation? No, not until you show it or share the downloaded image yourself.

<!-- translated-from-ru: 63554958709d6726bb84697c4f39e761d129b929 -->