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


Java POCDMT000040AssignedCustodian类代码示例

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


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

示例1: getDocumentCustodian

import org.hl7.v3.POCDMT000040AssignedCustodian; //导入依赖的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: addCustodian

import org.hl7.v3.POCDMT000040AssignedCustodian; //导入依赖的package包/类
protected void addCustodian(POCDMT000040ClinicalDocument clinicalDocument) {
    clinicalDocument.setCustodian(of.createPOCDMT000040Custodian());
    POCDMT000040AssignedCustodian assignedCustodian = of.createPOCDMT000040AssignedCustodian();
    clinicalDocument.getCustodian().setAssignedCustodian(assignedCustodian);
    assignedCustodian.setRepresentedCustodianOrganization(of.createPOCDMT000040CustodianOrganization());
    assignedCustodian.getRepresentedCustodianOrganization().getIds().add(of.createII());
    fetchAttributes("custodian.assignedCustodian.representedCustodianOrganization.id",
            assignedCustodian.getRepresentedCustodianOrganization().getIds().get(0));
    assignedCustodian.getRepresentedCustodianOrganization().setName(of.createON());
    String name = getProperty("custodian.assignedCustodian.representedCustodianOrganization.name");
    if ( !onkoNullTaiTyhja(name) ) {
        assignedCustodian.getRepresentedCustodianOrganization().getName().getContent().add(name);
    }
    AD addr = of.createAD();
    addr.getUses().add("PST");
    AdxpPostBox postBox = of.createAdxpPostBox();
    AdxpPostalCode postalCode = of.createAdxpPostalCode();
    AdxpCity city = of.createAdxpCity();
    postBox.getContent().add(getProperty("custodian.assignedCustodian.representedCustodianOrganization.postBox"));
    postalCode.getContent()
            .add(getProperty("custodian.assignedCustodian.representedCustodianOrganization.postNumber"));
    city.getContent().add(getProperty("custodian.assignedCustodian.representedCustodianOrganization.city"));
    addr.getContent().add(of.createADPostBox(postBox));
    addr.getContent().add(of.createADPostalCode(postalCode));
    addr.getContent().add(of.createADCity(city));
    assignedCustodian.getRepresentedCustodianOrganization().setAddr(addr);
}
 
开发者ID:TheFinnishSocialInsuranceInstitution,项目名称:KantaCDA-API,代码行数:28,代码来源:Kasaaja.java

示例3: getCustodian

import org.hl7.v3.POCDMT000040AssignedCustodian; //导入依赖的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


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