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


Java CodeableConcept类代码示例

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

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


示例16: getType

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


示例17: setReasonNotPerformed

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


示例18: getSubstance

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


示例19: setEthnicity

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


示例20: getCategory

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


示例21: getSeverity

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


示例22: call

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
@Override
public void call(Row r) throws Exception {
	
	// Build the claim
	// ---------------
	
	// CLIENT_ID ....... 0
	// CLIENT_SUB_ID ... 1
	// CLAIM_SK ........ 2
	// CLAIM_NBR ....... 3
	// CLAIM_ADJ_CD,ADJ_FROM_CLAIM_SK,ADJ_FROM_CLAIM_NBR,ADJ_FROM_CLAIM_ADJ_NBR,CLAIM_STS_CD_SK,CLAIM_STS_CD,SYS_SUBSC_SK,SYS_SUBSC_ID,SYS_MBR_SK,SYS_MBR_ID,CLIENT_HIERARCHY_LVL1,CLIENT_HIERARCHY_LVL2,CLIENT_HIERARCHY_LVL3,CLIENT_HIERARCHY_LVL4,MBR_PCP_SK,MBR_PCP_NBR,PROV_SK,PROV_ID,PROV_TP_CD_SK,PROV_TP_CD,PAYEE_SK,PAYEE_ID,PAYEE_TIN,APPROVE_DAY_AMT,ACTUAL_DAY_AMT,CLAIM_BEG_SVC_DT,RECEIVE_DT,PAY_DT,DRG_CD_SK,DRG_CD,SUBMIT_DRG_CD_SK,SUBMIT_DRG_CD,BILL_CLASS_CD,FACILITY_TP_CD,HOSP_FREQ_CD,ADMIT_SRC_CD_SK,ADMIT_SRC_CD,ADMIT_TP_CD_SK,ADMIT_TP_CD,HOSP_ADMIT_DT,HOSP_ADMIT_HR,HOSP_DISCHARGE_DT,HOSP_DISCHARGE_HR,HOSP_DISCHARGE_STS_CD_SK,HOSP_DISCHARGE_STS_CD,ATTENDING_PROV_SK,ATTENDING_PROV_ID,PROV_ADDR_CD_SK,PROV_ADDR_CD,OOA_IND,EDI_REF_ID,CURRENT_IND,SENSTV_DRG_IND,CLIENT_SPECIFIC_TXT1,CLIENT_SPECIFIC_TXT2,CLIENT_SPECIFIC_TXT3,CLIENT_SPECIFIC_TXT4,CLIENT_SPECIFIC_TXT5,CLIENT_SPECIFIC_TXT6,CLIENT_SPECIFIC_TXT7,CLIENT_SPECIFIC_TXT8,CLIENT_SPECIFIC_TXT9,CLIENT_SPECIFIC_TXT10,REC_LOAD_DTTM,REC_LAST_UPD_DTTM,REC_DEL_IND,DRG_CODE_TP_CD,SUBMIT_DRG_CODE_TP_CD,QA_CURRENT_IND
	CodeableConcept cc = new CodeableConcept();
	cc.setUserData("value", r.getString(3)); // TODO check that this is how this valued is set here

	Identifier i = new Identifier();
	i.setUse(IdentifierUse.OFFICIAL);
	i.setType(cc);
	i.setSystem("Payer Specific	 Claim Number");
	i.setValue(r.getAs("CLAIM_NBR"));
	// TODO i.setAssigner(value);

	List<Identifier> identifiers = new ArrayList<>();
	identifiers.add(i);
	
	Claim c = new Claim();
	c.setIdentifier(identifiers);
	
	// Process/send the claim
	// ----------------------
	
	// TODO
}
 
开发者ID:jgperrin,项目名称:net.jgp.labs.spark,代码行数:33,代码来源:ClaimProcessApp.java


