Stream: test-validator
Topic: rule drt-1
 Ilia Kaplan (Mar 24 2022 at 09:03):
Hi there !
drt-1.xml
I'm trying to validate the attached observation file . Both Java validator and hapi server (https://hapi.fhir.org/baseR4/Observation/$validate)
state about 2 violated rules : drt-1 and qty-3 when examining Observation.effective.ofType(Timing).repeat.bounds.ofType(Duration).
drt-1 rule dictates "There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM"
My boundsDuration look as below , and as I understand it doesn't violates what the rule dictates. however Java validator and hapi server consider it as violation . What I'm missing here ?
<effectiveTiming>
        <repeat>
            <boundsDuration>
                <value value="10"/>
                <unit value="day"/>
                <code value="d"/>
            </boundsDuration>
        </repeat>
    </effectiveTiming>
qty-3 rule
According to observation.sch  (schematron definition for observation )  qty-3 rule is not defined on  effectiveTiming/f:repeat/f:boundsDuration at all . So how come the rule is violated ?
I would appreciate if you could enlighten me what I' missing here . 
Thanks , 
Ilia
 Grahame Grieve (Mar 29 2022 at 21:45):
this was discussed elsewhere, I believe?
Last updated: Apr 12 2022 at 19:14 UTC