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, FhirUnsignedInt? 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}) -
Attachment For referring to data content defined in other formats.
constfactory
-
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 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 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 Extensions for data
no setterinherited
-
extension_
→ List<
FhirExtension> ? -
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 manageable, 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
- 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 Extensions for hash
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 Extensions for language
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → FhirUnsignedInt?
-
size The number of bytes of data that make up this attachment (before
base64 encoding, if that is done).
no setterinherited
- sizeElement → Element?
-
sizeElement 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 Extensions for title
no setterinherited
- url → FhirUrl?
-
url A location where the data can be accessed.
no setterinherited
- urlElement → Element?
-
urlElement Extensions for url
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