当前位置: 首页>>代码示例>>Java>>正文


Java Measurement.setProviderNo方法代码示例

本文整理汇总了Java中org.oscarehr.common.model.Measurement.setProviderNo方法的典型用法代码示例。如果您正苦于以下问题:Java Measurement.setProviderNo方法的具体用法?Java Measurement.setProviderNo怎么用?Java Measurement.setProviderNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.common.model.Measurement的用法示例。


在下文中一共展示了Measurement.setProviderNo方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: saveMeasurements

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
public static Long saveMeasurements(String type, String demoNo, String providerNo, String dataField, String measuringInstruction, Date dateObserved)  {
if (dateObserved==null) 
	dateObserved = new Date();

Measurement m = new Measurement();
m.setDemographicId(Integer.parseInt(demoNo));
m.setType(type.toUpperCase());
m.setProviderNo(providerNo);
m.setDataField(dataField);
m.setMeasuringInstruction(measuringInstruction);
m.setDateObserved(dateObserved);

measurementDao.persist(m);

return m.getId().longValue();
  }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:17,代码来源:ImportExportMeasurements.java

示例2: write

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
static public void write(Vector measures, String demographicNo, String providerNo) {
   
        
    for (int i=0; i<measures.size(); i++) {
        Hashtable measure = (Hashtable) measures.get(i);

        String inputValue = (String) measure.get("value");
        String inputType = (String) measure.get("type");
        String mInstrc = (String) measure.get("measuringInstruction");
        String comments = (String) measure.get("comments");
        String dateObserved = (String) measure.get("dateObserved");
        String dateEntered = (String) measure.get("dateEntered");
        //write....
        Measurement m = new Measurement();
        m.setType(inputType);
        m.setDemographicId(Integer.parseInt(demographicNo));
        m.setProviderNo(providerNo);
        m.setDataField(inputValue);
        m.setMeasuringInstruction(mInstrc);
        m.setComments(comments);
        m.setDateObserved(ConversionUtils.fromTimestampString(dateObserved));
        dao.persist(m);
       
    }
    
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:27,代码来源:WriteNewMeasurements.java

示例3: doCommentInput

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
public void doCommentInput(FlowSheetItem item, EctMeasurementTypesBean mtypeBean, MeasurementFlowSheet mFlowsheet, String inputType, String mInstructions, String comment, String date, String apptNo, HttpServletRequest request) {
	String demographicNo = request.getParameter("demographic_no");
	HttpSession session = request.getSession();
	String providerNo = (String) session.getAttribute("user");
	String comments = comment;
	
	MeasurementDao measurementDao = (MeasurementDao) SpringUtils.getBean("measurementDao");

	Measurement measurement = new Measurement();
	measurement.setDemographicId(Integer.parseInt(demographicNo));
	measurement.setDataField("");
	measurement.setMeasuringInstruction(mInstructions);
	measurement.setComments(comments);
	measurement.setDateObserved(ConversionUtils.fromDateString(date));
	measurement.setType(inputType);
	if (apptNo != null) {
		measurement.setAppointmentNo(Integer.parseInt(apptNo));
	} else {
		measurement.setAppointmentNo(0);
	}
	measurement.setProviderNo(providerNo);

	measurementDao.persist(measurement);

}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:26,代码来源:FormUpdateAction.java

示例4: copyTo

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
public void copyTo(Measurement measurement)
{
	// ID should not be copied, nor createDate
	
	measurement.setAppointmentNo(appointmentNo);
	measurement.setComments(comments);
	measurement.setDataField(dataField);
	measurement.setDateObserved(dateObserved);
	measurement.setDemographicId(demographicId);
	measurement.setMeasuringInstruction(measuringInstruction);
	measurement.setProviderNo(providerNo);
	measurement.setType(type);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:MeasurementTransfer.java

示例5: saveMeasurementAjax

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
public ActionForward saveMeasurementAjax(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException {
	String demographicNo = request.getParameter("demographicNo");
	String type = request.getParameter("type");
	String value = request.getParameter("value");
	
	LoggedInInfo loggedInInfo=LoggedInInfo.getLoggedInInfoFromSession(request);
	String providerNo=loggedInInfo.getLoggedInProviderNo();

	MeasurementDao md = SpringUtils.getBean(MeasurementDao.class);
	
	Measurement m = new Measurement();
	m.setAppointmentNo(0);
	m.setComments("");
	m.setDataField(value);
	m.setDateObserved(new Date());
	m.setDemographicId(Integer.parseInt(demographicNo));
	m.setMeasuringInstruction("");
	m.setProviderNo(providerNo);
	m.setType(type);
	
	md.persist(m);
	
	JSONObject jsonObj = JSONObject.fromObject(new LabelValueBean("result","success"));
	response.getWriter().print(jsonObj);
	
    return null;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:28,代码来源:PregnancyAction.java

示例6: saveDataToMeasurements

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
public void saveDataToMeasurements( String type, String value, int patientId, String providerNo )
{
 Measurement m = new Measurement();
 m.setDemographicId(patientId);
 m.setType(type);
 m.setDataField(value);
 m.setProviderNo(providerNo);
 m.setDateObserved(new java.sql.Date( Calendar.getInstance().getTimeInMillis() ) );
 
 //These fields cannot be null.
 m.setMeasuringInstruction("");
 m.setComments("From HSFO");
 m.setAppointmentNo(0); //Needed?
 measurementDao.merge(m);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:16,代码来源:HSFODAO.java

示例7: write2MeasurementTable

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
private boolean write2MeasurementTable(String demographicNo, String providerNo,
                                      EctMeasurementTypesBean mt, String inputValue,
                                      String dateObservedString, String comments){
      boolean newDataAdded = false;
if (!GenericValidator.isBlankOrNull(inputValue)) {
	SearchCriteria criteria = new SearchCriteria();
	criteria.setDemographicNo(demographicNo);
	criteria.setType(mt.getType());
	criteria.setDataField(inputValue);
	criteria.setMeasuringInstrc(mt.getMeasuringInstrc());
	criteria.setComments(comments);
	
	Date dateObserved = UtilDateUtilities.StringToDate(dateObservedString,"yyyy-MM-dd");
	criteria.setDateObserved(dateObserved);

	//Find if the same data has already been entered into the system
	MeasurementDao dao = SpringUtils.getBean(MeasurementDao.class);
	List<Measurement> measurements = dao.find(criteria);

	if (measurements.isEmpty()) {
		newDataAdded = true;

		Measurement measurement = new Measurement();
		measurement.setType(mt.getType());
		measurement.setDemographicId(Integer.parseInt(demographicNo));
		measurement.setProviderNo(providerNo);
		measurement.setDataField(inputValue);
		measurement.setMeasuringInstruction(mt.getMeasuringInstrc());
		measurement.setComments(comments);
		measurement.setDateObserved(dateObserved);

		dao.persist(measurement);
	}
}
      
      return newDataAdded;
  }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:38,代码来源:FrmFormAction.java

示例8: getMeasurement

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
Measurement getMeasurement(String type,Date dateEntered,Integer demographicNo,String dataField,String providerNo){
   	Measurement measurement = new Measurement();
   	measurement.setType(type);
   	measurement.setCreateDate(dateEntered);
   	measurement.setDateObserved(dateEntered);
   	measurement.setDemographicId(demographicNo);
   	measurement.setDataField(dataField);
   	measurement.setProviderNo(providerNo);
   	measurement.setMeasuringInstruction("");
   	measurement.setComments("");
   	measurement.setAppointmentNo(0);
   	return measurement;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:OntarioMDSpec4DataTest.java

示例9: populate

import org.oscarehr.common.model.Measurement; //导入方法依赖的package包/类
protected Measurement populate() {
	Measurement m = new Measurement();
	m.setDemographicId(999);
	m.setAppointmentNo(100);
	m.setComments("NUIOBLAHA");
	m.setDataField("DTATAHEROVATA");
	m.setDateObserved(new Date());
	m.setMeasuringInstruction("MSRNIGINSRCTIONS");
	m.setProviderNo("PRVDRE");
	m.setType("TIPPITIP");
	dao.persist(m);
	return m;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:MeasurementDaoTest.java


注:本文中的org.oscarehr.common.model.Measurement.setProviderNo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。