Skip to content

Commit

Permalink
fix disease ageOfOnset examples
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
mbaudis committed Jun 1, 2023
1 parent 634283d commit 8065376
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
26 changes: 9 additions & 17 deletions models/json/beacon-v2-default-model/common/disease.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,22 @@
"$ref": "./timeElement.json",
"examples": [
{
"ageGroup": {
"id": "NCIT:C49685",
"label": "Adult 18-65 Years Old"
}
"id": "NCIT:C49685",
"label": "Adult 18-65 Years Old"
},
{
"age": {
"iso8601duration": "P32Y6M1D"
}
"iso8601duration": "P32Y6M1D"
},
{
"ageRange": {
"end": {
"iso8601duration": "P59Y"
},
"start": {
"iso8601duration": "P18Y"
}
"end": {
"iso8601duration": "P59Y"
},
"start": {
"iso8601duration": "P18Y"
}
},
{
"age": {
"iso8601duration": "P2M4D"
}
"iso8601duration": "P2M4D"
}
]
},
Expand Down
20 changes: 8 additions & 12 deletions models/src/beacon-v2-default-model/common/disease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ properties:
ageOfOnset:
$ref: ./timeElement.yaml
examples:
- ageGroup:
id: NCIT:C49685
label: Adult 18-65 Years Old
- age:
iso8601duration: P32Y6M1D
- ageRange:
start:
iso8601duration: P18Y
end:
iso8601duration: P59Y
- age:
iso8601duration: P2M4D
- id: NCIT:C49685
label: Adult 18-65 Years Old
- iso8601duration: P32Y6M1D
- start:
iso8601duration: P18Y
end:
iso8601duration: P59Y
- iso8601duration: P2M4D
stage:
description: 'Ontology term from Ontology for General Medical Science (OGMS),
e.g. acute onset (OGMS:0000119). Provenance: GA4GH Phenopackets v2 `Disease.disease_stage`'
Expand Down

0 comments on commit 8065376

Please sign in to comment.