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


Java ON类代码示例

本文整理汇总了Java中org.hl7.v3.ON的典型用法代码示例。如果您正苦于以下问题:Java ON类的具体用法?Java ON怎么用?Java ON使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ON类属于org.hl7.v3包,在下文中一共展示了ON类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDocumentCustodian

import org.hl7.v3.ON; //导入依赖的package包/类
private POCDMT000040Custodian getDocumentCustodian(OrganizationPolicy orgPolicy) {
  POCDMT000040Custodian custodian = new POCDMT000040Custodian();
  POCDMT000040AssignedCustodian assignedC = new POCDMT000040AssignedCustodian();
  POCDMT000040CustodianOrganization custOrg = new POCDMT000040CustodianOrganization();
 
  ON orgName = new ON();
  orgName.getUse().add(orgPolicy.getOrgName());
  custOrg.setName(orgName);
  TEL oTEL = new TEL();
  oTEL.setValue(orgPolicy.getOrganizationConsentPolicyInfo().getDefaultCustodianInfo().getTelcom());
 
  custOrg.setTelecom(oTEL);
 
  assignedC.setRepresentedCustodianOrganization(custOrg);
  custodian.setAssignedCustodian(assignedC);
 
  return custodian;
}
 
开发者ID:tlin-fei,项目名称:ds4p,代码行数:19,代码来源:ClinicalDocumentProvider.java

示例2: luoNames

import org.hl7.v3.ON; //导入依赖的package包/类
protected ON luoNames(OrganisaatioTO organisaatio) {
    ON names = null;
    if ( organisaatio != null && !onkoNullTaiTyhja(organisaatio.getNimi()) ) {
        names = of.createON();
        names.getContent().add(organisaatio.getNimi());
    }
    return names;
}
 
开发者ID:TheFinnishSocialInsuranceInstitution,项目名称:KantaCDA-API,代码行数:9,代码来源:Kasaaja.java

示例3: getCustodian

import org.hl7.v3.ON; //导入依赖的package包/类
public POCDMT000040Custodian getCustodian(String name, AD addr, String docboxId, String ean,
	String hospitalId, String departmentId){
	POCDMT000040Custodian custodian = new POCDMT000040Custodian();
	POCDMT000040AssignedCustodian assignedCustodian = new POCDMT000040AssignedCustodian();
	custodian.setAssignedCustodian(assignedCustodian);
	
	POCDMT000040CustodianOrganization representedCustodianOrganization =
		new POCDMT000040CustodianOrganization();
	if (name != null) {
		ON on = new ON();
		on.getContent().add(name);
		representedCustodianOrganization.setName(on);
	}
	
	assignedCustodian.setRepresentedCustodianOrganization(representedCustodianOrganization);
	
	if (addr != null) {
		custodian.getAssignedCustodian().getRepresentedCustodianOrganization().setAddr(addr);
	}
	
	if (ean != null) {
		representedCustodianOrganization.getId().add(this.getII(ean, oid_ean));
	}
	
	if (docboxId != null) {
		representedCustodianOrganization.getId().add(getII(docboxId, getOidUserDocboxId()));
	}
	
	if (hospitalId != null) {
		representedCustodianOrganization.getId().add(getII(hospitalId, getOidOrganiaztionId()));
	}
	
	if (departmentId != null) {
		representedCustodianOrganization.getId().add(getII(departmentId, getOidDepartmentId()));
	}
	
	return custodian;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:39,代码来源:DocboxCDA.java

示例4: getOrganization

import org.hl7.v3.ON; //导入依赖的package包/类
public POCDMT000040Organization getOrganization(String organizationName, String organizationId,
	String departmentName, String departmentId, String streetAddrLine, String postalCode,
	String city){
	POCDMT000040Organization organization = new POCDMT000040Organization();
	
	if (organizationId != null) {
		organization.getId().add(getII(organizationId, getOidOrganiaztionId()));
	}
	if (departmentId != null) {
		organization.getId().add(getII(departmentId, getOidDepartmentId()));
	}
	
	if (organizationName != null) {
		ON onOrganizationName = new ON();
		onOrganizationName.getContent().add(organizationName);
		organization.getName().add(onOrganizationName);
	}
	
	if (departmentName != null) {
		ON onDepartmentName = new ON();
		onDepartmentName.getContent().add(departmentName);
		organization.getName().add(onDepartmentName);
	}
	
	organization.getAddr().add(getAddress(streetAddrLine, null, postalCode, city, "WP"));
	
	return organization;
	
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:30,代码来源:DocboxCDA.java

示例5: luoInformationRecipient

import org.hl7.v3.ON; //导入依赖的package包/类
/**
 * Luo informationRecipent rakenteen johon sijoitetaan uusimispyynnön vastaanottajan id ja nimi
 * 
 * <pre>
 *  {@code
 *  <informationRecipient>
 *    <intendedRecipient>
 *      <receivedOrganization>
 *        <id root="[VASTAANOTTAJA_ID]" />
 *        <name>[VASTAANOTTAJA_NIMI]</name>
 *      </receivedOrganization>
 *    </intendedRecipient>
 *  </informationRecipient>
 *  }
 * </pre>
 * 
 * @param uusimispyynto
 *            UusimispyyntoTO josta vastaanottajan tiedot poimitaan
 */
private POCDMT000040InformationRecipient luoInformationRecipient(UusimispyyntoTO uusimispyynto) {
    POCDMT000040InformationRecipient informationRecipient = of.createPOCDMT000040InformationRecipient();
    informationRecipient.setIntendedRecipient(of.createPOCDMT000040IntendedRecipient());
    informationRecipient.getIntendedRecipient().setReceivedOrganization(of.createPOCDMT000040Organization());

    II orgId = of.createII();
    orgId.setRoot(uusimispyynto.getVastaanottajaId());

    ON name = of.createON();
    name.getContent().add(uusimispyynto.getVastaanottajaNimi());

    informationRecipient.getIntendedRecipient().getReceivedOrganization().getIds().add(orgId);
    informationRecipient.getIntendedRecipient().getReceivedOrganization().getNames().add(name);
    return informationRecipient;
}
 
开发者ID:TheFinnishSocialInsuranceInstitution,项目名称:KantaCDA-API,代码行数:35,代码来源:UusimispyyntoKasaaja.java


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