Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExtensionBuilder

Class representing a FHIR

Hierarchy

Index

Constructors

constructor

Methods

addExtension

  • Adds the extension provided as an argument to the resource's extension array

    Parameters

    • extension: Extension

      The resource to be added to the extension array

    Returns this

    the Builder

build

conflictsWith

  • conflictsWith(element: Element): boolean
  • Returns whether or not the element provided as an argument is in conflict with the element used in the builder

    Parameters

    • element: Element

      The element to test for conflict

    Returns boolean

    Whether it is in conflict

getExtension

  • Returns either the extensions identified by the provided url from the extension array or the entire extension array, if no url is provided

    Parameters

    • Optional url: url

    Returns Extension[]

    The extensions if they exists or the extension-array

getId

  • getId(): id | undefined
  • Returns the element's id

    Returns id | undefined

    The element's id

getUrl

  • getUrl(): uri | undefined
  • Returns the url-field of the CarePlanActivity if it is set

    Returns uri | undefined

    The url-field

getValueAddress

  • getValueAddress(): Address | undefined
  • Returns the valueAddress-field of the Extension

    Returns Address | undefined

    The valueAddress-field

getValueAge

  • getValueAge(): Age | undefined
  • Returns the valueAge-field of the Extension

    Returns Age | undefined

    The valueAge-field

getValueAnnotation

  • Returns the valueAnnotation-field of the Extension

    Returns Annotation | undefined

    The valueAnnotation-field

getValueAttachment

  • Returns the valueAttachment-field of the Extension

    Returns Attachment | undefined

    The valueAttachment-field

getValueBase64Binary

  • Returns the valueBase64Binary-field of the Extension

    Returns base64Binary | undefined

    The valueBase64Binary-field

getValueBoolean

  • getValueBoolean(): boolean | undefined
  • Returns the valueBoolean-field of the Extension

    Returns boolean | undefined

    The valueBoolean-field

getValueCanonical

  • Returns the valueCanonical-field of the Extension

    Returns canonical | undefined

    The valueCanonical-field

getValueCode

  • getValueCode(): code | undefined
  • Returns the valueCode-field of the Extension

    Returns code | undefined

    The valueCode-field

getValueCodeableConcept

  • Returns the valueCodeableConcept-field of the Extension

    Returns CodeableConcept | undefined

    The valueCodeableConcept-field

getValueCoding

  • getValueCoding(): Coding | undefined
  • Returns the valueCoding-field of the Extension

    Returns Coding | undefined

    The valueCoding-field

getValueContactPoint

  • Returns the valueContactPoint-field of the Extension

    Returns ContactPoint | undefined

    The valueContactPoint-field

getValueCount

  • getValueCount(): Count | undefined
  • Returns the valueCount-field of the Extension

    Returns Count | undefined

    The valueCount-field

getValueDate

  • getValueDate(): date | undefined
  • Returns the valueDate-field of the Extension

    Returns date | undefined

    The valueDate-field

getValueDateTime

  • getValueDateTime(): dateTime | undefined
  • Returns the valueDateTime-field of the Extension

    Returns dateTime | undefined

    The valueDateTime-field

getValueDecimal

  • getValueDecimal(): decimal | undefined
  • Returns the valueDecimal-field of the Extension

    Returns decimal | undefined

    The valueDecimal-field

getValueDistance

  • getValueDistance(): Distance | undefined
  • Returns the valueDistance-field of the Extension

    Returns Distance | undefined

    The valueDistance-field

getValueDuration

  • getValueDuration(): Duration | undefined
  • Returns the valueDuration-field of the Extension

    Returns Duration | undefined

    The valueDuration-field

getValueHumanName

  • Returns the valueHumanName-field of the Extension

    Returns HumanName | undefined

    The valueHumanName-field

getValueId

  • getValueId(): id | undefined
  • Returns the valueId-field of the Extension

    Returns id | undefined

    The valueId-field

getValueIdentifier

  • Returns the valueIdentifier-field of the Extension

    Returns Identifier | undefined

    The valueIdentifier-field

getValueInstant

  • getValueInstant(): instant | undefined
  • Returns the valueInstant-field of the Extension

    Returns instant | undefined

    The valueInstant-field

