Returns a redirect_url that enables access to a draft treatment plan. This endpoint optionally finds or creates a patient record to associate with the treatment plan. It supports dependent accounts and includes a user interface that allows practitioners to manually match patients and practitioners if automatic matching is unsuccessful. When a match is automatically found, the patient is preselected for the practitioner.
OAuth scopes required:
clinic:write - required for all requests to this endpoint.patients:write - required if the request may result in patient creation.treatment_planobject
Treatment plan information for dynamic link.
practitioner_idstring
Practitioner's id used to create the draft treatment_plan.
patientobject
Patient information used for creating a match with a Fullscript patient, or pre-filling information to create a new patient in Fullscript
idstring
Fullscript patient id.
external_idstring
Unique patient id to create a match with a fullscript patient
emailstring
Unique Email for the Patient.
first_namestring
Patient's first name.
last_namestring
Patient's last name.
date_of_birthstring
Patient's date of birth in the format yyyy-mm-dd.
genderstring
Biological sex of the patient. Valid options are 'male', 'female', or 'x'.
mobile_numberstring
Patient's mobile number in the format +12223334444.
discountstring
Patient discount level (in percentage). This discount does not include the clinic discount. Defaults to 0.
send_welcome_emailstring
Sends a welcome email upon successful patient creation and treatment plan creation. Defaults to true.
entrypointstring
Specifies which page the redirect_url will open. Defaults to "catalog" if not specified.
curl -X 'POST' "https://api-us-snd.fullscript.io/api/clinic/dynamic_links/gateway/treatment_plans" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX' \
-d $'{
"treatment_plan": {
"practitioner_id": "string"
},
"patient": {
"id": "string",
"external_id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"gender": "string",
"mobile_number": "string",
"discount": "string",
"send_welcome_email": "string"
},
"entrypoint": "string"
}'Returns a redirect_url for a new treatment plan.
No arguments
curl "https://api-us-snd.fullscript.io/api/clinic/dynamic_links/treatment_plans" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint does not support dependent accounts. If you are working with dependent accounts, use the Create a Draft Treatment Plan Link with Patient Matching UI endpoint instead.
Returns a redirect_url that enables access to a draft treatment plan. This endpoint optionally finds or creates a patient record to associate with the treatment plan.
OAuth scopes required:
clinic:write - required for all requests to this endpoint.patients:write - required if the request may result in patient creation.treatment_planobject
Required
Treatment plan information for dynamic link.
practitioner_idstring
Required
Practitioner's id used to create the draft treatment_plan.
patientobject
Find or create a Patient.
emailstring
Unique Email for the Patient.
first_namestring
Patient's first name.
last_namestring
Patient's last name.
date_of_birthstring
Patient's date of birth in the format yyyy-mm-dd.
genderstring
Biological sex of the patient. Valid options are 'male', 'female', or 'x'.
mobile_numberstring
Patient's mobile number in the format +12223334444.
discountstring
Patient discount level (in percentage). This discount does not include the clinic discount. Defaults to 0.
send_welcome_emailstring
Sends a welcome email upon successful patient creation and treatment plan creation. Defaults to true.
entrypointstring
Specifies which page the redirect_url will open. Defaults to "catalog" if not specified.
curl -X 'POST' "https://api-us-snd.fullscript.io/api/clinic/dynamic_links/treatment_plans" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX' \
-d $'{
"treatment_plan": {
"practitioner_id": "string"
},
"patient": {
"email": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"gender": "string",
"mobile_number": "string",
"discount": "string",
"send_welcome_email": "string"
},
"entrypoint": "string"
}'Returns a redirect_url for editing an existing treatment plan. The treatment plan provided must have a state of draft or active.
idstring
Required
Unique ID for the Treatment Plan
entrypointstring
Target treatment plan page to open with the redirect_url. Defaults to "catalog"
curl "https://api-us-snd.fullscript.io/api/clinic/dynamic_links/treatment_plans/{id}" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'