当前位置: 首页>>代码示例>>Java>>正文


Java CaseManagementIssue.getIssue_id方法代码示例

本文整理汇总了Java中org.oscarehr.casemgmt.model.CaseManagementIssue.getIssue_id方法的典型用法代码示例。如果您正苦于以下问题:Java CaseManagementIssue.getIssue_id方法的具体用法?Java CaseManagementIssue.getIssue_id怎么用?Java CaseManagementIssue.getIssue_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.casemgmt.model.CaseManagementIssue的用法示例。


在下文中一共展示了CaseManagementIssue.getIssue_id方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:24,代码来源:CaseManagementViewAction.java

示例2: updateIssue

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
public void updateIssue(String demographicNo, Long originalIssueId, Long newIssueId) {
	List<CaseManagementIssue> issues = this.caseManagementIssueDAO.getIssuesByDemographic(demographicNo);
	for (CaseManagementIssue issue : issues) {
		boolean save = false;
		if (issue.getIssue_id() == originalIssueId.longValue()) {
			issue.setIssue_id(newIssueId.longValue());
			issue.setIssue(null);
			save = true;
		}
		if (save) {
			this.caseManagementIssueDAO.saveIssue(issue);
		}
	}

	/*
	 * String[] issueIdList = new String[1]; issueIdList[0] = String.valueOf(newIssueId); List<CaseManagementNote> notes = this.caseManagementNoteDAO.getNotesByDemographic(demographicNo); for(CaseManagementNote note:notes) { Set<CaseManagementIssue>
	 * issues = note.getIssues(); for(CaseManagementIssue issue:issues) { if(issue.getIssue().getId().equals(originalIssueId)) { //update this CaseManagementIssue issue.setIssue(null); issue.setIssue_id(newIssueId.longValue()); } }
	 * this.caseManagementNoteDAO.saveNote(note); }
	 */
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:21,代码来源:CaseManagementManager.java

示例3: 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;
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:27,代码来源:CaseManagementViewAction.java

示例4: inCaseIssue

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
protected boolean inCaseIssue(Issue iss, List<CaseManagementIssue> issues) {
	Iterator<CaseManagementIssue> itr = issues.iterator();
	while (itr.hasNext())
	{
		CaseManagementIssue cIss = itr.next();
		if (iss.getId().longValue() == cIss.getIssue_id())
			return true;
	}
	return false;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:11,代码来源:BaseCaseManagementEntryAction.java

示例5: pushDemographicIssues

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void pushDemographicIssues(Date lastDataUpdated, Facility facility, List<Program> programsInFacility, DemographicWs service, Integer demographicId) throws ShutdownException {
	logger.debug("pushing demographicIssues facilityId:" + facility.getId() + ", demographicId:" + demographicId);

	List<CaseManagementIssue> caseManagementIssues = caseManagementIssueDAO.getIssuesByDemographic(demographicId.toString());
	StringBuilder sentIds = new StringBuilder();
	if (caseManagementIssues.size() == 0) return;

	for (CaseManagementIssue caseManagementIssue : caseManagementIssues) {
		// don't send issue if it is not in our facility.
		logger.debug("Facility:" + facility.getName() + " - caseManagementIssue = " + caseManagementIssue.toString());
		if (caseManagementIssue.getProgram_id() == null || !isProgramIdInProgramList(programsInFacility, caseManagementIssue.getProgram_id())) continue;

		long issueId = caseManagementIssue.getIssue_id();
		Issue issue = issueDao.getIssue(issueId);
		CachedDemographicIssue cachedDemographicIssue = new CachedDemographicIssue();

		FacilityIdDemographicIssueCompositePk facilityDemographicIssuePrimaryKey = new FacilityIdDemographicIssueCompositePk();
		facilityDemographicIssuePrimaryKey.setCaisiDemographicId(Integer.parseInt(caseManagementIssue.getDemographic_no()));
		facilityDemographicIssuePrimaryKey.setCodeType(CodeType.ICD_10); // temporary hard code hack till we sort this out
		facilityDemographicIssuePrimaryKey.setIssueCode(issue.getCode());
		cachedDemographicIssue.setFacilityDemographicIssuePk(facilityDemographicIssuePrimaryKey);

		BeanUtils.copyProperties(caseManagementIssue, cachedDemographicIssue);
		cachedDemographicIssue.setIssueDescription(issue.getDescription());
		cachedDemographicIssue.setIssueRole(IntegratorRoleUtils.getIntegratorRole(issue.getRole()));

		ArrayList<CachedDemographicIssue> issues = new ArrayList<CachedDemographicIssue>();
		issues.add(cachedDemographicIssue);
		service.setCachedDemographicIssues(issues);
		throttleAndChecks();

		sentIds.append("," + caseManagementIssue.getId());
	}

	conformanceTestLog(facility, "CaseManagementIssue", sentIds.toString());
}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:37,代码来源:CaisiIntegratorUpdateTask.java

示例6: makeRemoteNote

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private CachedDemographicNote makeRemoteNote(CaseManagementNote localNote, String issueType) {

		CachedDemographicNote note = new CachedDemographicNote();

		CachedDemographicNoteCompositePk pk = new CachedDemographicNoteCompositePk();
		pk.setUuid(localNote.getUuid() + ":" + localNote.getDemographic_no());
		note.setCachedDemographicNoteCompositePk(pk);

		note.setCaisiDemographicId(Integer.parseInt(localNote.getDemographic_no()));
		note.setCaisiProgramId(Integer.parseInt(localNote.getProgram_no()));
		note.setEncounterType(localNote.getEncounter_type());
		note.setNote(localNote.getNote());
		note.setObservationCaisiProviderId(localNote.getProviderNo());
		note.setObservationDate(MiscUtils.toCalendar(localNote.getObservation_date()));
		note.setRole(localNote.getRoleName());
		note.setSigningCaisiProviderId(localNote.getSigning_provider_no());
		note.setUpdateDate(MiscUtils.toCalendar(localNote.getUpdate_date()));

		List<NoteIssue> issues = note.getIssues();
		List<CaseManagementIssue> localIssues = caseManagementIssueNotesDao.getNoteIssues(localNote.getId().intValue());
		for (CaseManagementIssue caseManagementIssue : localIssues) {
			long issueId = caseManagementIssue.getIssue_id();
			Issue localIssue = issueDao.getIssue(issueId);

			NoteIssue noteIssue = new NoteIssue();
			if ("ICD10".equalsIgnoreCase(issueType)) noteIssue.setCodeType(CodeType.ICD_10); // temporary hard code hack till we sort this out
			noteIssue.setIssueCode(localIssue.getCode());
			issues.add(noteIssue);
		}

		return (note);
	}
 
开发者ID:oscarservice,项目名称:oscar-old,代码行数:33,代码来源:CaisiIntegratorUpdateTask.java

示例7: pushDemographicIssues

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private void pushDemographicIssues(Date lastDataUpdated, Facility facility, List<Program> programsInFacility, DemographicWs service, Integer demographicId, CachedFacility cachedFacility) throws ShutdownException {
	logger.debug("pushing demographicIssues facilityId:" + facility.getId() + ", demographicId:" + demographicId);

	List<CaseManagementIssue> caseManagementIssues = caseManagementIssueDAO.getIssuesByDemographicSince(demographicId.toString(),lastDataUpdated);
	StringBuilder sentIds = new StringBuilder();
	if (caseManagementIssues.size() == 0) return;
	
	Properties prop = OscarProperties.getInstance();

	for (CaseManagementIssue caseManagementIssue : caseManagementIssues) {
		// don't send issue if it is not in our facility.
		logger.debug("Facility:" + facility.getName() + " - caseManagementIssue = " + caseManagementIssue.toString());
		if (caseManagementIssue.getProgram_id() == null || !isProgramIdInProgramList(programsInFacility, caseManagementIssue.getProgram_id())) continue;

		long issueId = caseManagementIssue.getIssue_id();
		Issue issue = issueDao.getIssue(issueId);
		CachedDemographicIssue cachedDemographicIssue = new CachedDemographicIssue();

		FacilityIdDemographicIssueCompositePk facilityDemographicIssuePrimaryKey = new FacilityIdDemographicIssueCompositePk();
		facilityDemographicIssuePrimaryKey.setCaisiDemographicId(Integer.parseInt(caseManagementIssue.getDemographic_no()));
		if( Issue.CUSTOM_ISSUE.equalsIgnoreCase(issue.getType()) ) {
			facilityDemographicIssuePrimaryKey.setCodeType(CodeType.CUSTOM_ISSUE); 
		}
		else if( Issue.SYSTEM.equalsIgnoreCase(issue.getType()) ){
			facilityDemographicIssuePrimaryKey.setCodeType(CodeType.SYSTEM);
		}
		else if( Issue.ICD_9.equalsIgnoreCase(issue.getType()) ) {
			facilityDemographicIssuePrimaryKey.setCodeType(CodeType.ICD_9);
		}
		else if( Issue.ICD_10.equalsIgnoreCase(issue.getType()) ) {
			facilityDemographicIssuePrimaryKey.setCodeType(CodeType.ICD_10);
		}
		else if( Issue.SNOMED.equalsIgnoreCase(issue.getType()) ) {
			facilityDemographicIssuePrimaryKey.setCodeType(CodeType.SNOMED);
		}
		else {
			logger.warn("UNKNOWN ISSUE TYPE. " + issue.getType() + " ID:" + issue.getId() + " SKIPPING...");
			continue;
		}
		
		facilityDemographicIssuePrimaryKey.setIssueCode(issue.getCode());
		cachedDemographicIssue.setFacilityDemographicIssuePk(facilityDemographicIssuePrimaryKey);

		BeanUtils.copyProperties(caseManagementIssue, cachedDemographicIssue);
		cachedDemographicIssue.setIssueDescription(issue.getDescription());
		cachedDemographicIssue.setIssueRole(IntegratorRoleUtils.getIntegratorRole(issue.getRole()));

		ArrayList<CachedDemographicIssue> issues = new ArrayList<CachedDemographicIssue>();
		issues.add(cachedDemographicIssue);
		service.setCachedDemographicIssues(issues);
		throttleAndChecks();

		sentIds.append("," + caseManagementIssue.getId());
	}
	
	//let integrator know our current and active list of issues for this patient. The integrator will delete all not found in this list in it's db.
	service.deleteCachedDemographicIssues(demographicId, caseManagementIssueDAO.getIssueIdsForIntegrator(cachedFacility.getIntegratorFacilityId(),demographicId));
	conformanceTestLog(facility, "CaseManagementIssue", sentIds.toString());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:60,代码来源:CaisiIntegratorUpdateTask.java

示例8: makeRemoteNote

import org.oscarehr.casemgmt.model.CaseManagementIssue; //导入方法依赖的package包/类
private CachedDemographicNote makeRemoteNote(CaseManagementNote localNote) {

		CachedDemographicNote note = new CachedDemographicNote();

		CachedDemographicNoteCompositePk pk = new CachedDemographicNoteCompositePk();
		pk.setUuid(localNote.getUuid() + ":" + localNote.getDemographic_no());
		note.setCachedDemographicNoteCompositePk(pk);

		note.setCaisiDemographicId(Integer.parseInt(localNote.getDemographic_no()));
		note.setCaisiProgramId(Integer.parseInt(localNote.getProgram_no()));
		note.setEncounterType(localNote.getEncounter_type());
		note.setNote(localNote.getNote());
		note.setObservationCaisiProviderId(localNote.getProviderNo());
		note.setObservationDate(DateUtils.toCalendar(localNote.getObservation_date()));
		note.setRole(localNote.getRoleName());
		note.setSigningCaisiProviderId(localNote.getSigning_provider_no());
		note.setUpdateDate(DateUtils.toCalendar(localNote.getUpdate_date()));

		List<NoteIssue> issues = note.getIssues();
		List<CaseManagementIssue> localIssues = caseManagementIssueNotesDao.getNoteIssues(localNote.getId().intValue());
		String issueCodeType;
		for (CaseManagementIssue caseManagementIssue : localIssues) {
			long issueId = caseManagementIssue.getIssue_id();
			Issue localIssue = issueDao.getIssue(issueId);
			issueCodeType = localIssue.getType();

			NoteIssue noteIssue = new NoteIssue();
			if( Issue.CUSTOM_ISSUE.equalsIgnoreCase(issueCodeType) ) { 
				noteIssue.setCodeType(CodeType.CUSTOM_ISSUE);
			}
			else if( Issue.ICD_10.equalsIgnoreCase(issueCodeType) ) { 
				noteIssue.setCodeType(CodeType.ICD_10);
			}
			else if( Issue.ICD_9.equalsIgnoreCase(issueCodeType) ) {
				noteIssue.setCodeType(CodeType.ICD_9);
			}
			else if( Issue.SNOMED.equalsIgnoreCase(issueCodeType) ) {
				noteIssue.setCodeType(CodeType.SNOMED);
			}
			else if( Issue.SYSTEM.equalsIgnoreCase(issueCodeType) ) {
				noteIssue.setCodeType(CodeType.SYSTEM);
			}
			else {
				continue;
			}
						
			noteIssue.setIssueCode(localIssue.getCode());
			issues.add(noteIssue);
		}

		return (note);
	}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:53,代码来源:CaisiIntegratorUpdateTask.java


注:本文中的org.oscarehr.casemgmt.model.CaseManagementIssue.getIssue_id方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。