getValueInteger

  • getValueInteger(): integer | undefined
  • Returns the valueInteger-field of the Extension

    Returns integer | undefined

    The valueInteger-field

getValueMarkdown

  • getValueMarkdown(): markdown | undefined
  • Returns the valueMarkdown-field of the Extension

    Returns markdown | undefined

    The valueMarkdown-field

getValueMeta

  • getValueMeta(): Meta | undefined
  • Returns the valueMeta-field of the Extension

    Returns Meta | undefined

    The valueMeta-field

getValueMoney

  • getValueMoney(): Money | undefined
  • Returns the valueMoney-field of the Extension

    Returns Money | undefined

    The valueMoney-field

getValueOid

  • getValueOid(): oid | undefined
  • Returns the valueOid-field of the Extension

    Returns oid | undefined

    The valueOid-field

getValuePeriod

  • getValuePeriod(): Period | undefined
  • Returns the valuePeriod-field of the Extension

    Returns Period | undefined

    The valuePeriod-field

getValuePositiveInt

  • Returns the valuePositiveInt-field of the Extension

    Returns positiveInt | undefined

    The valuePositiveInt-field

getValueQuantity

  • getValueQuantity(): Quantity | undefined
  • Returns the valueQuantity-field of the Extension

    Returns Quantity | undefined

    The valueQuantity-field

getValueRange

  • getValueRange(): Range | undefined
  • Returns the valueRange-field of the Extension

    Returns Range | undefined

    The valueRange-field

getValueRatio

  • getValueRatio(): Ratio | undefined
  • Returns the valueRatio-field of the Extension

    Returns Ratio | undefined

    The valueRatio-field

getValueReference

  • Returns the valueReference-field of the CarePlanActivity if it is set

    Returns Reference | undefined

    The valueReference-field

getValueSampledData

  • Returns the valueSampledData-field of the Extension

    Returns SampledData | undefined

    The valueSampledData-field

getValueSignature

  • Returns the valueSignature-field of the Extension

    Returns Signature | undefined

    The valueSignature-field

getValueString

  • getValueString(): string | undefined
  • Returns the valueString-field of the Extension

    Returns string | undefined

    The valueString-field

getValueTime

  • getValueTime(): time | undefined
  • Returns the valueTime-field of the Extension

    Returns time | undefined

    The valueTime-field

getValueTiming

  • getValueTiming(): Timing | undefined
  • Returns the valueTiming-field of the Extension

    Returns Timing | undefined

    The valueTiming-field

getValueUnsignedInt

  • Returns the valueUnsignedInt-field of the Extension

    Returns unsignedInt | undefined

    The valueUnsignedInt-field

getValueUri

  • getValueUri(): uri | undefined
  • Returns the valueUri-field of the Extension

    Returns uri | undefined

    The valueUri-field

getValueUrl

  • getValueUrl(): url | undefined
  • Returns the valueUrl-field of the Extension

    Returns url | undefined

    The valueUrl-field

getValueUuid

  • getValueUuid(): uuid | undefined
  • Returns the valueUuid-field of the Extension

    Returns uuid | undefined

    The valueUuid-field

Protected make

  • Make a new object that implements a FHIR Extension

    override

    Returns Extension

    • an object that implements FHIR Extension

setExtension

  • setExtension(extension?: Extension[]): this
  • Sets the resource'extension-array to the provided array If no argument is provided, the field will be removed

    Parameters

    • Optional extension: Extension[]

      The array to be set as the resource's extension array

    Returns this

    the Builder

setId

  • setId(id?: id): this
  • Sets the element's id to the id provided as an argument If no argument is provided, the field will be removed

    Parameters

    • Optional id: id

      the id to be set

    Returns this

    the Builder

setUrl

  • setUrl(url?: uri): this
  • Sets the url-field of the CarePlanActivity with the provided uri If no argument is provided, the field will be removed

    Parameters

    • Optional url: uri

    Returns this

    The builder

setValueAddress

  • setValueAddress(valueAddress?: Address): this
  • Sets the valueAddress-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueAddress: Address

      The value to be set in the valueAddress-field

    Returns this

    • The builder

setValueAge

  • setValueAge(valueAge?: Age): this
  • Sets the valueAge-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueAge: Age

      The value to be set in the valueAge-field

    Returns this

    • The builder

