temetro

Activity

The clinic's audit log.

MethodPathAccess
GET/api/activityAdmins/owners see all clinic activity; everyone else sees their own

Every mutation in temetro — patients, appointments, prescriptions, tasks — writes an entry here automatically. The log is append-only: there are no endpoints to edit or delete entries.

The activity entry

FieldTypeNotes
idstringEntry id
actorId, actorNamestringWho made the change
actionstringHuman-readable, e.g. "Updated patient Hodan Warsame"
entityTypestringpatient, appointment, prescription, task, …
entityIdstringThe affected record (file number for patients)
patientName, patientFileNumberstring | nullSet when the change concerns a patient
createdAtstringTimestamp

Example

curl -b cookies.txt http://localhost:4000/api/activity
[
  {
    "id": "act_123",
    "actorName": "Dr. Amina Yusuf",
    "action": "Transferred patient Hodan Warsame to Dr. Omar Ali",
    "entityType": "patient",
    "entityId": "1042",
    "patientName": "Hodan Warsame",
    "patientFileNumber": "1042",
    "createdAt": "2026-06-08T09:31:00.000Z"
  }
]

On this page