Skip to content

Commit

Permalink
Updated the none default constructor for DrugReferenceMap to take in …
Browse files Browse the repository at this point in the history
…a term and map type - TRUNK-4143
  • Loading branch information
wluyima committed Jan 14, 2014
1 parent 4854047 commit 09c31aa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions api/src/main/java/org/openmrs/DrugReferenceMap.java
Expand Up @@ -17,8 +17,9 @@
import java.util.Date;

/**
* The DrugReferenceMap map object represents a mapping between a drug and alternative drug terminologies.
*
* The DrugReferenceMap map object represents a mapping between a drug and alternative drug
* terminologies.
*
* @since 1.10
*/
public class DrugReferenceMap extends BaseOpenmrsObject implements Auditable, Serializable {
Expand All @@ -45,9 +46,13 @@ public class DrugReferenceMap extends BaseOpenmrsObject implements Auditable, Se
public DrugReferenceMap() {
}

/** constructor with concept reference term map id */
public DrugReferenceMap(Integer drugReferenceMapId) {
this.drugReferenceMapId = drugReferenceMapId;
/**
* @param term
* @param conceptMapType
*/
public DrugReferenceMap(ConceptReferenceTerm term, ConceptMapType conceptMapType) {
this.conceptReferenceTerm = term;
this.conceptMapType = conceptMapType;
}

/**
Expand Down

0 comments on commit 09c31aa

Please sign in to comment.