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


Java Device类代码示例

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


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

示例1: getItemDevice

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Device getItemDevice()
{
   List<org.hl7.fhir.dstu3.model.Extension> extensions = rootObjectExtension
         .getExtensionsByUrl("http://hl7.org/fhir/qicore/StructureDefinition/adverseevent-cause#item");
   org.hl7.fhir.dstu3.model.Device returnItem = null;
   if (extensions.size() == 1)
   {
      returnItem = (org.hl7.fhir.dstu3.model.Device) ((org.hl7.fhir.dstu3.model.Reference) extensions
            .get(0).getValue()).getResource();
   }
   else if (extensions.size() > 1)
   {
      throw new RuntimeException(
            "Object has more than one extension with uri: " + uri);
   }
   return returnItem;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:18,代码来源:qicoreadverseeventCauseAdapter.java

示例2: createContainedDeviceUdiReference

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
/**
 * Create a Device resource based on scanned UDI carrier string
 * http://www.fda.gov/downloads/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/GlobalUDIDatabaseGUDID/UCM396595.doc
 * @param id
 * @param uidCarrierString
 * @return Device
 */
private Device createContainedDeviceUdiReference(String id, String uidCarrierString) {
	Device testDevice = new Device();
	//testDevice.setId(id);
	Identifier udiCarrierIdentifier = new Identifier();
	udiCarrierIdentifier.setSystem("http://hl7.org/fhir/NamingSystem/fda-udi").setValue(uidCarrierString);
	testDevice.setUdiCarrier(udiCarrierIdentifier).getType().getCodingFirstRep().setDisplay("UDI")
			.setSystem("http://hl7.org/fhir/identifier-type").setCode("UDI");

	return testDevice;
}
 
开发者ID:bhits,项目名称:iexhub,代码行数:18,代码来源:VitalSignsMonitoringProcedureStu3Test.java

示例3: getSenderDeviceAdapterTarget

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public qicoredeviceAdapter getSenderDeviceAdapterTarget()
{
   if (adaptedClass.getSender().getResource() instanceof org.hl7.fhir.dstu3.model.Device)
   {
      qicoredeviceAdapter profiledType = new qicoredeviceAdapter();
      profiledType
            .setAdaptee((org.hl7.fhir.dstu3.model.Device) adaptedClass
                  .getSender().getResource());
      return profiledType;
   }
   else
   {
      return null;
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicorecommunicationAdapter.java

示例4: getRecipientDeviceTarget

import org.hl7.fhir.dstu3.model.Device; //导入依赖的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,代码来源:qicorecommunicationAdapter.java

示例5: getSubjectDeviceAdapterTarget

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public qicoredeviceAdapter getSubjectDeviceAdapterTarget()
{
   if (adaptedClass.getSubject().getResource() instanceof org.hl7.fhir.dstu3.model.Device)
   {
      qicoredeviceAdapter profiledType = new qicoredeviceAdapter();
      profiledType
            .setAdaptee((org.hl7.fhir.dstu3.model.Device) adaptedClass
                  .getSubject().getResource());
      return profiledType;
   }
   else
   {
      return null;
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicorediagnosticrequestAdapter.java

示例6: setItem

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public qicoreadverseeventCauseAdapter setItem(Device param)
{
   if (param != null)
   {
      rootObjectExtension
            .addExtension()
            .setUrl("http://hl7.org/fhir/qicore/StructureDefinition/adverseevent-cause#item")
            .setValue(new Reference(param));
   }
   return this;
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicoreadverseeventCauseAdapter.java

示例7: getOrdererDeviceAdapterTarget

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public qicoredeviceAdapter getOrdererDeviceAdapterTarget()
{
   if (adaptedClass.getOrderer().getResource() instanceof org.hl7.fhir.dstu3.model.Device)
   {
      qicoredeviceAdapter profiledType = new qicoredeviceAdapter();
      profiledType
            .setAdaptee((org.hl7.fhir.dstu3.model.Device) adaptedClass
                  .getOrderer().getResource());
      return profiledType;
   }
   else
   {
      return null;
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoreprocedurerequestAdapter.java

示例8: getDeviceDeviceAdapterTarget

import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public qicoredeviceAdapter getDeviceDeviceAdapterTarget()
{
   if (adaptedClass.getDevice().getResource() instanceof org.hl7.fhir.dstu3.model.Device)
   {
      qicoredeviceAdapter profiledType = new qicoredeviceAdapter();
      profiledType
            .setAdaptee((org.hl7.fhir.dstu3.model.Device) adaptedClass
                  .getDevice().getResource());
      return profiledType;
   }
   else
   {
      return null;
   }
}
 
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoreobservationAdapter.java

示例9: getStatus

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

示例10: getStatusElement

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

示例11: getSenderDeviceTarget

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

示例12: setSenderTarget

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

示例13: getSubjectDeviceTarget

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

示例14: setSubjectTarget

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

示例15: getPerformerDeviceTarget

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


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