ConceptServiceTest

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4,240 of 4,2400%60 of 600%2062061,0431,043176176
getConceptsByName_shouldReturnConceptsForAllCountriesAndGlobalLanguageGivenLanguageOnlyLocale()910%n/a11141411
getConceptsByName_shouldReturnConceptsForSpecificCountryAndGlobalLanguageGivenLanguageAndCountryLocale()880%n/a11141411
mapConceptProposalToConcept_shouldSetValueCodedNameWhenAddSynonymIsSelected()810%n/a11202011
getConcepts_shouldReturnASearchResultWhoseConceptNameContainsAllWordTokens()800%n/a11131311
saveConcept_shouldSetAPreferredNameForEachLocaleIfNoneIsMarked()770%n/a11161611
saveConcept_shouldEnsureThatEveryConcepNameLocaleHasExactlyOnePreferredName()740%120%77131311
saveConcept_shouldCreateANewConceptNameWhenTheOldNameIsChanged()710%80%55131311
mapConceptProposalToConcept_shouldNotSetValueCodedNameWhenAddConceptIsSelected()710%n/a11171711
purgeConcept_shouldFailIfAnyOfTheConceptNamesOfTheConceptIsBeingUsedByAnObs()680%n/a11141411
saveConcept_shouldReuseConceptNameTagsThatAlreadyExistInTheDatabase()670%n/a11151511
changeConceptFromBooleanToCoded_shouldExplicitlyAddFalseConceptAsAValue_CodedAnswer()670%80%55141411
changeConceptFromBooleanToCoded_shouldExplicitlyAddTrueConceptAsAValue_CodedAnswer()670%80%55141411
getAllConcepts_shouldOrderByAConceptField()670%n/a119911
getConceptsByConceptSet_shouldReturnAllConceptsInSet()640%n/a11101011
saveConceptReferenceTerm_shouldUpdateChangesToTheConceptReferenceTermInTheDatabase()630%n/a11181811
getAllConcepts_shouldOrderByAConceptNameField()630%n/a119911
saveConcept_shouldSaveANewConceptNumeric()590%n/a11141411
saveConcept_shouldVoidTheConceptNameIfTheTextOfTheNameHasChanged()590%40%339911
saveConcept_shouldSaveNonConceptNumericObjectAsConceptNumeric()570%n/a11121211
saveConcept_shouldAlwaysReturnAPreferredNameForEveryLocaleThatHasAtleastOneUnvoidedName()560%60%449911
saveConcept_shouldNotUpdateConceptDataTypeIfConceptIsAttachedToAnObservation()540%n/a11121211
saveConcept_shouldNotAcceptALocaleThatIsNeitherAmongTheLocaleAllowedListNorADefaultLocale()530%60%449911
saveConcept_shouldCreateAReferenceTermForAConceptMappingOnTheFlyWhenCreatingAConcept()500%n/a11111111
saveConcept_shouldSaveAConceptNumericAsAConcept()480%n/a11111111
saveConcept_shouldUpdateConceptIfConceptIsAttachedToAnObservationAndItIsANonDatatypeChange()480%n/a119911
saveConcept_shouldKeepIdForNewConceptIfOneIsSpecified()440%n/a11111111
saveConcept_shouldCreateAReferenceTermForAConceptMappingOnTheFlyWhenEditingAConcept()420%n/a119911
mapConceptProposalToConcept_shouldAllowRejectingProposals()410%n/a11101011
retireConceptMapType_shouldRetireTheSpecifiedConceptMapTypeWithTheGivenRetireReason()380%n/a11111111
retireConceptReferenceTerm_shouldRetireTheSpecifiedConceptReferenceTermWithTheGivenRetireReason()380%n/a11121211
saveConcept_shouldNotFailWhenADuplicateNameIsEditedToAUniqueValue()380%n/a11101011
saveConcept_shouldGenerateIdForNewConceptIfNoneIsSpecified()370%n/a119911
saveConceptMapType_shouldUpdateAnExistingConceptMapType()370%n/a11121211
mapConceptProposalToConcept_shouldFailWhenAddingADuplicateSyonymn()370%n/a11101011
unretireConceptMapType_shouldUnretireTheSpecifiedConceptMapTypeAndDropAllRetireRelatedFields()360%n/a11111111
unretireConceptReferenceTerm_shouldUnretireTheSpecifiedConceptReferenceTermAndDropAllRetireRelatedFields()360%n/a11111111
saveConcept_shouldSetAuditInfoIfAnItemIsAddedToAnyOfItsChildCollections()360%n/a11101011
saveConceptSource_shouldNotSetDateCreatedIfOneIsSuppliedAlready()350%n/a119911
saveConcept_shouldUpdateConceptAlreadyExistingInDatabase()350%n/a117711
saveConceptNameTag_shouldNotSaveAConceptNameTagIfTagExists()350%n/a11101011
conceptIterator_shouldStartWithTheSmallestConceptId()340%60%44101011
saveConcept_shouldCreateNewConceptInDatabase()340%n/a118811
saveConcept_shouldSetAuditInfoIfAnItemIsRemovedFromAnyOfItsChildCollections()330%n/a11101011
getConceptReferenceTerms_shouldReturnUniqueTermsWithACodeOrNameContainingTheSearchPhrase()320%20%228811
saveConcept_shouldSetAuditInfoIfAnyItemInTheChildCollectionsIsEdited()320%n/a11101011
saveConceptSource_shouldNotSetCreatorIfOneIsSuppliedAlready()310%n/a119911
saveConceptReferenceTerm_shouldAddAConceptReferenceTermToTheDatabaseAndAssignAnIdToIt()310%n/a119911
getAllConceptStopWords_shouldReturnEmptyListIfNoRecordFound()300%n/a117711
changeConceptFromBooleanToCoded_shouldConvertTheDatatypeOfABooleanConceptToCoded()290%n/a117711
mapConceptProposalToConcept_shouldNotRequireMappedConceptOnRejectAction()280%n/a119911
getConcepts_shouldNotReturnConceptsWithMatchingNamesThatAreVoided()280%n/a115511
retireConceptSource_shouldRetireConceptSource()270%n/a116611
saveConceptSource_shouldSaveAConceptSourceWithANullHl7Code()270%n/a119911
saveConceptStopWord_shouldSaveConceptStopWordIntoDatabase()270%n/a116611
getDrugs_shouldReturnDrugsByDrugConceptId()260%n/a117711
deleteConceptStopWord_shouldDeleteTheGivenConceptStopWord()260%n/a116611
getConcepts_shouldNotFailWithNullClassesAndDatatypes()250%n/a116611
saveConceptStopWord_shouldFailIfADuplicateConceptStopWordInALocaleIsAdded()240%n/a118811
saveConcept_shouldAddNewConceptName()240%n/a116611
saveConcept_shouldNotSetAuditInfoIfTheConceptIsNotEdited()240%n/a117711
createTrueFalseGlobalProperties()230%n/a117711
getConcepts_shouldReturnConceptSearchResultsThatMatchUniqueConcepts()230%n/a115511
getConcepts_shouldReturnConceptSearchResultsThatContainAllSearchWords()230%n/a115511
getConceptReferenceTermByName_shouldBeCaseInsensitive()230%n/a116611
getCountOfConcepts_shouldNotFailWithNullClassesAndDatatypes()230%n/a116611
getConceptsByMapping_shouldReturnRetiredAndNonRetiredConcepts()220%n/a115511
getAllConcepts_shouldExcludeRetiredConceptsWhenSetIncludeRetiredToFalse()220%n/a114411
getAllConcepts_shouldOrderByConceptIdDescendingWhenSetAscParameterToFalse()220%n/a114411
getConceptsByMapping_shouldGetConceptsWithGivenCodeAndSourceH17Code()210%n/a115511
getConceptsByMapping_shouldGetConceptsWithGivenCodeAndSourceName()210%n/a115511
getConceptsByMapping_shouldReturnRetiredAndNonRetiredConceptsByDefault()210%n/a115511
saveConceptNameTag_shouldSaveAConceptNameTagIfATagDoesNotExist()210%n/a116611
saveConceptStopWord_shouldSaveConceptStopWordAssignDefaultLocaleIsItNull()210%n/a115511
getConceptStopWords_shouldReturnListOfConceptStopWordsForGivenLocale()210%n/a115511
shouldFetchNamesForConceptsThatWereFirstFetchedAsNumerics()190%n/a115511
shouldFetchDescriptionsForConceptsThatWereFirstFetchedAsNumerics()190%n/a115511
saveConceptMapType_shouldAddTheSpecifiedConceptMapTypeToTheDatabaseAndAssignToItAnId()190%n/a116611
getCountOfConcepts_shouldReturnACountOfUniqueConcepts()190%n/a114411
getDefaultConceptMapType_shouldReturnTypeAsSetInGp()190%n/a115511
getAllConcepts_shouldOrderByConceptIdAndIncludeRetiredWhenGivenNoParameters()190%n/a114411
getConceptByName_shouldGetConceptByName()180%n/a115511
getConceptByName_shouldFindConceptsWithNamesInMoreSpecificLocales()180%n/a117711
getConceptMapTypeByName_shouldBeCaseInsensitive()180%n/a116611
getConceptByName_shouldGetConceptByPartialName()170%n/a115511
getConceptsByMapping_shouldOnlyReturnNonRetiredConcepts()170%n/a114411
getDrugs_shouldReturnDrugsByDrugId()170%n/a115511
retireConceptMapType_shouldShouldSetTheDefaultRetireReasonIfNoneIsGiven()170%n/a115511
getConceptReferenceTerms_shouldReturnOnlyTheConceptReferenceTermsFromTheGivenConceptSource()170%n/a113311
getConceptsByMapping_shouldSortNonRetiredConceptsFirst()160%n/a113311
saveConceptSource_shouldNotSaveAConceptSourceIfVoidedIsNull()160%n/a115511
getConceptReferenceTermByName_shouldReturnAConceptReferenceTermThatMatchesTheGivenNameFromTheGivenSource()160%n/a115511
getConceptReferenceTermByCode_shouldReturnAConceptReferenceTermThatMatchesTheGivenCodeFromTheGivenSource()160%n/a115511
purgeConceptMapType_shouldDeleteTheSpecifiedConceptMapTypeFromTheDatabase()160%n/a115511
saveConceptStopWord_shouldSaveConceptStopWordInUppercase()150%n/a114411
getConceptByName_shouldReturnNullGivenBlankString()150%n/a115511
getDrugsByIngredient_shouldReturnDrugsMatchedByDrugConcept()150%n/a113311
getDrugsByIngredient_shouldReturnDrugsMatchedByIntermediateConcept()150%n/a113311
getDrugsByIngredient_shouldReturnEmptyListIfNothingFound()150%n/a113311
conceptIterator_shouldIterateOverAllConcepts()140%n/a114411
getConceptByMapping_shouldReturnRetiredConceptIfOnlyMatch()140%n/a113311
getConceptSourceByName_shouldGetConceptSourceWithTheGivenName()140%n/a113311
getConceptsByConceptSource_shouldReturnAListOfConceptMapsIfConceptMappingsFound()140%n/a114411
getConceptsByConceptSource_shouldReturnEmptyListOfConceptMapsIfNoneFound()140%n/a114411
saveConceptStopWord_shouldSaveReturnConceptStopWordWithId()140%n/a114411
retireConceptReferenceTerm_shouldShouldSetTheDefaultRetireReasonIfNoneIsGiven()140%n/a114411
getTrueConcept_shouldReturnProperTrueConcept()140%n/a115511
getFalseConcept_shouldReturnProperFalseConcept()140%n/a115511
getFalse_shouldReturnTheFalseConcept()130%n/a114411
getTrue_shouldReturnTheTrueConcept()130%n/a114411
getConceptDatatypeByName_shouldReturnAnExactMatchOnName()130%n/a114411
getConceptByMapping_shouldGetConceptWithGivenCodeAndSourceHl7Code()120%n/a113311
getConceptByMapping_shouldGetConceptWithGivenCodeAndSourceName()120%n/a113311
getConceptByMapping_shouldReturnRetiredConceptByDefaultIfOnlyMatch()120%n/a113311
getConceptAnswerByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptClassByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptDatatypeByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptDescriptionByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptNameByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptNameTagByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptNumericByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptProposalByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptSetByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getConceptSourceByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getDrugByUuid_shouldFindObjectGivenValidUuid()120%n/a114411
getDrugs_shouldReturnDrugsThatAreRetired()120%n/a113311
getConceptComplex_shouldReturnAConceptComplexObject()110%n/a114411
getConceptByMapping_shouldNotReturnRetiredConcept()110%n/a113311
getConceptByName_shouldFindConceptsWithNamesInSameSpecificLocale()110%n/a114411
changeConceptFromBooleanToCoded_shouldFailIfTheDatatypeOfTheConceptIsNotBoolean()110%n/a113311
getConceptDatatypeByName_shouldNotReturnAFuzzyMatchOnName()110%n/a114411
getConceptStopWords_shouldReturnDefaultLocaleConceptStopWordsIfLocaleIsNull()110%n/a113311
getConceptStopWords_shouldReturnEmptyListIfNoConceptStopWordsForGivenLocale()110%n/a113311
getDefaultConceptMapType_shouldReturnSameAsByDefault()110%n/a114411
getConceptsByMapping_shouldReturnEmptyListIfSourceCodeDoesNotExist()100%n/a113311
getConceptsByMapping_shouldReturnEmptyListIfNoMappingsExist()100%n/a113311
getConceptByName_shouldFindConceptsWithNamesInMoreGenericLocales()100%n/a114411
getAllConceptStopWords_shouldReturnAllConceptStopWords()100%n/a113311
getConceptMappingsToSource_shouldReturnAListOfConceptMapsFromTheGivenSource()100%n/a113311
getReferenceTermMappingsTo_shouldReturnAllConceptReferenceTermMapsWhereTheSpecifiedTermIsTheTermB()100%n/a113311
getConceptsByClass_shouldNotFailDueToNoNameInSearch()100%n/a113311
getCountOfConceptReferenceTerms_shouldIncludeRetiredTermsIfIncludeRetiredIsSetToTrue()100%n/a112211
getCountOfConceptReferenceTerms_shouldNotIncludeRetiredTermsIfIncludeRetiredIsSetToFalse()100%n/a112211
getConceptByMapping_shouldReturnNullIfSourceCodeDoesNotExist()90%n/a113311
getConceptByMapping_shouldReturnNullIfNoMappingExists()90%n/a113311
getConceptSourceByName_shouldReturnNullIfNoConceptSourceWithThatNameIsFound()90%n/a113311
getFalseConcept_shouldReturnTheFalseConcept()90%n/a113311
getTrueConcept_shouldReturnTheTrueConcept()90%n/a113311
getConceptMapTypes_shouldNotIncludeHiddenConceptMapTypesIfIncludeHiddenIsSetToFalse()80%n/a112211
getConceptMapTypes_shouldReturnAllTheConceptMapTypesIfIncludeRetiredAndHiddenAreSetToTrue()80%n/a112211
getConceptMapTypes_shouldReturnOnlyUnRetiredConceptMapTypesIfIncludeRetiredIsSetToFalse()80%n/a112211
getConceptByMapping_shouldThrowExceptionIfTwoConceptsHaveSameMapping()70%n/a112211
getDrugs_shouldNotFailIfThereisNoDrugByGivenDrugId()70%n/a113311
getConceptMapTypeByName_shouldReturnAConceptMapTypeMatchingTheSpecifiedName()70%n/a112211
getConceptMapTypeByUuid_shouldReturnAConceptMapTypeMatchingTheSpecifiedUuid()70%n/a113311
getConceptReferenceTerms_shouldReturnAllTheConceptReferenceTermsIfIncludeRetiredIsSetToTrue()70%n/a112211
getConceptReferenceTerms_shouldReturnOnlyUnRetiredConceptReferenceTermsIfIncludeRetiredIsSetToFalse()70%n/a112211
getConceptReferenceTermByUuid_shouldReturnTheConceptReferenceTermThatMatchesTheGivenUuid()70%n/a113311
ConceptServiceTest()60%n/a112211
getActiveConceptMapTypes_shouldReturnAllTheConceptMapTypesExcludingHiddenOnes()60%n/a112211
getAllConceptReferenceTerms_shouldReturnAllConceptReferenceTermsInTheDatabase()60%n/a112211
getConcept_shouldReturnNullGivenNullParameter()50%n/a112211
getConceptByName_shouldReturnNullGivenNullParameter()50%n/a112211
getConceptAnswerByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptClassByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptDatatypeByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptDescriptionByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptNameByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptNameTagByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptNumericByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptProposalByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptSetByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getConceptSourceByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getDrugByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
runBeforeAllTests()40%n/a112211