Complex Type

FHIR complex types have multiple child elements. In Gleam, complex types are custom types with a record of their child fields. For example, an Address has a bunch of elements, which all are in r4.Address.

Address

pub type Address {
  Address(
    id: Option(String),
    extension: List(Extension),
    use_: Option(r4_valuesets.Addressuse),
    type_: Option(r4_valuesets.Addresstype),
    text: Option(String),
    line: List(String),
    city: Option(String),
    district: Option(String),
    state: Option(String),
    postal_code: Option(String),
    country: Option(String),
    period: Option(Period),
  )
}
Search Document