advancedmd_save_memo, the patient chart-memo write tool exposed through the Agents Platform.
Authentication
AdvancedMD tools use the existing AdvancedMD connector. Users configure:office_codeusernamepassword
advancedmd_save_memo
Writes a memo (chart alert) onto an AdvancedMD patient record via the savememo API, so staff opening the chart see it. This is a mutating tool.
Memos are for short, actionable operational flags — “consent forms complete”, “licensure check required”. They are not clinical notes.
Inputs
Required:patient_id: AdvancedMD patient id to attach the memo to, as returned byadvancedmd_find_patient. This is the internal patient id, not the chart number shown in the AdvancedMD UI — passing a chart number fails with an “Invalid patient” fault.memo_text: Memo body. Keep it short; it renders as a chart alert.
memo_type: AdvancedMD memo type code. Defaults toD(display memo — a staff-visible chart alert), the same codeadvancedmd_push_eligibility_resultsuses for its memo writes.timezone: IANA timezone of the AdvancedMD office. The memo’s@createddate is written as the office-local date (AdvancedMD reads it as a wall clock) — a UTC worker would otherwise stamp tomorrow’s date on evening memos for a US office. Defaults toAmerica/Los_Angeles.dry_run: Defaults tofalse— the memo is written by default, matching the other AdvancedMD patient-write tools. Settrueto preview the payload without calling AdvancedMD.
Output
On success, structured content includes:status:successordry_rundry_run: whether the write was skippedpatient_id,memo_type,memo_text: what was written (or would have been)
Notes
- There is no idempotency. Calling twice writes two memos. Callers that retry should check whether the memo already exists, or accept duplicates.
- AdvancedMD faults (e.g. an unknown patient id) surface as tool errors carrying the AdvancedMD fault string, not as Go errors, so the agent can react and retry.
- Prefixing memo text with a consistent identifier (e.g.
Nanonets:) makes automation-written memos distinguishable from staff-written ones in the chart.