Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
interface GroupableOrder extends OpenmrsData {
  Integer getOrderId();
  void setOrderId(Integer orderId);
  Patient getPatient();
  void setPatient(Patient patient);
  OrderType getOrderType();
  void setOrderType(OrderType orderType);
  Concept getConcept();
  void setConcept(Concept concept);
  String getInstructions();
  void setInstructions(String instructions);
  Date getStartDate();
  void setStartDate(Date startDate);
  Date getAutoExpireDate();
  void setAutoExpireDate(Date autoExpireDate);
  Encounter getEncounter();
  void setEncounter(Encounter encounter);
  User getOrderer();
  void setOrderer(User orderer);
  Boolean getDiscontinued();
  void setDiscontinued(Boolean discontinued);
  User getDiscontinuedBy();
  void setDiscontinuedBy(User discontinuedBy);
  Date getDiscontinuedDate();
  void setDiscontinuedDate(Date discontinuedDate);
  Concept getDiscontinuedReason();
  void setDiscontinuedReason(Concept discontinuedReason);
  String getDiscontinuedReasonNonCoded();
  void setDiscontinuedReasonNonCoded(String discontinuedReasonNonCoded);
  String getAccessionNumber();
  void setAccessionNumber(String accessionNumber);
}

class ExtendedOrder extends Order implements GroupableOrder {
  OrderGroup group
}

class ExtendedDrugOrder extends DrugOrder implements GroupableOrder {
  OrderGroup group;
  Concept indication;
  Concept route;
  String administrationInstructions;
}

API

Code Block

OrderExtensionService extends OpenmrsService {

...


  OrderSet getOrderSet(Integer id);

...


  OrderSet getOrderSetByUuid(String uuid);

...


  List<OrderSet> getNamedOrderSets(boolean includeRetired);

...


  List<OrderSet> findAvailableOrderSets(String partialName, Concept indication);

...


  OrderSet saveOrderSet(OrderSet orderSet);

...


  void purgeOrderSet(OrderSet orderSet);

...


  OrderSetMember getOrderSetMember(Integer id);

...


  List<OrderSet> getParentOrderSets(OrderSet orderSet);

...


  <T extends OrderGroup> T saveOrderGroup(T orderGroup);

...


  <T extends OrderGroup> List<T> getOrderGroups(Patient patient, Class<T> type);

...


  void addOrdersForPatient(Patient patient, OrderSet orderSet, Date startDate, Integer numCycles);

...


  OrderGroup getOrderGroup(Integer id);

...


  DrugRegimen getDrugRegimen(Integer id);

...


  Integer getMaxNumberOfCyclesForRegimen(Patient patient, DrugRegimen regimen);

...


  List<ExtendedDrugOrder> getFutureDrugOrdersOfSameOrderSet(Patient patient, OrderSet orderSet, Date startDate);

...


  List<DrugRegimen> getFutureDrugRegimensOfSameOrderSet(Patient patient, DrugRegimen drugRegimen, Date startDate);

...


  List<ExtendedDrugOrder> getExtendedDrugOrders(Patient patient, Concept indication, Date startDateAfter, Date startDateBefore);

...


}