Element

open class Element: FHIRAbstractBase

Base for all elements.

Base definition for all elements in a resource.

  • Base for all elements.

    Base definition for all elements in a resource.

    Declaration

    Swift

    override open class var resourceType: String
  • Additional Content defined by implementations.

    Declaration

    Swift

    public var extension_fhir: [Extension]?
  • id

    xml:id (or equivalent in JSON).

    Declaration

    Swift

    public var id: FHIRString?
  • xml:id (or equivalent in JSON).

    Declaration

    Swift

    override open func populate(from json: FHIRJSON, context instCtx: inout FHIRInstantiationContext)

    Parameters

    json

    The JSON element to use to populate the receiver

    context

    The instantiation context to use

  • Undocumented

    Declaration

    Swift

    open class Element: FHIRAbstractBase
  • Returns an array of Extension elements for the given extension URL, if any.

    Declaration

    Swift

    public final func extensions(forURI uri: String) -> [Extension]?

    Parameters

    forURI

    The URI defining the extension on the receiver