Class IndividualBuilder
java.lang.Object
org.phenopackets.phenopackettools.builder.builders.IndividualBuilder
An Individual in the version 2 phenopacket can have these attributes. Only the id is required.
- id (string)
- alternate_ids (a list)
- date_of_birth (timestamp)
- time_at_last_encounter (TimeElement)
- vital_status (VitalStatus)
- sex (Sex)
- karyotypic_sex (KaryotypicSex)
- taxonomy (Ontology term)
- Author:
- Peter N Robinson
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAlternateIds
(List<String> altIdList) addAlternateId
(String altId) ageAtLastEncounter
(String iso8601) ageAtLastEncounter
(org.phenopackets.schema.v2.core.TimeElement timeElement) alive()
org.phenopackets.schema.v2.core.Individual
build()
static IndividualBuilder
dateOfBirth
(String dobirth) dateOfBirth
(LocalDate localDate) deceased()
female()
male()
static org.phenopackets.schema.v2.core.Individual
otherSex()
taxonomy
(org.phenopackets.schema.v2.core.OntologyClass taxon) timestampAtLastEncounter
(String timestamp) vitalStatus
(org.phenopackets.schema.v2.core.VitalStatus status) XO()
XX()
XXX()
XXXX()
XXXY()
XXY()
XXYY()
XY()
-
Method Details
-
of
-
builder
-
addAlternateId
-
addAllAlternateIds
-
dateOfBirth
-
dateOfBirth
-
timestampAtLastEncounter
-
ageAtLastEncounter
public IndividualBuilder ageAtLastEncounter(org.phenopackets.schema.v2.core.TimeElement timeElement) -
ageAtLastEncounter
-
alive
-
deceased
-
vitalStatus
-
male
-
female
-
unknownSex
-
otherSex
-
XX
-
XY
-
XO
-
XXY
-
XXX
-
XXYY
-
XXXY
-
XXXX
-
taxonomy
-
homoSapiens
-
build
public org.phenopackets.schema.v2.core.Individual build()
-