Skip to content

Instantly share code, notes, and snippets.

@CharlieSu
Created September 9, 2011 20:16
Show Gist options
  • Save CharlieSu/1207217 to your computer and use it in GitHub Desktop.
Save CharlieSu/1207217 to your computer and use it in GitHub Desktop.
class AuditLog {
static searchable = true
String uuid
String requestId
String ipAddress
String username // User Causing the action
String patientMrn // Patient affected
Long encounterId // Encounter affected
String activity // Overarcing Category
String detail // Description of modification
String action // Create / Read / Update / Delete
String data // JSON
String practiceUuid
Date storeDate
Date dateCreated
Date lastUpdated
static constraints = {
patientMrn(nullable: true)
encounterId(nullable: true)
data(nullable: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment