Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTWS-726: Return diagnoses with an encounter #356

Merged
merged 1 commit into from
Oct 24, 2018
Merged

RESTWS-726: Return diagnoses with an encounter #356

merged 1 commit into from
Oct 24, 2018

Conversation

dsurrao
Copy link
Contributor

@dsurrao dsurrao commented Oct 24, 2018

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 42.942% when pulling 0f0ee51 on dsurrao:master into b77134b on openmrs:master.

Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

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

Looks good, merging in...

@mogoodrich mogoodrich merged commit 7c82178 into openmrs:master Oct 24, 2018
DelegatingResourceDescription description = null;
if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) {
description = super.getRepresentationDescription(rep);
description.addProperty("diagnoses");
Copy link
Member

Choose a reason for hiding this comment

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

Is it intentional not to include these among creatable/updatable properties?

@mogoodrich
Copy link
Member

Good question @wluyima ... this ticket was just about making sure that diagnoses were returned as part of an encounter when when requesting an encounter since we noticed this was missing. We didn't really give any thought to the create/update part, but I think it is likely we want to make diagnoses createable and updateable, but we can handle this under a separate ticket.

@wluyima
Copy link
Member

wluyima commented Nov 24, 2018

I think it should happen as part of the same ticket, it's how we have always handled the addition of new resources.
The issue is that the Sync2 module needs to sync encounters, it means we have to exclude diagnoses from an encounter when syncing which is not right. It is a trivial task anyways to add the property to creatable/updatable properties

@mogoodrich
Copy link
Member

mogoodrich commented Nov 24, 2018

That makes sense @wluyima, I can add this sometime next week. (Trivial to add, I agree, but I want to add a test or two around it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants