siqlain
(Siqlain Hanif)
1
Hi guys ,
i have added a visit attribute type.Now i am trying to add value to it but cant able to.
http://localhost:8080/openmrs/ws/rest/v1/visit/9f11c352-b1d5-4293-a01f-5c6127a8286d/attribute
{
“value”:“P4”,
“attributeType”:“7b0f5697-27e3-40c4-8bae-f4049abfb4ed”
}
This is what i get when i post the following
dkayiwa
(Daniel Kayiwa)
2
Are you able to reproduce it here? demo.openmrs.org
siqlain
(Siqlain Hanif)
3
No. Let me reproduce it and will let you know .
siqlain
(Siqlain Hanif)
4
dkayiwa
(Daniel Kayiwa)
5
This is a bug in the rest webservices module. Feel free to create a ticket.
For now, as a workaround, ensure that you have a value for Max Occurs.
wyclif
(Wyclif Luyima)
6
That’s right, if you don’t set maxOccurs on the visit attribute type it leads to a NPE, which I agree is a bug and needs to be fixed.
siqlain
(Siqlain Hanif)
7
Thanks guys .
Sorry for the late response , i will make a ticket for that