Skip to main content

Patient memos

Patient memos, the short notices highlighted on a patient record in Semble, are now available through the API.

What changed​

One new query and three new mutations, all requiring the editPatient permission:

  • patientMemos(patientId: ID!, pagination: Pagination) returns a patient's memos, pinned first, then most recently updated. Deleted memos are never returned.
  • createPatientMemo(patientId: ID!, memoData: CreatePatientMemoDataInput!)
  • updatePatientMemo(id: ID!, memoData: UpdatePatientMemoDataInput!)
  • deletePatientMemo(id: ID!)

Each memo carries its id, title, content, type, isPinned, visibility, creator, last editor and its creation and update timestamps. type is one of info, warning, important or success, and drives how the memo is highlighted in Semble.

Mutations return { data, error }. A memo that your credentials cannot reach is reported as not found, without confirming whether it exists.

Visibility​

visibility.mode is all (everyone in the practice), private (only the memo's creator) or restricted (the users listed in visibility.userIds).

API credentials are role-based rather than tied to one user, so they follow the same rule as other confidential resources: private and restricted memos are not returned, and updating or deleting one is reported as not found. A memo you make private or restricted is no longer reachable with your credentials afterwards.

Set the audience with visibility on create or update; restricted requires userIds, and all of them must be users of the same practice. A memo and its visibility are saved together, so a rejected audience never leaves a partial content change behind. Omitting visibility on update leaves the current audience untouched. Changing a memo to private or restricted requires confidentiality restrictions to be enabled for the practice.

Integration guidance​

createdBy and updatedBy resolve to a User and need the settingsSeeUsers permission as well. Read createdById and updatedById instead when your credentials cannot read users.

Treat PatientMemoType and PatientMemoVisibilityMode as evolving enums and parse unknown values without failing.