Developers
Drug Dosage Calculator

The drug dosage calculator component allows you to embed the calculator into your own application. Inject the patient's species and weight to calculate the correct dosage for a drug for the patient.

Getting started

To get started with the drug dosage calculator component, you need to call the Components API to create a new session:

POST https://components.gekkovet.com/v1/sessions HTTP/1.1
Content-Type: application/json
Authorization: Bearer YOUR_JWT_TOKEN

{
  "component": "drug-calculator",
  "patient": {
    "weight_kg": 20,
    "species": "dog"
  }
}
The response will contain a session ID and an URL that you can use to embed the drug dosage calculator into your application:
{ "session_id": "SESSION_ID", "url": "https://components.gekkovet.com/components/drug-calculator/SESSION_ID" }
You can then embed the drug dosage calculator using an iframe or webview:
<iframe src="https://components.gekkovet.com/components/drug-calculator/SESSION_ID" width="100%" height="800px"></iframe>