curl --location 'https://usescrubs.com/api/v1/referral' \
--header 'X-Scrubs-Clinic-Code: 00A123' \
--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
--header 'Content-Type: application/json' \
--data '{
"transcript":"Hi, doctor, I have been having a headache for the past 1 week ...",
"summary":"Patient reports having a headache for the past week ...",
"template":"Dear {recipient}, ...",
"patientData": {
"name": "John Doe",
"age": 45,
"gender": "Male",
"medicalHistory": ["Hypertension", "Diabetes"],
"medications": ["Metformin", "Lisinopril"]
}
}'