Attachment constructor

const Attachment({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. FhirCode? contentType,
  4. @JsonKey(name: '_contentType') Element? contentTypeElement,
  5. FhirCode? language,
  6. @JsonKey(name: '_language') Element? languageElement,
  7. FhirBase64Binary? data,
  8. @JsonKey(name: '_data') Element? dataElement,
  9. FhirUrl? url,
  10. @JsonKey(name: '_url') Element? urlElement,
  11. FhirUnsignedInt? size,
  12. @JsonKey(name: '_size') Element? sizeElement,
  13. FhirBase64Binary? hash,
  14. @JsonKey(name: '_hash') Element? hashElement,
  15. String? title,
  16. @JsonKey(name: '_title') Element? titleElement,
  17. FhirDateTime? creation,
  18. @JsonKey(name: '_creation') Element? creationElement,
})

Attachment For referring to data content defined in other formats.

id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

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.

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.

contentTypeElement Extensions for contentType

language The human language of the content. The value can be any valid value according to BCP 47.

languageElement Extensions for language

data The actual data of the attachment - a sequence of bytes, base64 encoded.

dataElement Extensions for data

url A location where the data can be accessed.

urlElement Extensions for url

size The number of bytes of data that make up this attachment (before base64 encoding, if that is done).

sizeElement Extensions for size

hash The calculated hash of the data using SHA-1. Represented using base64.

hashElement Extensions for hash

title A label or set of text to display in place of the data.

titleElement Extensions for title

creation The date that the attachment was first created.

creationElement Extensions for creation

Implementation

const factory Attachment({
  /// [id] Unique id for the element within a resource (for internal
  ///  references). This may be any string value that does not contain spaces.
  @JsonKey(name: 'id') String? fhirId,

  /// [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.
  @JsonKey(name: 'extension') List<FhirExtension>? extension_,

  /// [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.
  FhirCode? contentType,

  /// [contentTypeElement] Extensions for contentType
  @JsonKey(name: '_contentType') Element? contentTypeElement,

  /// [language] The human language of the content. The value can be any valid
  ///  value according to BCP 47.
  FhirCode? language,

  /// [languageElement] Extensions for language
  @JsonKey(name: '_language') Element? languageElement,

  /// [data] The actual data of the attachment - a sequence of bytes, base64
  ///  encoded.
  FhirBase64Binary? data,

  /// [dataElement] Extensions for data
  @JsonKey(name: '_data') Element? dataElement,

  /// [url] A location where the data can be accessed.
  FhirUrl? url,

  /// [urlElement] Extensions for url
  @JsonKey(name: '_url') Element? urlElement,

  /// [size] The number of bytes of data that make up this attachment (before
  ///  base64 encoding, if that is done).
  FhirUnsignedInt? size,

  /// [sizeElement] Extensions for size
  @JsonKey(name: '_size') Element? sizeElement,

  /// [hash] The calculated hash of the data using SHA-1. Represented using
  ///  base64.
  FhirBase64Binary? hash,

  /// [hashElement] Extensions for hash
  @JsonKey(name: '_hash') Element? hashElement,

  /// [title] A label or set of text to display in place of the data.
  String? title,

  /// [titleElement] Extensions for title
  @JsonKey(name: '_title') Element? titleElement,

  /// [creation] The date that the attachment was first created.
  FhirDateTime? creation,

  /// [creationElement] Extensions for creation
  @JsonKey(name: '_creation') Element? creationElement,
}) = _Attachment;