Hello,
As far as I understand there are two ways to commit a composition into EHRBase:
1- Through the SDK
2- Through the rest api using either the xml or the FLAT format.
According to the EHRBase documentation, a flat composition can be created using a web template by concatenating ids and suffixes.
However, I can’t figure out how that works in the following example:
This the relevant part of the Corona_Anamnese web template
"tree": {
"id": "bericht",
"name": "Bericht",
"localizedName": "Bericht",
"rmType": "COMPOSITION",
"nodeId": "openEHR-EHR-COMPOSITION.report.v1",
"min": 1,
"max": 1,
"localizedNames": {
"de": "Bericht"
},
"localizedDescriptions": {
"de": "Ein Dokument zur Übermittlung von Informationen an andere, meist als Antwort auf eine Anfrage."
},
"aqlPath": "",
"children": [
{
"id": "category",
"name": "category",
"localizedName": "category",
"rmType": "DV_CODED_TEXT",
"min": 1,
"max": 1,
"aqlPath": "/category",
"inputs": [
{
"suffix": "code",
"type": "CODED_TEXT",
"list": [
{
"value": "433",
"label": "event",
"localizedLabels": {
"de": "event"
}
}
],
"terminology": "openehr"
}
],
"inContext": true
}
And this is the corresponding part in the flat composition
"bericht/category|code": "433",
"bericht/category|value": "event",
"bericht/category|terminology": "openehr"
This example is from the postman collection provided by EHRBase. It seems to me that generating a flat composition only using its web template is not straightforward.
Thanks!