Error While posting composition

image
I am receiving this error while posting the composiiton to ehrbase server

I have posted the template first , created a blank ehr with ehr ID from OPT and I put the same EHR ID in the params while posting

  1. error: “org.ehrbase.validation.constraints.wrappers.ValidationException: :-Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006]:Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006], ELT02:Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006], ELT01:Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006], Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006], ELT01:Validation error at /content[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-SECTION.adhoc.v1]/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006], value is not within interval, expected:0.0 <= 12312.0 <= 100.0.\n\n”
  2. status: “Internal Server Error”

Network Error

Looks like you are sending a pulse oximetry value of 12312.0 when the archetype constrains this to between 0 and 100

1 Like

Errors a bit painful to read, but it does seem like a simple limit violation…

@Yash Can you post both the composition instance and the template you are using - ? maybe as a Gist which works pretty well.

The problem was not with the form or the server but with the script i used to automatiically fill the fields for testing

Thank You for your help

Glad you figured it out!! We’ve all been there - in my case roughly every 2 weeks :frowning:

2 Likes