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


Java CodeableConcept类代码示例

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


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

示例1: mapCodeToCodeableConcept

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
/**
 * Helper function to convert a Code into a CodeableConcept. Takes an optional system, which
 * replaces the Code.system in the resulting CodeableConcept if not null.
 * 
 * @param from
 *          The Code to create a CodeableConcept from.
 * @param system
 *          The system identifier, such as a URI. Optional; may be null.
 * @return The converted CodeableConcept
 */
private static CodeableConcept mapCodeToCodeableConcept(Code from, String system) {
  CodeableConcept to = new CodeableConcept();

  if (from.display != null) {
    to.setText(from.display);
  }

  Coding coding = new Coding();
  coding.setCode(from.code);
  coding.setDisplay(from.display);
  if (system == null) {
    coding.setSystem(from.system);
  } else {
    coding.setSystem(system);
  }

  to.addCoding(coding);

  return to;
}
 
开发者ID:synthetichealth,项目名称:synthea_java,代码行数:31,代码来源:FhirStu3.java

示例2: buildOperationOutcomeException

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public static BaseServerResponseException buildOperationOutcomeException(BaseServerResponseException exception, OperationOutcome.IssueSeverity code, OperationOutcome.IssueType issueType) {
    CodeableConcept codeableConcept = new CodeableConcept()
            .setText(exception.getMessage());


    OperationOutcome operationOutcome = new OperationOutcome();

    operationOutcome.addIssue()
            .setSeverity(OperationOutcome.IssueSeverity.ERROR)
            .setCode(issueType)
            .setDetails(codeableConcept);

   // operationOutcome.getMeta()
   //         .addProfile(SystemURL.SD_GPC_OPERATIONOUTCOME);

    exception.setOperationOutcome(operationOutcome);
    return exception;
}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:19,代码来源:OperationOutcomeFactory.java

示例3: getDoseType

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept getDoseType()
{
   List<org.hl7.fhir.dstu3.model.Extension> extensions = adaptedClass
         .getExtensionsByUrl("http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType");
   if (extensions == null || extensions.size() <= 0)
   {
      return null;
   }
   else if (extensions.size() == 1)
   {
      return (org.hl7.fhir.dstu3.model.CodeableConcept) extensions.get(0)
            .getValue();
   }
   else
   {
      throw new RuntimeException(
            "More than one extension exists for doseType");
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:20,代码来源:qicoremedicationdispenseDosageInstructionAdapter.java

示例4: newCondition

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
/**
 * Returns a FHIR Condition for testing purposes.
 */
public static Condition newCondition() {

  Condition condition = new Condition();

  // Condition based on example from FHIR:
  // https://www.hl7.org/fhir/condition-example.json.html
  condition.setId("Condition/example");

  condition.setLanguage("en_US");

  // Narrative text
  Narrative narrative = new Narrative();
  narrative.setStatusAsString("generated");
  narrative.setDivAsString("This data was generated for test purposes.");
  XhtmlNode node = new XhtmlNode();
  node.setNodeType(NodeType.Text);
  node.setValue("Severe burn of left ear (Date: 24-May 2012)");
  condition.setText(narrative);

  condition.setSubject(new Reference("Patient/example").setDisplay("Here is a display for you."));

  condition.setVerificationStatus(Condition.ConditionVerificationStatus.CONFIRMED);

  // Condition code
  CodeableConcept code = new CodeableConcept();
  code.addCoding()
      .setSystem("http://snomed.info/sct")
      .setCode("39065001")
      .setDisplay("Severe");
  condition.setSeverity(code);

  // Severity code
  CodeableConcept severity = new CodeableConcept();
  severity.addCoding()
      .setSystem("http://snomed.info/sct")
      .setCode("24484000")
      .setDisplay("Burn of ear")
      .setUserSelected(true);
  condition.setSeverity(severity);

  // Onset date time
  DateTimeType onset = new DateTimeType();
  onset.setValueAsString("2012-05-24");
  condition.setOnset(onset);

  return condition;
}
 
开发者ID:cerner,项目名称:bunsen,代码行数:51,代码来源:TestData.java

示例5: setType

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreadverseevent setType(List<CodeableConcept> param)
{
   if (param != null && param.size() > 0)
   {
      for (int index = 0; index < param.size(); index++)
      {
         adaptedClass
               .addExtension()
               .setUrl("http://hl7.org/fhir/qicore/StructureDefinition/adverseevent-type")
               .setValue(param.get(index));
      }
   }
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:15,代码来源:qicoreadverseeventAdapter.java

示例6: getCode

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

示例7: getReasonNotPerformed

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

示例8: getType

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

示例9: getComplication

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

示例10: setDisability

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicorepatient setDisability(List<CodeableConcept> param)
{
   if (param != null && param.size() > 0)
   {
      for (int index = 0; index < param.size(); index++)
      {
         adaptedClass
                 .addExtension()
                 .setUrl("http://hl7.org/fhir/StructureDefinition/patient-disability")
                 .setValue(param.get(index));
      }
   }
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:15,代码来源:qicorepatientAdapter.java

示例11: setReasonRejected

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoregoal setReasonRejected(CodeableConcept param)
{
   adaptedClass
         .addExtension()
         .setUrl("http://hl7.org/fhir/StructureDefinition/goal-reasonRejected")
         .setValue(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:9,代码来源:qicoregoalAdapter.java

示例12: getRoute

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

示例13: getPriority

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

示例14: getSpecialty

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

示例15: getMedicationCodeableConcept

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


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