medplum / medplum

Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications.
https://medplum.com
Apache License 2.0
1.34k stars 372 forks source link

Add `Meta.created` field and search param #1991

Open rahul1 opened 1 year ago

rahul1 commented 1 year ago

Currently, to figure out when a certain resource was created, users have to use the history Api and search on the client-side. We've had a number of requests for the ability to search on the creation time of a resource (rather than the lastUpdated time) that it would make sense to make this a first-class member of our Meta type, similar to Meta.author

codyebberson commented 1 year ago

I'd like to wait and gather more data points before doing this.

We should treat every custom addition to Meta as a pretty serious change because the blast radius is pretty big.

ksmith94 commented 10 months ago

Created PR #3182 , which documents using the history endpoint to find when a resource was initially created.

healthbjk commented 10 months ago

Ah, a classic problem. Some relevant discussion: https://chat.fhir.org/#narrow/stream/179166-implementers/topic/meta.2EcreatedAt

rahul1 commented 1 month ago

Since this initial ticket was created, we've had a number of users request this field. The main use case expressed is to have a deterministic sort order for paging through large sets of resources, without having to worry about resources being updated while paging: