ehrbase / openEHR_SDK

A SDK to facilitate the development of openEHR applications
Other
48 stars 28 forks source link

Unflattener should not include optional ENTRY instance (height in this example) #162

Open bjornna opened 3 years ago

bjornna commented 3 years ago

Configuration information

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

stefanspiska commented 3 years ago

@bjornna I can not access the opt. Can you please attach the file to the issue.