本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.isResolved方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.isResolved方法的具体用法?Java CaseManagementIssue.isResolved怎么用?Java CaseManagementIssue.isResolved使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.casemgmt.model.CaseManagementIssue
的用法示例。
在下文中一共展示了CaseManagementIssue.isResolved方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIssueDisplay
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
protected IssueDisplay getIssueDisplay(String providerNo, Integer programId, CaseManagementIssue cmi) {
IssueDisplay issueDisplay = new IssueDisplay();
if (programId != null) issueDisplay.writeAccess = cmi.isWriteAccess(providerNo, programId);
issueDisplay.acute = cmi.isAcute() ? "acute" : "chronic";
issueDisplay.certain = cmi.isCertain() ? "certain" : "uncertain";
long issueId = cmi.getIssue_id();
Issue issue = issueDao.getIssue(issueId);
issueDisplay.code = issue.getCode();
issueDisplay.codeType = OscarProperties.getInstance().getProperty("COMMUNITY_ISSUE_CODETYPE").toUpperCase();
issueDisplay.description = issue.getDescription();
issueDisplay.location = "local";
issueDisplay.major = cmi.isMajor() ? "major" : "not major";
issueDisplay.priority = issue.getPriority();
issueDisplay.resolved = cmi.isResolved() ? "resolved" : "unresolved";
issueDisplay.role = issue.getRole();
issueDisplay.sortOrderId = issue.getSortOrderId();
return issueDisplay;
}
示例2: getIssueDisplay
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
protected IssueDisplay getIssueDisplay(Integer programId,
CaseManagementIssue cmi) {
IssueDisplay issueDisplay = new IssueDisplay();
if (programId != null)
issueDisplay.writeAccess = cmi.isWriteAccess(programId);
issueDisplay.acute = cmi.isAcute() ? "acute" : "chronic";
issueDisplay.certain = cmi.isCertain() ? "certain" : "uncertain";
long issueId = cmi.getIssue_id();
Issue issue = issueDao.getIssue(issueId);
issueDisplay.code = issue.getCode();
issueDisplay.codeType = OscarProperties.getInstance()
.getProperty("COMMUNITY_ISSUE_CODETYPE").toUpperCase();
issueDisplay.description = issue.getDescription();
issueDisplay.location = "local";
issueDisplay.major = cmi.isMajor() ? "major" : "not major";
issueDisplay.priority = issue.getPriority();
issueDisplay.resolved = cmi.isResolved() ? "resolved" : "unresolved";
issueDisplay.role = issue.getRole();
issueDisplay.sortOrderId = issue.getSortOrderId();
return issueDisplay;
}
示例3: createIssueString
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
protected String createIssueString(Set<CaseManagementIssue> issuelist) {
if (issuelist.isEmpty())
return "";
String rt = "\n[" + relateIssueString;
Iterator<CaseManagementIssue> itr = issuelist.iterator();
while (itr.hasNext()) {
CaseManagementIssue iss = itr.next();
rt = rt + "\n" + iss.getIssue().getDescription() + "\t\t\n";
if (iss.isCertain())
rt = rt + "certain" + " ";
else
rt = rt + "uncertain" + " ";
if (iss.isAcute())
rt = rt + "acute" + " ";
else
rt = rt + "chronic" + " ";
if (iss.isMajor())
rt = rt + "major" + " ";
else
rt = rt + "not major" + " ";
if (iss.isResolved())
rt = rt + "resolved";
else
rt = rt + "unresolved";
}
return rt + "]\n";
}
示例4: setCPPMedicalHistory
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
public void setCPPMedicalHistory(CaseManagementCPP cpp, String providerNo,List accessRight) {
if (caseManagementMgr.greaterEqualLevel(3, providerNo)) {
String mHis = cpp.getMedicalHistory();
if(mHis!=null) {
mHis = mHis.replaceAll("\r\n", "\n");
mHis = mHis.replaceAll("\r", "\n");
}
List<CaseManagementIssue> allIssues = caseManagementMgr.getIssues(Integer.parseInt(cpp.getDemographic_no()));
Iterator<CaseManagementIssue> itr = allIssues.iterator();
while (itr.hasNext()) {
CaseManagementIssue cis = itr.next();
String issustring = cis.getIssue().getDescription();
if (cis.isMajor() && cis.isResolved()) {
if (mHis!=null && mHis.indexOf(issustring) < 0)
mHis = mHis + issustring + ";\n";
} else {
if (mHis!=null && mHis.indexOf(issustring) >= 0)
mHis = mHis.replaceAll(issustring + ";\n", "");
}
}
if(mHis!=null) {
mHis = mHis.replaceAll("\r\n", "\n");
mHis = mHis.replaceAll("\r", "\n");
}
cpp.setMedicalHistory(mHis);
}
}
示例5: setCPPMedicalHistory
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
public void setCPPMedicalHistory(CaseManagementCPP cpp, String providerNo,List accessRight) {
if (greaterEqualLevel(3, providerNo)) {
String mHis = cpp.getMedicalHistory();
if(mHis!=null) {
mHis = mHis.replaceAll("\r\n", "\n");
mHis = mHis.replaceAll("\r", "\n");
}
List<CaseManagementIssue> allIssues = getIssues(Integer.parseInt(cpp.getDemographic_no()));
Iterator<CaseManagementIssue> itr = allIssues.iterator();
while (itr.hasNext()) {
CaseManagementIssue cis = itr.next();
String issustring = cis.getIssue().getDescription();
if (cis.isMajor() && cis.isResolved()) {
if (mHis!=null && mHis.indexOf(issustring) < 0)
mHis = mHis + issustring + ";\n";
} else {
if (mHis!=null && mHis.indexOf(issustring) >= 0)
mHis = mHis.replaceAll(issustring + ";\n", "");
}
}
if(mHis!=null) {
mHis = mHis.replaceAll("\r\n", "\n");
mHis = mHis.replaceAll("\r", "\n");
}
cpp.setMedicalHistory(mHis);
}
}