-
Notifications
You must be signed in to change notification settings - Fork 307
Billing Module Backend #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AbhishekGupta10004
wants to merge
6
commits into
Raxa:master
Choose a base branch
from
AbhishekGupta10004:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
124 changes: 124 additions & 0 deletions
124
api/src/main/java/org/raxa/module/raxacore/Billing.java
This file contains hidden or 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,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
174
api/src/main/java/org/raxa/module/raxacore/BillingItem.java
This file contains hidden or 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,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); | ||
| } | ||
|
|
||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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