Package org.hl7.fhir
Class Media
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Media
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Media extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Media complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Media"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}DigitalMediaType"/> <element name="subtype" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="view" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="operator" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="deviceName" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="height" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/> <element name="width" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/> <element name="frames" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/> <element name="duration" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/> <element name="content" type="{http://hl7.org/fhir}Attachment"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Attachmentcontentprotected StringdeviceNameprotected UnsignedIntdurationprotected PositiveIntframesprotected PositiveIntheightprotected java.util.List<Identifier>identifierprotected Referenceoperatorprotected Referencesubjectprotected CodeableConceptsubtypeprotected DigitalMediaTypetypeprotected CodeableConceptviewprotected PositiveIntwidth-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Media()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)AttachmentgetContent()Gets the value of the content property.StringgetDeviceName()Gets the value of the deviceName property.UnsignedIntgetDuration()Gets the value of the duration property.PositiveIntgetFrames()Gets the value of the frames property.PositiveIntgetHeight()Gets the value of the height property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.ReferencegetOperator()Gets the value of the operator property.ReferencegetSubject()Gets the value of the subject property.CodeableConceptgetSubtype()Gets the value of the subtype property.DigitalMediaTypegetType()Gets the value of the type property.CodeableConceptgetView()Gets the value of the view property.PositiveIntgetWidth()Gets the value of the width property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetContent(Attachment value)Sets the value of the content property.voidsetDeviceName(String value)Sets the value of the deviceName property.voidsetDuration(UnsignedInt value)Sets the value of the duration property.voidsetFrames(PositiveInt value)Sets the value of the frames property.voidsetHeight(PositiveInt value)Sets the value of the height property.voidsetOperator(Reference value)Sets the value of the operator property.voidsetSubject(Reference value)Sets the value of the subject property.voidsetSubtype(CodeableConcept value)Sets the value of the subtype property.voidsetType(DigitalMediaType value)Sets the value of the type property.voidsetView(CodeableConcept value)Sets the value of the view property.voidsetWidth(PositiveInt value)Sets the value of the width property.java.lang.StringtoString()MediawithContained(java.util.Collection<ResourceContainer> values)MediawithContained(ResourceContainer... values)MediawithContent(Attachment value)MediawithDeviceName(String value)MediawithDuration(UnsignedInt value)MediawithExtension(java.util.Collection<Extension> values)MediawithExtension(Extension... values)MediawithFrames(PositiveInt value)MediawithHeight(PositiveInt value)MediawithId(Id value)MediawithIdentifier(java.util.Collection<Identifier> values)MediawithIdentifier(Identifier... values)MediawithImplicitRules(Uri value)MediawithLanguage(Code value)MediawithMeta(Meta value)MediawithModifierExtension(java.util.Collection<Extension> values)MediawithModifierExtension(Extension... values)MediawithOperator(Reference value)MediawithSubject(Reference value)MediawithSubtype(CodeableConcept value)MediawithText(Narrative value)MediawithType(DigitalMediaType value)MediawithView(CodeableConcept value)MediawithWidth(PositiveInt value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
type
protected DigitalMediaType type
-
subtype
protected CodeableConcept subtype
-
view
protected CodeableConcept view
-
subject
protected Reference subject
-
operator
protected Reference operator
-
deviceName
protected String deviceName
-
height
protected PositiveInt height
-
width
protected PositiveInt width
-
frames
protected PositiveInt frames
-
duration
protected UnsignedInt duration
-
content
protected Attachment content
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getType
public DigitalMediaType getType()
Gets the value of the type property.- Returns:
- possible object is
DigitalMediaType
-
setType
public void setType(DigitalMediaType value)
Sets the value of the type property.- Parameters:
value- allowed object isDigitalMediaType
-
getSubtype
public CodeableConcept getSubtype()
Gets the value of the subtype property.- Returns:
- possible object is
CodeableConcept
-
setSubtype
public void setSubtype(CodeableConcept value)
Sets the value of the subtype property.- Parameters:
value- allowed object isCodeableConcept
-
getView
public CodeableConcept getView()
Gets the value of the view property.- Returns:
- possible object is
CodeableConcept
-
setView
public void setView(CodeableConcept value)
Sets the value of the view property.- Parameters:
value- allowed object isCodeableConcept
-
getSubject
public Reference getSubject()
Gets the value of the subject property.- Returns:
- possible object is
Reference
-
setSubject
public void setSubject(Reference value)
Sets the value of the subject property.- Parameters:
value- allowed object isReference
-
getOperator
public Reference getOperator()
Gets the value of the operator property.- Returns:
- possible object is
Reference
-
setOperator
public void setOperator(Reference value)
Sets the value of the operator property.- Parameters:
value- allowed object isReference
-
getDeviceName
public String getDeviceName()
Gets the value of the deviceName property.- Returns:
- possible object is
String
-
setDeviceName
public void setDeviceName(String value)
Sets the value of the deviceName property.- Parameters:
value- allowed object isString
-
getHeight
public PositiveInt getHeight()
Gets the value of the height property.- Returns:
- possible object is
PositiveInt
-
setHeight
public void setHeight(PositiveInt value)
Sets the value of the height property.- Parameters:
value- allowed object isPositiveInt
-
getWidth
public PositiveInt getWidth()
Gets the value of the width property.- Returns:
- possible object is
PositiveInt
-
setWidth
public void setWidth(PositiveInt value)
Sets the value of the width property.- Parameters:
value- allowed object isPositiveInt
-
getFrames
public PositiveInt getFrames()
Gets the value of the frames property.- Returns:
- possible object is
PositiveInt
-
setFrames
public void setFrames(PositiveInt value)
Sets the value of the frames property.- Parameters:
value- allowed object isPositiveInt
-
getDuration
public UnsignedInt getDuration()
Gets the value of the duration property.- Returns:
- possible object is
UnsignedInt
-
setDuration
public void setDuration(UnsignedInt value)
Sets the value of the duration property.- Parameters:
value- allowed object isUnsignedInt
-
getContent
public Attachment getContent()
Gets the value of the content property.- Returns:
- possible object is
Attachment
-
setContent
public void setContent(Attachment value)
Sets the value of the content property.- Parameters:
value- allowed object isAttachment
-
withIdentifier
public Media withIdentifier(Identifier... values)
-
withIdentifier
public Media withIdentifier(java.util.Collection<Identifier> values)
-
withType
public Media withType(DigitalMediaType value)
-
withSubtype
public Media withSubtype(CodeableConcept value)
-
withView
public Media withView(CodeableConcept value)
-
withHeight
public Media withHeight(PositiveInt value)
-
withWidth
public Media withWidth(PositiveInt value)
-
withFrames
public Media withFrames(PositiveInt value)
-
withDuration
public Media withDuration(UnsignedInt value)
-
withContent
public Media withContent(Attachment value)
-
withText
public Media withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Media withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Media withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Media withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Media withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Media withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Media withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Media withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Media withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Media withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Media withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-