Package org.hl7.fhir

Class 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 extensions

    Java 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>
     
    • Constructor Detail

      • Media

        public Media()
    • 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 set method 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

      • setSubtype

        public void setSubtype​(CodeableConcept value)
        Sets the value of the subtype property.
        Parameters:
        value - allowed object is CodeableConcept
      • 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 is Reference
      • 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 is Reference
      • 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 is String
      • 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 is PositiveInt
      • 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 is PositiveInt
      • 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 is PositiveInt
      • 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 is UnsignedInt
      • 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 is Attachment
      • withIdentifier

        public Media withIdentifier​(java.util.Collection<Identifier> values)
      • withDeviceName

        public Media withDeviceName​(String value)
      • 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:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class DomainResource
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class DomainResource
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource