httpc

fhir/r4/client_httpc makes requests using httpc, and is the easiest client to use.

import fhir/r4/client_httpc
import fhir/r4/sansio

pub fn main() {
  let assert Ok(client) = sansio.fhirclient_new("https://r4.smarthealthit.org/")
  let assert Ok(pat) =
    client_httpc.patient_read("87a339d0-8cae-418e-89c7-8651e6aab3c6", client)
  echo pat
}
Search Document