本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.getIssue方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.getIssue方法的具体用法?Java CaseManagementIssue.getIssue怎么用?Java CaseManagementIssue.getIssue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.casemgmt.model.CaseManagementIssue
的用法示例。
在下文中一共展示了CaseManagementIssue.getIssue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: propulatePatientInfoFromPatientChart
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void propulatePatientInfoFromPatientChart(PatientInfo patientInfo) {
CaseManagementManager cmm = SpringUtils.getBean(CaseManagementManager.class);
List<CaseManagementNote> lcmn = cmm.getNotes(demographicNo);
String famHist=null, riskFactors=null;
for (CaseManagementNote cmn : lcmn) {
Set<CaseManagementIssue> sisu = cmn.getIssues();
for (CaseManagementIssue isu : sisu) {
if (isu.getIssue()==null) continue;
if (!isu.getIssue().getType().equals("system")) continue;
String _issue = isu.getIssue().getCode();
if (_issue.equals("FamHistory")) {
if (famHist==null) famHist = cmn.getNote();
else famHist += "\n"+cmn.getNote();
break;
} else if (_issue.equals("RiskFactors")) {
if (riskFactors==null) riskFactors = cmn.getNote();
else riskFactors += "\n"+cmn.getNote();
break;
}
}
}
if (famHist!=null) {
if (famHist.length()>250) famHist = famHist.substring(0, 250);
patientInfo.setFamilyHistory(famHist);
}
if (riskFactors!=null) {
if (riskFactors.length()>250) riskFactors = riskFactors.substring(0, 250);
patientInfo.setPastProblemsRiskFactor(riskFactors);
}
}
示例2: populatePatientInfoFromPatientChart
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void populatePatientInfoFromPatientChart(PatientInfo patientInfo, Integer demographicNo) {
CaseManagementManager cmm = SpringUtils.getBean(CaseManagementManager.class);
List<CaseManagementNote> lcmn = cmm.getNotes(demographicNo.toString());
String famHist = null, riskFactors = null;
for (CaseManagementNote cmn : lcmn) {
Set<CaseManagementIssue> sisu = cmn.getIssues();
for (CaseManagementIssue isu : sisu) {
if (isu.getIssue() == null) continue;
if (!isu.getIssue().getType().equals("system")) continue;
String _issue = isu.getIssue().getCode();
if (_issue.equals("FamHistory")) {
if (famHist == null) famHist = cmn.getNote();
else famHist += "\n" + cmn.getNote();
break;
} else if (_issue.equals("RiskFactors")) {
if (riskFactors == null) riskFactors = cmn.getNote();
else riskFactors += "\n" + cmn.getNote();
break;
}
}
}
if (famHist != null) {
if (famHist.length() > 250) famHist = famHist.substring(0, 250);
patientInfo.setFamilyHistory(famHist);
}
if (riskFactors != null) {
if (riskFactors.length() > 250) riskFactors = riskFactors.substring(0, 250);
patientInfo.setPastProblemsRiskFactor(riskFactors);
}
}
示例3: checkForDataFromNotes
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void checkForDataFromNotes(HttpServletRequest request) {
String temp=request.getParameter("noteId");
if (temp!=null)
{
Long noteId=Long.parseLong(temp);
CaseManagementNote caseManagementNote=caseManagementNoteDAO.getNote(noteId);
// fill demographic info
String demographicId=caseManagementNote.getDemographic_no();
Demographic demographic=demographicManager.getDemographic(LoggedInInfo.getLoggedInInfoFromSession(request), demographicId);
clientFirstName=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getFirstName()));
clientLastName=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getLastName()));
clientHin=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getHin()));
GregorianCalendar cal=demographic.getBirthDay();
if (cal!=null) clientBirthDate=StringEscapeUtils.escapeHtml(DateFormatUtils.ISO_DATE_FORMAT.format(cal));
clientGender=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getSex()));
// fill note info
subject=StringEscapeUtils.escapeHtml("Encounter Note");
StringBuilder sb=new StringBuilder();
sb.append(caseManagementNote.getNote());
List<CaseManagementIssue> caseManagementIssues=caseManagementIssueNotesDao.getNoteIssues(caseManagementNote.getId().intValue());
if (caseManagementIssues.size()>0)
{
sb.append("\n---------- Attached Issues ---------");
for (CaseManagementIssue caseManagementIssue : caseManagementIssues)
{
sb.append('\n');
Issue issue=caseManagementIssue.getIssue();
sb.append(issue.getCode());
sb.append(" (");
sb.append(issue.getDescription());
sb.append(") : acute=");
sb.append(caseManagementIssue.isAcute());
sb.append(", certain=");
sb.append(caseManagementIssue.isCertain());
sb.append(", major=");
sb.append(caseManagementIssue.isMajor());
sb.append(", resolved=");
sb.append(caseManagementIssue.isResolved());
}
}
else
{
sb.append("\n---------- No Attached Issues ---------");
}
textMessage=StringEscapeUtils.escapeHtml(sb.toString());
}
}
示例4: checkForDataFromNotes
import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void checkForDataFromNotes(HttpServletRequest request) {
String temp=request.getParameter("noteId");
if (temp!=null)
{
Long noteId=Long.parseLong(temp);
CaseManagementNote caseManagementNote=caseManagementNoteDAO.getNote(noteId);
// fill demographic info
String demographicId=caseManagementNote.getDemographic_no();
Demographic demographic=demographicDao.getDemographic(demographicId);
clientFirstName=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getFirstName()));
clientLastName=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getLastName()));
clientHin=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getHin()));
GregorianCalendar cal=demographic.getBirthDay();
if (cal!=null) clientBirthDate=StringEscapeUtils.escapeHtml(DateFormatUtils.ISO_DATE_FORMAT.format(cal));
clientGender=StringEscapeUtils.escapeHtml(StringUtils.trimToEmpty(demographic.getSex()));
// fill note info
subject=StringEscapeUtils.escapeHtml("Encounter Note");
StringBuilder sb=new StringBuilder();
sb.append(caseManagementNote.getNote());
List<CaseManagementIssue> caseManagementIssues=caseManagementIssueNotesDao.getNoteIssues(caseManagementNote.getId().intValue());
if (caseManagementIssues.size()>0)
{
sb.append("\n---------- Attached Issues ---------");
for (CaseManagementIssue caseManagementIssue : caseManagementIssues)
{
sb.append('\n');
Issue issue=caseManagementIssue.getIssue();
sb.append(issue.getCode());
sb.append(" (");
sb.append(issue.getDescription());
sb.append(") : acute=");
sb.append(caseManagementIssue.isAcute());
sb.append(", certain=");
sb.append(caseManagementIssue.isCertain());
sb.append(", major=");
sb.append(caseManagementIssue.isMajor());
sb.append(", resolved=");
sb.append(caseManagementIssue.isResolved());
}
}
else
{
sb.append("\n---------- No Attached Issues ---------");
}
textMessage=StringEscapeUtils.escapeHtml(sb.toString());
}
}