Data Model Libraries
    Preparing search index...

    Annotation Class

    Annotation Type: A text note which also contains information about who made the statement and when.

    FHIR Specification

    • Short: Text node with attribution
    • Definition: A text note which also contains information about who made the statement and when.
    • Comment: For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. Annotations SHOULD NOT be used to communicate "modifying" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    author?: IDataType

    Annotation.author[x] Element

    @ChoiceDataTypesMeta('Annotation.author[x]', ['Reference','string',]

    FHIR Specification

    • Short: Individual responsible for the annotation
    • Definition: The individual responsible for making the annotation.
    • Comment: Organization is used when there's no need for specific attribution as to who made the comment.
    • FHIR Types: 'Reference', 'string',
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Annotation.time Element

    FHIR Specification

    • Short: When the annotation was made
    • Definition: Indicates when this particular annotation was made.
    • FHIR Type: dateTime
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    text: null | MarkdownType

    Annotation.text Element

    FHIR Specification

    • Short: The annotation - text content (as markdown)
    • Definition: The text of the annotation in markdown format.
    • FHIR Type: markdown
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: true

    Methods

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

      Parameters

      • sourceJson: Value

        JSON representing FHIR Annotation

      • OptionaloptSourceField: string

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

      Returns undefined | Annotation

      Annotation data model or undefined for Annotation

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