https://github.com/authorhealth/go-elation
Elation EHR API client for Go
https://github.com/authorhealth/go-elation
elation elation-ehr go-api-client golang
Last synced: 3 months ago
JSON representation
Elation EHR API client for Go
- Host: GitHub
- URL: https://github.com/authorhealth/go-elation
- Owner: authorhealth
- Created: 2023-09-09T00:04:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-27T14:17:44.000Z (3 months ago)
- Last Synced: 2026-02-27T19:25:07.546Z (3 months ago)
- Topics: elation, elation-ehr, go-api-client, golang
- Language: Go
- Homepage:
- Size: 276 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: history_download_fill.go
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# go-elation
## Getting Started
```go
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"time"
"github.com/authorhealth/go-elation"
)
func main() {
httpClient := &http.Client{
Timeout: 10 * time.Second,
}
tokenURL := os.Getenv("TOKEN_URL")
clientID := os.Getenv("CLIENT_ID")
clientSecret := os.Getenv("CLIENT_SECRET")
baseURL := os.Getenv("BASE_URL")
client := elation.NewHTTPClient(httpClient, tokenURL, clientID, clientSecret, baseURL)
res := &elation.Response[[]*elation.Patient]{}
var err error
res, _, err = client.Patients().Find(context.Background(), &elation.FindPatientsOptions{
Pagination: res.PaginationNextWithLimit(1),
})
if err != nil {
log.Fatal(err)
}
fmt.Println(res.Results[0].FirstName)
}
```