本文整理汇总了Java中org.oscarehr.common.model.Dxresearch.setStatus方法的典型用法代码示例。如果您正苦于以下问题:Java Dxresearch.setStatus方法的具体用法?Java Dxresearch.setStatus怎么用?Java Dxresearch.setStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Dxresearch
的用法示例。
在下文中一共展示了Dxresearch.setStatus方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveToDx
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void saveToDx(LoggedInInfo loggedInInfo, String demographicNo, String code, String codingSystem, boolean association) {
if (codingSystem == null) {
codingSystem = "icd10";
}
Dxresearch dx = new Dxresearch();
dx.setDxresearchCode(code);
dx.setCodingSystem(codingSystem);
dx.setDemographicNo(Integer.parseInt(demographicNo));
dx.setStartDate(new Date());
dx.setUpdateDate(new Date());
dx.setStatus('A');
dx.setAssociation(association?(byte)1:(byte)0);
dx.setProviderNo(loggedInInfo.getLoggedInProviderNo());
if (!dxresearchDAO.entryExists(dx.getDemographicNo(), codingSystem, code)) {
this.dxresearchDAO.save(dx);
}
}
示例2: addToDiseaseRegistry
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
@POST
@Path("/{demographicNo}/add")
@Produces("application/json")
@Consumes("application/json")
public Response addToDiseaseRegistry(@PathParam("demographicNo") Integer demographicNo,IssueTo1 issue){
boolean activeEntryExists = dxresearchDao.activeEntryExists(demographicNo, issue.getType(), issue.getCode());
if(!activeEntryExists){
Dxresearch dx = new Dxresearch();
dx.setStartDate(new Date());
dx.setCodingSystem(issue.getType());
dx.setDemographicNo(demographicNo);
dx.setDxresearchCode(issue.getCode());
dx.setStatus('A');
dx.setProviderNo(getCurrentProvider().getProviderNo());
dxresearchDao.persist(dx);
LogAction.addLog(getLoggedInInfo(), "Dxresearch.add", "dxresearch", ""+dx.getId(), ""+demographicNo, dx.toString());
}
return Response.ok().build();
}
示例3: saveToDx
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void saveToDx(String demographicNo, String code, String codingSystem, boolean association) {
if (codingSystem == null) {
codingSystem = "icd10";
}
Dxresearch dx = new Dxresearch();
dx.setDxresearchCode(code);
dx.setCodingSystem(codingSystem);
dx.setDemographicNo(Integer.parseInt(demographicNo));
dx.setStartDate(new Date());
dx.setUpdateDate(new Date());
dx.setStatus('A');
dx.setAssociation(association?(byte)1:(byte)0);
if (!dxresearchDAO.entryExists(dx.getDemographicNo(), codingSystem, code)) {
this.dxresearchDAO.save(dx);
}
}
示例4: execute
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
if (!securityInfoManager.hasPrivilege(LoggedInInfo.getLoggedInInfoFromSession(request), "_dxresearch", "u", null)) {
throw new RuntimeException("missing required security object (_dxresearch)");
}
String status = request.getParameter("status");
String did = request.getParameter("did");
String demographicNo = request.getParameter("demographicNo");
String providerNo = request.getParameter("providerNo");
String startDate = request.getParameter("startdate");
partialDateDao.setPartialDate(startDate, PartialDate.DXRESEARCH, Integer.valueOf(did), PartialDate.DXRESEARCH_STARTDATE);
startDate = partialDateDao.getFullDate(startDate);
DxresearchDAO dao = SpringUtils.getBean(DxresearchDAO.class);
Dxresearch research = dao.find(ConversionUtils.fromIntString(did));
if (research != null) {
if (status.equals("C") || status.equals("D")) {
research.setStatus(status.charAt(0));
} else if (status.equals("A") && startDate != null) {
research.setStartDate(new Date());
}
research.setUpdateDate(new Date());
dao.merge(research);
}
ParameterActionForward forward = new ParameterActionForward(mapping.findForward("success"));
forward.addParameter("demographicNo", demographicNo);
forward.addParameter("providerNo", providerNo);
forward.addParameter("quickList", "");
String ip = request.getRemoteAddr();
LogAction.addLog((String) request.getSession().getAttribute("user"), LogConst.UPDATE, "DX", ""+research.getId() , ip,"");
return forward;
}
示例5: statusCodeCompleteTest
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
@Test
public void statusCodeCompleteTest() {
Dxresearch problem2 = dao.getDxResearchItemsByPatient(Constants.Runtime.VALID_DEMOGRAPHIC).get(0);
problem2.setStatus('C');
ProblemsModel problemsModel2 = new ProblemsModel(problem2);
ActStatus status = problemsModel2.getStatusCode();
assertNotNull(status);
assertEquals(ActStatus.Completed, status);
}
示例6: getDxResearch
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
Dxresearch getDxResearch(String codingSystem, String code,String status,Date startDate,Date updateDate,Integer demographicNo){
Dxresearch dxresearch = new Dxresearch();
dxresearch.setCodingSystem(codingSystem);
dxresearch.setDxresearchCode(code);
dxresearch.setStatus(status.toCharArray()[0]);
dxresearch.setStartDate(startDate);
dxresearch.setUpdateDate(updateDate);
dxresearch.setDemographicNo(demographicNo);
return dxresearch;
}
示例7: screenPopulation
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void screenPopulation(LoggedInInfo loggedInInfo) {
logger.debug("beginning screening");
//TODO: only ones which havn't been screened, or don't have have active dx for screening
List<Integer> demographicNos = demographicDao.getActiveDemographicIds();
for(Integer demographicNo:demographicNos) {
List<String> reasons = new ArrayList<String>();
MyBoolean first = new MyBoolean();
first.setValue(false);
boolean isMatch = screenDemographic(demographicNo,reasons, first);
logger.debug("demographicNo " + demographicNo + " isMatch=" + isMatch);
boolean notify=false;
if(!notify) {
//there's no active ones, but let's look at the latest one
List<Dxresearch> drs = dxResearchDao.find(demographicNo, "OscarCode", "CKDSCREEN");
if(drs.size()>0) {
Dxresearch dr = drs.get(0);
Calendar aYearAgo = Calendar.getInstance();
aYearAgo.add(Calendar.MONTH, -12);
if(dr.getUpdateDate().before(aYearAgo.getTime())) {
notify=true;
//reopen it
dr.setStatus('A');
dr.setUpdateDate(new Date());
dxResearchDao.merge(dr);
}
}
}
if(first.getValue().booleanValue()==true) {
notify=true;
}
if(isMatch && notify) {
//notification stuff
boolean generateNotification=true;
if(generateNotification) {
logger.debug("generating notification");
CkdNotificationManager notificationMgr = new CkdNotificationManager();
notificationMgr.doNotify(loggedInInfo,demographicNo,reasons);
}
}
}
}
示例8: screenPopulation
import org.oscarehr.common.model.Dxresearch; //导入方法依赖的package包/类
public void screenPopulation() {
logger.debug("beginning screening");
//TODO: only ones which havn't been screened, or don't have have active dx for screening
List<Integer> demographicNos = demographicDao.getActiveDemographicIds();
for(Integer demographicNo:demographicNos) {
List<String> reasons = new ArrayList<String>();
MyBoolean first = new MyBoolean();
first.setValue(false);
boolean isMatch = screenDemographic(demographicNo,reasons, first);
logger.debug("demographicNo " + demographicNo + " isMatch=" + isMatch);
boolean notify=false;
if(!notify) {
//there's no active ones, but let's look at the latest one
List<Dxresearch> drs = dxResearchDao.find(demographicNo, "OscarCode", "CKDSCREEN");
if(drs.size()>0) {
Dxresearch dr = drs.get(0);
Calendar aYearAgo = Calendar.getInstance();
aYearAgo.add(Calendar.MONTH, -12);
if(dr.getUpdateDate().before(aYearAgo.getTime())) {
notify=true;
//reopen it
dr.setStatus('A');
dr.setUpdateDate(new Date());
dxResearchDao.merge(dr);
}
}
}
if(first.getValue().booleanValue()==true) {
notify=true;
}
if(isMatch && notify) {
//notification stuff
boolean generateNotification=true;
if(generateNotification) {
logger.debug("generating notification");
CkdNotificationManager notificationMgr = new CkdNotificationManager();
notificationMgr.doNotify(demographicNo,reasons);
}
}
}
}