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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6239" name="CA 19-9 PreTX Lab Value, Date DX (NAACCR)" tag="N6239" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear ==  null || line.ca199PretxLabValue == null)
return true
if (line.dateOfDiagnosisYear <  '2021')
    return line.ca199PretxLabValue == null
String ca199PretxLabValue = (String)line.ca199PretxLabValue;
if (ca199PretxLabValue.length() < 3)
    return false
String decimal = ca199PretxLabValue.substring(ca199PretxLabValue.length() - 2)
if (decimal.charAt(0) != '.')
    return false
String digits = ca199PretxLabValue.substring(0, ca199PretxLabValue.length() - 2) + ca199PretxLabValue.substring(ca199PretxLabValue.length() - 1)
return Functions.matches(digits, /^(\d\d)|(\d\d\d)|(\d\d\d\d)|(\d\d\d\d\d)|XXXX(1|2|3|7|8|9)$/)]]></expression>
            <message>Not valid code for CA 19-9 PreTX Lab Value</message>
            <description><![CDATA[The edit is skipped if Date of Diagnosis is blank (unknown),
or invalid.

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

2. Must be a valid CA 19-9 PreTX Lab Value code or blank:

    0.0: 0.0 Units/milliliter (U/ml) exactly
    0.1-9999.9: 0.1-9999.9 U/ml
                (Exact value to nearest tenth in U/ml)
    XXXX.1: 10,000 U/ml or greater
    XXXX.2: Lab value not available, physician states CA 19-9 is negative/normal
    XXXX.3: Lab value not available, physician states CA 19-9 is positive/elevated/high
    XXXX.7: Test ordered, results not in chart
    XXXX.8: Not applicable: Information not collected for this
case
    XXXX.9: Not documented in medical record
            CA19-9 PreTX Lab Value not assessed or unknown if
assessed

3. Code must contain one place after decimal point.

Another edit, CA19-9 PreTX Lab Value, Schema ID, Required
(NAACCR), checks
that the item is coded by Schema ID if required by a standard
setter. ]]></description>
            <history>
                <event version="SE21-021-04" user="smithm" date="2021-03-17" ref="68604">Edit created.</event>
                <event version="SE22-022-01" user="secristc" date="2022-01-28" ref="68871">XXXX.2 and XXXX.3 added as valid codes.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy