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