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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6595" name="Tobacco Use Smoking Status, Date DX (NPCR)" tag="N6595" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[ if(line.dateOfDiagnosisYear == null)
            return true

if (line.dateOfDiagnosisYear < '2022')
    return line.tobaccoUseSmokingStatus == null

else
    return line.tobaccoUseSmokingStatus == null || Functions.matches(line.tobaccoUseSmokingStatus, /^[01239]$/)
            ]]></expression>
            <message>Invalid value for Tobacco Use Smoking Status</message>
            <description><![CDATA[This edit is skipped if Date of Diagnosis is blank (unknown) or invalid.

1. This data item must be blank for pre-2022 diagnoses.

2. Must be a valid Tobacco Use Smoking Status code or blank.
    0: Never smoker
    1: Current some day smoker
    2: Former smoker
    3: Smoker, current status unknown
    9: Unknown if ever smoked]]></description>
            <history>
                <event version="SE22-022-01" user="secristc" date="2022-02-25" ref="68895">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy