jdegraft

Concept Validation Rules

Apr 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. High Level Descriptions of Concept Validation Rules
  2.  
  3. /**
  4. * Checks that a given concept object is valid.
  5. *
  6. * @should pass if the concept has atleast one fully specified name added to it
  7. * @should fail if there is a duplicate unretired concept name in the locale
  8. * @should fail if there is a duplicate unretired preferred name in the same locale
  9. * @should fail if there is a duplicate unretired fully specified name in the same locale
  10. * @should fail if any names in the same locale for this concept are similar
  11. * @should pass if the concept with a duplicate name is retired
  12. * @should pass if the concept being validated is retired and has a duplicate name
  13. * @should fail if any name is an empty string
  14. * @should fail if the object parameter is null
  15. * @should pass if the concept is being updated with no name change
  16. * @should fail if any name is a null value
  17. * @should not allow multiple preferred names in a given locale
  18. * @should not allow multiple fully specified conceptNames in a given locale
  19. * @should not allow multiple short names in a given locale
  20. * @should not allow an index term to be a locale preferred name
  21. * @should fail if there is no name explicitly marked as fully specified
  22. * @should pass if the duplicate ConceptName is neither preferred nor fully Specified
  23. * @should pass if the concept has a synonym that is also a short name
  24. * @should fail if a term is mapped multiple times to the same concept
  25. * @should not fail if a term has two new mappings on it
  26. * @should fail if there is a duplicate unretired concept name in the same locale different than
  27. * the system locale
  28. * @should pass for a new concept with a map created with deprecated concept map methods
  29. * @should pass for an edited concept with a map created with deprecated concept map methods
  30. * @should pass validation if field lengths are correct
  31. * @should fail validation if field lengths are not correct
  32. * @should pass if fully specified name is the same as short name
  33. * @should pass if different concepts have the same short name
  34. */
Add Comment
Please, Sign In to add comment