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


Java Reference类代码示例

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


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


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