Skip to content

Commit

Permalink
Tweaks to RadiationTherapy
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Dec 13, 2024
1 parent fd444d9 commit d92b14e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/ontogpt/templates/phenopackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1944,16 +1944,16 @@ class RadiationTherapy(ConfiguredBaseModel):
"""
linkml_meta: ClassVar[LinkMLMeta] = LinkMLMeta({'from_schema': 'http://w3id.org/ontogpt/phenopackets'})

bodySite: OntologyClass = Field(..., description="""The anatomical site where radiation therapy was administered. REQUIRED. ARGO mapping radiation::anatomical_site_irradiated""", json_schema_extra = { "linkml_meta": {'alias': 'bodySite',
bodySite: str = Field(..., description="""The anatomical site where radiation therapy was administered. REQUIRED. ARGO mapping radiation::anatomical_site_irradiated""", json_schema_extra = { "linkml_meta": {'alias': 'bodySite',
'domain_of': ['RadiationTherapy'],
'exact_mappings': ['ARGO:radiation.anatomical_site_irradiated']} })
dosage: int = Field(..., description="""The total dose given in units of Gray (Gy). REQUIRED. ARGO mapping radiation::radiation_therapy_dosage""", json_schema_extra = { "linkml_meta": {'alias': 'dosage',
dosage: Optional[str] = Field(None, description="""The total dose given in units of Gray (Gy). REQUIRED. ARGO mapping radiation::radiation_therapy_dosage""", json_schema_extra = { "linkml_meta": {'alias': 'dosage',
'domain_of': ['RadiationTherapy'],
'exact_mappings': ['ARGO:radiation.radiation_therapy_dosage']} })
fractions: int = Field(..., description="""The total number of fractions delivered as part of treatment. REQUIRED. ARGO mapping radiation::radiation_therapy_fractions""", json_schema_extra = { "linkml_meta": {'alias': 'fractions',
fractions: Optional[str] = Field(None, description="""The total number of fractions delivered as part of treatment. REQUIRED. ARGO mapping radiation::radiation_therapy_fractions""", json_schema_extra = { "linkml_meta": {'alias': 'fractions',
'domain_of': ['RadiationTherapy'],
'exact_mappings': ['ARGO:radiation.radiation_therapy_fractions']} })
modality: OntologyClass = Field(..., description="""The modality of radiation therapy (e.g., electron, photon,…). REQUIRED. ARGO mapping radiation::radiation_therapy_modality""", json_schema_extra = { "linkml_meta": {'alias': 'modality',
modality: Optional[str] = Field(None, description="""The modality of radiation therapy (e.g., electron, photon,…). REQUIRED. ARGO mapping radiation::radiation_therapy_modality""", json_schema_extra = { "linkml_meta": {'alias': 'modality',
'domain_of': ['RadiationTherapy'],
'exact_mappings': ['ARGO:radiation.radiation_therapy_modality']} })

Expand Down
18 changes: 10 additions & 8 deletions src/ontogpt/templates/phenopackets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1767,34 +1767,36 @@ classes:
REQUIRED. ARGO mapping radiation::anatomical_site_irradiated
exact_mappings:
- ARGO:radiation.anatomical_site_irradiated
inlined: true
range: OntologyClass
range: AnatomyClass
required: true
dosage:
description: >-
The total dose given in units of Gray (Gy).
REQUIRED. ARGO mapping radiation::radiation_therapy_dosage
exact_mappings:
- ARGO:radiation.radiation_therapy_dosage
range: integer
required: true
# range: integer
range: string
# required: true
fractions:
description: >-
The total number of fractions delivered as part of treatment.
REQUIRED. ARGO mapping radiation::radiation_therapy_fractions
exact_mappings:
- ARGO:radiation.radiation_therapy_fractions
range: integer
required: true
# range: integer
range: string
# required: true
modality:
description: >-
The modality of radiation therapy (e.g., electron, photon,…).
REQUIRED. ARGO mapping radiation::radiation_therapy_modality
exact_mappings:
- ARGO:radiation.radiation_therapy_modality
inlined: true
range: OntologyClass
required: true
# range: OntologyClass
range: string
# required: true

TherapeuticRegimen:
description: ARGO mapping radiation::radiation_therapy_type (missing)
Expand Down

0 comments on commit d92b14e

Please sign in to comment.