Attachment class

Attachment For referring to data content defined in other formats.

Annotations
  • @freezed

Constructors

Attachment({@JsonKey(name: 'id') String? fhirId, @JsonKey(name: 'extension') List<FhirExtension>? extension_, FhirCode? contentType, @JsonKey(name: '_contentType') Element? contentTypeElement, FhirCode? language, @JsonKey(name: '_language') Element? languageElement, FhirBase64Binary? data, @JsonKey(name: '_data') Element? dataElement, FhirUrl? url, @JsonKey(name: '_url') Element? urlElement, FhirInteger64? size, @JsonKey(name: '_size') Element? sizeElement, FhirBase64Binary? hash, @JsonKey(name: '_hash') Element? hashElement, String? title, @JsonKey(name: '_title') Element? titleElement, FhirDateTime? creation, @JsonKey(name: '_creation') Element? creationElement, FhirPositiveInt? height, @JsonKey(name: '_height') Element? heightElement, FhirPositiveInt? width, @JsonKey(name: '_width') Element? widthElement, FhirPositiveInt? frames, @JsonKey(name: '_frames') Element? framesElement, FhirDecimal? duration, @JsonKey(name: '_duration') Element? durationElement, FhirPositiveInt? pages, @JsonKey(name: '_pages') Element? pagesElement})
Attachment For referring to data content defined in other formats.
const
factory
Attachment.fromJson(Map<String, dynamic> json)
Factory constructor, accepts Map<String, dynamic> as an argument
factory
Attachment.fromJsonString(String source)
Acts like a constructor, returns a Attachment, accepts a String as an argument, mostly because I got tired of typing it out
factory
Attachment.fromYaml(dynamic yaml)
Factory constructor that accepts a String in YAML format as an argument
factory

Properties

contentType FhirCode?
contentType Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
no setterinherited
contentTypeElement Element?
contentTypeElement ("_contentType") Extensions for contentType
no setterinherited
copyWith → $AttachmentCopyWith<Attachment>
no setterinherited
creation FhirDateTime?
creation The date that the attachment was first created.
no setterinherited
creationElement Element?
creationElement ("_creation") Extensions for creation
no setterinherited
data FhirBase64Binary?
data The actual data of the attachment - a sequence of bytes, base64 encoded.
no setterinherited
dataElement Element?
dataElement ("_data") Extensions for data
no setterinherited
duration FhirDecimal?
duration The duration of the recording in seconds - for audio and video.
no setterinherited
durationElement Element?
durationElement ("_duration") Extensions for duration
no setterinherited
extension_ List<FhirExtension>?
extension_ ("extension") May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
no setterinherited
fhirId String?
id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
no setterinherited
frames FhirPositiveInt?
frames The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.
no setterinherited
framesElement Element?
framesElement ("_frames") Extensions for frames
no setterinherited
hash FhirBase64Binary?
hash The calculated hash of the data using SHA-1. Represented using base64.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hashElement Element?
hashElement ("_hash") Extensions for hash
no setterinherited
height FhirPositiveInt?
height Height of the image in pixels (photo/video).
no setterinherited
heightElement Element?
heightElement ("_height") Extensions for height
no setterinherited
language FhirCode?
language The human language of the content. The value can be any valid value according to BCP 47.
no setterinherited
languageElement Element?
languageElement ("_language") Extensions for language
no setterinherited
pages FhirPositiveInt?
pages The number of pages when printed.
no setterinherited
pagesElement Element?
pagesElement ("_pages") Extensions for pages
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size FhirInteger64?
size The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
no setterinherited
sizeElement Element?
sizeElement ("_size") Extensions for size
no setterinherited
title String?
title A label or set of text to display in place of the data.
no setterinherited
titleElement Element?
titleElement ("_title") Extensions for title
no setterinherited
url FhirUrl?
url A location where the data can be accessed.
no setterinherited
urlElement Element?
urlElement ("_url") Extensions for url
no setterinherited
width FhirPositiveInt?
width Width of the image in pixels (photo/video).
no setterinherited
widthElement Element?
widthElement ("_width") Extensions for width
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toJsonString() String
Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
toString() String
A string representation of this object.
inherited
toYaml() String
Produces a Yaml formatted String version of the object

Operators

operator ==(Object other) bool
The equality operator.
inherited