本文整理汇总了Java中org.hl7.fhir.dstu3.model.Resource类的典型用法代码示例。如果您正苦于以下问题:Java Resource类的具体用法?Java Resource怎么用?Java Resource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Resource类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了Resource类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: newEntry
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
/**
* Helper function to create an Entry for the given Resource within the given Bundle. Sets the
* resourceID to a random UUID, sets the entry's fullURL to that resourceID, and adds the entry to
* the bundle.
*
* @param bundle
* The Bundle to add the Entry to
* @param resource
* Resource the new Entry should contain
* @return the created Entry
*/
private static BundleEntryComponent newEntry(Bundle bundle, Resource resource) {
BundleEntryComponent entry = bundle.addEntry();
String resourceID = UUID.randomUUID().toString();
resource.setId(resourceID);
entry.setFullUrl("urn:uuid:" + resourceID);
entry.setResource(resource);
return entry;
}
开发者ID:synthetichealth,项目名称:synthea_java,代码行数:23,代码来源:FhirStu3.java
示例2: newEntry
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
private static BundleEntryComponent newEntry(Bundle bundle, Resource resource,
String resourceID) {
BundleEntryComponent entry = bundle.addEntry();
resource.setId(resourceID);
entry.setFullUrl("urn:uuid:" + resourceID);
entry.setResource(resource);
return entry;
}
开发者ID:synthetichealth,项目名称:synthea_java,代码行数:11,代码来源:HospitalExporter.java
示例3: search
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
List<Resource> search(FhirContext ctx,
@OptionalParam(name = Encounter.SP_PATIENT) ReferenceParam patient
, @OptionalParam(name = Encounter.SP_DATE) DateRangeParam date
, @OptionalParam(name = Encounter.SP_EPISODEOFCARE) ReferenceParam episode
, @OptionalParam(name = Encounter.SP_IDENTIFIER) TokenParam identifier
, @OptionalParam(name= Encounter.SP_RES_ID) TokenParam id
, @IncludeParam(reverse=true, allow = {"*"}) Set<Include> reverseIncludes
);
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:11,代码来源:EncounterRepository.java
示例4: getBasedOnReferralRequestTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<ReferralRequest> getBasedOnReferralRequestTarget() {
List<org.hl7.fhir.dstu3.model.ReferralRequest> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getBasedOnTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.ReferralRequest) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorereferralrequestAdapter.java
示例5: getPerformerPatientTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Patient> getPerformerPatientTarget() {
List<org.hl7.fhir.dstu3.model.Patient> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getPerformerTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Patient) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoreobservationAdapter.java
示例6: getRequestProcedureRequestTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<ProcedureRequest> getRequestProcedureRequestTarget() {
List<org.hl7.fhir.dstu3.model.ProcedureRequest> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRequestTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.ProcedureRequest) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorediagnosticreportAdapter.java
示例7: getRecipientDeviceTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Device> getRecipientDeviceTarget() {
List<org.hl7.fhir.dstu3.model.Device> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRecipientTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Device) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorecommunicationrequestAdapter.java
示例8: getAddressesConditionTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Condition> getAddressesConditionTarget() {
List<org.hl7.fhir.dstu3.model.Condition> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getAddressesTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Condition) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoregoalAdapter.java
示例9: getAuthorTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public Resource getAuthorTarget()
{
try
{
return adaptedClass.getAuthorTarget();
}
catch (Exception e)
{
throw new RuntimeException("Error getting AuthorTarget", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreadverseeventAdapter.java
示例10: getContained
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Resource> getContained()
{
try
{
return adaptedClass.getContained();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Contained", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoresubstanceAdapter.java
示例11: getAddressesObservationTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Observation> getAddressesObservationTarget() {
List<org.hl7.fhir.dstu3.model.Observation> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getAddressesTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Observation) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoregoalAdapter.java
示例12: getGeneralPractitionerOrganizationTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Organization> getGeneralPractitionerOrganizationTarget() {
List<org.hl7.fhir.dstu3.model.Organization> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getGeneralPractitionerTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Organization) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorepatientAdapter.java
示例13: getRecipientPatientTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Patient> getRecipientPatientTarget() {
List<org.hl7.fhir.dstu3.model.Patient> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRecipientTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Patient) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorecommunicationAdapter.java
示例14: getRecipientRelatedPersonTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<RelatedPerson> getRecipientRelatedPersonTarget() {
List<org.hl7.fhir.dstu3.model.RelatedPerson> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRecipientTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.RelatedPerson) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorecommunicationAdapter.java
示例15: getRecipientGroupTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Group> getRecipientGroupTarget() {
List<org.hl7.fhir.dstu3.model.Group> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRecipientTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Group) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorecommunicationAdapter.java
示例16: getReceiverPractitionerTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Practitioner> getReceiverPractitionerTarget() {
List<org.hl7.fhir.dstu3.model.Practitioner> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getReceiverTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Practitioner) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoremedicationdispenseAdapter.java
示例17: getExpressedByTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public Resource getExpressedByTarget()
{
try
{
return adaptedClass.getExpressedByTarget();
}
catch (Exception e)
{
throw new RuntimeException("Error getting ExpressedByTarget", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoregoalAdapter.java
示例18: getUsedReferenceDeviceTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Device> getUsedReferenceDeviceTarget() {
List<org.hl7.fhir.dstu3.model.Device> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getUsedReferenceTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Device) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoreprocedureAdapter.java
示例19: getRecorderTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public Resource getRecorderTarget()
{
try
{
return adaptedClass.getRecorderTarget();
}
catch (Exception e)
{
throw new RuntimeException("Error getting RecorderTarget", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreallergyintoleranceAdapter.java
示例20: getComponentProcedureTarget
import org.hl7.fhir.dstu3.model.Resource; //导入依赖的package包/类
public List<Procedure> getComponentProcedureTarget() {
List<org.hl7.fhir.dstu3.model.Procedure> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getComponentTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Procedure) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoreprocedureAdapter.java
注:本文中的org.hl7.fhir.dstu3.model.Resource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论