setValueAnnotation

  • setValueAnnotation(valueAnnotation?: Annotation): this
  • Sets the valueAnnotation-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueAnnotation: Annotation

      The value to be set in the valueAnnotation-field

    Returns this

    • The builder

setValueAttachment

  • setValueAttachment(valueAttachment?: Attachment): this
  • Sets the valueAttachment-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueAttachment: Attachment

      The value to be set in the valueAttachment-field

    Returns this

    • The builder

setValueBase64Binary

  • setValueBase64Binary(valueBase64Binary?: base64Binary): this
  • Sets the valueBase64Binary-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueBase64Binary: base64Binary

      The value to be set in the valueBase64Binary-field

    Returns this

    • The builder

setValueBoolean

  • setValueBoolean(valueBoolean?: undefined | false | true): this
  • Sets the valueBoolean-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueBoolean: undefined | false | true

      The value to be set in the valueBoolean-field

    Returns this

    • The builder

setValueCanonical

  • setValueCanonical(valueCanonical?: canonical): this
  • Sets the valueCanonical-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueCanonical: canonical

      The value to be set in the valueCanonical-field

    Returns this

    • The builder

setValueCode

  • setValueCode(valueCode?: code): this
  • Sets the valueCode-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueCode: code

      The value to be set in the valueCode-field

    Returns this

    • The builder

setValueCodeableConcept

  • Sets the valueCodeableConcept-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueCodeableConcept: CodeableConcept

      The value to be set in the valueCodeableConcept-field

    Returns this

    • The builder

setValueCoding

  • setValueCoding(valueCoding?: Coding): this
  • Sets the valueCoding-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueCoding: Coding

      The value to be set in the valueCoding-field

    Returns this

    • The builder

setValueContactPoint

  • setValueContactPoint(valueContactPoint?: ContactPoint): this
  • Sets the valueContactPoint-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueContactPoint: ContactPoint

      The value to be set in the valueContactPoint-field

    Returns this

    • The builder

setValueCount

  • setValueCount(valueCount?: Count): this
  • Sets the valueCount-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueCount: Count

      The value to be set in the valueCount-field

    Returns this

    • The builder

setValueDate

  • setValueDate(valueDate?: date): this
  • Sets the valueDate-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueDate: date

      The value to be set in the valueDate-field

    Returns this

    • The builder

setValueDateTime

  • setValueDateTime(valueDateTime?: dateTime): this
  • Sets the valueDateTime-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueDateTime: dateTime

      The value to be set in the valueDateTime-field

    Returns this

    • The builder

setValueDecimal

  • setValueDecimal(valueDecimal?: decimal): this
  • Sets the valueDecimal-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueDecimal: decimal

      The value to be set in the valueDecimal-field

    Returns this

    • The builder

setValueDistance

  • setValueDistance(valueDistance?: Distance): this
  • Sets the valueDistance-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueDistance: Distance

      The value to be set in the valueDistance-field

    Returns this

    • The builder

setValueDuration

  • setValueDuration(valueDuration?: Duration): this
  • Sets the valueDuration-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueDuration: Duration

      The value to be set in the valueDuration-field

    Returns this

    • The builder

setValueHumanName

  • setValueHumanName(valueHumanName?: HumanName): this
  • Sets the valueHumanName-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueHumanName: HumanName

      The value to be set in the valueHumanName-field

    Returns this

    • The builder

setValueId

  • setValueId(valueId?: id): this
  • Sets the valueId-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueId: id

      The value to be set in the valueId-field

    Returns this

    • The builder

setValueIdentifier

  • setValueIdentifier(valueIdentifier?: Identifier): this
  • Sets the valueIdentifier-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueIdentifier: Identifier

      The value to be set in the valueIdentifier-field

    Returns this

    • The builder

setValueInstant

  • setValueInstant(valueInstant?: instant): this
  • Sets the valueInstant-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueInstant: instant

      The value to be set in the valueInstant-field

    Returns this

    • The builder

setValueInteger

  • setValueInteger(valueInteger?: integer): this
  • Sets the valueInteger-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueInteger: integer

      The value to be set in the valueInteger-field

    Returns this

    • The builder

