FHIRURL

public struct FHIRURL: FHIRPrimitive, CustomStringConvertible

Struct to hold on to URLs.

  • url

    The actual url.

    Declaration

    Swift

    public var url: URL
  • id

    An optional id of the element.

    Declaration

    Swift

    public var id: String?
  • The parent/owner of the receiver, if any. Used to dereference resources.

    Declaration

    Swift

    public weak var _owner: FHIRAbstractBase?
  • Optional extensions of the element.

    Declaration

    Swift

    public var extension_fhir: [Extension]?
  • Returns true if the string is the empty string.

    Declaration

    Swift

    public var absoluteString: String
  • Designated initializer.

    Declaration

    Swift

    public init(_ url: URL)

    Parameters

    string

    The URL represented by the receiver

  • Convenience initializer.

    Declaration

    Swift

    public init?(_ string: String)

    Parameters

    string

    The URL string represented by the receiver

  • Declaration

    Swift

    public init(json: JSONType, owner: FHIRAbstractBase?, context: inout FHIRInstantiationContext)

    Parameters

    json

    The value in its associated JSONType

    owner

    Optional, the owning element

    context

    An in-out parameter for the instantiation context

  • Declaration

    Swift

    public func asJSON(errors: inout [FHIRValidationError]) -> JSONType

    Parameters

    errors

    Errors encountered during serialization

    Return Value

    The FHIRJSON reperesentation of the receiver

  • Declaration

    Swift

    public var description: String