FhirEx.Types.CodeableConcept (fhir_ex v0.3.0)

Copy Markdown View Source

FHIR R5 CodeableConcept data type.

A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. Used extensively throughout FHIR for coded values.

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

Example

%CodeableConcept{
  coding: [
    %Coding{system: "http://loinc.org", code: "58410-2", display: "CBC panel"}
  ],
  text: "Complete Blood Count"
}

Summary

Functions

Convenience constructor for a single-coding concept.

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.CodeableConcept{
  coding: [FhirEx.Types.Coding.t()] | nil,
  text: String.t() | nil
}

Functions

from_coding(coding, text \\ nil)

@spec from_coding(FhirEx.Types.Coding.t(), String.t() | nil) :: t()

Convenience constructor for a single-coding concept.

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(cc)

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

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