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

Java Reference类代码示例

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

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



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

示例1: medicationClaim

import org.hl7.fhir.dstu3.model.Reference; //导入依赖的package包/类
/**
 * Create an entry for the given Claim, which references a Medication.
 * 
 * @param personEntry
 *          Entry for the person
 * @param bundle
 *          The Bundle to add to
 * @param encounterEntry
 *          The current Encounter
 * @param claim
 *          the Claim object
 * @param medicationEntry
 *          The Entry for the Medication object, previously created
 * @return the added Entry
 */
private static BundleEntryComponent medicationClaim(BundleEntryComponent personEntry,
    Bundle bundle, BundleEntryComponent encounterEntry, Claim claim,
    BundleEntryComponent medicationEntry) {
  org.hl7.fhir.dstu3.model.Claim claimResource = new org.hl7.fhir.dstu3.model.Claim();
  org.hl7.fhir.dstu3.model.Encounter encounterResource = 
      (org.hl7.fhir.dstu3.model.Encounter) encounterEntry.getResource();

  claimResource.setStatus(ClaimStatus.ACTIVE);
  claimResource.setUse(org.hl7.fhir.dstu3.model.Claim.Use.COMPLETE);

  // duration of encounter
  claimResource.setBillablePeriod(encounterResource.getPeriod());

  claimResource.setPatient(new Reference(personEntry.getFullUrl()));
  claimResource.setOrganization(encounterResource.getServiceProvider());

  // add item for encounter
  claimResource.addItem(new org.hl7.fhir.dstu3.model.Claim.ItemComponent(new PositiveIntType(1))
      .addEncounter(new Reference(encounterEntry.getFullUrl())));

  // add prescription.
  claimResource.setPrescription(new Reference(medicationEntry.getFullUrl()));

  Money moneyResource = new Money();
  moneyResource.setValue(claim.total());
  moneyResource.setCode("USD");
  moneyResource.setSystem("urn:iso:std:iso:4217");
  claimResource.setTotal(moneyResource);

  return newEntry(bundle, claimResource);
}
 
开发者ID:synthetichealth,项目名称:synthea_java,代码行数:47,代码来源:FhirStu3.java


示例2: newCondition

import org.hl7.fhir.dstu3.model.Reference; //导入依赖的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


示例3: getExpressedByPatient

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


示例4: getMedicationReference

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


示例5: getLocation

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


示例6: getAppointment

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


示例7: getPatient

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


示例8: getPerformerRelatedPerson

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


示例9: getRequesterPatient

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


示例10: getRecorderPractitioner

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


示例11: getSubjectGroup

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


示例12: getEncounter

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


示例13: getRequesterPractitioner

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


示例14: getGeneralPractitioner

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


示例15: getSubjectSubstance

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


示例16: getDeviceDevice

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


示例17: getPerformerPractitioner

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


示例18: getSubjectPatient

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


示例19: getAsserter

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


示例20: getPrescription

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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