示例23: transform

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
@Override
public org.hl7.fhir.dstu3.model.PractitionerRole transform(final PractitionerRole roleEntity) {
    final org.hl7.fhir.dstu3.model.PractitionerRole practitionerRole = new org.hl7.fhir.dstu3.model.PractitionerRole();

    Meta meta = new Meta().addProfile(CareConnectProfile.PractitionerRole_1);

    if (roleEntity.getUpdated() != null) {
        meta.setLastUpdated(roleEntity.getUpdated());
    }
    else {
        if (roleEntity.getCreated() != null) {
            meta.setLastUpdated(roleEntity.getCreated());
        }
    }

    for(int f=0;f<roleEntity.getIdentifiers().size();f++)
    {
        practitionerRole.addIdentifier()
                .setSystem(roleEntity.getIdentifiers().get(f).getSystem().getUri())
                .setValue(roleEntity.getIdentifiers().get(f).getValue());
    }

    practitionerRole.setId(roleEntity.getId().toString());

    if (roleEntity.getOrganisation() != null) {
        practitionerRole.getOrganization()
                .setReference("Organization/"+roleEntity.getOrganisation().getId())
                .setDisplay(roleEntity.getOrganisation().getName());
    }
    if (roleEntity.getRole() != null) {
        CodeableConcept role = new CodeableConcept();
        role.addCoding()
                .setCode(roleEntity.getRole().getCode())
                .setDisplay(roleEntity.getRole().getDisplay())
                .setSystem(roleEntity.getRole().getSystem());
        practitionerRole.getCode().add(role);
    }
    if (roleEntity.getPractitioner() != null) {
        practitionerRole.getPractitioner()
                .setReference("Practitioner/"+roleEntity.getPractitioner().getId())
                .setDisplay(roleEntity.getPractitioner().getNames().get(0).getDisplayName());
    }
    for (PractitionerSpecialty specialty : roleEntity.getSpecialties()) {
        CodeableConcept concept = new CodeableConcept();
        concept.addCoding()
                .setCode(specialty.getSpecialty().getCode())
                .setDisplay(specialty.getSpecialty().getDisplay())
                .setSystem(specialty.getSpecialty().getSystem());
        practitionerRole.addSpecialty(concept);
    }

    for(PractitionerRoleIdentifier identifier : roleEntity.getIdentifiers())
    {
        practitionerRole.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }


    return practitionerRole;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:63,代码来源:PractitionerRoleToFHIRPractitionerRoleTransformer.java


示例24: setCode

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreobservation setCode(CodeableConcept param)
{
   adaptedClass.setCode(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoreobservationAdapter.java


示例25: setCategory

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoregoal setCategory(List<CodeableConcept> param)
{
   adaptedClass.setCategory(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoregoalAdapter.java


示例26: setType

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicorelocation setType(CodeableConcept param)
{
   adaptedClass.setType(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicorelocationAdapter.java


示例27: setOutcome

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreprocedure setOutcome(CodeableConcept param)
{
   adaptedClass.setOutcome(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoreprocedureAdapter.java


示例28: addUsedCode

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreprocedure addUsedCode(CodeableConcept param)
{
   adaptedClass.addUsedCode(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoreprocedureAdapter.java


示例29: setReasonGiven

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoremedicationadministration setReasonGiven(
      List<CodeableConcept> param)
{
   adaptedClass.setReasonGiven(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:7,代码来源:qicoremedicationadministrationAdapter.java


示例30: setBodySite

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreprocedure setBodySite(List<CodeableConcept> param)
{
   adaptedClass.setBodySite(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoreprocedureAdapter.java


示例31: setCategory

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicorecommunicationrequest setCategory(CodeableConcept param)
{
   adaptedClass.setCategory(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicorecommunicationrequestAdapter.java


示例32: qicorepractitionerSpecialtyAdapter

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public qicorepractitionerSpecialtyAdapter()
{
   this.adaptedClass = new org.hl7.fhir.dstu3.model.CodeableConcept();
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:5,代码来源:qicorepractitionerSpecialtyAdapter.java


示例33: addReasonForUseCodeableConcept

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept addReasonForUseCodeableConcept()
{
   return adaptedClass.addReasonForUseCodeableConcept();
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:5,代码来源:qicoremedicationstatementAdapter.java


示例34: addReason

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public Iqicoreencounter addReason(CodeableConcept param)
{
   adaptedClass.addReason(param);
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:6,代码来源:qicoreencounterAdapter.java


示例35: addReasonNotTaken

import org.hl7.fhir.dstu3.model.CodeableConcept; //导入依赖的package包/类
public CodeableConcept addReasonNotTaken()
{
   return adaptedClass.addReasonNotTaken();
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:5,代码来源:qicoremedicationstatementAdapter.java



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