本文整理匯總了Java中org.oscarehr.common.model.Clinic.getClinicFax方法的典型用法代碼示例。如果您正苦於以下問題:Java Clinic.getClinicFax方法的具體用法?Java Clinic.getClinicFax怎麽用?Java Clinic.getClinicFax使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.oscarehr.common.model.Clinic
的用法示例。
在下文中一共展示了Clinic.getClinicFax方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getFax
import org.oscarehr.common.model.Clinic; //導入方法依賴的package包/類
/**
*Retrieve fax number for current provider first by querying property table then clinic table
*/
public String getFax() {
String faxNum = "";
List<Property> props = dao.findByNameAndProvider(faxColName, provider);
for(Property p:props) {
faxNum = p.getValue();
}
if( faxNum.equals("") ) {
List<Clinic> clinics = clinicDao.findAll();
for(Clinic c:clinics) {
faxNum = c.getClinicFax();
}
}
return faxNum;
}
示例2: fillClinicData
import org.oscarehr.common.model.Clinic; //導入方法依賴的package包/類
void fillClinicData() {
if (!filled) {
ClinicDAO dao = SpringUtils.getBean(ClinicDAO.class);
Clinic clinic = dao.getClinic();
if (clinic != null) {
clinic_no = clinic.getId().toString();
clinic_name = clinic.getClinicName();
clinic_address = clinic.getClinicAddress();
clinic_city = clinic.getClinicCity();
clinic_postal = clinic.getClinicPostal();
clinic_phone = clinic.getClinicPhone();
clinic_fax = clinic.getClinicFax();
clinic_location_code = clinic.getClinicLocationCode();
clinic_province = clinic.getClinicProvince();
clinic_delim_phone = clinic.getClinicDelimPhone();
clinic_delim_fax = clinic.getClinicDelimFax();
}
filled = true;
}
}
示例3: convertProvider
import org.oscarehr.common.model.Clinic; //導入方法依賴的package包/類
public Provider convertProvider(org.oscarehr.common.model.Provider p) {
String providerClinicPhone=null, surname=null, firstName=null, clinicName=null, clinicAddress=null, clinicCity=null, clinicPostal=null, clinicPhone=null, clinicFax=null, clinicProvince=null, practitionerNo=null;
//Get Provider from database
if(p != null) {
surname = p.getLastName();
firstName = p.getFirstName();
practitionerNo = p.getPractitionerNo();
if(firstName.indexOf("Dr.")<0) {
firstName = "Dr. " + firstName;
}
providerClinicPhone = p.getWorkPhone();
UserProperty prop = userPropertyDao.getProp(p.getProviderNo(), "faxnumber");
if(prop != null) {
clinicFax = prop.getValue();
}
}
Clinic clinic = clinicDao.getClinic();
if(clinic != null) {
clinicName = clinic.getClinicName();
clinicAddress = clinic.getClinicAddress();
clinicCity = clinic.getClinicCity();
clinicPostal = clinic.getClinicPostal();
clinicPhone = clinic.getClinicPhone();
clinicProvince = clinic.getClinicProvince();
if( clinicFax == null )
clinicFax = clinic.getClinicFax();
}
if((clinicPhone.length()>15) && (providerClinicPhone != null && !providerClinicPhone.equals(""))) clinicPhone = providerClinicPhone;
return new Provider(p!=null?p.getProviderNo():null, surname, firstName, clinicName, clinicAddress,
clinicCity, clinicPostal, clinicPhone, clinicFax, clinicProvince, practitionerNo);
}
示例4: convertProvider
import org.oscarehr.common.model.Clinic; //導入方法依賴的package包/類
public Provider convertProvider(org.oscarehr.common.model.Provider p) {
String surname=null, firstName=null, clinicName=null, clinicAddress=null, clinicCity=null, clinicPostal=null, clinicPhone=null, clinicFax=null, clinicProvince=null, practitionerNo=null;
boolean useFullAddress=true;
//Get Provider from database
Clinic clinic = clinicDao.getClinic();
if(clinic != null) {
clinicName = clinic.getClinicName();
clinicAddress = clinic.getClinicAddress();
clinicCity = clinic.getClinicCity();
clinicPostal = clinic.getClinicPostal();
clinicPhone = clinic.getClinicPhone();
clinicProvince = clinic.getClinicProvince();
clinicFax = clinic.getClinicFax();
}
Provider prov = null;
String providerNo = null;
if(p != null) {
surname = p.getLastName();
firstName = p.getFirstName();
practitionerNo = p.getPractitionerNo();
if(firstName.indexOf("Dr.")<0) {
firstName = "Dr. " + firstName;
}
if(p.getWorkPhone() != null && p.getWorkPhone().length()>0) {
clinicPhone = p.getWorkPhone();
}
if(p.getComments() != null && p.getComments().length()>0) {
String pFax = SxmlMisc.getXmlContent(p.getComments(), "xml_p_fax");
if(pFax != null && pFax.length()>0) {
clinicFax = pFax;
}
}
if(p.getAddress() != null && p.getAddress().length()>0) {
clinicAddress = p.getAddress();
useFullAddress=false;
}
providerNo = p.getProviderNo();
UserProperty prop = null;
prop = userPropertyDao.getProp(providerNo, "faxnumber");
if(prop != null && prop.getValue().length()>0) {
clinicFax = prop.getValue();
}
prop = userPropertyDao.getProp(providerNo, "rxPhone");
if(prop != null && prop.getValue().length()>0) {
clinicPhone = prop.getValue();
}
prop = userPropertyDao.getProp(providerNo, "rxAddress");
if(prop != null && prop.getValue().length()>0) {
//we're going to override with the preference address
clinicAddress = prop.getValue();
clinicCity = readProperty(providerNo,"rxCity");
clinicProvince = readProperty(providerNo,"rxProvince");
clinicPostal = readProperty(providerNo,"rxPostal");
useFullAddress=true;
}
}
prov = new Provider(providerNo, surname, firstName, clinicName, clinicAddress,
clinicCity, clinicPostal, clinicPhone, clinicFax, clinicProvince, practitionerNo);
if(!useFullAddress) {
prov.fullAddress=false;
}
return prov;
}