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