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


Java SC类代码示例

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


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

示例1: luoSailytysastia

import org.hl7.v3.SC; //导入依赖的package包/类
/**
 * Luo entryRelationship/observation rakenteen säilytysastialle jos tieto on annettu hakee säilytysastia tiedon
 * laakemaarayksen valmisteen yksilöintitiedotista
 *
 * @param laakemaarays
 *            LaakemaaraysTO josta tietoa haetaan
 * @return POCDMT000040EntryRelationship Collectionin jossa säilytysastia tieto jos se on annettu, muuten tyjhä
 *         colletion
 */
private Collection<? extends POCDMT000040EntryRelationship> luoSailytysastia(LaakemaaraysTO laakemaarays) {
    Collection<POCDMT000040EntryRelationship> retval = new ArrayList<POCDMT000040EntryRelationship>();
    if ( null == laakemaarays.getValmiste() || null == laakemaarays.getValmiste().getYksilointitiedot()
            || onkoNullTaiTyhja(laakemaarays.getValmiste().getYksilointitiedot().getSailytysastia()) ) {
        return retval;
    }
    POCDMT000040EntryRelationship sailytysastia = of.createPOCDMT000040EntryRelationship();
    sailytysastia.setTypeCode(XActRelationshipEntryRelationship.COMP);
    sailytysastia.setObservation(of.createPOCDMT000040Observation());
    SC sailytysastiaValue = of.createSC();
    sailytysastiaValue.getContent().add(laakemaarays.getValmiste().getYksilointitiedot().getSailytysastia());
    asetaObservation(KantaCDAConstants.Laakityslista.SAILYTYSASTIA, sailytysastiaValue,
            sailytysastia.getObservation());
    retval.add(sailytysastia);
    return retval;
}
 
开发者ID:TheFinnishSocialInsuranceInstitution,项目名称:KantaCDA-API,代码行数:26,代码来源:ReseptiKasaaja.java

示例2: getDocumentAuthor

import org.hl7.v3.SC; //导入依赖的package包/类
private POCDMT000040Author getDocumentAuthor(OrganizationPolicy orgPolicy) {
  POCDMT000040Author author = new POCDMT000040Author();
  POCDMT000040InfrastructureRootTypeId authortemplate = new POCDMT000040InfrastructureRootTypeId();
  authortemplate.setRoot("2.16.840.1.113883.3.445.2");
  author.setTypeId(authortemplate);
 
  TS authortime = new TS();
  authortime.setValue(getCurrentTime());
  author.setTime(authortime);
 
  POCDMT000040AssignedAuthor assigned = new POCDMT000040AssignedAuthor();
  POCDMT000040InfrastructureRootTypeId assignedTemp = new POCDMT000040InfrastructureRootTypeId();
  assignedTemp.setRoot("1.3.5.35.1.4436.7");
  assignedTemp.setExtension("999999999^^^&" + orgPolicy.getHomeCommunityId() + "&ISO");
  assignedTemp.setAssigningAuthorityName(orgPolicy.getOrgName());
  assigned.setTypeId(assignedTemp);
 
  POCDMT000040Person person = new POCDMT000040Person();
  PN authorName = new PN();
  authorName.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "given"), EnGiven.class, orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthor().getAssignedPerson().getName().getGiven()));
  authorName.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "family"), EnFamily.class, orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthor().getAssignedPerson().getName().getFamily()));
 
  person.getName().add(authorName);
  assigned.setClassCode("PSN");
  assigned.setAssignedPerson(person);
  POCDMT000040AuthoringDevice device = new POCDMT000040AuthoringDevice();
  SC model = new SC();
  SC sft = new SC();
  model.setDisplayName(orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthoringDevice().getManufacturingModelName().getDisplayName());
  model.setCode(orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthoringDevice().getManufacturingModelName().getCode());
  sft.setDisplayName(orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthoringDevice().getSoftwareName().getDisplayName());
  sft.setCode(orgPolicy.getOrganizationConsentPolicyInfo().getAssignedAuthoringDevice().getSoftwareName().getCode());
 
  device.setManufacturerModelName(model);
  device.setSoftwareName(sft);
 
  assigned.setAssignedAuthoringDevice(device);
 
  author.setAssignedAuthor(assigned);
  return author;
}
 
开发者ID:tlin-fei,项目名称:ds4p,代码行数:42,代码来源:ClinicalDocumentProvider.java


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