openEHR_SDK
openEHR_SDK copied to clipboard
Unflattener should not include optional ENTRY instance (height in this example)
Configuration information
- openEHR_SDK version: develop-SNAPSHOT
Steps to reproduce
Create a OPT for vital signs, i.e. https://tools.openehr.org/designer/#/viewer/shared/Pz9zaGFyZWRJZD0xJDY5Nzc2M2FhNzM5YTQ2NDRiNGM1YmJmYjE4ZmM3ZDlk
Add one entry, i.e. a body temperature and run the unflattener
Example in this dummy test: https://github.com/bjornna/openfhiehr/blob/main/src/test/java/no/bifrost/openfhiehr/BodyTempTest.java
Actual result
An instance of height/lenght was added to the composition.
Expected result (Acceptance Criteria)
I expect only the explict added entries to be included in the generated Composition and not the height/lenght
I assume its because height/lenght has a mandatory element "height". But the archetype is optional in the OPT.
Definition of Done
- [ ] The defect is checked by an unit or an integration test (Robot)
- [ ] Merge Request approved
- [ ] Unit tests passed
- [ ] Build without errors
- [ ] Release notes prepared
- [ ] No additional runtime warnings
@bjornna I can not access the opt. Can you please attach the file to the issue.