ValueSetComposeIncludeConcept

open class ValueSetComposeIncludeConcept: BackboneElement

A concept defined in the system.

Specifies a concept to be included or excluded.

  • A concept defined in the system.

    Specifies a concept to be included or excluded.

    Declaration

    Swift

    override open class var resourceType: String
  • Code or expression from system.

    Declaration

    Swift

    public var code: FHIRString?
  • Additional representations for this concept.

    Declaration

    Swift

    public var designation: [ValueSetComposeIncludeConceptDesignation]?
  • Text to display for this code for this value set in this valueset.

    Declaration

    Swift

    public var display: FHIRString?
  • Convenience initializer, taking all required properties as arguments.

    Declaration

    Swift

    public convenience init(code: FHIRString)
  • Convenience initializer, taking all required properties as arguments.

    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 ValueSetComposeIncludeConcept: BackboneElement
  • The display string, localized in the device language; uses Locale.current with localized(in: Locale)

    Declaration

    Swift

    public var display_localized: String?
  • Returns the display.string value, localized in the given locale if available, self.display.string otherwise.

    The method will fall back to language code only if you provide a language and region code (e.g. en-US) but a localization is only available for the language code (e.g. en) or a different region (e.g. en-AU).

    Declaration

    Swift

    public func display_localized(in locale: String) -> String?

    Parameters

    locale

    The locale for which to retrieve the localization

    Return Value

    A String in the given locale, untranslated otherwise

  • Returns the display value, localized in the given locale if available, self.display otherwise. This is achieved by first looking at the designation property and querying it for a designation for the desired locale. If none is found, the standard localization extension is queried (look at FHIRString.localized()), ultimately falling back to the display value.

    The method will fall back to language code only if you provide a language and region code (e.g. en-US) but a localization is only available for the language code (e.g. en) or a different region (e.g. en-AU).

    Declaration

    Swift

    public func display_localized(in locale: Locale) -> FHIRString?

    Parameters

    locale

    The locale for which to retrieve the localization

    Return Value

    The FHIRString in the given locale, untranslated otherwise