• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StringType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



StringType类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了StringType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: getValueStringType

import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getValueStringType()
{
   try
   {
      return adaptedClass.getValueStringType();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting ValueStringType", e);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreobservationAdapter.java


示例17: getManufacturerElement

import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getManufacturerElement()
{
   try
   {
      return adaptedClass.getManufacturerElement();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting ManufacturerElement", e);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoredeviceAdapter.java


示例18: in

import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
@Override
public boolean in(Code code, ValueSetInfo valueSet) throws ResourceNotFoundException {
    // Implement as ValueSet/$validate-code
    // http://hl7.org/fhir/2016Sep/valueset-operations.html#validate-code

    // Potential problems:
    // ValueSetInfo void of id --> want .ontype() instead
    Parameters respParam;
    if (code.getSystem() != null) {
        respParam = fhirClient
                .operation()
                .onInstance(new IdType("ValueSet", valueSet.getId()))
                // .onType(ValueSet.class)
                .named("validate-code")
                .withParameter(Parameters.class, "code", new StringType(code.getCode()))
                .andParameter("system", new StringType(code.getSystem()))
                .useHttpGet()
                .execute();
    }
    else {
        respParam = fhirClient
                .operation()
                .onInstance(new IdType("ValueSet", valueSet.getId()))
                // .onType(ValueSet.class)
                .named("validate-code")
                .withParameter(Parameters.class, "code", new StringType(code.getCode()))
                .useHttpGet()
                .execute();
    }
    return ((BooleanType)respParam.getParameter().get(0).getValue()).booleanValue();
}
 
开发者ID:DBCG,项目名称:cql_engine,代码行数:32,代码来源:FhirTerminologyProvider.java


示例19: getNameElement

import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public StringType getNameElement()
{
   try
   {
      return adaptedClass.getNameElement();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting NameElement", e);
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorelocationAdapter.java


示例20: getClinicalStudy

import org.hl7.fhir.dstu3.model.StringType; //导入依赖的package包/类
public List<StringType> getClinicalStudy() {
	List<org.hl7.fhir.dstu3.model.Extension> extensions = adaptedClass
			.getExtensionsByUrl("http://hl7.org/fhir/qicore/StructureDefinition/adverseevent-clinicalStudy");
	List<org.hl7.fhir.dstu3.model.StringType> returnList = new java.util.ArrayList<>();
	for (org.hl7.fhir.dstu3.model.Extension extension : extensions) {
		returnList.add((org.hl7.fhir.dstu3.model.StringType) extension
				.getValue());
	}
	return returnList;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:11,代码来源:qicoreadverseeventAdapter.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BasicModelBE类代码示例发布时间:2022-05-23
下一篇:
Java TreeUtils类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap