public class Prescription
extends java.lang.Object
Constructor and Description |
---|
Prescription()
Creates an blank prescription.
|
Prescription(java.lang.String name,
java.lang.String strength,
java.lang.String route,
java.lang.String frequency,
java.lang.String quantity,
int maxRefills,
int refills,
java.lang.String note,
java.sql.Date date,
boolean filled,
java.lang.String pharmID,
java.lang.String docLicense,
java.lang.String patientMedNumber)
Creates a precription.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocLicense() |
java.lang.String |
getPatientMedNumber() |
java.lang.String |
getPharmID() |
int |
getRefills() |
java.sql.Date |
getRxDate() |
java.lang.String |
getRxFrequency() |
int |
getRxMaxRefill() |
java.lang.String |
getRxName() |
java.lang.String |
getRxNote() |
java.lang.String |
getRxQuantity() |
java.lang.String |
getRxRoute() |
java.lang.String |
getRxStrength() |
boolean |
IsFilled() |
void |
setPatientMedNumber(java.lang.String patientMedNumber) |
void |
setRefills(int refills) |
void |
setRxDate(java.sql.Date date) |
void |
setRxDocLicense(java.lang.String docLicense) |
void |
setRxFrequency(java.lang.String frequency) |
void |
setRxIsFilled(boolean filled) |
void |
setRxMaxRefill(int maxRefill) |
void |
setRxName(java.lang.String name) |
void |
setRxNote(java.lang.String note) |
void |
setRxPharmacyID(java.lang.String pharmID) |
void |
setRxQuantity(java.lang.String quantity) |
void |
setRxRoute(java.lang.String route) |
void |
setRxStrength(java.lang.String strength) |
java.lang.String |
toSQLInsertString() |
public Prescription()
public Prescription(java.lang.String name, java.lang.String strength, java.lang.String route, java.lang.String frequency, java.lang.String quantity, int maxRefills, int refills, java.lang.String note, java.sql.Date date, boolean filled, java.lang.String pharmID, java.lang.String docLicense, java.lang.String patientMedNumber)
name
- Name of the drug.strength
- Drug's strength.route
- Route of administration.frequency
- How often the drug should be taken.quantity
- Quantity of the drug (pills, bottles, etc.)maxRefills
- Maximum number of refills.refills
- Number of refills done.note
- Doctor or pharmacist's note.date
- Date the prescription is written.filled
- True of the Rx has been filled, false otherwise.pharmID
- Branch ID of the intended pharmacy.docLicense
- License of the prescribing doctor.patientMedNumber
- Patient's medical number.public void setRxName(java.lang.String name)
public void setRxStrength(java.lang.String strength)
public void setRxRoute(java.lang.String route)
public void setRxFrequency(java.lang.String frequency)
public void setRxQuantity(java.lang.String quantity)
public void setRxMaxRefill(int maxRefill)
public void setRefills(int refills)
public void setRxNote(java.lang.String note)
public void setRxDate(java.sql.Date date)
public void setRxIsFilled(boolean filled)
public void setRxPharmacyID(java.lang.String pharmID)
public void setRxDocLicense(java.lang.String docLicense)
public void setPatientMedNumber(java.lang.String patientMedNumber)
public java.lang.String getRxName()
public java.lang.String getRxStrength()
public java.lang.String getRxRoute()
public java.lang.String getRxFrequency()
public java.lang.String getRxQuantity()
public int getRxMaxRefill()
public int getRefills()
public java.lang.String getRxNote()
public java.sql.Date getRxDate()
public boolean IsFilled()
public java.lang.String getPharmID()
public java.lang.String getDocLicense()
public java.lang.String getPatientMedNumber()
public java.lang.String toSQLInsertString()