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

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

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

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

if (line.rxDateHormoneYear > line.dateOfDiagnosisYear || line.rxDateHormoneMonth == null || line.dateOfDiagnosisMonth == null)
    return true

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

if (line.rxDateHormoneMonth > line.dateOfDiagnosisMonth || line.rxDateHormoneDay == null || line.dateOfDiagnosisDay == null)
    return true

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

RX Date Hormone 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="67170">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy