Skip to content

Commit e39f15f

Browse files
committed
Add primaryCode to MappableConcept
1 parent 9831bdc commit e39f15f

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

examples/mappable-concept-gene.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
id: HGNC:1101
2-
label: BRCA2
2+
primaryCode: BRCA2
3+
label: BRCA2 DNA repair associated
4+
conceptType: Gene
35
mappings:
46
- coding:
57
code: HGNC:1101

schema/gks-core/def/MappableConcept.rst

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ Some MappableConcept attributes are inherited from :ref:`Element`.
4444
- string
4545
- 1..1
4646
- A primary name for the concept.
47+
* - primaryCode
48+
-
49+
- :ref:`code`
50+
- 0..1
51+
- A primary code for the concept that is used to identify the concept in a terminology or code system. If there is a public code system for the primaryCode then it should also be specified in the mappings array with a relation of 'exactMatch'. This attribute is provided to both allow a more technical code to be used when a public Coding with a system is not available as well as when it is available but should be identified as the primary code.
4752
* - mappings
4853
-
4954
.. raw:: html

schema/gks-core/gks-core-source.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ $defs:
131131
label:
132132
type: string
133133
description: A primary name for the concept.
134+
primaryCode:
135+
$ref: "#/$defs/code"
136+
description: >-
137+
A primary code for the concept that is used to identify the concept in a terminology or code system.
138+
If there is a public code system for the primaryCode then it should also be specified in the mappings
139+
array with a relation of 'exactMatch'. This attribute is provided to both allow a more technical code
140+
to be used when a public Coding with a system is not available as well as when it is available but
141+
should be identified as the primary code.
134142
mappings:
135143
type: array
136144
ordered: false

schema/gks-core/json/MappableConcept

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"type": "string",
2929
"description": "A primary name for the concept."
3030
},
31+
"primaryCode": {
32+
"$ref": "/ga4gh/schema/gks-core/1.x/json/code",
33+
"description": "A primary code for the concept that is used to identify the concept in a terminology or code system. If there is a public code system for the primaryCode then it should also be specified in the mappings array with a relation of 'exactMatch'. This attribute is provided to both allow a more technical code to be used when a public Coding with a system is not available as well as when it is available but should be identified as the primary code."
34+
},
3135
"mappings": {
3236
"type": "array",
3337
"ordered": false,

0 commit comments

Comments
 (0)