I am trying to POST a contribution with a composition in FLAT format using the EHRBase API. It seems there are two possibilities:
- “Native”: Directly using the contribution endpoint with the data in FLAT format (seems to not be supported?)
- Using the composition endpoint, providing the commital metadata in headers “openEHR-VERSION” and “openEHR-AUDIT_DETAILS” ( see openEHR-VERSION-and-openEHR-AUDIT_DETAILS). According to the EHRBase docs, these headers are implemented, but I have not managed to to store the committal metadata I defined (“openEHR-AUDIT_DETAILS.committer”, “openEHR-VERSION.lifecycle_state”, “openEHR-AUDIT_DETAILS.description” etc.) in the contributions that are created from the request.
I have managed to do both options using Better (1. through openEHR API, 2. through EHR API)
The documentation on EHRBase is quite brief, so I am not certain that I have done it correctly. Are either of these options actually implemented? And more generally, are there any security/authentication details to be aware of when providing committal metadata in the headers of a POST composition request compared to the “native” contribution endpoint?