FHIR Chat · Validation of effectiveTime · implementers

Stream: implementers

Topic: Validation of effectiveTime


view this post on Zulip Jon-Vidar Schneider (Nov 06 2017 at 11:15):

We are trying to validate MedicationStatement, it fails with 'Instance failed constraint per-1 "If present, start SHALL have a lower value than end"'

Our input is this:
<effectivePeriod>
<start value="0001-01-01" />
<end value="2016-04-07" />
</effectivePeriod>

When we change start value to '0001-01-02' it works fine.

Don't want to change this value since we are not the owner of the data.

view this post on Zulip Grahame Grieve (Nov 06 2017 at 11:26):

how are you validating this?

view this post on Zulip Jon-Vidar Schneider (Nov 06 2017 at 11:35):

Using the c#-implementation from Github. (Hl7.Fhir.Validation.Validator), using the method public OperationOutcome Validate(XmlReader reader, bool onlyErrors)

view this post on Zulip Michel Rutten (Nov 06 2017 at 11:58):

Hi @Jon-Vidar Schneider, this seems like a bug in the .NET validator. Could you please submit an issue to the github repository?
https://github.com/ewoutkramer/fhir-net-api/issues

view this post on Zulip Jon-Vidar Schneider (Nov 06 2017 at 12:18):

https://github.com/ewoutkramer/fhir-net-api/issues/474

view this post on Zulip Michel Rutten (Nov 06 2017 at 12:25):

Thanks!


Last updated: Apr 12 2022 at 19:14 UTC