EMIS-X Partner API File Record API

Hi all,

I am currently testing the EMIS-X Partner API endpoint:

POST /partner/api/v1/medicalRecord/FileRecord?patientNumber=3

The patient number is valid, and we are able to retrieve organisation, user, location, and location type details from GetOrganisation.

However, when sending the FileRecord payload in JSON format, we receive the following error:

500 - There was an error generating the XML document.

I also tried sending an XML payload, but that returned:

400 - An error occurred while deserializing input data.

Has anyone faced this issue before with FileRecord?

Could someone please confirm the expected request body format for filing a simple text comment as a new consultation? A minimum valid JSON or XML example would be very helpful.

Thanks.