Hi…I’m new to openEHR implementation. I’m able to work with compositions using Flat format and REST APIs.
Now I’m trying to work with EHRBase SDK.
I’m able to successfully do the following from the OPT file using the SDK’s generator:
a) Generate the java entity objects .
b) Create a template (using the REST API Endpoint)
c) Create empty EHR (that returns ehrid)
d) Populate the java entity objects with data from the client application.
However, I’m facing issues while trying to create/save a composition to the EHRBase db using the composition.java that was generated by the SDK.
I see that any property that has a complex datatype (such as TemporalAmount, TemporalAccess, Category, PartyProxy etc is not recognized while working with the Default Restrictions Client endpoints.
Is it a limitation that can be overcome by writing our own mappers to deserialize or is there a better approach to work with them?
I’m working with May’21 release of SDK.