本文整理了Java中org.hl7.fhir.dstu3.model.Identifier.hasValue()
方法的一些代码示例,展示了Identifier.hasValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.hasValue()
方法的具体详情如下:
包路径:org.hl7.fhir.dstu3.model.Identifier
类名称:Identifier
方法名:hasValue
暂无
代码示例来源:origin: jamesagnew/hapi-fhir
public static org.hl7.fhir.dstu2016may.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2016may.model.Identifier tgt = new org.hl7.fhir.dstu2016may.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: jamesagnew/hapi-fhir
public org.hl7.fhir.instance.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.instance.model.Identifier tgt = new org.hl7.fhir.instance.model.Identifier();
copyElement(src, tgt);
if (src.hasUse())
tgt.setUse(convertIdentifierUse(src.getUse()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasAssigner())
tgt.setAssigner(convertReference(src.getAssigner()));
return tgt;
}
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3
public static String getOID(ValueSet vs) {
for (Identifier id : vs.getIdentifier()) {
if ("urn:ietf:rfc:3986".equals(id.getSystem()) && id.hasValue() && id.getValue().startsWith("urn:oid:"))
return id.getValue().substring(8);
}
return null;
}
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3
public static void setOID(ValueSet vs, String oid) {
if (!oid.startsWith("urn:oid:"))
oid = "urn:oid:" + oid;
for (Identifier id : vs.getIdentifier()) {
if ("urn:ietf:rfc:3986".equals(id.getSystem()) && id.hasValue() && id.getValue().startsWith("urn:oid:")) {
id.setValue(oid);
return;
}
}
vs.addIdentifier().setSystem("urn:ietf:rfc:3986").setValue(oid);
}
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3
public static String getOID(CodeSystem cs) {
if (cs.hasIdentifier() && "urn:ietf:rfc:3986".equals(cs.getIdentifier().getSystem()) && cs.getIdentifier().hasValue() && cs.getIdentifier().getValue().startsWith("urn:oid:"))
return cs.getIdentifier().getValue().substring(8);
return null;
}
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3
public static void setOID(CodeSystem cs, String oid) {
if (!oid.startsWith("urn:oid:"))
oid = "urn:oid:" + oid;
if (!cs.hasIdentifier())
cs.setIdentifier(new Identifier().setSystem("urn:ietf:rfc:3986").setValue(oid));
else if ("urn:ietf:rfc:3986".equals(cs.getIdentifier().getSystem()) && cs.getIdentifier().hasValue() && cs.getIdentifier().getValue().startsWith("urn:oid:"))
cs.getIdentifier().setValue(oid);
else
throw new Error("unable to set OID on code system");
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-plugin-patientheader
String value = id.hasValue() ? id.getValue() : "";
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-patientheader
String value = id.hasValue() ? id.getValue() : "";
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-converter
public static org.hl7.fhir.dstu2016may.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.dstu2016may.model.Identifier tgt = new org.hl7.fhir.dstu2016may.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-converter
public org.hl7.fhir.instance.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
org.hl7.fhir.instance.model.Identifier tgt = new org.hl7.fhir.instance.model.Identifier();
copyElement(src, tgt);
if (src.hasUse())
tgt.setUse(convertIdentifierUse(src.getUse()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasValue())
tgt.setValue(src.getValue());
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
if (src.hasAssigner())
tgt.setAssigner(convertReference(src.getAssigner()));
return tgt;
}
内容来源于网络,如有侵权,请联系作者删除!