本文整理汇总了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);
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}