Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Test case for normal use of the REST content service concept retrieval methods.

Procedure 1:  Get concepts for SNOMEDCT

  • All tests use concept "121000119106", version "latest"
  • Get concepts for terminology/version
    • getConcepts("138875005",...)
    • TEST: Returns a concept list with one concept, terminology id matches
    • TEST: Expect terminology/version to match
    • TEST: Expect defaultPreferredName to be start with "Lesion of skin of face"
    • TEST: Expect 2 descriptions
    • TEST: Expect 2 language ref set members for each description
    • TEST: Expect 7 relationships
  • Get single concept
    • getSingleConcept() for SNOMEDCT
    • TEST: Returns one concept, terminology id 138875005
    Get concept for user based on previous call
    • Authenticate user who last modified concept 138875005
    • getConceptForUser() with new auth token 
    • TEST: Returns one concept, terminology id 138875005, last modified by appropriate user
    • TODO:  Comment this test out (assuming read-only server testing at the moment)equal to previous concept
  • Get concept by Hibernate id
    • getConcept()
    • TEST: Returns one concept, equal to previous concept

Procedure 2:  Get concepts for ICD9CM

  • All tests use concept "138875005", version "2013"
  • Get concepts for terminology/version
    • getConcepts()
    • TEST: Returns a concept list with one concept, terminology id matches
    • TEST: Expect terminology/version to match
    • TEST: Expect defaultPreferredName to be start with "Lesion of skin of face"
    • TEST: Expect 1 descriptions
    • TEST: Expect 0 language ref set members for each description
    • TEST: Expect 1 relationships
  • Get single concept
    • getSingleConcept("138875005", ...) for SNOMEDCTICD9CM
    • TEST: Returns  Returns one concept, terminology id 138875005equal to previous concept
  • Get concept by Hibernate id
    • getConcept(concept.getId(), ...)
    • TEST: Returns  Returns one concept, terminology id 138875005equal to previous concept

Procedure 2:  Find concepts

  • For all tests, execute findConceptsForQuery("ossification", ...) for SNOMEDCT
  • Raw results – No pfs parameter
    • TEST: 14 10 results
  • Sorted results – Pfs parameter with sortField defaultPreferredName
    • TEST: 14 10 results, sorted alphabetically in ascending order
  • Sorted results – Pfs paramter with sortField defaultPreferredName and descending order
    • TEST: 10 results, sorted alphabetically in descending order
  • Paged, sorted results, first page – Pfs parameter with max results 5 and sortField defaultPreferredName
    • TEST: 5 results, matching first 5 results from previous test, sorted alphabetically
  • Paged, sorted results, second page – Pfs parameter with startIndex 6, max results 5 and sortField defaultPreferredName
    • TEST: 5 results, matching second set of 5 results from previous test, sorted alphabetically
  • Lucene query restriction set to "terminologyId:93563005"
    • TEST: 1 result, with terminologyId = 93563005

Expected Runtime

  • < 1 10 sec

Notes

  • n/a