... | ... | @@ -45,7 +45,10 @@ The Criteria Specifiication Registry provides RESTful-APIs to browse and search |
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>/api/{entType}/id/{entId}</td>
|
|
|
<td>
|
|
|
|
|
|
**/api/{entType}/id/{entId}**
|
|
|
</td>
|
|
|
<td>Non-specific id based look up (JSON LD)</td>
|
|
|
<td>
|
|
|
|
... | ... | @@ -55,7 +58,6 @@ https://cspec.genome.network/cspec/api/SequenceVariantInterpretation/id/GN099<br |
|
|
<tr>
|
|
|
<td>
|
|
|
|
|
|
|
|
|
**/id/{val}**
|
|
|
</td>
|
|
|
<td>
|
... | ... | @@ -376,7 +378,7 @@ The table below lists the key fields returned in the API response. |
|
|
</td>
|
|
|
<td>
|
|
|
|
|
|
<span dir="">`"entIri": "`</span><span dir="">`https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:1097`</span><span dir="">`"`,</span>
|
|
|
<span dir="">`"entIri": "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:1097"`,</span>
|
|
|
|
|
|
<span dir="">where the IRI is the “link” to this entity in the external data source</span>
|
|
|
</td>
|
... | ... | @@ -424,7 +426,7 @@ The table below lists the key fields returned in the API response. |
|
|
</td>
|
|
|
<td>
|
|
|
|
|
|
<span dir="">`"ldhIri": "`</span><span dir="">`https://cspec.genome.network/cspec/SequenceVariantInterpretation/id/41889804`</span><span dir="">"</span>
|
|
|
<span dir="">`"ldhIri": "https://cspec.genome.network/cspec/SequenceVariantInterpretation/id/41889804`"</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
... | ... | @@ -492,4 +494,4 @@ A legacy document with multiple gene specifications will be fully archived when |
|
|
|
|
|
For instance, given below is an example where the above logic is applied to the end point mentioned in step(1).
|
|
|
|
|
|
<pre>let currentVersions = \[\] if( respObj && respObj.status && respObj.status === 200 ) { const sviObj = respObj.data.data for(const svi of sviObj){ if(svi.entContent.states) { const stateNames = svi.entContent.states.map((x) => x.name); if(stateNames.includes("Released")) { // has been approved if(svi.entContent.legacyFullySuperseded === false || svi.entContent.legacyReplaced === true) { // drop the doc that has not superseded the legacy yet or the ones that have been fully replaced. continue } else { currentVersions.push(svi.entId) } } } } }</pre>### [Markdown support for Criteria Code Specifications](Markdown-and-Citations) |
|
|
\ No newline at end of file |
|
|
<pre>let currentVersions = \\\[\\\] if( respObj && respObj.status && respObj.status === 200 ) { const sviObj = respObj.data.data for(const svi of sviObj){ if(svi.entContent.states) { const stateNames = svi.entContent.states.map((x) => x.name); if(stateNames.includes("Released")) { // has been approved if(svi.entContent.legacyFullySuperseded === false || svi.entContent.legacyReplaced === true) { // drop the doc that has not superseded the legacy yet or the ones that have been fully replaced. continue } else { currentVersions.push(svi.entId) } } } } }</pre>### [Markdown support for Criteria Code Specifications](Markdown-and-Citations) |
|
|
\ No newline at end of file |