Skip to content

Instantly share code, notes, and snippets.

@korikuzma
Last active June 26, 2024 17:39
Show Gist options
  • Save korikuzma/d90bf9f48936efda0ad6e72f3639581e to your computer and use it in GitHub Desktop.
Save korikuzma/d90bf9f48936efda0ad6e72f3639581e to your computer and use it in GitHub Desktop.
Example of oncogenicitySubmission where citation gives error when including only url (excluded other fields for brevity). In this example, it can be processed by ClinVar but errors out.
{
"assertionCriteria": {
"db": "PubMed",
"id": "36063163"
},
"oncogenicitySubmission": [
{
"oncogenicityClassification": {
"citation": [
{
"url": "https://civicdb.org/links/evidence/7306"
}
]
}
}
]
}
@korikuzma
Copy link
Author

This gave me the following error:

{
    "errors": [
        {
            "input": [
                {
                    "field": "ClinicalSignificance.citation",
                    "value": "https://civicdb.org/links/evidence/7306"
                }
            ],
            "output": {
                "errors": [
                    {
                        "userMessage": "https://civicdb.org/links/evidence/7306 is an invalid citation. Please check both the name of the database and the identifier from that database"
                    }
                ]
            }
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment