# Send a prescription Endpoint: POST /prescriptions Version: 2024-12-10 Security: BearerAuth ## Request fields (application/json): - `prescription` (object, required) - `prescription.external_id` (string, required) Your unique identifier for this prescription. You will use this value to query or cancel individual prescriptions. - `prescription.written_date` (string, required) - `prescription.number_of_refills` (integer, required) - `prescription.substitutions` (integer, required) NCPDP Dispense As Written/Product Selection Code. E.g. 0 for No Product Selection Indicated and 1 for Substitution Not Allowed by Prescriber - `prescription.sig_text` (string) - `prescription.note` (string) - `prescription.patient` (object, required) - `prescription.patient.first_name` (string, required) - `prescription.patient.middle_name` (string,null) - `prescription.patient.last_name` (string, required) - `prescription.patient.dob` (string, required) Patient date of birth, in format YYYY-MM-DD. - `prescription.patient.gender` (string, required) Patient gender assigned at birth. Enum: "M", "F", "N", "U" - `prescription.patient.address` (object, required) - `prescription.patient.address.address1` (string, required) - `prescription.patient.address.address2` (string,null) - `prescription.patient.address.city` (string, required) - `prescription.patient.address.state` (string, required) Two-letter state abbreviation. Fifty US states and DC only. - `prescription.patient.address.zip` (string, required) Five-digit ZIP code. - `prescription.patient.primary_phone` (string, required) Primary contact phone number for the patient. US phone numbers only. - `prescription.patient.email` (string,null) - `prescription.medication` (object, required) - `prescription.medication.name` (string, required) - `prescription.medication.ndc` (string, required) NDC code for a medication dispensed by Gifthealth. Enum: "00002015204", "00002024304", "00002121404", "00002134004", "00002142304", "00002200204" - `prescription.medication.quantity` (string, required) - `prescription.medication.quantity_unit_code` (string, required) NCPDP Quantity Unit of Measure Code. E.g. C28254 for Milliliters, C64933 for Each - `prescription.medication.days_supply` (integer,null) - `prescription.medication.diagnosis` (object) - `prescription.medication.diagnosis.primary_icd10_code` (string, required) - `prescription.medication.diagnosis.primary_icd10_description` (string, required) - `prescription.medication.diagnosis.secondary_icd10_code` (string,null) - `prescription.medication.diagnosis.secondary_icd10_description` (string,null) - `prescription.prescriber` (object, required) - `prescription.prescriber.suffix` (string,null) - `prescription.prescriber.npi` (string, required) 10-digit National Provider Identifier (NPI) for the prescriber. - `prescription.prescriber.primary_phone` (string, required) Primary phone number for the prescriber. US phone numbers only. - `prescription.prescriber.fax` (string,null) Fax number for the prescriber. US phone numbers only. - `prescription.pharmacy` (object, required) - `prescription.pharmacy.npi` (string, required) 10-digit National Provider Identifier (NPI) for the receiving pharmacy for this prescription. Must be a valid NPI for a Gifthealth-managed pharmacy. Enum: "1689411712" - `prescription.pharmacy.ncpdpid` (string, required) NCPDP ID for the receiving pharmacy for this prescription. Must be a valid NCPDP ID for a Gifthealth-managed pharmacy. Enum: "3692539" - `prescription.pharmacy.primary_phone` (string, required) Primary contact phone number for the receiving pharmacy. US phone numbers only. - `prescription.pharmacy.fax` (string,null) Fax number for the receiving pharmacy. US phone numbers only. - `prescription.allergies` (array) An empty array indicates No Known Allergies. If the patient's allergy history is unknown, pass null or omit this key. - `prescription.allergies.source_of_information` (string, required) Indicates where the sender received the allergy information if known. P for patient or patient representative or personal health record (PHR), C for clinician or provider, O for other source Enum: "C", "P", "O" - `prescription.allergies.effective_date` (string,null) - `prescription.allergies.adverse_event` (object, required) - `prescription.allergies.adverse_event.text` (string, required) - `prescription.allergies.adverse_event.code` (string,null) SNOMED code for the adverse event. - `prescription.allergies.drug_product` (object, required) - `prescription.allergies.drug_product.code` (string,null) SNOMED code for the drug product. - `prescription.allergies.severity` (object) - `prescription.allergies.severity.code` (string,null) SNOMED code for the severity. - `prescription.originating_entity` (string) ## Response 201 fields (application/json): - `prescription` (object) - `prescription.external_id` (string, required) Unique identifier for this prescription, provided by the prescriber - `prescription.written_date` (string, required) - `prescription.number_of_refills` (integer, required) - `prescription.substitutions` (integer, required) NCPDP Dispense As Written/Product Selection Code. E.g. 0 for No Product Selection Indicated and 1 for Substitution Not Allowed by Prescriber - `prescription.sig_text` (string) - `prescription.note` (string) - `prescription.cancellation_requested_at` (string,null) A non-null value for this field indicates that the script has been flagged for Gifthealth to cancel the prescription as soon as possible. - `prescription.patient` (object, required) - `prescription.patient.first_name` (string, required) - `prescription.patient.middle_name` (string,null) - `prescription.patient.last_name` (string, required) - `prescription.patient.dob` (string, required) - `prescription.patient.gender` (string, required) Enum: "M", "F", "N", "U" - `prescription.patient.primary_phone` (string, required) - `prescription.patient.email` (string,null) - `prescription.patient.address` (object, required) - `prescription.patient.address.address1` (string, required) - `prescription.patient.address.address2` (string,null) - `prescription.patient.address.city` (string, required) - `prescription.patient.address.state` (string, required) Two-letter state abbreviation. Fifty US states and DC only. - `prescription.patient.address.zip` (string, required) Five-digit ZIP code. - `prescription.medication` (object, required) - `prescription.medication.name` (string, required) - `prescription.medication.ndc` (string, required) NDC code for a medication dispensed by Gifthealth. Enum: "00002015204", "00002024304", "00002121404", "00002134004", "00002142304", "00002200204" - `prescription.medication.quantity` (string, required) - `prescription.medication.quantity_unit_code` (string, required) NCPDP Quantity Unit of Measure Code. E.g. C28254 for Milliliters, C64933 for Each - `prescription.medication.days_supply` (integer,null) - `prescription.medication.diagnosis` (object) - `prescription.medication.diagnosis.primary_icd10_code` (string, required) - `prescription.medication.diagnosis.primary_icd10_description` (string, required) - `prescription.medication.diagnosis.secondary_icd10_code` (string,null) - `prescription.medication.diagnosis.secondary_icd10_description` (string,null) - `prescription.prescriber` (object, required) - `prescription.prescriber.npi` (string, required) - `prescription.prescriber.fax` (string,null) - `prescription.pharmacy` (object, required) - `prescription.pharmacy.ncpdpid` (string, required) - `prescription.allergies` (array, required) An empty array indicates No Known Allergies. If the patient's allergy history is unknown, this will be null. - `prescription.allergies.source_of_information` (string, required) Indicates where the sender received the allergy information if known. P for patient or patient representative or personal health record (PHR), C for clinician or provider, O for other source Enum: "C", "P", "O" - `prescription.allergies.effective_date` (string,null) - `prescription.allergies.adverse_event` (object, required) - `prescription.allergies.adverse_event.text` (string, required) - `prescription.allergies.adverse_event.code` (string,null) SNOMED code for the adverse event. - `prescription.allergies.drug_product` (object, required) - `prescription.allergies.drug_product.code` (string,null) SNOMED code for the drug product. - `prescription.allergies.severity` (object) - `prescription.allergies.severity.code` (string,null) SNOMED code for the severity. - `prescription.originating_entity` (string) ## Response 400 fields (application/json): - `error` (string) ## Response 401 fields (application/json): - `error` (string) ## Response 422 fields (application/json): - `errors` (object)