EZDERM
Create medication
Create an unsent prescription for an assessment.
POSThttps://preview.ontross.com/api/integrations/ezderm/create-medication
Request Fields
input.patient_id
string
requiredPatient UUID, resolved from a medical record number by list-patients.
Example
"3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93"input.encounter_id
string
requiredEncounter the request acts on, returned by create-encounter.
Example
"d26f8a40-3b17-4c95-ae82-608c7f0db541"input.assessment_id
string
requiredOpaque reference from create-assessment tying the medication to that assessment.
input.medication_option_id
string
requiredFavorite prescription ID from list-medication-options for the chosen template.
Example
"7b5c0e38-9f24-4a61-b8d3-0e61a7c25f40"auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
medication_id
string
EZDerm prescription id created on the encounter, not yet sent.
Example
"8D47F435-2B59-4CA8-9E03-51DB7F2A6C84"patient_id
string
Patient UUID, resolved from a medical record number by list-patients.
Example
"3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93"encounter_id
string
Encounter the request acts on, returned by create-encounter.
Example
"d26f8a40-3b17-4c95-ae82-608c7f0db541"assessment_id
string
Opaque reference from create-assessment tying the medication to that assessment.
name
string
Selected favorite prescription label, or empty text when unavailable.
Example
"tretinoin 0.025% topical cream"Code
curl --request POST \
--url https://preview.ontross.com/api/integrations/ezderm/create-medication \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patient_id":"3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93","encounter_id":"d26f8a40-3b17-4c95-ae82-608c7f0db541","assessment_id":"eyJwIjoiN2MxZDRlNjItMmE1My00Zjg4LTliMGUtNDFkN2M2YTVlMjEwIiwibCI6ImI5NGYwYTE3LTZjMzgtNGQ1Mi04ZTcxLTJhZjNkMDVjOWI2NCIsInQiOiI1ZTJhOWM3NC0xOGI2LTRmMDMtYWQ1OS03Yzg2YjFlNGY5MDIifQ","medication_option_id":"7b5c0e38-9f24-4a61-b8d3-0e61a7c25f40"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patient_id": "3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93",
"encounter_id": "d26f8a40-3b17-4c95-ae82-608c7f0db541",
"assessment_id": "eyJwIjoiN2MxZDRlNjItMmE1My00Zjg4LTliMGUtNDFkN2M2YTVlMjEwIiwibCI6ImI5NGYwYTE3LTZjMzgtNGQ1Mi04ZTcxLTJhZjNkMDVjOWI2NCIsInQiOiI1ZTJhOWM3NC0xOGI2LTRmMDMtYWQ1OS03Yzg2YjFlNGY5MDIifQ",
"medication_option_id": "7b5c0e38-9f24-4a61-b8d3-0e61a7c25f40"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"medication_id": "8D47F435-2B59-4CA8-9E03-51DB7F2A6C84",
"patient_id": "3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93",
"encounter_id": "d26f8a40-3b17-4c95-ae82-608c7f0db541",
"assessment_id": "eyJwIjoiN2MxZDRlNjItMmE1My00Zjg4LTliMGUtNDFkN2M2YTVlMjEwIiwibCI6ImI5NGYwYTE3LTZjMzgtNGQ1Mi04ZTcxLTJhZjNkMDVjOWI2NCIsInQiOiI1ZTJhOWM3NC0xOGI2LTRmMDMtYWQ1OS03Yzg2YjFlNGY5MDIifQ",
"name": "tretinoin 0.025% topical cream"
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}