Stream: implementers
Topic: Validation of effectiveTime
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.
Grahame Grieve (Nov 06 2017 at 11:26):
how are you validating this?
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)
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
Jon-Vidar Schneider (Nov 06 2017 at 12:18):
https://github.com/ewoutkramer/fhir-net-api/issues/474
Michel Rutten (Nov 06 2017 at 12:25):
Thanks!
Last updated: Apr 12 2022 at 19:14 UTC