本文整理汇总了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;
}
示例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);
}
示例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;
}