Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion civicpy/exports/civic_gks_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,12 @@ def get_allele_origin_qualifier(record: Evidence | Assertion) -> MappableConcept

return MappableConcept(
name=VARIANT_ORIGIN_TO_ALLELE_ORIGIN[variant_origin],
extensions=[Extension(name="civic_variant_origin", value=variant_origin)],
mappings=[
ConceptMapping(
coding=Coding(code="SOMATIC", system="https://civicdb.org"),
Comment thread
korikuzma marked this conversation as resolved.
Outdated
relation=Relation.EXACT_MATCH,
)
],
)

@staticmethod
Expand Down
7 changes: 6 additions & 1 deletion civicpy/tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,12 @@ def gks_therapeutic_proposition(gks_mpid33, gks_gid19, gks_tid146, gks_did8):
"geneContextQualifier": gks_gid19,
"alleleOriginQualifier": {
"name": "somatic",
"extensions": [{"name": "civic_variant_origin", "value": "SOMATIC"}],
"mappings": [
{
"coding": {"code": "SOMATIC", "system": "https://civicdb.org"},
"relation": "exactMatch",
}
],
},
"predicate": "predictsSensitivityTo",
"objectTherapeutic": gks_tid146,
Expand Down
Loading