struct
Halaxy
pub struct Halaxy {
/* private fields */
}Server-side client: builds authorised requests.
Methods
new
pub fn new(region: Region, user_agent: &str) -> Halaxyuser_agent identifies your app to Halaxy: "Vendor (email)".
with_base
pub fn with_base(self, base: &str) -> HalaxyAnother base URL (a test double or sandbox); ends with /.
token_request
pub fn token_request(&self, client_id: &str, client_secret: &str) -> RequestThe client-credentials token request.
search
pub fn search(&self, token: &str, resource: &str, params: &[(String, String)]) -> RequestSearch a resource type ("Practitioner", "Slot", …).
read
pub fn read(&self, token: &str, resource: &str, id: &str) -> RequestRead FHIR resource id (Practitioner, abc123) with access token.