FhirEx.Types.ContactPoint (fhir_ex v0.2.0)

Copy Markdown View Source

FHIR R5 ContactPoint data type.

Details for all kinds of technology-mediated contact points for a person or organization.

https://www.hl7.org/fhir/R5/datatypes.html#ContactPoint

System codes: phone | fax | email | pager | url | sms | other Use codes: home | work | temp | old | mobile

Summary

Functions

Builds the struct from a string-keyed map (e.g., from decoded FHIR JSON).

Builds a new struct from a map or keyword list of field values.

Converts the struct to a string-keyed map for use with FhirEx.JSON.

Types

t()

@type t() :: %FhirEx.Types.ContactPoint{
  period: FhirEx.Types.Period.t() | nil,
  rank: pos_integer() | nil,
  system: String.t() | nil,
  use: String.t() | nil,
  value: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds the struct from a string-keyed map (e.g., from decoded FHIR JSON).

new(attrs \\ %{})

@spec new(map() | keyword()) :: t()

Builds a new struct from a map or keyword list of field values.

to_map(cp)

@spec to_map(t()) :: map()

Converts the struct to a string-keyed map for use with FhirEx.JSON.