Mapping¶
Dereferenced schema · Source · Referenced version
A concept mapping as stored in a mappings file: a coding plus a SKOS relation, with the join record's id. Embedded in concepts as ConceptMapping (no id).
Fields¶
| Field | Type | Required | Description |
|---|---|---|---|
id |
string matching ^map:.+::.+$ |
yes | |
relation |
one of broadMatch, closeMatch, exactMatch, narrowMatch, relatedMatch |
yes | |
coding |
Coding | yes |
Definitions¶
ConceptMapping¶
Mapping as embedded within a concept's mappings list.
| Field | Type | Required | Description |
|---|---|---|---|
relation |
one of broadMatch, closeMatch, exactMatch, narrowMatch, relatedMatch |
yes | |
coding |
Coding | yes |
JSON Schema¶
Full JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://moalmanac.org/schemas/dereferenced/mappings.schema.json",
"title": "Mapping",
"description": "A concept mapping as stored in a mappings file: a coding plus a SKOS relation, with the join record's `id`. Embedded in concepts as `ConceptMapping` (no `id`).",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^map:.+::.+$"
},
"relation": {
"enum": [
"broadMatch",
"closeMatch",
"exactMatch",
"narrowMatch",
"relatedMatch"
]
},
"coding": {
"$ref": "codings.schema.json"
}
},
"required": [
"id",
"relation",
"coding"
],
"additionalProperties": false,
"$defs": {
"ConceptMapping": {
"type": "object",
"properties": {
"relation": {
"enum": [
"broadMatch",
"closeMatch",
"exactMatch",
"narrowMatch",
"relatedMatch"
]
},
"coding": {
"$ref": "codings.schema.json"
}
},
"required": [
"relation",
"coding"
],
"additionalProperties": false,
"description": "Mapping as embedded within a concept's `mappings` list."
}
}
}