Referral Letter

POST /api/v1/referralReturns a Referral Letter in string format. This endpoint requires both a transcript and a summary from a consultation to generate a referral letter. Critical information needed in the referral letter that is unable to be sourced from the summary or transcript is enclosed within square brackets.HEADER PARAMETERS
REQUIREDX-Scrubs-HCI-Codestring
HCI code of the clinic making the API request.
REQUIREDX-Scrubs-HCI-Providerstring
Provider ID associated with your EHR application.
BODY PARAMETERS
REQUIREDtranscriptstring
A consultation transcription. It does not need to follow the format of transcription endpoint.
REQUIREDsummarystring
A consultation summary. It does not need to follow the format of summaries from the summary endpoint but should resemble a SOAP note.
Domain
BASE URL
1https://usescrubs.com
Sample Request
CURL
NodeJS
Python
Go
CURL
1curl --location 'https://usescrubs.com/api/v1/referral' \
2--header 'X-Scrubs-HCI-Code: 00A123' \
3--header 'X-Scrubs-HCI-Provider: SAMPLE_EHR_1' \
4--header 'Content-Type: application/json' \
5--data '{
6    "transcript":"Hi, doctor, I have been having a headache for the past 1 week ...",
7    "summary":"Patient reports having a headache for the past week ..."
8}'
Sample Response
JSON
1{
2    "referral": "Dear [Name of Doctor], I am referring Mr. John [Patient's Last Name], ..."
3}
Contact us: support@usescrubs.com