FHIR Chat · Observation validation issue without effectiveDateTime · genomics

Stream: genomics

Topic: Observation validation issue without effectiveDateTime


view this post on Zulip Fei Yan (Nov 19 2019 at 19:49):

Hi everyone,

When I validated our Observation resources I got a warning - All observations should have an effectiveDateTime or an effectivePeriod. But I checked from hl7.org, the effectiveDateTime is 0...1 mapping. Is it required for validation?

Thanks for any help!

Fei

view this post on Zulip Jamie Jones (Nov 19 2019 at 19:52):

I've seen that warning when uploading Observations to HAPI as well. There's no invariant requiring one or the other on the resource structuredefs so must be something the HAPI guys put into their implementation

view this post on Zulip Patrick Werner (Nov 19 2019 at 19:56):

thats a best practice warning of hapi which can be switched of in your own hapi instance. The public test server seems to have it enabled. Has confused my quite some time as these best practices aren't part of the written FHIR spec.

view this post on Zulip Patrick Werner (Nov 19 2019 at 19:57):

Its only a warning, so practically no problem.

view this post on Zulip Jamie Jones (Nov 19 2019 at 19:58):

If your goal for validation is no errors from the public HAPI server, then I'd recommend supplying one of the requested elements ;)
Since the server still accepts the instance, I would argue it validates.

view this post on Zulip Patrick Werner (Nov 19 2019 at 20:01):

no errors = valid to the point the server could test

view this post on Zulip Fei Yan (Nov 19 2019 at 20:06):

@James Jones @Patrick Werner Got it. Thank you both!


Last updated: Apr 12 2022 at 19:14 UTC