Hello!
Following this discussion I tried to add a mapping to a node name in a composition and post it to EHRbase (the “archetype_node_id”: “at0019” in the snippet below). I had no errors in the upload, but after retrieving the composition through a GET call this part disappeared and it is unreachable even using specific queries. Does EHRBase support TERM_MAPPINGS or am I missing something? If not, is it planned to support this requirement?
Thanks!
[...]
"archetype_node_id": "openEHR-EHR-EVALUATION.gender.v1",
"language": {...},
"encoding": {...},
"subject": {...},
"data": {
"_type": "ITEM_TREE",
"name": {
"_type": "DV_TEXT",
"value": "Tree"
},
"archetype_node_id": "at0002",
"items": [
{
"_type": "ELEMENT",
"name": {
"_type": "DV_TEXT",
"value": "Biological sex",
"mappings": [
{
"_type": "TERM_MAPPING",
"match":"=",
"target":{
"_type":"CODE_PHRASE",
"terminology_id":{
"_type":"TERMINOLOGY_ID",
"value":"OMOP"
},
"code_string":"37116947"
}
}
]
},
"archetype_node_id": "at0019",
"value": {
"_type": "DV_TEXT",
"value": "male"
}
}
]
}
},
[...]