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
- Who uses it: the physician. The patient neither views nor edits cases.
- Operative log:
/dp/surgery(the physician's outpatient clinic workspace). - From the patient chart: physician menu "Clinic" → "My Patients" → patient → "Surgery" tab. There you will find the list of that patient's surgical cases and the "+ New Case" button — the patient is filled in automatically.
- AI simulation of the result: within a case (the "AI Simulation" section) or as a separate page, "Modeling → AI from Photo" (
/dp/simulation/ai). - Photograph-based anthropometry:
/doctor/anthropometry/cases(see below).
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:
- operating today; this week;
- no protocol (the surgical plan has not been completed);
- overdue follow-up;
- not marked as performed (the date has passed, yet the status is still "Scheduled");
- no date.
Clicking a counter displays the corresponding cases. If everything is in order: "No outstanding items — everything is completed and scheduled."
Views and filters
- Three views: Schedule, Log, Showcase (large photographs).
- Filter by status: All, Scheduled, Performed, Follow-up, Closed; filter by procedure type.
- Search by patient or chart number. Surnames are matched as whole words.
- The number of cases per page is selected at the bottom.
- The "Photos hidden / Photos visible" button blurs patients' faces in the list — convenient when the screen is visible to third parties. The setting is remembered in the browser.
- On each card: "Open case," "Operative protocol," "Photos," "More" → "Delete."
"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.
- Patient — three options:
- "From patient database" — search by first name, surname, or email among your patients;
- "Private patient" — from among your private patients;
- "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. - 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.
- Date of surgery.
- Technical parameters (optional): anesthesia (local, sedation, general, spinal, epidural, regional), technique or approach, implant or material, size or volume, duration in minutes.
- 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.
- Status — clicking changes it: Scheduled → Performed → Follow-up → Closed.
- Procedure parameters — the information entered at creation.
- Surgical plan — the brief plan; the "Complete plan →" link leads to the detailed form.
- Result rating — from 1 to 10, "Save."
- Patient consent — "Mark consent"; once marked, the date is displayed.
- Photos — upload with a label: Before, After, Intraoperative, 1 week, 1 month, 3 months, 6 months, Simulation. Formats JPEG, PNG, WebP, HEIC, up to 20 MB. Photographs can be deleted.
- AI Simulation — generation of the "after" image from a photograph (see below).
- Follow-up — records of follow-up visits: date, surgeon's notes, complications. The number of visits and the date of the last one are displayed.
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:
- Initial consultation — motivation, complaints, history, medications, allergies, smoking, alcohol, previous surgeries;
- Preoperative workup — checklist of laboratory tests and consultations, contraindications, type of anesthesia;
- Risks and informed consent — risks discussed (checklist), consent mark and date, notes;
- Postoperative plan — compression, activity regimen, antibiotics, analgesia, follow-up schedule, drainage, special instructions.
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:
- ★ DocPats standard — ready-made texts: "Unremarkable" (history, medications, allergies, postoperative regimen, follow-up without complications) and a typical case for your procedure. For procedures without a dedicated set, a typical "other procedure" case is offered. Dosages are deliberately absent from the standard templates. The set has not yet been reviewed by a surgeon — read it before inserting.
- My templates — your own. A standard template can be made yours via "Make mine" and then edited.
- "Insert," preview, "Create new template," "Go to template list." The list and creation open in a new tab so that unfinished text is not lost; on returning, you will immediately see the new template.
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
- 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.
- In the "AI Simulation" section, select the source photograph.
- 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).
- 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.
- Check the box acknowledging that the simulation does not guarantee the result.
- 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
- There is no need to brush-select an area: the neural network locates the face and the relevant region on its own.
- It does not process degrees and millimeters — it converts them into "slight" and "noticeable." For a measurable plan, use point-based simulation (
/docs/simulation) or anthropometry. - Adjustments are more reliable on images larger than 1000 px.
- If the model barely changed the image, this is flagged — the quota is not charged for such an attempt.
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
- Only successful simulations within a rolling 30-day window (not a calendar month) are counted: older ones gradually drop out of the window.
- Doctor Pro — 100, Doctor Super — 200, Doctor Pro trial period — 25. On Doctor Free, AI is disabled.
- The balance is shown beneath the button: "Simulations remaining: N of M per 30 days."
- When 2 or fewer remain, you will be offered an add-on package: 25 simulations for $39 or 100 for $129. The package is consumed after the monthly quota and does not expire at the end of the month.
- For more on plans, see
/docs/plans.
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.
- Case — "New case": patient, procedure (rhinoplasty, mammoplasty, facelift, blepharoplasty, liposuction, otoplasty, other), complaints, notes, patient consent. Statuses: consultation, scheduled, operated, follow-up, closed, canceled.
- Session — "New session": preoperative, at 1 week, 1, 3, 6 months, 1 year, follow-up, simulation, other.
- Photos — JPEG, PNG, WebP, HEIC, up to 50 MB; a view for each (frontal, profiles, 3/4, superior, inferior, body projections, posterior).
- 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.
- 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.
- 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.
- 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
- Cases are visible only to the physician managing them.
- The surgical plan and sensitive fields are stored encrypted; anthropometry changes are written to the audit log.
- Upload patient photographs only with the patient's consent; consent is mandatory for publication.
- For details, see
/docs/privacyand/docs/hipaa.
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 -->