Skip to content

Class: TimeElement

URI: phenopackets:TimeElement

erDiagram Age { string iso8601duration } AgeRange { } GestationalAge { integer days integer weeks } OntologyClass { string id string label } TimeElement { string timestamp } TimeInterval { string end string start } AgeRange ||--|o Age : "end, start" TimeElement ||--|o Age : "age" TimeElement ||--|o AgeRange : "ageRange" TimeElement ||--|o GestationalAge : "gestationalAge" TimeElement ||--|o OntologyClass : "ontologyClass" TimeElement ||--|o TimeInterval : "interval"

Slots

Name Cardinality and Range Description Inheritance
age 0..1
Age
direct
ageRange 0..1
AgeRange
direct
gestationalAge 0..1
GestationalAge
direct
interval 0..1
TimeInterval
direct
ontologyClass 0..1
OntologyClass
direct
timestamp 0..1
String
direct

Usages

used by used in type used
Procedure performed range TimeElement
Measurement timeObserved range TimeElement
PhenotypicFeature onset range TimeElement
PhenotypicFeature resolution range TimeElement
Biosample timeOfCollection range TimeElement
Disease onset range TimeElement
Disease resolution range TimeElement
Individual timeAtLastEncounter range TimeElement
VitalStatus timeOfDeath range TimeElement
TherapeuticRegimen endTime range TimeElement
TherapeuticRegimen startTime range TimeElement

Rules

Rule Applied Preconditions Postconditions Elseconditions
exactly_one_of [{'slot_conditions': {'gestationalAge': {'required': True}}}, {'slot_conditions': {'age': {'required': True}}}, {'slot_conditions': {'ageRange': {'required': True}}}, {'slot_conditions': {'ontologyClass': {'required': True}}}, {'slot_conditions': {'timestamp': {'required': True}}}, {'slot_conditions': {'interval': {'required': True}}}]

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/linkml/phenopackets/phenopackets

Mappings

Mapping Type Mapped Value
self phenopackets:TimeElement
native phenopackets:TimeElement

LinkML Source

Direct

name: TimeElement
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
attributes:
  age:
    name: age
    annotations:
      rank:
        tag: rank
        value: 1
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    range: Age
  ageRange:
    name: ageRange
    annotations:
      rank:
        tag: rank
        value: 2
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    range: AgeRange
  gestationalAge:
    name: gestationalAge
    annotations:
      rank:
        tag: rank
        value: 6
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    range: GestationalAge
  interval:
    name: interval
    annotations:
      rank:
        tag: rank
        value: 5
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    - ChromosomeLocation
    - DoseInterval
    range: TimeInterval
    inlined: true
  ontologyClass:
    name: ontologyClass
    annotations:
      rank:
        tag: rank
        value: 3
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    - Value
    - TherapeuticRegimen
    range: OntologyClass
    inlined: true
  timestamp:
    name: timestamp
    annotations:
      rank:
        tag: rank
        value: 4
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    domain_of:
    - TimeElement
    - Update
    range: string
rules:
- postconditions:
    exactly_one_of:
    - slot_conditions:
        gestationalAge:
          name: gestationalAge
          required: true
    - slot_conditions:
        age:
          name: age
          required: true
    - slot_conditions:
        ageRange:
          name: ageRange
          required: true
    - slot_conditions:
        ontologyClass:
          name: ontologyClass
          required: true
    - slot_conditions:
        timestamp:
          name: timestamp
          required: true
    - slot_conditions:
        interval:
          name: interval
          required: true
  annotations:
    oneof:
      tag: oneof
      value: element

Induced

name: TimeElement
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
attributes:
  age:
    name: age
    annotations:
      rank:
        tag: rank
        value: 1
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    range: Age
  ageRange:
    name: ageRange
    annotations:
      rank:
        tag: rank
        value: 2
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    range: AgeRange
  gestationalAge:
    name: gestationalAge
    annotations:
      rank:
        tag: rank
        value: 6
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    range: GestationalAge
  interval:
    name: interval
    annotations:
      rank:
        tag: rank
        value: 5
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    - ChromosomeLocation
    - DoseInterval
    range: TimeInterval
    inlined: true
  ontologyClass:
    name: ontologyClass
    annotations:
      rank:
        tag: rank
        value: 3
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    - Value
    - TherapeuticRegimen
    range: OntologyClass
    inlined: true
  timestamp:
    name: timestamp
    annotations:
      rank:
        tag: rank
        value: 4
    description: ''
    from_schema: https://w3id.org/linkml/phenopackets/phenopackets
    rank: 1000
    owner: TimeElement
    domain_of:
    - TimeElement
    - Update
    range: string
rules:
- postconditions:
    exactly_one_of:
    - slot_conditions:
        gestationalAge:
          name: gestationalAge
          required: true
    - slot_conditions:
        age:
          name: age
          required: true
    - slot_conditions:
        ageRange:
          name: ageRange
          required: true
    - slot_conditions:
        ontologyClass:
          name: ontologyClass
          required: true
    - slot_conditions:
        timestamp:
          name: timestamp
          required: true
    - slot_conditions:
        interval:
          name: interval
          required: true
  annotations:
    oneof:
      tag: oneof
      value: element