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


Java StringType类代码示例

本文整理汇总了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);
  }
}
 
开发者ID:synthetichealth,项目名称:synthea_java,代码行数:25,代码来源:FhirStu3.java

示例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");
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:19,代码来源:qicorepatientClinicalTrialAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoremedicationIngredientAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoredeviceAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoredeviceAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreconditionAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreconditionAdapter.java

示例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;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:9,代码来源:qicorepatientClinicalTrialAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreallergyintoleranceReactionAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoredeviceAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorepatientAddressAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorepatientAddressAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorepatientAddressAdapter.java

示例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);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorepatientAddressAdapter.java


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