FhirEx.Types.Coding (fhir_ex v0.2.0)

Copy Markdown View Source

FHIR R5 Coding data type.

A representation of a defined concept using a symbol from a defined "code system".

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

Example

%Coding{
  system: "http://loinc.org",
  version: "2.76",
  code: "58410-2",
  display: "CBC panel - Blood by Automated count",
  user_selected: false
}

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.Coding{
  code: String.t() | nil,
  display: String.t() | nil,
  system: String.t() | nil,
  user_selected: boolean() | nil,
  version: 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(c)

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

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