FHIR Chat · AuditEvent tenant · implementers

Stream: implementers

Topic: AuditEvent tenant


view this post on Zulip Veliyan Georgiev (Dec 02 2020 at 14:51):

Hi all.. Where would U say that the tenantid would be recorded in an AuditEvent given a multi-tenant system?

view this post on Zulip David Pyke (Dec 02 2020 at 14:53):

Can you give a definition of tenantid?

view this post on Zulip Veliyan Georgiev (Dec 02 2020 at 14:59):

the unique id of a single customer system instance in a product where multiple customer instances are supported

view this post on Zulip David Pyke (Dec 02 2020 at 15:05):

So, if I understand this, you are having one audit log for multiple instances? If that is the case, there are several options. If you need to tie that record to one tenant, you could extend the AuditEvent to have a tenantid element extension, alternately, you could add the tenantid to that tenant's Organization record if it only matters when that tenant is the source and/or actor.

view this post on Zulip David Pyke (Dec 02 2020 at 15:05):

Without more detail of your use case, it's hard to give specific recommendation

view this post on Zulip Veliyan Georgiev (Dec 02 2020 at 15:17):

Thanks..yes..I guess I missed that part. I have a multi-tenant system that produces audit events routed to an s3 bucket. currently the tenant info is in the envelope of the audit event but I needed it moved into the audit event prior to storing.

view this post on Zulip David Pyke (Dec 02 2020 at 15:18):

THen it's safest to extend the AuditEvent to have a tenantid element.

view this post on Zulip John Moehrke (Dec 02 2020 at 17:26):

no

view this post on Zulip John Moehrke (Dec 02 2020 at 17:30):

The tenantid would be another .agent.

view this post on Zulip John Moehrke (Dec 02 2020 at 17:30):

there is not a good code for this type of agent, but you can define your own code

view this post on Zulip John Moehrke (Dec 02 2020 at 17:31):

I would like you to enter a Change Request to add a code for this kind of agent

view this post on Zulip David Pyke (Dec 02 2020 at 17:32):

So you'd see it as an actor, not simply a sort mechanism?

view this post on Zulip John Moehrke (Dec 02 2020 at 17:33):

a tenant definitely is part of the transaction, so they certainly are an agent

view this post on Zulip David Pyke (Dec 02 2020 at 17:43):

That makes sense. I chose the wrong my three suggestions.

view this post on Zulip Veliyan Georgiev (Dec 02 2020 at 18:07):

I see the case for .agent. @John Moehrke great suggestion. I'd put an RFC


Last updated: Apr 12 2022 at 19:14 UTC