java.lang.Object
org.phenopackets.phenopackettools.builder.builders.TimeElements

public class TimeElements extends Object
The TimeElement is used in many places in the Phenopacket. It is defined as being one of the following options.
  1. gestational_age (GestationalAge)
  2. age (Age)
  3. age_range (AgeRange)
  4. ontology_class (OntologyClass)
  5. timestamp (Timestamp)
  6. interval (TimeInterval)
Author:
Peter N Robinson
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
    age(String iso8601duration)
     
    static org.phenopackets.schema.v2.core.TimeElement
    age(org.phenopackets.schema.v2.core.Age age)
     
    static org.phenopackets.schema.v2.core.TimeElement
    ageRange(String iso8601start, String iso8601End)
     
    static org.phenopackets.schema.v2.core.TimeElement
    ageRange(org.phenopackets.schema.v2.core.AgeRange ageRange)
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
    gestationalAge(int weeks)
     
    static org.phenopackets.schema.v2.core.TimeElement
    gestationalAge(int weeks, int days)
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
    interval(String timestampStart, String timestampEnd)
     
    static org.phenopackets.schema.v2.core.TimeElement
    interval(Instant startInstant, Instant endInstant)
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
     
    static org.phenopackets.schema.v2.core.TimeElement
    ontologyClass(org.phenopackets.schema.v2.core.OntologyClass clz)
     
    static org.phenopackets.schema.v2.core.TimeElement
    timestamp(String timestamp)
     
    static org.phenopackets.schema.v2.core.TimeElement
    timestamp(Instant instant)
     
    static org.phenopackets.schema.v2.core.TimeElement
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • gestationalAge

      public static org.phenopackets.schema.v2.core.TimeElement gestationalAge(int weeks, int days)
    • gestationalAge

      public static org.phenopackets.schema.v2.core.TimeElement gestationalAge(int weeks)
    • age

      public static org.phenopackets.schema.v2.core.TimeElement age(org.phenopackets.schema.v2.core.Age age)
    • age

      public static org.phenopackets.schema.v2.core.TimeElement age(String iso8601duration)
    • ageRange

      public static org.phenopackets.schema.v2.core.TimeElement ageRange(String iso8601start, String iso8601End)
    • ageRange

      public static org.phenopackets.schema.v2.core.TimeElement ageRange(org.phenopackets.schema.v2.core.AgeRange ageRange)
    • ontologyClass

      public static org.phenopackets.schema.v2.core.TimeElement ontologyClass(String id, String label)
    • ontologyClass

      public static org.phenopackets.schema.v2.core.TimeElement ontologyClass(org.phenopackets.schema.v2.core.OntologyClass clz)
    • fetalOnset

      public static org.phenopackets.schema.v2.core.TimeElement fetalOnset()
    • embryonalOnset

      public static org.phenopackets.schema.v2.core.TimeElement embryonalOnset()
    • antenatalOnset

      public static org.phenopackets.schema.v2.core.TimeElement antenatalOnset()
    • congenitalOnset

      public static org.phenopackets.schema.v2.core.TimeElement congenitalOnset()
    • neonatalOnset

      public static org.phenopackets.schema.v2.core.TimeElement neonatalOnset()
    • childhoodOnset

      public static org.phenopackets.schema.v2.core.TimeElement childhoodOnset()
    • juvenileOnset

      public static org.phenopackets.schema.v2.core.TimeElement juvenileOnset()
    • infantileOnset

      public static org.phenopackets.schema.v2.core.TimeElement infantileOnset()
    • adultOnset

      public static org.phenopackets.schema.v2.core.TimeElement adultOnset()
    • lateOnset

      public static org.phenopackets.schema.v2.core.TimeElement lateOnset()
    • middleAgeOnset

      public static org.phenopackets.schema.v2.core.TimeElement middleAgeOnset()
    • youngAdultOnset

      public static org.phenopackets.schema.v2.core.TimeElement youngAdultOnset()
    • timestamp

      public static org.phenopackets.schema.v2.core.TimeElement timestamp(Instant instant)
    • timestamp

      public static org.phenopackets.schema.v2.core.TimeElement timestamp(String timestamp)
    • interval

      public static org.phenopackets.schema.v2.core.TimeElement interval(Instant startInstant, Instant endInstant)
    • interval

      public static org.phenopackets.schema.v2.core.TimeElement interval(String timestampStart, String timestampEnd)