本文整理汇总了Java中org.hl7.fhir.dstu3.model.StringType类的典型用法代码示例。如果您正苦于以下问题:Java StringType类的具体用法?Java StringType怎么用?Java StringType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StringType类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了StringType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapValueToFHIRType
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
private static Type mapValueToFHIRType(Object value, String unit) {
if (value == null) {
return null;
} else if (value instanceof Condition) {
Code conditionCode = ((HealthRecord.Entry) value).codes.get(0);
return mapCodeToCodeableConcept(conditionCode, SNOMED_URI);
} else if (value instanceof Code) {
return mapCodeToCodeableConcept((Code) value, SNOMED_URI);
} else if (value instanceof String) {
return new StringType((String) value);
} else if (value instanceof Number) {
return new Quantity().setValue(((Number) value).doubleValue())
.setCode(unit).setSystem(UNITSOFMEASURE_URI)
.setUnit(unit);
} else {
throw new IllegalArgumentException("unexpected observation value class: "
+ value.getClass().toString() + "; " + value);
}
}
示例2: getNCT
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getNCT()
{
List<org.hl7.fhir.dstu3.model.Extension> extensions = rootObjectExtension
.getExtensionsByUrl("http://hl7.org/fhir/StructureDefinition/patient-clinicalTrial#NCT");
if (extensions == null || extensions.size() <= 0)
{
return null;
}
else if (extensions.size() == 1)
{
return (org.hl7.fhir.dstu3.model.StringType) extensions.get(0)
.getValue();
}
else
{
throw new RuntimeException("More than one extension exists for NCT");
}
}
示例3: getIdElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getIdElement()
{
try
{
return adaptedClass.getIdElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting IdElement", e);
}
}
示例4: getModelElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getModelElement()
{
try
{
return adaptedClass.getModelElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting ModelElement", e);
}
}
示例5: getTextElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getTextElement()
{
try
{
return adaptedClass.getTextElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting TextElement", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoremedicationrequestDosageInstructionAdapter.java
示例6: getVersionElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getVersionElement()
{
try
{
return adaptedClass.getVersionElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting VersionElement", e);
}
}
示例7: getAbatementStringType
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getAbatementStringType()
{
try
{
return adaptedClass.getAbatementStringType();
}
catch (Exception e)
{
throw new RuntimeException("Error getting AbatementStringType", e);
}
}
示例8: getOnsetStringType
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getOnsetStringType()
{
try
{
return adaptedClass.getOnsetStringType();
}
catch (Exception e)
{
throw new RuntimeException("Error getting OnsetStringType", e);
}
}
示例9: setNCT
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public qicorepatientClinicalTrialAdapter setNCT(StringType param)
{
rootObjectExtension
.addExtension()
.setUrl("http://hl7.org/fhir/StructureDefinition/patient-clinicalTrial#NCT")
.setValue(param);
return this;
}
示例10: getDescriptionElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getDescriptionElement()
{
try
{
return adaptedClass.getDescriptionElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting DescriptionElement", e);
}
}
示例11: getLotNumberElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getLotNumberElement()
{
try
{
return adaptedClass.getLotNumberElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting LotNumberElement", e);
}
}
示例12: getCityElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getCityElement()
{
try
{
return adaptedClass.getCityElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting CityElement", e);
}
}
示例13: getCountryElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getCountryElement()
{
try
{
return adaptedClass.getCountryElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting CountryElement", e);
}
}
示例14: getPostalCodeElement
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getPostalCodeElement()
{
try
{
return adaptedClass.getPostalCodeElement();
}
catch (Exception e)
{
throw new RuntimeException("Error getting PostalCodeElement", e);
}
}
示例15: getLine
import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public List<StringType> getLine()
{
try
{
return adaptedClass.getLine();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Line", e);
}
}