FHIR Chat · Is lastUpdated required when submitting a FHIR document? · implementers

Stream: implementers

Topic: Is lastUpdated required when submitting a FHIR document?


view this post on Zulip Morten Ernebjerg (Jan 23 2019 at 07:55):

I have a question regarding the metadata in a document bundle. The (STU3) documentation says this:

The document date (mandatory). This is found in Bundle.meta.lastUpdated and identifies when the document bundle was assembled from the underlying resources

This seems to imply that a document submitted to (i.e. being created on) a server will be invalid unless the client has already filled in Bundle.meta.lastUpdated in the document they are submitting. But the REST API documentation of the create operation says

If the request body includes a meta, the server SHALL ignore the existing versionId and lastUpdated values.

So when POSTing a document Bundle, the meta.lastUpdated-value would immediately be discarded. Is it still formally required when POSTing (or PUTting) a document, or it is only a requirement when the document is read?

view this post on Zulip Grahame Grieve (Jan 23 2019 at 12:04):

whoever is building the document, posted or not, most fill out the created time.

view this post on Zulip Grahame Grieve (Jan 23 2019 at 12:05):

but that section is wrong now that we have Bundle.timestamp

view this post on Zulip Lloyd McKenzie (Jan 23 2019 at 15:43):

@Morten Ernebjerg, can you submit a change request?

view this post on Zulip Morten Ernebjerg (Jan 24 2019 at 08:55):

Ah yes, Bundle.timestampmakes it much clearer (I'm on STU3, alas). @Lloyd McKenzie yup, will put one in.

view this post on Zulip Morten Ernebjerg (Jan 24 2019 at 09:04):

GF #20210

view this post on Zulip Lloyd McKenzie (Jan 24 2019 at 15:42):

Thanks


Last updated: Apr 12 2022 at 19:14 UTC