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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN2737" name="PSA (Prostatic Specific Antigen) Lab Value, Date DX (NAACCR)" tag="N2737" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null)
    return true

if (line.dateOfDiagnosisYear < '2018' && line.psaLabValue != null)
    return false

return  line.psaLabValue == null || Functions.matches(line.psaLabValue, /^XXX\.[12379]|[1-9]\d\d\.\d|[1-9]\d\.\d|[1-9]\.\d|0\.[1-9]$/)]]></expression>
            <message>PSA (Prostatic Specific Antigen) Lab Value is not valid for Date DX</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-2018 diagnoses.

2. Must be a valid PSA (Prostatic Specific Antigen) Lab Value code or blank:

    0.1: 0.1 or less nanograms/milliliter (ng/ml)
   0.2-999.9: 0.2-999.9 ng/ml
               (Exact value to nearest tenth of ng/ml)
    XXX.1: 10,000 ng/ml or greater
    XXX.2: Lab value not available, physician states PSA is negative/normal
    XXX.3: Lab value not available, physician states PSA is positive/elevated/high
    XXX.7: Test ordered, results not in chart
    XXX.9: Not documented in medical record
           PSA (Prostatic Specific Antigen) Lab Value not assessed or unknown
           if assessed

3. Code must contain one place after decimal point.

Another edit, PSA (Prostatic Specific Antigen) Lab Value, Schema ID, Required
(NAACCR), checks that the item is coded by Schema ID if required by a standard
setter.

This data item is required for AJCC staging and EOD Derived Stage Group.]]></description>
            <history>
                <event version="SE18-018-03" user="kirbyk" date="2018-07-10" ref="67898">Edit created.</event>
                <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event>
                <event version="SE22-022-01" user="secristc" date="2022-01-21" ref="68882">Added new valid PSA lab value codes.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy