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
When importing compositions from an existing CDR (not ehrbase) we want to be able to import the composition using its existing composition identifier. This can be done with the ehr resource and its even part of the openEHR spec but you cannot do this currently with compositions.
Enhancement
We have already done this locally and its working fine. Its just a matter of adding an 'if' statement to the compositionRecord.setId(UUID.randomUUID()); in the CompositionAccess class. There are a fair number of changes in order to pass the parameter through but they are simple changes. We have made the change to the 'Post' Composition in the EHRScape API usign an optional parameter. Additionally we added a check to ensure that the composition identifier does not already exist in the CDR. Can anyone see a flaw in this approach ?
Further information
We are going to discuss this in the openEHR forums as we have a current project that needs this feature now but there is nothing to support data ingress from existing CDR platforms in the spec. We have however found a number of minor issues with how ehrbase processes existing compositions. I will add them to github separately so they can be discussed. @birgerhaarbrandt do you think this is the best approach.
The text was updated successfully, but these errors were encountered:
Second, the EHRscape API in EHRbase, as it is right now, is planned to be deprecated and, in the future, parts of it reworked/removed since in some places it provides duplicate functionality to what the OpenEHR REST API and EHRbase REST API provide.
I will leave the ticket open for others to refer to it until there is a working solution in EHRbase.
Ok, thanks for that @vidi42 , I'm going to see if I can 'wake' the thread on discourse. We are currently running a project to export and import for a live 'project' so its important that these issues get discussed and the standard can evolve as it should.
Background
When importing compositions from an existing CDR (not ehrbase) we want to be able to import the composition using its existing composition identifier. This can be done with the ehr resource and its even part of the openEHR spec but you cannot do this currently with compositions.
Enhancement
We have already done this locally and its working fine. Its just a matter of adding an 'if' statement to the compositionRecord.setId(UUID.randomUUID()); in the CompositionAccess class. There are a fair number of changes in order to pass the parameter through but they are simple changes. We have made the change to the 'Post' Composition in the EHRScape API usign an optional parameter. Additionally we added a check to ensure that the composition identifier does not already exist in the CDR. Can anyone see a flaw in this approach ?
Further information
We are going to discuss this in the openEHR forums as we have a current project that needs this feature now but there is nothing to support data ingress from existing CDR platforms in the spec. We have however found a number of minor issues with how ehrbase processes existing compositions. I will add them to github separately so they can be discussed. @birgerhaarbrandt do you think this is the best approach.
The text was updated successfully, but these errors were encountered: