Skip to content

Obs test with groupMembers during Encounter creation.#263

Closed
dkayiwa wants to merge 2 commits intoopenmrs:masterfrom
mkruszynski:ObsTest
Closed

Obs test with groupMembers during Encounter creation.#263
dkayiwa wants to merge 2 commits intoopenmrs:masterfrom
mkruszynski:ObsTest

Conversation

@dkayiwa
Copy link
Member

@dkayiwa dkayiwa commented Jan 16, 2017

No description provided.

@mention-bot
Copy link

@dkayiwa, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rkorytkowski, @tmarzeion and @teleivo to be potential reviewers.

List<SimpleObject> child1GroupMembers = new ArrayList<SimpleObject>();

SimpleObject child1child1 = new SimpleObject();
child1child1.put("value", 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These concept UUIDs needs to refer to test concept UUIDs, for example numeric one like this: c607c80f-1ea9-4da3-bb88-6276ce8868dd. Otherwise REST would not know where should it assign this numeric value (NullPointerException in this case).

parentGroupMembers.add(child3);

SimpleObject parent = new SimpleObject();
parent.put("groupMembers", parentGroupMembers);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this concept can be removed from parent (same as for child1)


SimpleObject child1 = new SimpleObject();
child1child2.put("groupMembers", child1GroupMembers);
child1child2.put("concept", "c607c80f-1ea9-4da3-bb88-6276ce8868ee");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

child1 is empty :)

@tmarzeion
Copy link
Contributor

@tmarzeion tmarzeion closed this Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants