FHIR Chat · meta.createdAt · implementers

Stream: implementers

Topic: meta.createdAt


view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 14:32):

There are a lot of requests for created_at timestamp for resources.
We created an extension in meta, but probably it worth to add it to the core?
Or at least have an official extension!

view this post on Zulip Lloyd McKenzie (Sep 23 2019 at 15:42):

Care to submit a change request @nicola (RIO/SS) ?

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 15:43):

Yes - sure. Have you migrated to jira?

view this post on Zulip Lloyd McKenzie (Sep 23 2019 at 15:44):

Confirmed timeline is October, so this will give you one more chance to experience to joys of gForge before it goes away... :)

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 15:53):

I hope - I've created an issue. I was redirected without confirmation after submit.

view this post on Zulip Jose Costa Teixeira (Sep 23 2019 at 16:02):

you have created GF#24851
(in case you were wondering whether it was created or not)

view this post on Zulip Grahame Grieve (Sep 23 2019 at 17:41):

@nicola (RIO/SS) you need to add more than 'there is a lot of value'. Perhaps you can ask the people asking you to explain the value the see

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 17:44):

it's a good dba practice to have created-at and updated-at columns. There are many scenarios when you need this information.

view this post on Zulip Grahame Grieve (Sep 23 2019 at 17:45):

then you should explain some of them

view this post on Zulip Grahame Grieve (Sep 23 2019 at 17:45):

because we always had 'added at' in our database, and I never saw any point

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 17:51):

one practice is query data in specific point in time, you just filter out rows with created later than time of your interest

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 17:52):

if you never delete data - it gives you time machine / continuous versioning

view this post on Zulip Grahame Grieve (Sep 23 2019 at 17:52):

I think that's rather more complicated than that, unless you're running with an insert only database, or a versioned database, in which case created-at doesn't matter

view this post on Zulip Eric Haas (Sep 23 2019 at 18:00):

Is the intent to have time stamp or location because “created at “ sound like place to me?

view this post on Zulip Grahame Grieve (Sep 23 2019 at 18:07):

yes it's an instant in time

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:13):

https://www.google.com/url?sa=t&source=web&rct=j&url=https://wiki.postgresql.org/images/6/64/Fosdem20150130PostgresqlTemporal.pdf&ved=2ahUKEwjrvLLMxefkAhVh5KYKHVfUCzMQFjACegQIBhAG&usg=AOvVaw0rmRp6-oBl7YXg4NQDfpUZ

view this post on Zulip Jose Costa Teixeira (Sep 23 2019 at 18:13):

"createdOn"?

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:13):

yes we need deleted-at to do this

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:16):

https://guides.rubyonrails.org/active_record_migrations.html

view this post on Zulip Grahame Grieve (Sep 23 2019 at 18:27):

I don't understand this at all. if you're going to recreate 'data as at an instant in time' you need all the history records. created_at will allow you to remove records that didn't yet exist, but you don't know what was current for the records that already existed.

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:30):

Yes, we can join the history table for that. In some cases - like terminology tables - you probably can use only one table - if semantic of concepts is never changing.

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:32):

It is useful for low-level monitoring and analytic - how many patients were added this month?

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:35):

It plays well with the source element - where from and when?

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:42):

I saw many use cases for creation ts in operational tasks - migrations, integrations, bulk imports, bulk re-imports etc

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:47):

Did you really never look at your "added at" column?

view this post on Zulip Grahame Grieve (Sep 23 2019 at 18:54):

me- I don't remember doing that. Anytime I was interested, I looked at the history table

view this post on Zulip Jean Duteau (Sep 23 2019 at 18:56):

same here. we have a create_timestamp and an update_timestamp. the create_timestamp gets used for ordering records and determining cutoff for date limits. the update_timestamp just takes up bytes in the database

view this post on Zulip Grahame Grieve (Sep 23 2019 at 18:58):

I think that's the 'opposite' not the 'same'?

view this post on Zulip Jean Duteau (Sep 23 2019 at 18:59):

i was saying "same" as in "we never looked at our added at column" we used create_timestamp for some things but if we really needed history (allergies and dispenses), we have a separate history table for those

view this post on Zulip nicola (RIO/SS) (Sep 23 2019 at 18:59):

Yes, the history table can give you this information and more. So createdAt is just a hint.


Last updated: Apr 12 2022 at 19:14 UTC