You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/include_access_model/datamodel/include_access_model_pydantic.py
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -515,11 +515,9 @@ class SubjectAssertion(Record):
515
515
age_at_assertion: Optional[int] =Field(default=None, title="Age at assertion", description="""The age in days of the Subject when the assertion was made.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion'], 'unit': {'ucum_code': 'd'}} })
516
516
age_at_event: Optional[int] =Field(default=None, title="Age at event", description="""The age in days of the Subject at the time point which the assertion describes, | eg, age of onset or when a measurement was performed.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion'], 'unit': {'ucum_code': 'd'}} })
517
517
age_at_resolution: Optional[int] =Field(default=None, title="Age at resolution", description="""The age in days of the Subject when the asserted state was resolved.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion'], 'unit': {'ucum_code': 'd'}} })
518
-
code: Optional[str] =Field(default=None, title="Assertion Code", description="""The structured term defining the meaning of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
519
-
display: Optional[str] =Field(default=None, title="Display String", description="""The friendly display string of the coded term.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
518
+
code: Optional[list[str]] =Field(default=[], title="Assertion Code", description="""The structured term defining the meaning of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion', 'Concept']} })
520
519
code_source: Optional[str] =Field(default=None, title="Code Source Text", description="""The source text yielding the code.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
521
520
value_code: Optional[str] =Field(default=None, title="Value Code", description="""The structured term defining the value of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
522
-
value_display: Optional[str] =Field(default=None, title="Value Display String", description="""The friendly display string of the coded term for the value of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
523
521
value_number: Optional[float] =Field(default=None, title="Value Number", description="""The numeric value of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
524
522
value_source: Optional[str] =Field(default=None, title="Value Source Text", description="""The source text yielding the value.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
525
523
value_units: Optional[str] =Field(default=None, title="Value Units", description="""The structured term defining the units of the value.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion']} })
@@ -528,6 +526,21 @@ class SubjectAssertion(Record):
528
526
external_id: Optional[list[str]] =Field(default=[], title="External Identifiers", description="""Other identifiers for this entity, eg, from the submitting study or in systems like dbGaP""", json_schema_extra= { "linkml_meta": {'domain_of': ['Record']} })
code: str=Field(default=..., title="Assertion Code", description="""The structured term defining the meaning of the assertion.""", json_schema_extra= { "linkml_meta": {'domain_of': ['SubjectAssertion', 'Concept']} })
541
+
display: Optional[str] =Field(default=None, title="Display String", description="""The friendly display string of the coded term.""", json_schema_extra= { "linkml_meta": {'domain_of': ['Concept']} })
542
+
543
+
531
544
# Model rebuild
532
545
# see https://pydantic-docs.helpmanual.io/usage/models/#rebuilding-a-model
533
546
Record.model_rebuild()
@@ -539,3 +552,4 @@ class SubjectAssertion(Record):
0 commit comments