12.07.2015 Views

Chapter 7: Edit Errors - SEER

Chapter 7: Edit Errors - SEER

Chapter 7: Edit Errors - SEER

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

edit lookups simply check to see if a code exists in the database table, but other logic may beincorporated. The full query for each lookup can be seen in the list of Lookups shown on theDefinition tab of the <strong>Edit</strong> <strong>Edit</strong>or. Registry staff may not add or modify lookups in the currentversion of <strong>SEER</strong>*DMS.FunctionsFunctions written and maintained by the <strong>SEER</strong>*DMS development team may be used in registryedits. The function declaration and examples are provided for each function as shown below.To find an example of an edit using this function, search for “getEarliestAdmissionForCtc” on the<strong>Edit</strong>s help page. To call this function, you would use this statement:def earliest = Functions.getEarliestAdmissionForCtc(ctc)DocumentationThe documentation section contains descriptive text that is more comprehensive than the edit’smessage. If available, this documentation is displayed in the edit popup shown in the patient setand record editor. Documentation provided by the <strong>SEER</strong> program is included for the <strong>SEER</strong> <strong>Edit</strong>s.Registry staff are responsible for writing and maintaining documentation for registry edits.Unit TestsA set of unit tests may be defined for each edit. The use of unit tests is strongly recommended forinter-field edits maintained by the registry. On the Tests tab, you may click Template to createsource code for a unit test. Enter a value for the properties used by the edit and uncomment thoselines. For some tests, you may not need to specify values for all fields. Uncomment the assertFailline if the edit should fail for the defined values. Uncomment the assertPass line if you specifiedvalues that should pass the edit.Multiple tests may be defined. To create a second unit test: you may create and modify a newtemplate; or you may copy-and-paste the lines of code that set values and copy the appropriateassertion. Modify the lines in the new text so that the appropriate values are set for each field.7-6 5/8/2012 <strong>SEER</strong>*DMS User Manual

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!