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 Aug 16, 2023 by Neethu Shah's avatar Neethu Shah
Hide whitespace changes
Inline Side-by-side
CSpec-Registry-API.md
View page @ 9a667eae
......@@ -480,26 +480,26 @@ 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
let released = undefined
for(const svi of sviObj){
if(svi.entContent.states) {
const stateNames = svi.entContent.states.map((x) => x.name);
if(stateNames.includes("Released")) {
if(svi.entContent.legacyFullySuperseded === false || svi.entContent.legacyReplaced === true) {
// drop the ones that have not been superseded yet or the ones that have been fully replaced.
continue
}
else {
<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)
}
}
}
}
}
global.brl.log( 'info', __filename, 'main', `CURRENT VERSION. ${global.brl.inspc(currentVersions.length)}` )</pre>
}
</pre>
### [Markdown support for Criteria Code Specifications](Markdown-and-Citations)
\ No newline at end of file
Clone repository
  • ACMG+AMP+CAP+ClinGen v4 Specifications
  • CSpec Registry API
    • Versions
  • CSpec Registry Data Streams
  • Markdown and Citations
  • Home