Data Model Libraries
    Preparing search index...

    Flag Class

    Prospective warnings of potential issues when providing care to the patient.

    FHIR Specification

    • Short: Key information to flag to healthcare providers
    • Definition: Prospective warnings of potential issues when providing care to the patient.
    • FHIR Version: 5.0.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    identifier?: Identifier[]

    Flag.identifier Element

    FHIR Specification

    • Short: Business identifier
    • Definition: Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
    • Comment: This is a business identifier, not a resource identifier (see discussion). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
    • Requirements: Allows identification of the flag as it is known by various participating systems and in a way that remains consistent across servers.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    flagStatusEnum: FlagStatusEnum

    FHIR CodeSystem: FlagStatus

    status: null | EnumCodeType

    Flag.status Element

    FHIR Specification

    • Short: active | inactive | entered-in-error
    • Definition: Supports basic workflow.
    • Comment: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
    • FHIR Type: code
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    • isSummary: true

    CodeSystem Enumeration: FlagStatusEnum

    category?: CodeableConcept[]

    Flag.category Element

    FHIR Specification

    • Short: Clinical, administrative, etc
    • Definition: Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.
    • Comment: The value set will often need to be adjusted based on local business rules and usage context.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    code: null | CodeableConcept

    Flag.code Element

    FHIR Specification

    • Short: Coded or textual message to display to user
    • Definition: The coded value or textual component of the flag to display to the user.
    • Comment: If non-coded, use CodeableConcept.text. This element should always be included in the narrative.
    • FHIR Type: CodeableConcept
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: true
    subject: null | Reference

    Flag.subject Element

    period?: Period

    Flag.period Element

    FHIR Specification

    • Short: Time period when flag is active
    • Definition: The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.
    • FHIR Type: Period
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    encounter?: Reference

    Flag.encounter Element

    FHIR Specification

    • Short: Alert relevant during encounter
    • Definition: This alert is only relevant during the encounter.
    • Comment: If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end.
    • FHIR Type: Reference
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    author?: Reference

    Flag.author Element

    FHIR Specification

    Methods

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

      Parameters

      • sourceJson: Value

        JSON representing FHIR Flag

      • OptionaloptSourceField: string

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

      Returns undefined | Flag

      Flag data model or undefined for Flag

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided Subject object value to the subject property.

      Parameters

      • value: undefined | null | Reference

        the subject object value

      Returns this

      this

      @ReferenceTargets('Flag.subject', ['Patient','RelatedPerson','Location','Group','Organization','Practitioner','PractitionerRole','PlanDefinition','Medication','Procedure',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided Author object value to the author property.

      Parameters

      • value: undefined | Reference

        the author object value

      Returns this

      this

      @ReferenceTargets('Flag.author', ['Device','Organization','Patient','RelatedPerson','Practitioner','PractitionerRole',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided value to the text property.

      Parameters

      Returns this

      this

    • Returns boolean

      true if the text property exists and has a value; false otherwise

    • Assigns the provided Resource array value to the contained property.

      Parameters

      • value: undefined | IResource[]

        the contained array value

      Returns this

      this

    • Returns boolean

      true if the contained property 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

    • 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

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has 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 modifierExtension property exists and has any values.

      AssertionError for invalid url

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns undefined | string

      the id property value as a primitive value

    • Assigns the provided primitive value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the id property exists and has a value; false otherwise

    • Assigns the provided value to the meta property.

      Parameters

      • value: undefined | Meta

        the meta value

      Returns this

      this

    • Returns boolean

      true if the meta property exists and has a value; false otherwise

    • Assigns the provided primitive value to the implicitRules property.

      Parameters

      • value: undefined | string

        the implicitRules value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns undefined | string

      the language property value as a primitive value

    • Assigns the provided primitive value to the language property.

      Parameters

      • value: undefined | string

        the language value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the language property exists and has a value; false otherwise

    • Returns boolean

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