You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System version: Linux amd64 5.10.104-linuxkit
Steps to reproduce
Create a template in Archetype Designer that contains a coded text with locally coded terms and set a default value to one of the terms
Upload the template to EhrBase
Retrieve the template in the web template format using a GET request to the Ethercis endpoint (i.e http://localhost:8453/ehrbase/rest/ecis/v1/{template-id})
See that the coded text field is returned with the coded texts that were defined, but no property is included to specify what the default value is
Configuration information
Steps to reproduce
http://localhost:8453/ehrbase/rest/ecis/v1/{template-id}
)Operational Template
Web Template (as fetched from the ECIS endpoint in EHRBase)
Web Template (as exported from Archetype Designer)
Actual result
No
defaultValue
property is returned for the coded text to indicate the default we set.{ "id": "coded_text", "name": "coded text", "localizedName": "coded text", "rmType": "DV_CODED_TEXT", "nodeId": "at0005", "min": 0, "max": 1, "localizedNames": { "en": "coded text" }, "localizedDescriptions": { "en": "" }, "aqlPath": "/content[at0004]/data[at0003]/items[at0005]/value", "inputs": [ { "suffix": "code", "type": "CODED_TEXT", "list": [ { "value": "at0006", "label": "Option 1", "localizedLabels": { "en": "Option 1" }, "localizedDescriptions": { "en": "" } }, { "value": "at0007", "label": "Option 2", "localizedLabels": { "en": "Option 2" }, "localizedDescriptions": { "en": "" } }, { "value": "at0008", "label": "Option 3", "localizedLabels": { "en": "Option 3" }, "localizedDescriptions": { "en": "" } } ], - "defaultValue": "at0006" } ] }
Expected result (Acceptance Criteria)
The
defaultValue
is returned:{ "id": "coded_text", "name": "coded text", "localizedName": "coded text", "rmType": "DV_CODED_TEXT", "nodeId": "at0005", "min": 0, "max": 1, "localizedNames": { "en": "coded text" }, "localizedDescriptions": { "en": "" }, "aqlPath": "/content[at0004]/data[at0003]/items[at0005]/value", "inputs": [ { "suffix": "code", "type": "CODED_TEXT", "list": [ { "value": "at0006", "label": "Option 1", "localizedLabels": { "en": "Option 1" }, "localizedDescriptions": { "en": "" } }, { "value": "at0007", "label": "Option 2", "localizedLabels": { "en": "Option 2" }, "localizedDescriptions": { "en": "" } }, { "value": "at0008", "label": "Option 3", "localizedLabels": { "en": "Option 3" }, "localizedDescriptions": { "en": "" } } ], + "defaultValue": "at0006" } ] }
Definition of Done
The text was updated successfully, but these errors were encountered: