Skip to content

Commit

Permalink
A fix for the Interpretation class diagnosis slot
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Dec 13, 2024
1 parent b67a211 commit 83ea889
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 13 additions & 11 deletions src/ontogpt/templates/phenopackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,17 +1336,19 @@ class Interpretation(ConfiguredBaseModel):
diagnosis: Optional[Diagnosis] = Field(None, description="""The diagnosis made in this interpretation.""", json_schema_extra = { "linkml_meta": {'alias': 'diagnosis',
'annotations': {'prompt': {'tag': 'prompt',
'value': 'The diagnosis made in this '
'interpretation. Include the following, '
'as available: the name of the disease or '
'condition with all acronyms spelled out, '
'the identifier of the individual or '
'biosample, and any details regarding '
'genetic or genomic interpretation '
'(including the gene, the status of the '
'genetic interpretation, and/or any '
'details regarding the specific variant). '
'Include this information even if it is '
'also present in the summary field.'}},
'interpretation. If this is not provided, '
'do not include a value for this field. '
'Include the following, as available: the '
'name of the disease or condition with '
'all acronyms spelled out, the identifier '
'of the individual or biosample, and any '
'details regarding genetic or genomic '
'interpretation (including the gene, the '
'status of the genetic interpretation, '
'and/or any details regarding the '
'specific variant). Include this '
'information even if it is also present '
'in the summary field.'}},
'domain_of': ['Interpretation']} })
id: Optional[str] = Field(None, description="""id of the interpretation""", json_schema_extra = { "linkml_meta": {'alias': 'id',
'annotations': {'prompt': {'tag': 'prompt',
Expand Down
4 changes: 3 additions & 1 deletion src/ontogpt/templates/phenopackets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,12 @@ classes:
diagnosis:
description: The diagnosis made in this interpretation.
range: Diagnosis
inlined: true
annotations:
prompt: >-
The diagnosis made in this interpretation.
Include the following, as available:
If this is not provided, do not include a value for this
field. Include the following, as available:
the name of the disease or condition with all
acronyms spelled out, the identifier of the individual
or biosample, and any details regarding genetic or
Expand Down

0 comments on commit 83ea889

Please sign in to comment.