當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。