org.hl7.fhir.dstu3.model.Identifier.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中org.hl7.fhir.dstu3.model.Identifier.<init>()方法的一些代码示例,展示了Identifier.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.<init>()方法的具体详情如下:
包路径:org.hl7.fhir.dstu3.model.Identifier
类名称:Identifier
方法名:<init>

Identifier.<init>介绍

[英]Constructor
[中]建造师

代码示例

代码示例来源:origin: jamesagnew/hapi-fhir

private Identifier readAsIdentifier(Element item) {
  Identifier r = new Identifier();
  r.setSystem(item.getNamedChildValue("system"));
  r.setValue(item.getNamedChildValue("value"));
  return r;
}

代码示例来源:origin: jamesagnew/hapi-fhir

Element identifier = XMLUtil.getNamedChild(doc.getDocumentElement(), "Identifier");
vs.setPublisher(identifier.getAttribute("authority"));
vs.addIdentifier(new Identifier().setValue(identifier.getAttribute("uid")));
List<Element> authors = new ArrayList<Element>(); 
XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(), "Authors"), "Author", authors);
identifier = XMLUtil.getNamedChild(doc.getDocumentElement(), "Identifier");
cs.setPublisher(identifier.getAttribute("authority"));
cs.setIdentifier(new Identifier().setValue(identifier.getAttribute("uid")));
cs.setHierarchyMeaning(CodeSystemHierarchyMeaning.CLASSIFIEDWITH);
authors = new ArrayList<Element>();

代码示例来源:origin: jamesagnew/hapi-fhir

public Identifier makeIdentifierFromII(Element e) throws Exception {
  Identifier id = new Identifier();
  String r = e.getAttribute("root");
  String ex;

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier addIdentifier() { //3
 Identifier t = new Identifier();
 if (this.identifier == null)
  this.identifier = new ArrayList<Identifier>();
 this.identifier.add(t);
 return t;
}

代码示例来源:origin: jamesagnew/hapi-fhir

public org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.instance.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 tgt.setSystem(src.getSystem());
 tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

代码示例来源:origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.dstu2016may.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 if (src.hasSystem())
  tgt.setSystem(src.getSystem());
 if (src.hasValue())
  tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base addChild(String name) throws FHIRException {
 if (name.equals("identifier")) {
  this.identifier = new Identifier();
  return this.identifier;
 }
 else if (name.equals("stratum")) {
  return addStratum();
 }
 else
  return super.addChild(name);
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return {@link #identifier} (The identifier(s) of this adverse event that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itsefl is not appropriate.)
 */
public Identifier getIdentifier() { 
 if (this.identifier == null)
  if (Configuration.errorOnAutoCreate())
   throw new Error("Attempt to auto-create AdverseEvent.identifier");
  else if (Configuration.doAutoCreate())
   this.identifier = new Identifier(); // cc
 return this.identifier;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return {@link #groupIdentifier} (A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.)
 */
public Identifier getGroupIdentifier() { 
 if (this.groupIdentifier == null)
  if (Configuration.errorOnAutoCreate())
   throw new Error("Attempt to auto-create RequestGroup.groupIdentifier");
  else if (Configuration.doAutoCreate())
   this.groupIdentifier = new Identifier(); // cc
 return this.groupIdentifier;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return {@link #identifier} (Allows a service to provide a unique, business identifier for the response.)
 */
public Identifier getIdentifier() { 
 if (this.identifier == null)
  if (Configuration.errorOnAutoCreate())
   throw new Error("Attempt to auto-create GuidanceResponse.identifier");
  else if (Configuration.doAutoCreate())
   this.identifier = new Identifier(); // cc
 return this.identifier;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return {@link #identifier} (Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.)
 */
public Identifier getIdentifier() { 
 if (this.identifier == null)
  if (Configuration.errorOnAutoCreate())
   throw new Error("Attempt to auto-create ImagingManifest.identifier");
  else if (Configuration.doAutoCreate())
   this.identifier = new Identifier(); // cc
 return this.identifier;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return {@link #identifier} (Unique identifier for this copy of the Consent Statement.)
 */
public Identifier getIdentifier() { 
 if (this.identifier == null)
  if (Configuration.errorOnAutoCreate())
   throw new Error("Attempt to auto-create Consent.identifier");
  else if (Configuration.doAutoCreate())
   this.identifier = new Identifier(); // cc
 return this.identifier;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

public Identifier copy() {
 Identifier dst = new Identifier();
 copyValues(dst);
 dst.use = use == null ? null : use.copy();
 dst.type = type == null ? null : type.copy();
 dst.system = system == null ? null : system.copy();
 dst.value = value == null ? null : value.copy();
 dst.period = period == null ? null : period.copy();
 dst.assigner = assigner == null ? null : assigner.copy();
 return dst;
}

相关文章