Skip to content

Commit

Permalink
Merge pull request #160 from CanDIG/sonchau/test_action_pr
Browse files Browse the repository at this point in the history
Update nested_data.py
  • Loading branch information
SonQBChau authored Nov 30, 2023
2 parents 2b9ede5 + cc95e7f commit 01327ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions chord_metadata_service/mohpackets/docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7003,11 +7003,11 @@
"title": "Exposures",
"type": "array"
},
"comorbidities": {
"comorbidities_test_test_test": {
"items": {
"$ref": "#/components/schemas/NestedComorbiditySchema"
},
"title": "Comorbidities",
"title": "Comorbidities Test Test Test",
"type": "array"
},
"submitter_donor_id": {
Expand Down Expand Up @@ -7144,7 +7144,7 @@
"followups",
"biomarkers",
"exposures",
"comorbidities",
"comorbidities_test_test_test",
"submitter_donor_id",
"program_id"
],
Expand Down
6 changes: 3 additions & 3 deletions chord_metadata_service/mohpackets/docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ Base URLs:
"pack_years_smoked": 0
}
],
"comorbidities": [
"comorbidities_test_test_test": [
{
"prior_malignancy": "string",
"laterality_of_prior_malignancy": "string",
Expand Down Expand Up @@ -5348,7 +5348,7 @@ or
"pack_years_smoked": 0
}
],
"comorbidities": [
"comorbidities_test_test_test": [
{
"prior_malignancy": "string",
"laterality_of_prior_malignancy": "string",
Expand Down Expand Up @@ -5386,7 +5386,7 @@ DonorWithClinicalDataSchema
|followups|[[NestedFollowUpSchema](#schemanestedfollowupschema)]|true|none|none|
|biomarkers|[[NestedBiomarkerSchema](#schemanestedbiomarkerschema)]|true|none|none|
|exposures|[[NestedExposureSchema](#schemanestedexposureschema)]|true|none|none|
|comorbidities|[[NestedComorbiditySchema](#schemanestedcomorbidityschema)]|true|none|none|
|comorbidities_test_test_test|[[NestedComorbiditySchema](#schemanestedcomorbidityschema)]|true|none|none|
|submitter_donor_id|string|true|none|none|
|program_id|string|true|none|none|
|gender|any|false|none|none|
Expand Down
6 changes: 3 additions & 3 deletions chord_metadata_service/mohpackets/docs/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,10 @@ components:
type: string
- type: 'null'
title: Cause Of Death
comorbidities:
comorbidities_test_test_test:
items:
$ref: '#/components/schemas/NestedComorbiditySchema'
title: Comorbidities
title: Comorbidities Test Test Test
type: array
date_alive_after_lost_to_followup:
anyOf:
Expand Down Expand Up @@ -984,7 +984,7 @@ components:
- followups
- biomarkers
- exposures
- comorbidities
- comorbidities_test_test_test
- submitter_donor_id
- program_id
title: DonorWithClinicalDataSchema
Expand Down
4 changes: 3 additions & 1 deletion chord_metadata_service/mohpackets/schemas/nested_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ class DonorWithClinicalDataSchema(ModelSchema):
followups: List[NestedFollowUpSchema] = Field(..., alias="followup_set")
biomarkers: List[NestedBiomarkerSchema] = Field(..., alias="biomarker_set")
exposures: List[NestedExposureSchema] = Field(..., alias="exposure_set")
comorbidities: List[NestedComorbiditySchema] = Field(..., alias="comorbidity_set")
comorbidities_test_test_test: List[NestedComorbiditySchema] = Field(
..., alias="comorbidity_set"
)

class Config:
model = Donor
Expand Down

0 comments on commit 01327ee

Please sign in to comment.