View Source Kindling.SchemaDownloader (kindling v1.0.0)

Handles downloading and unzipping FHIR JSON schemas from the hl7 server.

Summary

Functions

Download and unzip the JSON schema file for the given version into the _build directory for the library to reference.

Check if the version JSON schema is downloaded and unzipped for use. If not, download and unzip it. If that download & unzip fails, raise an error.

Functions

Link to this function

download_choices(version)

View Source
Link to this function

download_version(version)

View Source
@spec download_version(Kindling.Schema.version_string()) :: :ok | {:error, any()}

Download and unzip the JSON schema file for the given version into the _build directory for the library to reference.

Link to this function

ensure_choices!(version)

View Source
Link to this function

ensure_version!(version)

View Source

Check if the version JSON schema is downloaded and unzipped for use. If not, download and unzip it. If that download & unzip fails, raise an error.