Skip to content

Commit 09c31aa

Browse files
committedJan 14, 2014
Updated the none default constructor for DrugReferenceMap to take in a term and map type - TRUNK-4143
1 parent 4854047 commit 09c31aa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
 

‎api/src/main/java/org/openmrs/DrugReferenceMap.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
import java.util.Date;
1818

1919
/**
20-
* The DrugReferenceMap map object represents a mapping between a drug and alternative drug terminologies.
21-
*
20+
* The DrugReferenceMap map object represents a mapping between a drug and alternative drug
21+
* terminologies.
22+
*
2223
* @since 1.10
2324
*/
2425
public class DrugReferenceMap extends BaseOpenmrsObject implements Auditable, Serializable {
@@ -45,9 +46,13 @@ public class DrugReferenceMap extends BaseOpenmrsObject implements Auditable, Se
4546
public DrugReferenceMap() {
4647
}
4748

48-
/** constructor with concept reference term map id */
49-
public DrugReferenceMap(Integer drugReferenceMapId) {
50-
this.drugReferenceMapId = drugReferenceMapId;
49+
/**
50+
* @param term
51+
* @param conceptMapType
52+
*/
53+
public DrugReferenceMap(ConceptReferenceTerm term, ConceptMapType conceptMapType) {
54+
this.conceptReferenceTerm = term;
55+
this.conceptMapType = conceptMapType;
5156
}
5257

5358
/**

0 commit comments

Comments
 (0)
Please sign in to comment.