... | @@ -485,12 +485,12 @@ A legacy document with multiple gene specifications will be fully archived when |
... | @@ -485,12 +485,12 @@ A legacy document with multiple gene specifications will be fully archived when |
|
|
|
|
|
Cspec Registry API on SequenceVariantInterpretation will return all the specifications that are both approved and under review.To get the current "Released" (SVI approved) versions do the following:
|
|
Cspec Registry API on SequenceVariantInterpretation will return all the specifications that are both approved and under review.To get the current "Released" (SVI approved) versions do the following:
|
|
|
|
|
|
> 1. Get the SequenceVariantInterpretation documents, say for instance from the following endpoint - _https://cspec.genome.network/cspec/SequenceVariantInterpretation/id?detail=high&fields=entContent.states,entContent.legacyFullySuperseded,entContent.legacyReplaced,entId,ldhId,entContent.title_
|
|
1. Get the SequenceVariantInterpretation documents, say for instance from the following endpoint - _https://cspec.genome.network/cspec/SequenceVariantInterpretation/id?detail=high&fields=entContent.states,entContent.legacyFullySuperseded,entContent.legacyReplaced,entId,ldhId,entContent.title_
|
|
> 2. Now drop the ones that
|
|
2. Now drop the ones that
|
|
>
|
|
|
|
> > 1. have never been approved, that is _entContent.states_ has NO item where name === 'Released'
|
|
1. have never been approved, that is _entContent.states_ has NO item where name === 'Released'
|
|
> > 2. is a legacy document which have been replaced, that is, _entContent.legacyReplaced_ is true
|
|
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
|
|
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).
|
|
For instance, given below is an example where the above logic is applied to the end point mentioned in step(1).
|
|
|
|
|
... | | ... | |