Class PhenotypicFeatureBuilder
java.lang.Object
org.phenopackets.phenopackettools.builder.builders.PhenotypicFeatureBuilder
This has convenience methods for building PhenotypicFeature messages with some
commonly used options.
- Author:
- Peter N Robinson
-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvidence(List<org.phenopackets.schema.v2.core.Evidence> evidenceList) addAllModifiers(List<org.phenopackets.schema.v2.core.OntologyClass> modifiers) addEvidence(org.phenopackets.schema.v2.core.Evidence evidence) addModifier(org.phenopackets.schema.v2.core.OntologyClass modifier) org.phenopackets.schema.v2.core.PhenotypicFeaturebuild()static PhenotypicFeatureBuilderstatic PhenotypicFeatureBuilderbuilder(org.phenopackets.schema.v2.core.OntologyClass feature) description(String text) excluded()iso8601onset(String iso8601) static org.phenopackets.schema.v2.core.PhenotypicFeaturestatic org.phenopackets.schema.v2.core.PhenotypicFeatureof(org.phenopackets.schema.v2.core.OntologyClass feature) onset(org.phenopackets.schema.v2.core.TimeElement time) resolution(org.phenopackets.schema.v2.core.TimeElement time) severity(org.phenopackets.schema.v2.core.OntologyClass severity)
-
Method Details
-
of
public static org.phenopackets.schema.v2.core.PhenotypicFeature of(org.phenopackets.schema.v2.core.OntologyClass feature) -
of
-
builder
public static PhenotypicFeatureBuilder builder(org.phenopackets.schema.v2.core.OntologyClass feature) -
builder
-
onset
-
iso8601onset
- Parameters:
iso8601- A string such as P10Y4M2D representing the age of onset/observation
-
congenitalOnset
-
embryonalOnset
-
fetalOnset
-
infantileOnset
-
childhoodOnset
-
adultOnset
-
resolution
-
severity
-
severity
-
excluded
-
addEvidence
-
addAllEvidence
public PhenotypicFeatureBuilder addAllEvidence(List<org.phenopackets.schema.v2.core.Evidence> evidenceList) -
addModifier
-
addAllModifiers
public PhenotypicFeatureBuilder addAllModifiers(List<org.phenopackets.schema.v2.core.OntologyClass> modifiers) -
description
-
build
public org.phenopackets.schema.v2.core.PhenotypicFeature build()
-