Data Model Libraries
    Preparing search index...

    Attachment Class

    Attachment Type: For referring to data content defined in other formats.

    Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc.

    FHIR Specification

    • Short: Content in a format defined elsewhere
    • Definition: For referring to data content defined in other formats.
    • Comment: When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Signed Procedure Consent".
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    contentType?: CodeType

    Attachment.contentType Element

    FHIR Specification

    • Short: Mime type of the content, with charset etc.
    • Definition: 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.
    • Requirements: Processors of the data need to be able to know how to interpret the data.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    language?: CodeType

    Attachment.language Element

    FHIR Specification

    • Short: Human language of the content (BCP-47)
    • Definition: The human language of the content. The value can be any valid value according to BCP 47.
    • Requirements: Users need to be able to choose between the languages in a set of attachments.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Attachment.data Element

    FHIR Specification

    • Short: Data inline, base64ed
    • Definition: The actual data of the attachment - a sequence of bytes, base64 encoded.
    • Comment: The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.
    • Requirements: The data needs to able to be transmitted inline.
    • FHIR Type: base64Binary
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    url?: UrlType

    Attachment.url Element

    FHIR Specification

    • Short: Uri where the data can be found
    • Definition: A location where the data can be accessed.
    • Comment: If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.
    • Requirements: The data needs to be transmitted by reference.
    • FHIR Type: url
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Attachment.size Element

    FHIR Specification

    • Short: Number of bytes of content (if url provided)
    • Definition: The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
    • Comment: The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference.
    • Requirements: Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all.
    • FHIR Type: integer64
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Attachment.hash Element

    FHIR Specification

    • Short: Hash of the data (sha-1, base64ed)
    • Definition: The calculated hash of the data using SHA-1. Represented using base64.
    • Comment: The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see Provenance.signature for mechanism to protect a resource with a digital signature.
    • Requirements: Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version).
    • FHIR Type: base64Binary
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    title?: StringType

    Attachment.title Element

    FHIR Specification

    • Short: Label to display in place of the data
    • Definition: A label or set of text to display in place of the data.
    • Comment: May sometimes be derived from the source filename.
    • Requirements: Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    creation?: DateTimeType

    Attachment.creation Element

    FHIR Specification

    • Short: Date attachment was first created
    • Definition: The date that the attachment was first created.
    • Requirements: This is often tracked as an integrity issue for use of the attachment.
    • FHIR Type: dateTime
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Attachment.height Element

    FHIR Specification

    • Short: Height of the image in pixels (photo/video)
    • Definition: Height of the image in pixels (photo/video).
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Attachment.width Element

    FHIR Specification

    • Short: Width of the image in pixels (photo/video)
    • Definition: Width of the image in pixels (photo/video).
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Attachment.frames Element

    FHIR Specification

    • Short: Number of frames if > 1 (photo)
    • Definition: 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.
    • Comment: if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    duration?: DecimalType

    Attachment.duration Element

    FHIR Specification

    • Short: Length in seconds (audio / video)
    • Definition: The duration of the recording in seconds - for audio and video.
    • Comment: The duration might differ from occurrencePeriod if recording was paused.
    • FHIR Type: decimal
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Attachment.pages Element

    FHIR Specification

    • Short: Number of printed pages
    • Definition: The number of pages when printed.
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided Attachment JSON to instantiate the Attachment data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR Attachment

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to Attachment

      Returns undefined | Attachment

      Attachment data model or undefined for Attachment

      JsonError if the provided JSON is not a valid JSON object

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise

    • Returns undefined | string

      the id property value

    • Assigns the provided value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid value

    • Returns boolean

      true if id exists and has a value; false otherwise

    • Assigns the provided array of Extension values to the extension property.

      Parameters

      • extension: undefined | IExtension[]

        array of Extensions

      Returns this

      this

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Determines if the extension property exists.

      Parameters

      • url: string

        the url that identifies a specific Extension

      Returns undefined | IExtension

      an Extension having the provided url

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Returns boolean

      true if and only if the data model has required fields (min cardinality > 0) and at least one of those required fields in the instance is empty; false otherwise

    • Returns boolean

      true if the instance is a FHIR resource; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive boolean datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive string-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive number-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive bigint-based datatype; false otherwise

    • Returns boolean

      true if the instance is a FHIR primitive datetime-based datatype; false otherwise