All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IF522.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <rule id="IF522" name="RX Date Other, Date of Diagnosis (COC)" tag="N1533" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,RXDateOtherEdit">
            <expression><![CDATA[if (line.rxDateOtherYear == null || line.dateOfDiagnosisYear == null)
    return true

if (line.rxDateOtherYear < line.dateOfDiagnosisYear)
    return false

if (line.rxDateOtherYear > line.dateOfDiagnosisYear || line.rxDateOtherMonth == null || line.dateOfDiagnosisMonth == null)
    return true

if (line.rxDateOtherMonth < line.dateOfDiagnosisMonth)
    return false

if (line.rxDateOtherMonth > line.dateOfDiagnosisMonth || line.rxDateOtherDay == null || line.dateOfDiagnosisDay == null)
    return true

return line.rxDateOtherDay >= line.dateOfDiagnosisDay]]></expression>
            <message>RX Date Other, Date of Diagnosis conflict.</message>
            <description><![CDATA[This edit is skipped if any of the fields are blank or invalid.

RX Date Other must be greater than or equal to Date of Diagnosis. If both years are known, but either month is blank, then only the years are compared. If either day is blank, then only the years and months are compared.]]></description>
            <history>
                <event version="SE15-013-01" user="kirbyk" date="2015-01-20" ref="67174">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy