FhirEx.Types.Meta (fhir_ex v0.2.0)

Copy Markdown View Source

FHIR R5 Meta data type.

Metadata about a resource, including versioning and tags.

https://www.hl7.org/fhir/R5/resource.html#Meta

Example

%Meta{
  version_id: "1",
  last_updated: "2024-01-15T09:32:00Z",
  source: "https://ehr.example.org",
  profile: ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"]
}

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.Meta{
  last_updated: String.t() | nil,
  profile: [String.t()] | nil,
  security: [FhirEx.Types.Coding.t()] | nil,
  source: String.t() | nil,
  tag: [FhirEx.Types.Coding.t()] | nil,
  version_id: 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(m)

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

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