本文整理汇总了Java中org.oscarehr.common.model.Measurement.setAppointmentNo方法的典型用法代码示例。如果您正苦于以下问题:Java Measurement.setAppointmentNo方法的具体用法?Java Measurement.setAppointmentNo怎么用?Java Measurement.setAppointmentNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Measurement
的用法示例。
在下文中一共展示了Measurement.setAppointmentNo方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: 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);
}
示例3: 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;
}
示例4: 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);
}
示例5: 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;
}
示例6: 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;
}