Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
pamcdm committed Apr 4, 2014
1 parent 8c8c70e commit 2ae3c2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
*/
package org.openmrs.module.appointmentscheduling;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.openmrs.BaseOpenmrsData;
import org.openmrs.BaseOpenmrsMetadata;
Expand All @@ -27,6 +21,12 @@
import org.openmrs.Visit;
import org.openmrs.module.appointmentscheduling.serialize.AppointmentStatusSerializer;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
* It is a model class. It should extend either {@link BaseOpenmrsObject} or
* {@link BaseOpenmrsMetadata}.
Expand All @@ -37,17 +37,6 @@ public class Appointment extends BaseOpenmrsData implements Serializable {

public enum AppointmentStatusType {
SCHEDULED, ACTIVE, CANCELLED, MISSED, COMPLETED;

private final String name = null;

public String getName() {
return name;
}

@Override
public String toString() {
return name;
}
}

// TODO confirm that "WALK-IN" should be considered active and "RESCHEDULED"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public SimpleObject getAll(RequestContext requestContext)

@Override
public String getUri(Object o) {
return RestConstants.URI_PREFIX + "/appointmentscheduling/appointmentstatustype/"
+ ((AppointmentStatusType) o).getName();
return RestConstants.URI_PREFIX + "/appointmentscheduling/appointmentstatustype";
}

@Override
Expand Down

0 comments on commit 2ae3c2c

Please sign in to comment.