Read and write data
Last updated
Last updated
After we've completed setting up the object classes and their properties , we are ready to start reading and writing data in the format we just specified. More specifically, we'll create instances of the Prescription class in the Medable cloud.
The following examples use HTTP. This is most applicable for web development. You might issue these HTTP requests using a tool like Fetch or Ajax. If you're doing iOS or Android development, we wrote SDK's that make it easier for you to interact with these endpoints.
Creating prescriptions is a simple matter of a POST
request to the object route.
Following this process using the WAPI would look like this:
Change the account IDs forc_patient
and c_provider
to match those in your org.
To get that prescription we just created back, we can simply do a GET
request.
Or to get a specific Prescription we can do the following GET
request.
For more on CRUD operations on objects, see Cortex API Reference.