Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="lib" path="F:/Users/Abhis/Desktop/attachments_2/mysql-connector-java-5.1.18-bin.jar"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure jar is put in repo or added as dependency to fetch upon built

<classpathentry kind="output" path="target/classes"/>
</classpath>
4 changes: 3 additions & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<packaging>jar</packaging>
<name>RaxaEMR Core API</name>
<description>API project for RaxaEMR Core Module</description>

<dependencies>

<dependency>
<groupId>org.openmrs.api</groupId>
<artifactId>openmrs-api</artifactId>
Expand Down Expand Up @@ -71,6 +72,7 @@
</plugin>
</plugins>
<pluginManagement>

<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
Expand Down
124 changes: 124 additions & 0 deletions api/src/main/java/org/raxa/module/raxacore/Billing.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
package org.raxa.module.raxacore;

/**
* Copyright 2012, Raxa
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
import java.io.Serializable;
import org.openmrs.BaseOpenmrsMetadata;
import org.openmrs.Provider;
import org.openmrs.Patient;

/**
* Billing stores the attributes of a bill
*/
public class Billing extends BaseOpenmrsMetadata implements Serializable {

private Integer billId;

private String status;

private Integer providerId;

private Integer patientId;

private Integer totalAmount;

private Integer balance;

private Provider provider;

private Patient patient;

public Billing() {

}

public Integer getBillId() {
return billId;
}

public void setBillId(Integer billId) {
this.billId = billId;
}

public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}

public Integer getTotalAmount() {
return totalAmount;
}

public void setTotalAmount(Integer totalAmount) {
this.totalAmount = totalAmount;
}

public Integer getBalance() {
return balance;
}

public void setBalance(Integer balance) {
this.balance = balance;
}

public Integer getProviderId() {
return providerId;
}

public void setProviderId(Integer providerId) {
this.providerId = providerId;
}

public Integer getPatientId() {
return patientId;
}

public void setPatientId(Integer patientId) {
this.patientId = patientId;
}

public Provider getProvider() {
return provider;
}

public void setProvider(Provider provider) {
this.provider = provider;
}

public Patient getPatient() {
return patient;
}

public void setPatient(Patient patient) {
this.patient = patient;
}

@Override
public Integer getId() {
// TODO Auto-generated method stub
return null;
}

@Override
public void setId(Integer arg0) {
// TODO Auto-generated method stub

}

}
174 changes: 174 additions & 0 deletions api/src/main/java/org/raxa/module/raxacore/BillingItem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
package org.raxa.module.raxacore;

/**
* Copyright 2012, Raxa
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
import java.io.Serializable;
import org.openmrs.BaseOpenmrsMetadata;
import org.openmrs.Concept;
import org.openmrs.Encounter;
import org.openmrs.Order;
import org.openmrs.Provider;

/**
* BillingItem stores the data of items in the bill.
*/
public class BillingItem extends BaseOpenmrsMetadata implements Serializable {

private Integer billItemId;

private Integer billId;

private Integer providerId;

private Integer conceptId;

private Integer encounterId;

private Integer orderId;

private Integer quantity;

private Integer value;

private Provider provider;

private Concept concept;

private Encounter encounter;

private Order order;

private Billing bill;

public BillingItem() {

}

public Integer getbillItemId() {
return billItemId;
}

public void setbillItemId(Integer billItemId) {
this.billItemId = billItemId;
}

public Integer getBillId() {
return billId;
}

public void setBillId(Integer billId) {
this.billId = billId;
}

public Integer getConceptId() {
return conceptId;
}

public void setConceptId(Integer conceptId) {
this.conceptId = conceptId;
}

public Integer getEncounterId() {
return encounterId;
}

public void setEncounterId(Integer encounterId) {
this.encounterId = encounterId;
}

public Integer getOrderId() {
return orderId;
}

public void setOrderId(Integer orderId) {
this.orderId = orderId;
}

public Integer getValue() {
return value;
}

public void setValue(Integer value) {
this.value = value;
}

public Integer getQuantity() {
return quantity;
}

public void setQuantity(Integer quantity) {
this.quantity = quantity;
}

public Integer getProviderId() {
return providerId;
}

public void setProviderId(Integer providerId) {
this.providerId = providerId;
}

public Provider getProvider() {
return provider;
}

public void setProvider(Provider provider) {
this.provider = provider;
}

public Concept getConcept() {
return concept;
}

public void setConcept(Concept concept) {
this.concept = concept;
}

public Encounter getEncounter() {
return encounter;
}

public void setEncounter(Encounter encounter) {
this.encounter = encounter;
}

public Order getOrder() {
return order;
}

public void setOrder(Order order) {
this.order = order;
}

public Billing getBill() {
return bill;
}

public void setBill(Billing bill) {
this.bill = bill;
}

@Override
public Integer getId() {
return getbillItemId();
}

@Override
public void setId(Integer arg0) {
setbillItemId(arg0);
}

}
Loading