edits.seer.internal.rules.IFN3988.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<rule id="IFN3988" name="SEER Site-Specific Fact 1, Date DX (SEER)" tag="N3988" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '2018') return line.seerSiteSpecificFact1 == null return line.seerSiteSpecificFact1 == null || Functions.matches(line.seerSiteSpecificFact1, /^(1[01]|2[01]|3[01]|4[01]|5[01]|7[01]|9[79])$/)]]></expression> <message>SEER Site-Specific Fact 1 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 SEER Site-Specific Fact 1 code or blank: 10: HPV negative by p16 test 11: HPV positive by p16 test 20: HPV negative for viral DNA by ISH test 21: HPV positive for viral DNA by ISH test 30: HPV negative for viral DNA by PCR test 31: HPV positive for viral DNA by PCR test 40: HPV negative by ISH E6/E7 RNA test 41: HPV positive by ISH E6/E7 RNA test 50: HPV negative by RT-PCR E6/E7 RNA test 51: HPV positive by RT-PCR E6/E7 RNA test 70: HPV status reported in medical records as negative but test type is unknown 71: HPV status reported in medical records as positive but test type is unknown 97: Test done, results not in chart 99: Not documented in medical record HPV test not done, not assessed, or unknown if assessed Another edit, SEER Site-Specific Fact 1, Schema ID, Required (SEER), checks that the item is coded by Schema ID if required by a standard setter.]]></description> <history> <event version="SE18-018-03" user="kirbyk" date="2018-07-13" ref="67933">Edit created.</event> <event version="SE18-018-06" user="kirbyk" date="2018-08-24" ref="68026">Changed error message.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="kirbyk" date="2020-08-03" ref="68460">Updated description for code '9'.</event> <event version="SE24-024-02" user="cooki" date="2024-03-21" ref="69418">Expanded field to two digits.</event> </history> </rule>