public final class CategorizationTranslator extends Object implements PropositionTranslator<org.eurekaclinical.eureka.client.comm.Category,CategoryEntity>
| Constructor and Description |
|---|
CategorizationTranslator(PhenotypeEntityDao inPropositionDao,
SystemPropositionFinder inFinder,
SourceConfigResource inSourceConfigResource) |
| Modifier and Type | Method and Description |
|---|---|
CategoryEntity |
translateFromPhenotype(org.eurekaclinical.eureka.client.comm.Category phenotype)
Translates the given phenotype to a proposition understood by the
services layer data model.
|
org.eurekaclinical.eureka.client.comm.Category |
translateFromProposition(CategoryEntity proposition)
Translates the given proposition entity into a phenotype understood by
the webapp layer.
|
@Inject public CategorizationTranslator(PhenotypeEntityDao inPropositionDao, SystemPropositionFinder inFinder, SourceConfigResource inSourceConfigResource)
public CategoryEntity translateFromPhenotype(org.eurekaclinical.eureka.client.comm.Category phenotype) throws org.eurekaclinical.eureka.client.comm.exception.PhenotypeHandlingException
PropositionTranslatorPropositionTranslator.translateFromProposition(PhenotypeEntity)
.translateFromPhenotype in interface PropositionTranslator<org.eurekaclinical.eureka.client.comm.Category,CategoryEntity>phenotype - the phenotype to translate fromPhenotypeEntity equivalent to the phenotype.org.eurekaclinical.eureka.client.comm.exception.PhenotypeHandlingException - if an error occurred retrieving
proposition definitions.public org.eurekaclinical.eureka.client.comm.Category translateFromProposition(CategoryEntity proposition)
PropositionTranslatorPropositionTranslator.translateFromPhenotype(Phenotype).translateFromProposition in interface PropositionTranslator<org.eurekaclinical.eureka.client.comm.Category,CategoryEntity>proposition - the proposition to translate fromPhenotype equivalent to the proposition.Copyright © 2012–2016 Emory University. All rights reserved.