Create Prescription

POST {{URL}}/patient/{{PATIENT_ID}}/prescription

Create a prescription in PocketPills system for a patient. The addition of prescriptions as well as medications is idempotent. Hence, the newly generated prescription may not have a certain medication if the patient is already on it. * image_url is mandatory. * subsitute field will be optional, and if not passed, default would be true. * Optional Fields: notes, list of medications, subsitute.

Request Body

{"patientId"=>123, "dateWritten"=>"2020-02-05T00:00:00.000Z", "prescriber"=>"Dr. Nathan Gork", "notes"=>"add notes associated with this prescription here", "imageUrl"=>"https://s3.amazonaws.com/prescription-1", "medications"=>[{"medicationName"=>"lipitor", "din"=>78, "medicationSig"=>"morning and evening", "refillQuantity"=>60, "daysValid"=>30, "substitute"=>true}, {"din"=>79, "medicationSig"=>"3 times a day after food", "refillQuantity"=>540, "daysValid"=>180, "substitute"=>true}]}