This repository was archived by the owner on Jan 21, 2021. It is now read-only.
forked from SEL-Columbia/dristhi
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MK: ErrorTrace merger; Person Relationship merger; Multimedia merger;…
… Drug and DrugOrder improvement Merger;
- Loading branch information
Maimoona Kausar
committed
Mar 29, 2017
1 parent
d4bd74f
commit 4304d2b
Showing
88 changed files
with
4,446 additions
and
1,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
org.quartz.scheduler.instanceName = MotechScheduler | ||
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool | ||
org.quartz.threadPool.threadCount = 3 | ||
org.quartz.scheduler.instanceName=MotechScheduler | ||
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool | ||
org.quartz.threadPool.threadCount=3 | ||
|
||
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX | ||
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate | ||
org.quartz.jobStore.dataSource = motechDS | ||
org.quartz.jobStore.tablePrefix = QRTZ_ | ||
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX | ||
org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate | ||
org.quartz.jobStore.dataSource=motechDS | ||
org.quartz.jobStore.tablePrefix=QRTZ_ | ||
|
||
org.quartz.dataSource.motechDS.db = etbmotechquartz | ||
org.quartz.dataSource.motechDS.driver = com.mysql.jdbc.Driver | ||
org.quartz.dataSource.motechDS.URL = jdbc:mysql://localhost:3306/etbmotechquartz | ||
org.quartz.dataSource.motechDS.user = root | ||
org.quartz.dataSource.motechDS.password = password | ||
org.quartz.dataSource.motechDS.maxConnections = 30 | ||
org.quartz.dataSource.motechDS.db=motechquartz | ||
org.quartz.dataSource.motechDS.driver=com.mysql.jdbc.Driver | ||
org.quartz.dataSource.motechDS.URL=jdbc:mysql://localhost:3306/motechquartz | ||
org.quartz.dataSource.motechDS.user=root | ||
org.quartz.dataSource.motechDS.password=password | ||
org.quartz.dataSource.motechDS.maxConnections=30 | ||
|
||
#org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore | ||
#org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
opensrp-api/src/main/java/org/opensrp/api/domain/Drug.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
package org.opensrp.api.domain; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.codehaus.jackson.annotate.JsonProperty; | ||
import org.ektorp.support.TypeDiscriminator; | ||
import org.joda.time.LocalDate; | ||
import org.motechproject.model.MotechBaseDataObject; | ||
|
||
@TypeDiscriminator("doc.type === 'Drug'") | ||
public class Drug extends BaseDataObject { | ||
@JsonProperty | ||
private String drugName; | ||
@JsonProperty | ||
private String drugBaseName; | ||
@JsonProperty | ||
private Map<String, String> codes; | ||
@JsonProperty | ||
private String route; | ||
@JsonProperty | ||
private String id; | ||
@JsonProperty | ||
private String creator; | ||
@JsonProperty | ||
private String doseStrength; | ||
@JsonProperty | ||
private String units; | ||
@JsonProperty | ||
private String maximumDailyDose; | ||
@JsonProperty | ||
private String minimumDailyDose; | ||
@JsonProperty | ||
private String description; | ||
|
||
|
||
@JsonProperty | ||
private String combination; | ||
|
||
|
||
protected Drug() { | ||
|
||
} | ||
|
||
public Drug(String baseEntityId) { | ||
|
||
} | ||
public Drug(String drugName,String drugBaseName, Map<String, String> codes, | ||
String route, String creator, String doseStrenght | ||
, String units, String maxDailyDose,String miniDailyDose,String Description,String combination) { | ||
this.drugName=drugName; | ||
this.drugBaseName=drugBaseName; | ||
this.codes=codes; | ||
this.creator=creator; | ||
this.doseStrength=doseStrenght; | ||
this.route=route; | ||
this.maximumDailyDose=maxDailyDose; | ||
this.minimumDailyDose=miniDailyDose; | ||
this.description=Description; | ||
this.combination=combination; | ||
|
||
|
||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
return EqualsBuilder.reflectionEquals(this, o); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this, "id"); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ToStringBuilder.reflectionToString(this); | ||
} | ||
public String getDoseStrength() { | ||
return doseStrength; | ||
} | ||
|
||
public void setDoseStrength(String doseStrength) { | ||
this.doseStrength = doseStrength; | ||
} | ||
|
||
public String getUnits() { | ||
return units; | ||
} | ||
|
||
public void setUnits(String units) { | ||
this.units = units; | ||
} | ||
|
||
public String getMaximumDailyDose() { | ||
return maximumDailyDose; | ||
} | ||
|
||
public void setMaximumDailyDose(String maximumDailyDose) { | ||
this.maximumDailyDose = maximumDailyDose; | ||
} | ||
|
||
public String getMinimumDailyDose() { | ||
return minimumDailyDose; | ||
} | ||
|
||
public void setMinimumDailyDose(String minimumDailyDose) { | ||
this.minimumDailyDose = minimumDailyDose; | ||
} | ||
|
||
public String getRoute() { | ||
return route; | ||
} | ||
|
||
public void setRoute(String route) { | ||
this.route = route; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
|
||
public String getCreatorName() { | ||
return creator; | ||
} | ||
|
||
public void setCreatorName(String creator) { | ||
this.creator = creator; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getCombination() { | ||
return combination; | ||
} | ||
|
||
public void setCombination(String combination) { | ||
this.combination = combination; | ||
} | ||
} |
Oops, something went wrong.