Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C Cspec Registry
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • ClinGenClinGen
  • cspec
  • Cspec Registry
  • Wiki
  • CSpec Registry API

CSpec Registry API · Changes

Page history
Update CSpec Registry API authored May 17, 2024 by Neethu Shah's avatar Neethu Shah
Hide whitespace changes
Inline Side-by-side
CSpec-Registry-API.md
View page @ d2b71302
...@@ -487,12 +487,11 @@ Cspec Registry API on SequenceVariantInterpretation will return all the specific ...@@ -487,12 +487,11 @@ Cspec Registry API on SequenceVariantInterpretation will return all the specific
1. Get the SequenceVariantInterpretation documents, say for instance from the following endpoint - _https://cspec.genome.network/cspec/SequenceVariantInterpretation/id?detail=high&fields=ld.RuleSet,ldFor.Organization,entContent.states,entContent.legacyFullySuperseded,entContent.legacyReplaced,entId,ldhId,entContent.title&pgSize=200_ 1. Get the SequenceVariantInterpretation documents, say for instance from the following endpoint - _https://cspec.genome.network/cspec/SequenceVariantInterpretation/id?detail=high&fields=ld.RuleSet,ldFor.Organization,entContent.states,entContent.legacyFullySuperseded,entContent.legacyReplaced,entId,ldhId,entContent.title&pgSize=200_
2. Now drop the ones that 2. Now drop the ones that
- have never been approved, that is _entContent.states_ has NO item where name === 'Released'
- is a legacy document which have been replaced, that is, _entContent.legacyReplaced_ is true
- is a document that has not yet superseded the legacy doc, that is _entContent.legacyFullySuperseded_ is false
1. have never been approved, that is _entContent.states_ has NO item where name === 'Released' For instance, given below is an example where the above logic is applied to the end point mentioned in step(1) and get the svi id, gene and vcep.
2. is a legacy document which have been replaced, that is, _entContent.legacyReplaced_ is true
3. is a document that has not yet superseded the legacy doc, that is _entContent.legacyFullySuperseded_ is false
For instance, given below is an example where the above logic is applied to the end point mentioned in step(1).
` let currentVersions = [] ` let currentVersions = []
const sviObj = resp.data.data const sviObj = resp.data.data
......
Clone repository
  • ACMG+AMP+CAP+ClinGen v4 Specifications
  • CSpec Registry API
    • Versions
  • CSpec Registry Data Streams
  • Markdown and Citations
  • Home