Hello,
I am developping on the old version of OpenMRS 1.9.11 and Rest web service OMOD 2.25 for some project and I am having issue when attempting to create an encounter.
I can create the encounter if I don’t enter a value in groupMembers but what I wan is to enter some value to my groupMembers. Could you let me know what is the correct value forma that I should be passing?
@anatoleabe the concept class for the concept of the parent obs should be a set , and then the concept for the GroupMember your trying to add ,should be one of the concepts in the concept set of the parent obs.
in other words the parent obs should have a concept that have a set of concepts
You are setting a value of “7” to concept of datatype “N/A” which is not allowed. I would have expected the concept datatype to be something like “Numeric”
Hello @mozzy, by reading again and again your comment, I understood my mistake and I think I found the solution as you can see here: https://pastebin.com/qWB6YQpk
I put the parent concept in the obs, then in the groupMember I put the concept that is the one of parent concept set and I can now set the value as I want.