setValueMarkdown

  • setValueMarkdown(valueMarkdown?: markdown): this
  • Sets the valueMarkdown-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueMarkdown: markdown

      The value to be set in the valueMarkdown-field

    Returns this

    • The builder

setValueMeta

  • setValueMeta(valueMeta?: Meta): this
  • Sets the valueMeta-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueMeta: Meta

      The value to be set in the valueMeta-field

    Returns this

    • The builder

setValueMoney

  • setValueMoney(valueMoney?: Money): this
  • Sets the valueMoney-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueMoney: Money

      The value to be set in the valueMoney-field

    Returns this

    • The builder

setValueOid

  • setValueOid(valueOid?: oid): this
  • Sets the valueOid-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueOid: oid

      The value to be set in the valueOid-field

    Returns this

    • The builder

setValuePeriod

  • setValuePeriod(valuePeriod?: Period): this
  • Sets the valuePeriod-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valuePeriod: Period

      The value to be set in the valuePeriod-field

    Returns this

    • The builder

setValuePositiveInt

  • setValuePositiveInt(valuePositiveInt?: positiveInt): this
  • Sets the valuePositiveInt-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valuePositiveInt: positiveInt

      The value to be set in the valuePositiveInt-field

    Returns this

    • The builder

setValueQuantity

  • setValueQuantity(valueQuantity?: Quantity): this
  • Sets the valueQuantity-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueQuantity: Quantity

      The value to be set in the valueQuantity-field

    Returns this

    • The builder

setValueRange

  • setValueRange(valueRange?: Range): this
  • Sets the valueRange-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueRange: Range

      The value to be set in the valueRange-field

    Returns this

    • The builder

setValueRatio

  • setValueRatio(valueRatio?: Ratio): this
  • Sets the valueRatio-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueRatio: Ratio

      The value to be set in the valueRatio-field

    Returns this

    • The builder

setValueReference

  • setValueReference(valueReference?: Reference): this
  • Sets the valueReference-field of the CarePlanActivity with the provided reference If no argument is provided, the field will be removed

    Parameters

    Returns this

    The builder

setValueSampledData

  • setValueSampledData(valueSampledData?: SampledData): this
  • Sets the valueSampledData-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueSampledData: SampledData

      The value to be set in the valueSampledData-field

    Returns this

    • The builder

setValueSignature

  • setValueSignature(valueSignature?: Signature): this
  • Sets the valueSignature-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueSignature: Signature

      The value to be set in the valueSignature-field

    Returns this

    • The builder

setValueString

  • setValueString(valueString?: undefined | string): this
  • Sets the valueString-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueString: undefined | string

      The value to be set in the valueString-field

    Returns this

    • The builder

setValueTime

  • setValueTime(valueTime?: time): this
  • Sets the valueTime-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueTime: time

      The value to be set in the valueTime-field

    Returns this

    • The builder

setValueTiming

  • setValueTiming(valueTiming?: Timing): this
  • Sets the valueTiming-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueTiming: Timing

      The value to be set in the valueTiming-field

    Returns this

    • The builder

setValueUnsignedInt

  • setValueUnsignedInt(valueUnsignedInt?: unsignedInt): this
  • Sets the valueUnsignedInt-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueUnsignedInt: unsignedInt

      The value to be set in the valueUnsignedInt-field

    Returns this

    • The builder

setValueUri

  • setValueUri(valueUri?: uri): this
  • Sets the valueUri-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueUri: uri

      The value to be set in the valueUri-field

    Returns this

    • The builder

setValueUrl

  • setValueUrl(valueUrl?: url): this
  • Sets the valueUrl-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueUrl: url

      The value to be set in the valueUrl-field

    Returns this

    • The builder

setValueUuid

  • setValueUuid(valueUuid?: uuid): this
  • Sets the valueUuid-field of the Extension If no argument is provided, the field will be removed

    Parameters

    • Optional valueUuid: uuid

      The value to be set in the valueUuid-field

    Returns this

    • The builder

use

  • Sets a copy of an already existing extension as the element to build If no argument is provided, a new Extension will be generated

    override

    Parameters

    Returns this

    The builder

Generated using TypeDoc