本文整理汇总了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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
}
示例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);
}
}
示例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);
}
}
示例11: getSenderDeviceTarget
import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Device getSenderDeviceTarget()
{
return (org.hl7.fhir.dstu3.model.Device) adaptedClass.getSenderTarget();
}
示例12: setSenderTarget
import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Iqicorecommunication setSenderTarget(Device param)
{
adaptedClass.setSenderTarget(param);
return this;
}
示例13: getSubjectDeviceTarget
import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Device getSubjectDeviceTarget()
{
return (org.hl7.fhir.dstu3.model.Device) adaptedClass
.getSubjectTarget();
}
示例14: setSubjectTarget
import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Iqicorediagnosticrequest setSubjectTarget(Device param)
{
adaptedClass.setSubjectTarget(param);
return this;
}
示例15: getPerformerDeviceTarget
import org.hl7.fhir.dstu3.model.Device; //导入依赖的package包/类
public Device getPerformerDeviceTarget()
{
return (org.hl7.fhir.dstu3.model.Device) adaptedClass
.getPerformerTarget();
}