Skip to content

Commit

Permalink
A fix for assigning ids to Individuals
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Dec 13, 2024
1 parent a62741f commit 4792b15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ontogpt/templates/phenopackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ class Individual(ConfiguredBaseModel):
'gender identity; nobinary '
'gender identity; agendered'}},
'domain_of': ['Individual']} })
id: str = Field(..., description="""An identifier for the individual. This must be unique within the record. ARGO mapping donor::submitter_donor_id""", json_schema_extra = { "linkml_meta": {'alias': 'id',
id: Optional[str] = Field(None, description="""An identifier for the individual. This must be unique within the record. ARGO mapping donor::submitter_donor_id""", json_schema_extra = { "linkml_meta": {'alias': 'id',
'annotations': {'prompt': {'tag': 'prompt',
'value': 'The identifier for the individual. These '
'may also be present in the '
Expand Down
6 changes: 5 additions & 1 deletion src/ontogpt/templates/phenopackets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1272,13 +1272,17 @@ classes:
female gender identity; male gender identity;
nobinary gender identity; agendered
id:
# This does not always get assigned, so it isn't
# considered a true identifier.
# TODO: assign after phenopacket creation, along
# with other metadata, as necessary.
description: >-
An identifier for the individual. This must be unique within the
record. ARGO mapping donor::submitter_donor_id
exact_mappings:
- ARGO:donor.submitter_donor_id
range: string
identifier: true
# identifier: true
annotations:
prompt: >-
The identifier for the individual. These may also be present
Expand Down

0 comments on commit 4792b15

Please sign in to comment.