Closed andrewhercules closed 3 years ago
Data is now available from the development API branch - see sample query
Can we please implement the following data table based on the design spec? Please note that the section title has changed to Clinical Signs and Symptoms.
Expand the number of entries in row.evidence
as each entry should be in its own row. Please check sample query above for examples where row.evidence
has multiple entries. Also check Orphanet_1934 for an example phenotype - Muscular hypotonia - with 11 evidence entries
Qualifier
rows[x].evidence[y].qualifierNot == true
otherwise the column will be blankPhenotype
rows[x].phenotypeHPO.name
valuerows[x].phenotypeEFO.id
exists, use the ID to link the rows[x].phenotypeHPO.name
value to the disease profile pagerows[x].phenotypeHPO.description
valuePhenotype ID
rows[x].phenotypeHPO.id
valuerows[x].phenotypeHPO.id
value to EBI OLS using identifers.org - https://www.identifiers.org/ols/
+ rows[x].phenotypeHPO.id
value
rows[x].phenotypeHPO.id
value needs to be reformatted with the underscore replaced with a colon - so HP_0001558
becomes HP:0001558
)Aspect
rows[x].evidence[y].aspect
valueFrequency
rows[x].evidence[y].frequencyHPO
exists, display rows[x].evidence[y].frequencyHPO.name
value and link to EBI OLS using identifers.org - https://www.identifiers.org/ols/
+ rows[x].evidence[y].frequencyHPO.id
value
rows[x].evidence[y].frequencyHPO.id
value needs to be reformatted with the underscore replaced with a colon - so HP_0040283
becomes HP:0040283
)rows[x].evidence[y].frequencyHPO
is null
, display "N/A"Onset
rows[x].evidence[y].onset[z].name
value; however if there are no elements in the array, display "N/A" rows[x].evidence[y].onset[z].name
value to EBI OLS using identifers.org - https://www.identifiers.org/ols/
+ rows[x].evidence[y].onset[z].id
value
rows[x].evidence[y].onset[z].id
value needs to be reformatted with the underscore replaced with a colon - so HP_0003623
becomes HP:0003623
)Modifier
rows[x].evidence[y].modifier[z].name
value; however if there are no elements in the array, display "N/A" rows[x].evidence[y].modifier[z].name
value to EBI OLS using identifers.org - https://www.identifiers.org/ols/
+ rows[x].evidence[y].modifier[z].id
value
rows[x].evidence[y].modifier[z].id
value needs to be reformatted with the underscore replaced with a colon - so HP_0012828
becomes HP:0012828
)Sex
rows[x].evidence[y].modifier[z].sex
value and format using the text-transform: capitalize;
property to make the first letter capital uppercaserows[x].evidence[y].modifier[z].sex
value is null
, display "N/A"Evidence
rows[x].evidence[y].evidenceType
valuerows[x].evidence[y].evidenceType
value, display a tool-tip as noted in the table belowValue returned by API | Tool tip text |
---|---|
IEA | Inferred from Electronic Annotations (IEA) are extracted by parsing the Clinical Features sections of the Online Mendelian Inheritance in Man resource |
PCS | Published Clinical Study (PCS) are annotations extracted from articles in the medical literature with the PubMed ID of the published study (if available) |
TAS | Traceable Author Statement (TAS) is used for information gleaned from knowledge bases such as OMIM or Orphanet that have derived the information from a published source |
Source
rows[x].evidence[y].resource
valueReferences
rows[x].evidence[y].references[z]
value; however if there are no elements in the array, display "N/A" (e.g. Orphanet_68356)rows[x].evidence[y].references
is > 1, use the drawer component used in other tables to show multiple publicationshttps://hpo.jax.org/app/browse/disease/
+ rows[x].evidence[y].references[z]
(e.g. ORPHA:178469)@LucaFumis the spec is complete
@d0choa please review the spec above. I slightly adjusted the "References" column as the identifers.org link structure won't work due to the prefixes - instead we can link directly to the HPO website
It looks fantastic. Thank you @andrewhercules
@LucaFumis @andrewhercules The name of the widget was never updated. I would recommend changing the name to avoid confusion with "phenotypes" that show up in our disease profile pages.
More importantly, the sources need to be updated to HPO and MONDO as described in the spec.
Noted - I've added to the feedback document for the next round of polish
Ticket closed as work completed and merged into beta
Polish work will be captured in subsequent Beta Release polish ticket
@LucaFumis for Integration Day tomorrow - 24 February - can we please make the following small adjustments?
Last requested changes were implemented for Integration day. Ticket can be closed, I imagine.
Ticket closed as work completed and merged into main
for Beta release
The new GraphQL API
disease
endpoint now exposes more phenotypes data. And so we can replace the current unordered list with a more comprehensive data table. Further details and spec TBC.Example diseases with phenotypes: Cowden Syndrome, Noonan Syndrome, ulcerative colitis